/* ================================
   OUTER OVERLAY (background layer)
================================ */
#tlight,
.tbrightcontent {
    position: fixed !important;
    inset: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: rgba(10, 20, 40, 0) !important;

    padding: 0 !important;
    margin: 0 !important;
}


/* ================================
   MAIN POPUP CONTAINER (CENTER FIX INCLUDED)
================================ */
#wptp-container {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;

    transform: translate(-50%, -50%) !important;

    width: 700px !important;
    max-width: 92vw !important;
    max-height: 45vh !important;

    margin: auto !important;

    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;

    box-shadow: 0 10px 30px rgba(0,0,0,0.18) !important;
}
#wp-terms-popup-after-content.sticky {
    position: sticky;
    position: -webkit-sticky;

    bottom: -16px;
    padding: 8px 0;

    background-color: #ffffff !important;
    background: #ffffff !important;
}


/* ================================
   HEADER (TITLE BAR)
================================ */
#wptp-container .termstitle {
    margin: 0 !important;
    padding: 16px 20px !important;

    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 600 !important;

    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;

    background: linear-gradient(90deg, #0F2D52, #1E4B7A) !important;
}


/* ================================
   CONTENT AREA
================================ */
#wptp-container .termscontentwrapper {
    padding: 20px !important;

    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #1f2937 !important;
}


/* ================================
   BUTTON CONTAINER
================================ */
#wptp-form .tthebutton {
    display: flex !important;
    gap: 10px !important;
    justify-content: flex-end !important;

    margin-top: 15px !important;
}


/* ================================
   AGREE BUTTON
================================ */
#wptp-form .termsagree {
    background: transparent !important;
    color: #0F2D52 !important;

    border: 1px solid #0F2D52 !important;

    padding: 10px 16px !important;
    border-radius: 6px !important;

    cursor: pointer !important;
    transition: 0.2s ease !important;
}

#wptp-form .termsagree:hover {
    background: #0F2D52 !important;
    color: #ffffff !important;
}


/* ================================
   DECLINE BUTTON
================================ */
#wptp-form .termsdecline {
    background: transparent !important;
    color: #0F2D52 !important;

    border: 1px solid #0F2D52 !important;

    padding: 10px 16px !important;
    border-radius: 6px !important;

    cursor: pointer !important;
    transition: 0.2s ease !important;
}

#wptp-form .termsdecline:hover {
    background: #0F2D52 !important;
    color: #ffffff !important;
}


/* ================================
   MOBILE POPUP FIX
================================ */
@media (max-width: 600px) {

    #wptp-form .tthebutton {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    #wptp-form .termsagree,
    #wptp-form .termsdecline {
        width: 100% !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
}


/* ================================
   POPUP SCROLL AREA
================================ */
#wp-terms-popup-content {
    max-height: 60vh !important;
    overflow-y: auto !important;

    -webkit-overflow-scrolling: touch !important;

    scrollbar-width: thin;
    scrollbar-color: #1E4B7A rgba(0,0,0,0.1);
}


/* Chrome scrollbar */
#wp-terms-popup-content::-webkit-scrollbar {
    width: 6px;
}

#wp-terms-popup-content::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
}

#wp-terms-popup-content::-webkit-scrollbar-thumb {
    background: #1E4B7A;
    border-radius: 10px;
}


/* ================================
   MOBILE POPUP BEHAVIOUR
================================ */
@media (max-width: 768px) {

    #wptp-container {
        max-height: 90vh !important;
        display: flex !important;
        flex-direction: column !important;
    }

    #wp-terms-popup-content {
        flex: 1 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #wp-terms-popup-after-content {
        position: sticky !important;
        bottom: 0 !important;
        background: #ffffff !important;
        padding: 10px 0 !important;
        z-index: 10 !important;
    }

    #wptp-form .tthebutton {
        flex-direction: column !important;
        gap: 10px !important;
    }

    #wptp-form .termsagree,
    #wptp-form .termsdecline {
        width: 100% !important;
    }
}


/* ================================
 @media (max-width: 99999px) {

    /* KEEP NAV VISIBLE ALWAYS */
    .wp-block-navigation__container {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: center !important;
    }

    /* FORCE NORMAL FLOW (prevents modal behavior) */
    .wp-block-navigation__responsive-container {
        position: relative !important;
        display: block !important;
        height: auto !important;
        width: auto !important;
        transform: none !important;
        background: transparent !important;
    }

    .wp-block-navigation__responsive-container-content {
        display: flex !important;
        flex-wrap: wrap !important;
        position: static !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* REMOVE HAMBURGER BUTTON ONLY */
    .wp-block-navigation__responsive-container-open,
    .wp-block-navigation__responsive-container-close {
        display: none !important;
    }
}
.wp-block-navigation-item__content {
    all: unset !important;
    display: inline-block !important;
}
.wp-block-navigation-item__content {
    display: inline-block !important;

    padding: 10px 16px !important;
    border-radius: 6px !important;

    border: 1px solid #cbd5e1 !important;
    background: #cbd5e1 !important;

    color: #334155 !important;
    text-decoration: none !important;

    transition: all 0.2s ease !important;
}

.wp-block-navigation-item__content:hover {
    background: #475569 !important;
    border-color: #94a3b8 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}
/* ================================
   GLOBAL BUTTON SYSTEM
================================ */
a.button,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {

    display: inline-block;
    padding: 10px 16px;

    border-radius: 6px;
    border: 1px solid #cbd5e1;

    background: #cbd5e1;
    color: #334155;

    cursor: pointer;
    transition: all 0.2s ease;
}


/* Hover */
a.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover {

    background: #475569;
    border-color: #94a3b8;
    color: #ffffff;
    transform: translateY(-1px);
}

:root :where(.wp-element-button, .wp-block-button__link) {
    background-color: #cbd5e1 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
}

:root :where(.wp-element-button, .wp-block-button__link):hover {
    background-color: #475569 !important;
    border-color: #94a3b8 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}
/* ================================
   PRIMARY BUTTON
================================ */
.button-primary,
.termsagree {
    background: #1E4B7A !important;
    color: #ffffff !important;
    border: none !important;
}

.button-primary:hover,
.termsagree:hover {
    background: #0F2D52 !important;
}


/* ================================
   WOOCOMMERCE ARROWS
================================ */
.wc-block-next-previous-buttons__button {
    width: 50px !important;
    height: 50px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #f1f5f9 !important;
    border-radius: 50% !important;
    border: none !important;

    transition: all 0.2s ease !important;
}

.wc-block-next-previous-buttons__button:hover {
    background: #e2e8f0 !important;
    transform: translateY(-1px);
}

.wc-block-next-previous-buttons__button:focus {
    outline: none !important;
    box-shadow: none !important;
}

.wc-block-next-previous-buttons {
    display: none !important;
}