/**
 * Oliver Footwear - Newsletter Module Stylesheet
 * Brand Colors: Yellow #FFC423, Black #151515, Dark #181818
 * Font Family: 'Funnel Sans', Arial, Helvetica, sans-serif
 */

/* ==========================================================================
   1. Exit Intent & Inactivity Popup Modal
   ========================================================================== */
.oliver-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    font-family: 'Funnel Sans', Arial, Helvetica, sans-serif;
}

.oliver-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1;
}

.oliver-modal-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
    background-color: #121212;
    background-image: linear-gradient(155deg, rgba(14, 14, 14, 0.65) 0%, rgba(8, 8, 8, 0.82) 100%), url('https://do9gbn101zxfo.cloudfront.net/wysiwyg/cms/oliver-promise/promis-banner.jpg');
    background-position: center 30%;
    background-size: cover;
    background-repeat: no-repeat;
    border: 2px solid #ffc423;
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 196, 35, 0.18);
    overflow: hidden;
    animation: oliverModalFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes oliverModalFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(15px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#oliver-exit-modal .oliver-modal-close,
.oliver-modal button.oliver-modal-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    border-radius: 50% !important;
    background: #252525 !important;
    border: 1px solid #3d3d3d !important;
    color: #e5e5e5 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s ease !important;
    z-index: 10 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45) !important;
}

#oliver-exit-modal .oliver-modal-close:hover,
#oliver-exit-modal .oliver-modal-close:focus,
.oliver-modal button.oliver-modal-close:hover,
.oliver-modal button.oliver-modal-close:focus {
    background: #ffc423 !important;
    color: #151515 !important;
    border-color: #ffc423 !important;
    transform: rotate(90deg) scale(1.05) !important;
}

#oliver-exit-modal .oliver-modal-close svg {
    width: 18px !important;
    height: 18px !important;
    stroke: currentColor !important;
    display: block !important;
}

.oliver-modal-content {
    padding: 42px 38px 36px;
    text-align: center;
    box-sizing: border-box;
}

.oliver-modal-header {
    margin-bottom: 22px;
}

.oliver-modal-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.oliver-modal-desc {
    color: #e5e5e5;
    font-size: 14px;
    line-height: 1.55;
    margin: 0 auto;
    max-width: 430px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* Alert Message Box */
.oliver-popup-message {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

.oliver-popup-message.error {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid #dc3545;
    color: #ff6b7b;
}

.oliver-popup-message.success {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid #28a745;
    color: #63e6be;
}

/* Modal Form Controls - Identical Pill Design to Footer */
.oliver-modal-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    text-align: left !important;
}

.oliver-modal-form .field-item {
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
}

.oliver-modal-form .field-email {
    position: relative !important;
}

.oliver-modal-form input.oliver-form-control {
    display: flex !important;
    width: 100% !important;
    height: 58px !important;
    padding: 4px 24px !important;
    border-radius: 32px !important;
    background: #151515 !important;
    border: 1px solid #6d6d6d !important;
    box-sizing: border-box !important;
    color: #ffffff !important;
    font-family: 'Funnel Sans', Arial, Helvetica, sans-serif !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 24px !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.25s ease !important;
}

.oliver-modal-form input#oliver-popup-email {
    padding-right: 64px !important;
}

.oliver-modal-form input.oliver-form-control::placeholder {
    color: #6d6d6d !important;
    font-family: 'Funnel Sans', Arial, Helvetica, sans-serif !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 24px !important;
}

.oliver-modal-form input.oliver-form-control:focus {
    border-color: #ffc425 !important;
    outline: none !important;
    box-shadow: none !important;
}

.oliver-modal-form .field-email:hover input.oliver-form-control:not(.mage-error) {
    border-color: #ffc425 !important;
}

.oliver-modal-form input.oliver-form-control.mage-error {
    border-color: #ff6b7b !important;
}

.oliver-modal-form #oliver-popup-submit,
.oliver-modal-form .field-email button.action.subscribe,
.oliver-modal-form button.oliver-popup-btn {
    display: flex !important;
    width: 50px !important;
    height: 50px !important;
    justify-content: center !important;
    align-items: center !important;
    aspect-ratio: 1/1 !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    position: absolute !important;
    right: 4px !important;
    top: 4px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 5 !important;
    cursor: pointer !important;
    transform: rotate(0deg) !important;
    transform-origin: center center !important;
    transition: all 0.4s ease-in !important;
    padding: 0 !important;
    margin: 0 !important;
}

.oliver-modal-form #oliver-popup-submit span,
.oliver-modal-form .field-email button.action.subscribe span,
.oliver-modal-form button.oliver-popup-btn span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#oliver-exit-modal .field-email:hover #oliver-popup-submit,
#oliver-exit-modal .field-email:hover button.action.subscribe,
#oliver-exit-modal .field-email:hover button.oliver-popup-btn,
#oliver-exit-modal #oliver-popup-submit:hover,
#oliver-exit-modal #oliver-popup-submit:focus,
#oliver-exit-modal #oliver-popup-submit.is-hovered,
.oliver-modal-form .field-email:hover #oliver-popup-submit,
.oliver-modal-form .field-email:hover button.action.subscribe,
.oliver-modal-form .field-email:hover button.oliver-popup-btn,
.oliver-modal-form #oliver-popup-submit:hover,
.oliver-modal-form #oliver-popup-submit:focus,
.oliver-modal-form #oliver-popup-submit.is-hovered,
.oliver-modal-form .field-email button.action.subscribe:hover,
.oliver-modal-form .field-email button.action.subscribe:focus,
.oliver-modal-form button.oliver-popup-btn:hover,
.oliver-modal-form button.oliver-popup-btn:focus {
    background: #ffc425 !important;
    background-color: #ffc425 !important;
    transform: rotate(45deg) !important;
}

.oliver-modal-form .field-email button.action.subscribe svg,
.oliver-modal-form button.oliver-popup-btn svg,
.oliver-modal-form #oliver-popup-submit svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
}

.oliver-modal-form .oliver-field-error {
    font-size: 13px !important;
    margin-top: 5px !important;
    text-align: left !important;
    padding-left: 20px !important;
    color: #ff6b7b !important;
    font-family: 'Funnel Sans', Arial, Helvetica, sans-serif !important;
}

.oliver-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Responsive Modal */
@media only screen and (max-width: 576px) {
    .oliver-modal-content {
        padding: 30px 20px 24px;
    }
    .oliver-modal-title {
        font-size: 26px;
    }
    .oliver-modal-desc {
        font-size: 13px;
    }
}


/* ==========================================================================
   2. Thank You Page Styles
   ========================================================================== */
.oliver-thankyou-wrapper {
    max-width: 900px;
    margin: 40px auto 60px;
    padding: 0 16px;
    font-family: 'Funnel Sans', Arial, Helvetica, sans-serif;
}

.oliver-thankyou-card {
    background: #ffffff;
    border: 2px solid #e7e7e7;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
}

.oliver-icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.oliver-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2.5;
    stroke: #ffc423;
    stroke-miterlimit: 10;
    box-shadow: inset 0 0 0 #ffc423;
    animation: oliverFill 0.4s ease-in-out 0.4s forwards, oliverScale 0.3s ease-in-out 0.9s both;
}

.oliver-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2.5;
    stroke-miterlimit: 10;
    stroke: #ffc423;
    fill: none;
    animation: oliverStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.oliver-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #151515;
    animation: oliverStroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes oliverStroke {
    100% { stroke-dashoffset: 0; }
}

@keyframes oliverScale {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}

@keyframes oliverFill {
    100% { box-shadow: inset 0 0 0 45px #ffc423; }
}

.oliver-tag {
    display: inline-block;
    background: rgba(255, 196, 35, 0.15);
    color: #151515;
    border: 1px solid #ffc423;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 5px 16px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.oliver-thankyou-title {
    font-size: 38px;
    font-weight: 800;
    color: #151515;
    margin: 0 0 14px;
    letter-spacing: -0.5px;
    line-height: 1.15;
    text-transform: uppercase;
}

.oliver-thankyou-subtitle {
    font-size: 16px;
    color: #555555;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 620px;
}

.oliver-thankyou-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.oliver-btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    background: #ffc423 !important;
    color: #151515 !important;
    border: 2px solid #ffc423 !important;
    border-radius: 30px !important;
    padding: 14px 34px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 8px 20px rgba(255, 196, 35, 0.25) !important;
}

.oliver-btn-primary:hover {
    background: #151515 !important;
    color: #ffc423 !important;
    border-color: #151515 !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2) !important;
}

.oliver-btn-secondary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    color: #151515 !important;
    border: 2px solid #151515 !important;
    border-radius: 30px !important;
    padding: 14px 32px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
}

.oliver-btn-secondary:hover {
    background: #151515 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Trust Features Grid */
.oliver-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    border-top: 1px solid #eeeeee;
    padding-top: 36px;
    text-align: center;
}

.oliver-trust-item {
    padding: 12px;
}

.oliver-trust-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #151515;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.oliver-trust-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: #151515;
    margin: 0 0 6px;
}

.oliver-trust-item p {
    font-size: 13px;
    color: #777777;
    line-height: 1.5;
    margin: 0;
}

@media only screen and (max-width: 768px) {
    .oliver-thankyou-card {
        padding: 36px 20px;
    }
    .oliver-thankyou-title {
        font-size: 28px;
    }
    .oliver-trust-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .oliver-thankyou-actions {
        flex-direction: column;
    }
    .oliver-btn-primary,
    .oliver-btn-secondary {
        width: 100%;
        box-sizing: border-box;
    }
}/* ==========================================================================
   3. Footer Newsletter Form Dual Inputs (Name & Email) - Identical Design
   ========================================================================== */
.page-footer .newsletter-block .control {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    position: relative !important;
}

.page-footer .newsletter-block .control .field-item {
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
}

.page-footer .newsletter-block input#newsletter-name,
.page-footer .newsletter-block input#newsletter {
    display: flex !important;
    width: 100% !important;
    height: 58px !important;
    padding: 4px 24px !important;
    border-radius: 32px !important;
    background: #151515 !important;
    border: 1px solid #6d6d6d !important;
    box-sizing: border-box !important;
    color: #ffffff !important;
    font-family: 'Funnel Sans', Arial, Helvetica, sans-serif !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 24px !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.25s ease !important;
}

.page-footer .newsletter-block input#newsletter {
    padding-right: 64px !important;
}

.page-footer .newsletter-block input#newsletter-name::placeholder,
.page-footer .newsletter-block input#newsletter::placeholder {
    color: #6d6d6d !important;
    font-family: 'Funnel Sans', Arial, Helvetica, sans-serif !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 24px !important;
}

.page-footer .newsletter-block input#newsletter-name:focus,
.page-footer .newsletter-block input#newsletter:focus {
    border-color: #ffc425 !important;
    outline: none !important;
    box-shadow: none !important;
}

.page-footer .newsletter-block .control .field-email button.action {
    display: flex !important;
    width: 50px !important;
    height: 50px !important;
    justify-content: center !important;
    align-items: center !important;
    aspect-ratio: 1/1 !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    position: absolute !important;
    right: 4px !important;
    top: 4px !important;
    z-index: 2 !important;
    cursor: pointer !important;
    transform: rotate(0deg) !important;
    transform-origin: center center !important;
    transition: all 0.4s ease-in !important;
    padding: 0 !important;
    margin: 0 !important;
}

.page-footer .newsletter-block .control .field-email button.action span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.page-footer .newsletter-block .control .field-email:hover input#newsletter:not(.mage-error) {
    border-color: #ffc425 !important;
}

.page-footer .newsletter-block .control .field-email button.action:hover,
.page-footer .newsletter-block .control .field-email button.action:focus,
.page-footer .newsletter-block .control .field-email:hover button.action {
    background: #ffc425 !important;
    transform: rotate(45deg) !important;
}

.page-footer .newsletter-block .control .field-email button.action svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
}

.page-footer .newsletter-block .control div.mage-error {
    font-size: 13px !important;
    margin-top: 5px !important;
    text-align: left !important;
    padding-left: 20px !important;
    color: #ff6b7b !important;
    font-family: 'Funnel Sans', Arial, Helvetica, sans-serif !important;
}


/* ==========================================================================
   4. Footer Bottom Parity - Left Copyright & Far Right Links
   ========================================================================== */
.page-footer .footer-bottom {
    background-color: #0c0c0c !important;
    padding: 24px 0 32px !important;
}

.page-footer .footer-bottom > .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.page-footer .footer-bottom .custom-block.f-right {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.page-footer .footer-bottom .oliver-footer-copyright-links {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
}

.page-footer .footer-bottom .oliver-footer-copyright-links .cp-message {
    color: #6d6d6d !important;
    font-family: 'Funnel Sans', Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 20px !important;
    margin: 0 !important;
    text-align: left !important;
}

.page-footer .footer-bottom .oliver-footer-copyright-links .usefull-links-bottom {
    margin-left: auto !important;
}

.page-footer .footer-bottom .oliver-footer-copyright-links .usefull-links-bottom ul {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
    gap: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.page-footer .footer-bottom .oliver-footer-copyright-links .usefull-links-bottom ul li {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
}

.page-footer .footer-bottom .oliver-footer-copyright-links .usefull-links-bottom ul li a {
    color: #ffffff !important;
    font-family: 'Funnel Sans', Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 20px !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    white-space: nowrap !important;
}

.page-footer .footer-bottom .oliver-footer-copyright-links .usefull-links-bottom ul li a:hover {
    color: #ffc425 !important;
}

@media only screen and (max-width: 768px) {
    .page-footer .footer-bottom .oliver-footer-copyright-links {
        flex-direction: column-reverse !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 16px !important;
    }
    .page-footer .footer-bottom .oliver-footer-copyright-links .cp-message {
        text-align: center !important;
    }
    .page-footer .footer-bottom .oliver-footer-copyright-links .usefull-links-bottom {
        margin: 0 auto !important;
    }
    .page-footer .footer-bottom .oliver-footer-copyright-links .usefull-links-bottom ul {
        justify-content: center !important;
        gap: 16px !important;
    }
}
