/* ── Social Media widget (safety net) ──────────────────────── */
.footer .follow-us:has(.widget-title) {
    display: none !important;
}

/* ── Footer-bottom: blend with footer-middle (same #fff bg) ── */
.footer-bottom {
    background-color: #fff !important;
    border-top: none !important;
    padding: 0 0 20px !important;
}

/* ── Hide default Porto copyright address ──────────────────── */
.footer-bottom address {
    display: none !important;
}

/* ── Footer Middle: extra height + vertical dividers ────────── */
.footer-middle:not(.footer-middle-2) {
    padding-top: 40px;
    padding-bottom: 20px;
}

.footer-middle:not(.footer-middle-2) .container > .row > div + div {
    border-left: 1px solid #f0f0f0;
}

/* ── Column heading ────────────────────────────────────────── */
.mea-footer-heading {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    color: #222529;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 20px;
    padding: 0;
    border: none;
    background: none;
    line-height: 1.4;
}

/* ── Column text link list ─────────────────────────────────── */
.mea-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mea-footer-links li {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    color: #777777;
    line-height: inherit;
}

.mea-footer-links a {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    color: #777777;
    text-decoration: none;
    transition: color 0.15s;
}

.mea-footer-links a:hover {
    color: #0071dc;
}

.mea-footer-links a:focus,
.mea-footer-links a:active {
    color: #777777;
}

/* ── Login-aware link labels (Footer Helper "Second Label") ──
   Guests see .mea-flabel--guest; the second label (.mea-flabel--auth)
   appears only once js/account-label.js sets html.mea-logged-in from
   the customer-data private-content section. Links without a second
   label render their text verbatim and are unaffected. */
.mea-footer-links .mea-flabel--auth { display: none; }
html.mea-logged-in .mea-footer-links .mea-flabel--guest { display: none; }
html.mea-logged-in .mea-footer-links .mea-flabel--auth { display: inline; }

/* ── Contact Us column ─────────────────────────────────────── */
.mea-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mea-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #777777;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.mea-contact-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    stroke: #0071dc;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ── Payment badges ────────────────────────────────────────── */
.mea-payment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.mea-payment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}

.mea-payment-badge--filled {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    border-radius: 5px;
}

/* ── Legal bar ─────────────────────────────────────────────── */
.footer-bottom .custom-block {
    flex: 1;
    text-align: center;
}

.mea-footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 20px;
    width: 100%;
    font-size: 0.9em;
    color: #888;
    padding: 18px 0 0;
}

.mea-footer-legal a {
    color: #888;
    text-decoration: none;
}

.mea-footer-legal a:hover {
    color: #0071dc;
}

.mea-legal-sep {
    color: #ccc;
    user-select: none;
}

/* ── Mobile responsive ─────────────────────────────────────── */
@media (max-width: 767px) {
    .footer-middle:not(.footer-middle-2) {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    /* Swap column left-border dividers for top-border dividers when stacked */
    .footer-middle:not(.footer-middle-2) .container > .row > div + div {
        border-left: none;
        border-top: 1px solid #f0f0f0;
        padding-top: 24px;
        margin-top: 12px;
    }

    /* Legal bar wraps gracefully */
    .mea-footer-legal {
        gap: 4px 12px;
        font-size: 0.82em;
    }
}

/* ── Brand Strip (kept, hidden via Porto config) ───────────── */
.footer-middle-2 {
    background: #fafafa !important;
    border-top: 1px solid #ebebeb !important;
    border-bottom: 1px solid #ebebeb !important;
}
