/* FOOTER ROOT */
.ud-footer {
    background-color: var(--ud-primary); /* from base.css */
    color: #ffffff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
}

.ud-footer__content {
    padding: 56px 40px 28px;
}

.ud-footer a {
    color: #ffffff;
    text-decoration: none;
}

.ud-footer a:hover {
    text-decoration: underline;
}

.ud-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* TOP: LOGO + SOCIAL */
.ud-footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
}

.ud-footer__logo img {
    height: 100px;
    width: 250px;
    display: block; 
    filter: brightness(0) invert(1);
}

/* Social block: text above icons, right-aligned (desktop) */
.ud-footer__social-block {
    display: flex;
    flex-direction: column;     /* label on top */
    align-items: flex-end;      /* align to the right edge */
    gap: 8px;                   /* small space between label and icons */
}

.ud-footer__social-label {
    font-size: 14px;
    text-align: right;
}

.ud-footer__social-icons {
    display: flex;
    gap: 16px;
}

.ud-footer__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

/* COLUMNS */
.ud-footer__columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 64px;
    margin-bottom: 36px;
}

.ud-footer__heading {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
}

.ud-footer__heading--spaced {
    margin-top: 26px;
}

.ud-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ud-footer__list li {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.7;
}

.ud-footer__app-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.ud-footer__store-link {
    display: block;
    width: 156px;
    max-width: 100%;
}

.ud-footer__store-link:hover {
    text-decoration: none;
}

.ud-footer__store-link--disabled {
    cursor: default;
}

.ud-footer__store-link img {
    display: block;
    width: 100%;
    height: auto;
}

/* BOTTOM AREA */
.ud-company-details { font-size: 13px; line-height: 1.7; margin: 24px 0; }
.ud-company-details address { font-style: normal; margin: 6px 0; }
.ud-company-details p { margin: 0; }

.ud-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 16px;
}

/* Full-width payment banner below all footer content. */
.ud-footer__payment-banner {
    display: block;
    width: 100%;
    background-color: #ffffff;
}

.ud-footer__payment-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* help center */
.ud-footer__help-row {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.ud-footer__help {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.ud-footer__help-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0; /* hide any text node, SVG only */
}

.ud-footer__help-icon svg {
    width: 18px;
    height: 18px;
}

.ud-footer__help-text a {
    font-weight: 600;
}

/* copyright */
.ud-footer__copy-row {
    display: flex;
    justify-content: center;
}

.ud-footer__copy {
    font-size: 13px;
    text-align: center;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
    .ud-footer__content {
        padding-inline: 24px;
    }

    .ud-footer__columns {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .ud-footer__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .ud-footer__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }

    /* on tablet down, keep label above icons but left-align block */
    .ud-footer__social-block {
        align-items: flex-start;
        text-align: left;
    }

    .ud-footer__social-label {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .ud-footer__content {
        padding: 40px 16px 24px;
    }

    .ud-footer__columns {
        grid-template-columns: 1fr;
    }

    .ud-footer__social-block {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ===== RESPONSIVE: VERY SMALL MOBILE (400px) ===== */
@media (max-width: 400px) {
    .ud-footer__content {
        padding: 32px 12px 20px;
    }

    .ud-footer__logo img {
        height: 70px;
        width: 180px;
    }

    .ud-footer__top {
        margin-bottom: 24px;
    }

    .ud-footer__social-icons {
        gap: 12px;
    }

    .ud-footer__social-icon {
        width: 36px;
        height: 36px;
    }

    .ud-footer__social-icon svg {
        width: 32px;
        height: 32px;
    }

    .ud-footer__heading {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .ud-footer__list li {
        font-size: 13px;
        margin-bottom: 4px;
        line-height: 1.6;
    }

    .ud-footer__store-link {
        width: 148px;
    }

    .ud-footer__columns {
        gap: 24px;
        margin-bottom: 24px;
    }

    .ud-footer__bottom {
        padding-top: 12px;
    }

    .ud-footer__help {
        font-size: 13px;
        gap: 8px;
    }

    .ud-footer__help-icon {
        width: 22px;
        height: 22px;
    }

    .ud-footer__help-icon svg {
        width: 16px;
        height: 16px;
    }

    .ud-footer__copy {
        font-size: 11px;
    }
}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .ud-footer__content {
        padding: 30px 24px 20px;
    }

    .ud-footer__columns {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .ud-footer__logo img {
        height: 60px;
        width: 150px;
    }
}
