/* Public presentation fixes. Native forms and published content are preserved. */
body .page-footer .mm-footer-newsletter-form input[type="email"] {
    box-sizing: border-box;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 52px;
    height: 58px;
    padding: 12px 20px;
    font-size: 16px;
}
@media (max-width: 900px) {
    body .page-footer .mm-footer-newsletter-form input[type="email"] {
        flex: 0 0 auto;
        width: 100%;
    }
}
@media (max-width: 768px) {
    body .page-footer .custom-footer .footer-social .social-icons {
        justify-content: center !important;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
    }
    body.contact-index-index .mm-support-page .mm-support-option[href^="mailto:"] {
        display: grid !important;
        grid-template-columns: 36px minmax(0, 1fr);
        align-items: center;
        gap: 8px 12px !important;
        padding: 14px !important;
    }
    body.contact-index-index .mm-support-page .mm-support-option[href^="mailto:"] .mm-support-icon {
        width: 36px !important;
        height: 36px !important;
        min-width: 0 !important;
    }
    body.contact-index-index .mm-support-page .mm-support-option[href^="mailto:"] .mm-support-text {
        display: contents !important;
    }
    body.contact-index-index .mm-support-page .mm-support-option[href^="mailto:"] .mm-support-text strong {
        font-size: 16px !important;
        min-width: 0;
    }
    body.contact-index-index .mm-support-page .mm-support-option[href^="mailto:"] .mm-support-text > span {
        grid-column: 1 / -1;
        font-size: clamp(13px, 4vw, 16px) !important;
        white-space: nowrap;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }
    body.contact-index-index .mm-support-page .mm-support-option[href^="mailto:"] .mm-support-arrow {
        display: none !important;
    }
}
/* Match the access pages while keeping the native recovery form. */
body.customer-account-forgotpassword,
body.customer-account-forgotpassword .page-wrapper { background: #f7f6f3 !important; }
body.customer-account-forgotpassword .page-main {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 46px 28px 64px !important;
    background: transparent !important;
}
body.customer-account-forgotpassword .columns,
body.customer-account-forgotpassword .column.main {
    width: 100% !important;
    min-width: 0;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
body.customer-account-forgotpassword .mm-recovery-card {
    box-sizing: border-box;
    max-width: 520px;
    margin: 0 auto;
    padding: 38px;
    border: 1px solid #e7e3dd;
    border-top: 4px solid #49305f;
    border-radius: 24px;
    background: #fff;
    color: #43394d;
    box-shadow: 0 18px 60px #32234c0b;
}
body.customer-account-forgotpassword .mm-recovery-card .page-title-wrapper {
    display: block !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    text-align: left !important;
}
body.customer-account-forgotpassword .mm-recovery-card .page-title {
    margin: 0 !important;
    padding: 0 !important;
    color: #30253d !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: left !important;
}
body.customer-account-forgotpassword .mm-recovery-card .form.password.forget,
body.customer-account-forgotpassword .mm-recovery-card .fieldset {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    min-inline-size: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
body.customer-account-forgotpassword .mm-recovery-card .field.note {
    margin: 0 0 28px !important;
    color: #756b80;
    font-size: 15px;
    line-height: 1.65;
}
body.customer-account-forgotpassword .mm-recovery-card .field.email { margin: 0 0 24px !important; }
body.customer-account-forgotpassword .mm-recovery-card .field.email .label {
    display: block !important;
    width: auto !important;
    margin: 0 0 9px !important;
    padding: 0 !important;
    float: none !important;
    color: #43394d !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-align: left !important;
}
body.customer-account-forgotpassword .mm-recovery-card .field.email .label span { color: inherit !important; }
body.customer-account-forgotpassword .mm-recovery-card .control { width: 100% !important; margin: 0 !important; float: none !important; }
body.customer-account-forgotpassword .mm-recovery-card input[type="email"] {
    box-sizing: border-box;
    width: 100% !important;
    height: 54px !important;
    padding: 12px 16px !important;
    border: 1px solid #dfd5e6 !important;
    border-radius: 12px !important;
    background: #fdfcfa !important;
    color: #30253d !important;
    font-size: 16px !important;
}
body.customer-account-forgotpassword .mm-recovery-card input[type="email"]:focus {
    border-color: #795584 !important;
    box-shadow: 0 0 0 3px #7955841a !important;
}
body.customer-account-forgotpassword .mm-recovery-card .actions-toolbar,
body.customer-account-forgotpassword .mm-recovery-card .actions-toolbar > .primary,
body.customer-account-forgotpassword .mm-recovery-card .actions-toolbar > .secondary {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    text-align: center !important;
}
body.customer-account-forgotpassword .mm-recovery-card button.action.submit {
    box-sizing: border-box;
    width: 100% !important;
    min-height: 54px !important;
    margin: 0 !important;
    padding: 14px 16px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #49305f !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    white-space: normal !important;
}
body.customer-account-forgotpassword .mm-recovery-card button.action.submit:hover { background: #352046 !important; }
body.customer-account-forgotpassword .mm-recovery-card a.action.back {
    display: inline-block !important;
    margin: 20px 0 0 !important;
    padding: 4px !important;
    background: transparent !important;
    color: #65427b !important;
    font-size: 14px !important;
}
body.customer-account-forgotpassword .mm-recovery-card a:focus-visible,
body.customer-account-forgotpassword .mm-recovery-card button:focus-visible { outline: 2px solid #795584; outline-offset: 4px; }
@media (max-width: 600px) {
    body.customer-account-forgotpassword .page-main { padding: 28px 18px 44px !important; }
    body.customer-account-forgotpassword .mm-recovery-card { padding: 28px 22px; border-radius: 20px; }
    body.customer-account-forgotpassword .mm-recovery-card .page-title { font-size: 28px !important; }
}
/* Keep original campaign artwork intact and make full-size reading available. */
.mm-poster-open {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin: 10px auto 0;
    padding: 8px 16px;
    border: 1px solid #dad7ef;
    border-radius: 10px;
    background: #fff;
    color: #1f12a8;
    font: 600 14px/1.5 Arial, sans-serif;
    cursor: pointer;
}
.mm-poster-open:hover { border-color: #1f12a8; background: #f4f2ff; }
.mm-poster-open:focus-visible { outline: 2px solid #1f12a8; outline-offset: 4px; }
.mm-poster-dialog {
    box-sizing: border-box;
    width: min(1400px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    border: 1px solid #e7e5f2;
    border-radius: 18px;
    background: #f7f8fc;
    color: #21164f;
    overflow: hidden;
}
.mm-poster-dialog::backdrop { background: #171132cc; }
.mm-poster-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #e7e5f2; background: #fff; }
.mm-poster-toolbar h2 { margin: 0; color: #21164f; font-size: 18px; line-height: 1.3; }
.mm-poster-toolbar button { flex-shrink: 0; min-width: 44px; min-height: 44px; border: 1px solid #dad7ef; border-radius: 10px; background: #fff; color: #1f12a8; font-size: 14px; cursor: pointer; }
.mm-poster-hint { margin: 0; padding: 10px 16px; color: #61677a; font-size: 14px; line-height: 1.5; }
.mm-poster-scroll { max-height: calc(100dvh - 180px); overflow: auto; overscroll-behavior: contain; }
.mm-poster-scroll:focus-visible { outline: 2px solid #1f12a8; outline-offset: -2px; }
.mm-poster-scroll img { display: block; width: 100%; min-width: 1100px; max-width: none; height: auto; margin: 0; }
@media (max-width: 767px) {
    body.central-home .mm-balita-banner,
    body.central-home .mm-redesign-home-banner {
        width: 100% !important;
        max-width: none !important;
        margin: 16px auto 24px !important;
        padding: 0 !important;
    }
    body.central-home .mm-balita-banner img,
    body.central-home .mm-redesign-home-banner img { width: 100% !important; max-width: 100% !important; height: auto !important; }
    .mm-poster-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 14px; }
}
/* Recheck: prevent legacy register offsets and keep promotion controls outside artwork. */
@media (max-width: 768px) {
    body.customer-account-create.mm-access-page .page-header,
    body.customer-account-create.mm-access-page .mm-global-header {
        right: auto !important;
        left: auto !important;
        max-width: 100% !important;
    }
    body #offersModal .mm-info-box h2 {
        padding-right: 36px;
        font-size: 26px;
    }
    body #offersModal .mm-offer-banner { padding: 24px 16px; }
    body #offersModal .mm-offer-banner strong {
        font-size: clamp(20px, 6vw, 30px);
        line-height: 1.25;
        overflow-wrap: anywhere;
    }
    body #offersModal .mm-offer-banner p { font-size: 16px; }
}
body #central-giftcard-form #mm-prepago-carousel {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 10px;
    aspect-ratio: auto;
    overflow: visible;
    background: transparent;
}
body #mm-prepago-carousel .mm-prepago-slides {
    position: relative;
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    aspect-ratio: 3.88 / 1;
    overflow: hidden;
    border-radius: 14px;
}
body #mm-prepago-carousel .mm-prepago-prev,
body #mm-prepago-carousel .mm-prepago-next {
    position: static;
    transform: none;
    grid-row: 2;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 10px;
    font-size: 20px;
}
body #mm-prepago-carousel .mm-prepago-prev { grid-column: 1; }
body #mm-prepago-carousel .mm-prepago-next { grid-column: 3; }
body #mm-prepago-carousel .mm-prepago-dots {
    position: static;
    grid-row: 2;
    grid-column: 2;
    align-items: center;
    gap: 4px;
}
body #mm-prepago-carousel .mm-prepago-dots button {
    box-sizing: border-box;
    width: 30px;
    height: 44px;
    padding: 0;
    border: 10px solid transparent;
    border-top-width: 17px;
    border-bottom-width: 17px;
    border-radius: 0;
    background: #cfcae7;
    background-clip: content-box;
    box-shadow: none;
}
body #mm-prepago-carousel .mm-prepago-dots button.is-active { background-color: #ffa733; }
body #mm-prepago-carousel .mm-poster-open {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    margin: 0;
}
/* Keep pagination marks distinct from the theme's primary button rules. */
body #central-giftcard-form #mm-prepago-carousel .mm-prepago-dots button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px !important;
    min-width: 0 !important;
    height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
body #mm-prepago-carousel .mm-prepago-dots button::after {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cfcae7;
}
body #mm-prepago-carousel .mm-prepago-dots button.is-active::after { background: #ffa733; }
