.site-footer .site-footer__logo {
    width: min(190px, 100%);
}

.site-footer .site-footer__brand p {
    max-width: 420px;
    font-size: 15px;
    line-height: 1.7;
    margin-top: 22px;
}

.site-footer__signup-description {
    color: var(--color-text-secondary);
    font: 400 .875rem/1.65 var(--font-body);
    margin: 0 0 22px;
    max-width: 400px;
    text-wrap: balance;
}

.site-footer__signup {
    min-height: 0;
}

.site-footer .site-footer__contact-form h2 { color: #4488ef; }

.site-footer .site-footer__signup button {
    background: #4488ef;
    border-color: #4488ef;
}

.site-footer .site-footer__signup button:hover {
    background: #286ed4;
    border-color: #286ed4;
}

.site-footer__signup-status:empty { display: none; }

.site-footer__contact-form .site-footer__social { margin-top: 24px; }

@media (min-width: 75.01em) {
    .site-footer__container {
        column-gap: clamp(32px, 4vw, 64px);
        grid-template-columns: minmax(220px, 1.1fr) minmax(130px, .72fr) minmax(230px, 1.12fr) minmax(280px, 1.45fr);
    }
}

.site-footer__signup button:disabled { cursor: wait; opacity: .65; }

.site-footer__signup-status {
    color: #2763a9;
    font: 400 .8rem/1.5 var(--font-body);
}

.site-footer__signup-status.is-error { color: #ae3030; }

/* Only the area behind the angled edge follows the preceding page surface. */
.site-footer.site-footer--light {
    background: #fff;
}

.ymed_main:has(.support-page) + .site-footer,
.ymed_main:has(.account-access) + .site-footer {
    background: #f5f5f7;
}

.ymed_main:has(.support-page .support-contact) + .site-footer,
.ymed_main:has(.how-page) + .site-footer,
.ymed_main:has(.policy-page, .account-confirmation) + .site-footer {
    background: #fff;
}

.ymed_main + .site-footer.site-footer--black {
    background: #000;
}

.site-footer .site-footer__transition {
    background: var(--color-bg-light);
}

.site-footer--black .site-footer__panel {
    background-color: transparent;
}

.site-footer--black .site-footer__transition {
    background: var(--color-bg-light);
}

.ymed_main:has(.account-access, .warranty-purchase) + .site-footer {
    background: #fff;
}

.site-footer__certification-anvisa {
    align-items: center;
    color: #5a5d61;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 9px;
    white-space: nowrap;
}

.site-footer__certification-anvisa > span {
    font: 300 42px/1 var(--font-heading);
}

.site-footer__certification-anvisa strong {
    font: 650 24px/1 var(--font-heading);
    letter-spacing: .035em;
}

@media (max-width: 40em) {
    .site-footer__certifications {
        left: 18%;
    }

    .site-footer__certification-anvisa {
        gap: 4px;
    }

    .site-footer__certification-anvisa > span {
        font-size: 22px;
    }

    .site-footer__certification-anvisa strong {
        font-size: 12px;
    }
}

.ymed_main:has(.media-post-page) + .site-footer.site-footer--black {
    background: #000;
}

/* Cart page: the footer follows the page's light grey surface */
.ymed_main:has(.ymed_cart_page) + .site-footer,
.ymed_main:has(.ymed_checkout_page) + .site-footer,
.ymed_main:has(.ymed_cart_page) + .site-footer.site-footer--light,
.ymed_main:has(.ymed_checkout_page) + .site-footer.site-footer--light {
    background: #f5f5f7;
}
