/**
 * File: msi-footer-contact.css
 * Path: /wp-content/themes/msi-theme/assets/css/msi-footer-contact.css
 * Version: 1.0.24-dev
 * Created: 2026-11-28
 * Last Updated: 2026-11-28
 * Author: Lucky Mahrus | https://geraisitus.co.id/
 * Description: Opt-in styling for LM Core v0.20.0-dev's encoded phone/WhatsApp links in MSI footer.
 * Changelog: 1.0.4-dev — White aligned icon+number footer rows; mobile and motion-safe refinements.
 */

/*
 * Only elements explicitly using class="msi-footer-contact" are affected.
 * LM Core creates anchor/icon/label with JavaScript after decoding its placeholder.
 * Do not embed private contact data, numbers, or HTML icon markup in theme files.
 */
body.msi-theme a.msi-footer-contact.lmcore-encoded-contact-link {
    display: inline-flex !important;
    width: fit-content;
    max-width: 100%;
    align-items: center !important;
    justify-content: flex-start;
    gap: var(--msi-footer-contact-gap, 18px) !important;
    margin: 0 0 var(--msi-footer-contact-margin-bottom, 12px) !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    text-decoration: none !important;
    background: transparent !important;
    transition: opacity 180ms ease;
}

body.msi-theme a.msi-footer-contact.lmcore-encoded-contact-link:hover,
body.msi-theme a.msi-footer-contact.lmcore-encoded-contact-link:focus-visible {
    color: #fff !important;
    opacity: .83;
}

body.msi-theme a.msi-footer-contact.lmcore-encoded-contact-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

body.msi-theme a.msi-footer-contact.lmcore-encoded-contact-link .lmcore-encoded-contact__icon {
    display: inline-flex;
    flex: 0 0 26px !important;
    width: 26px !important;
    height: 26px !important;
    align-items: center;
    justify-content: center;
    color: inherit;
    line-height: 0;
}

body.msi-theme a.msi-footer-contact.lmcore-encoded-contact-link .lmcore-encoded-contact__icon svg {
    display: block;
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

body.msi-theme a.msi-footer-contact.lmcore-encoded-contact-link .lmcore-encoded-contact__label {
    min-width: 0;
    color: inherit;
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    body.msi-theme a.msi-footer-contact.lmcore-encoded-contact-link {
        --msi-footer-contact-gap: 16px;
        font-size: 14px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.msi-theme a.msi-footer-contact.lmcore-encoded-contact-link {
        transition: none;
    }
}
