/* ========================================= Global page padding (Woo pages) ========================================= */
.woocommerce-page main,
.woocommerce-page #content,
.woocommerce-page #content-wrap {
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Centered container for Woo Blocks (Cart/Checkout) */
.wc-block-cart {
    max-width: 1200px;
}

.wc-block-cart,
.wc-block-checkout {
    margin: 40px auto 60px;
    padding-left: 18px;
    padding-right: 18px;
}

.woocommerce-page #content,
.woocommerce-page main {
    min-height: 60vh;
}

/* ========================================= Woo Blocks - Modern Cards ========================================= */
.wc-block-components-card,
.wc-block-checkout__form,
.wc-block-checkout__sidebar,
.wc-block-cart__form,
.wc-block-cart__sidebar {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .06);
}

.wc-block-checkout__form,
.wc-block-cart__form {
    padding: 24px !important;
}

.wc-block-checkout__sidebar,
.wc-block-cart__sidebar {
    padding: 20px !important;
}

.wc-block-components-text-input input,
.wc-block-components-text-input textarea,
.wc-block-components-select select,
.wc-block-components-combobox-control input,
.wc-block-components-combobox-control select {
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, .12) !important;
    min-height: 46px !important;
    box-shadow: none !important;
}

.wc-block-components-button:not(.is-link) {
    border-radius: 12px !important;
    padding: 12px 18px !important;
    font-weight: 700 !important;
}

.wc-block-components-button.wc-block-components-button__button {
    background: #173B37 !important;
    border-color: #173B37 !important;
    color: #fff !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 18px;
    font-weight: 800;
}

.wc-block-components-order-summary-item__description {
    opacity: .85;
}

.wc-block-cart__submit-container a:hover {
    color: aliceblue;
}

#content {
    position: relative;
    background-color: var(--cnvs-body-bg);
    padding: 50px;
}

.copyright-text {
    color: #000;
}

/* ========================================= Contact Form / Forms ========================================= */
.ss-contact-form {
    max-width: 100%;
}

.ss-contact-form .ss-form-note {
    margin-bottom: 20px;
    font-size: 16px;
    color: #444;
}

.ss-contact-form .ss-row {
    margin-bottom: 18px;
}

.ss-contact-form .ss-row-2 {
    display: flex;
    gap: 35px;
    flex-wrap: wrap;
}

.ss-contact-form .ss-row-2 .ss-field {
    flex: 1 1 calc(50% - 18px);
}

.ss-contact-form .ss-field {
    width: 100%;
}

.ss-contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    color: #444;
    font-weight: 400;
}

.ss-contact-form input[type="text"],
.ss-contact-form input[type="email"],
.ss-contact-form textarea,
.ss-contact-form .wpcf7-quiz {
    width: 100%;
    border: 1px solid #d9d9d9;
    background: #fff;
    padding: 12px 14px;
    font-size: 16px;
    color: #333;
    box-sizing: border-box;
    outline: none;
}

.ss-contact-form textarea {
    height: 180px;
    resize: vertical;
}

.ss-contact-form .ss-fake-captcha {
    width: 100%;
    background: #f3f3f3;
    border: 1px solid #ededed;
    color: #c79a00;
    font-size: 28px;
    letter-spacing: 12px;
    padding: 14px 18px;
    margin-bottom: 14px;
    box-sizing: border-box;
}

.ss-contact-form .ss-submit-wrap {
    margin-top: 10px;
}

.ss-contact-form input[type="submit"] {
    background: #fff;
    color: #333;
    border: 1px solid #d9d9d9;
    padding: 12px 34px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.ss-contact-form input[type="submit"]:hover {
    background: #f7f7f7;
}

.ss-contact-form .wpcf7-spinner {
    display: block;
    margin-top: 10px;
}

@media (max-width: 767px) {
    .ss-contact-form .ss-row-2 {
        display: block;
    }

    .ss-contact-form .ss-row-2 .ss-field {
        width: 100%;
        margin-bottom: 18px;
    }
}

.section .border.rounded-3 {
    border-color: rgba(0, 0, 0, .12) !important;
}

@media (max-width: 767.98px) {
    .ss-process-item .ss-process-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .ss-process-item .ss-step-badge {
        min-width: auto !important;
        width: auto;
        margin-bottom: 10px;
    }
}

/* --- Layout Containers --- */
.ss-booking-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    width: 100%;
}

.ss-booking-left {
    width: 65%;
}

.ss-booking-right {
    width: 35%;
}

.ss-booking-left h3,
.ss-booking-right h3 {
    font-size: 40px;
    line-height: 1.2;
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #dcdcdc;
    font-weight: 400;
    color: #2f3b46;
}

.ss-slot-text,
.ss-form-note {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 20px;
    color: #3f4a54;
}

.ss-booking-field {
    margin-bottom: 24px;
}

.ss-booking-field label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    color: #2f3b46;
    font-weight: 400;
}

.ss-booking-layout input[type="text"],
.ss-booking-layout input[type="tel"],
.ss-booking-layout input[type="email"],
.ss-booking-layout input[type="date"],
.ss-booking-layout textarea,
.ss-booking-layout select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d9d9d9;
    background: #fff;
    color: #2f3b46;
    font-size: 16px;
    line-height: 1.4;
    padding: 16px 18px;
    border-radius: 0;
    box-shadow: none;
}

.ss-booking-layout textarea {
    min-height: 210px;
    resize: vertical;
}

.ss-time-slots .wpcf7-form-control {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    width: 100%;
}

.ss-time-slots .wpcf7-list-item {
    display: block !important;
    margin: 0 !important;
    width: calc(25% - 12px) !important;
}

.ss-time-slots .wpcf7-list-item label {
    position: relative;
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    min-height: 58px;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.3s ease;
    margin: 0 !important;
    width: 100%;
    border-radius: 4px;
}

.ss-time-slots .wpcf7-list-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.ss-time-slots .wpcf7-list-item-label::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 12px;
    vertical-align: middle;
    background: white;
    transition: all 0.2s ease;
}

.ss-time-slots .wpcf7-list-item-label {
    font-size: 15px;
    font-weight: 500;
    color: #2f3b46;
    display: flex;
    align-items: center;
}

.ss-time-slots .wpcf7-list-item label:hover {
    border-color: #2f3b46;
    background-color: #f9f9f9;
}

.ss-time-slots .wpcf7-list-item input:checked+.wpcf7-list-item-label::before {
    background-color: #2f3b46;
    border-color: #2f3b46;
    box-shadow: inset 0 0 0 3px #fff;
}

.ss-time-slots .wpcf7-list-item:has(input:checked) label {
    border-color: #2f3b46;
    background-color: #f4f7f9;
}

.ss-submit-wrap {
    margin-top: 20px;
}

.ss-submit-wrap .wpcf7-submit {
    display: inline-block;
    border: 1px solid #2f3b46;
    background: #2f3b46;
    color: #fff;
    padding: 15px 45px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 0;
    transition: 0.3s;
}

.ss-submit-wrap .wpcf7-submit:hover {
    background: #3f4a54;
    border-color: #3f4a54;
}

@media (max-width: 991px) {
    .ss-booking-layout {
        flex-direction: column;
        gap: 30px;
    }

    .ss-booking-left,
    .ss-booking-right {
        width: 100%;
    }

    .ss-time-slots .wpcf7-list-item {
        width: calc(50% - 8px) !important;
    }
}

@media (max-width: 575px) {
    .ss-time-slots .wpcf7-list-item {
        width: 100% !important;
    }
}







/* ========================================= FIXED FULL WIDTH MEGA MENU ========================================= */
@media (min-width: 992px) {
    
    /* 1. Make the main Bootstrap container the ONLY relative anchor */
    body #wrapper #header #header-wrap .container {
        position: relative !important;
    }

    /* 2. Strip ALL positioning from intermediate wrappers so they can't trap the menu */
    body #wrapper #header #header-wrap .header-row,
    body #wrapper #header nav.primary-menu,
    body #wrapper #header nav.primary-menu .menu-container-wrapper,
    body #wrapper #header nav.primary-menu ul.menu-container,
    body #wrapper #header nav.primary-menu li.ss-mega {
        position: static !important;
    }

    /* 3. The Dropdown Menu - Explicitly locked inside the container boundaries */
    body #wrapper #header nav.primary-menu li.ss-mega .sub-menu-container {
        position: absolute !important;
        top: 100% !important;
        left: 15px !important; 
        right: auto !important; 
        transform: none !important; 
        width: calc(100% - 30px) !important; 
        max-width: 1200px !important;
        margin: 0 !important;
        padding: 30px 40px 20px !important; 
        display: none;
        z-index: 9999 !important;
        box-shadow: 0 15px 35px rgba(0,0,0,0.06) !important; 
        border-top: 3px solid #173B37 !important;
        border-radius: 0 0 12px 12px !important;
        box-sizing: border-box !important;
        background: #fff !important;
    }

    /* Invisible bridge to stop hover drop-off */
    body #wrapper #header nav.primary-menu li.ss-mega .sub-menu-container::before {
        content: '';
        position: absolute;
        top: -40px; 
        left: 0;
        width: 100%;
        height: 40px;
        background: transparent;
    }

    /* Show on hover - CRITICAL FIX: MUST BE FLEX, NOT BLOCK */
    body #wrapper #header nav.primary-menu li.ss-mega:hover > .sub-menu-container {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 20px !important;
        justify-content: flex-start;
        align-items: flex-start; 
    }

    /* 4. Fix internal layout to ensure columns wrap safely */
    body #wrapper #header nav.primary-menu li.ss-mega .sub-menu-container > .container,
    body #wrapper #header nav.primary-menu li.ss-mega .sub-menu-container > .mega-menu-inner,
    body #wrapper #header nav.primary-menu li.ss-mega .sub-menu-container ul.menu-container {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 20px !important; 
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        position: static !important;
        flex-direction: row !important;
    }

    /* Each column */
    body #wrapper #header nav.primary-menu li.ss-mega .sub-menu-container .menu-item {
        width: auto !important;
        flex: 1 1 180px !important; 
        min-width: 150px !important; 
        margin-bottom: 0px !important; 
        list-style: none !important;
        padding: 0 !important;
        border: none !important; /* Strips weird theme borders */
    }

    /* === Styling the standard links inside the mega menu === */
    body #wrapper #header nav.primary-menu li.ss-mega .sub-menu-container .menu-item a.menu-link {
        color: #555 !important;
        padding: 8px 0 !important;
        font-size: 15px !important;
        transition: all 0.2s ease-in-out !important; 
        display: block !important;
        border: none !important; /* Strips weird theme borders */
    }

    /* === Hover effect for standard links === */
    body #wrapper #header nav.primary-menu li.ss-mega .sub-menu-container .menu-item a.menu-link:hover {
        color: #173B37 !important; 
        padding-left: 6px !important; 
        background: transparent !important;
    }

    /* Mega menu column title styling */
    body #wrapper #header nav.primary-menu .ss-col-title > a.menu-link {
        font-weight: 700 !important;
        font-size: 18px !important;
        color: #2f3b46 !important; 
        padding-top: 0px !important;
        padding-bottom: 12px !important;
        padding-left: 0px !important; 
        pointer-events: none !important; 
        opacity: 1 !important;
        display: block !important;
    }

    /* Remove arrow from titles */
    body #wrapper #header nav.primary-menu .ss-col-title > a.menu-link:after {
        display: none !important;
    }
}



/* ========================================= HEADER & LOGO RESPONSIVE FIX ========================================= */
@media (min-width: 992px) and (max-width: 1250px) {
    /* Force the header items to stay on a single line */
    #header-wrap .header-row {
        flex-wrap: nowrap !important;
    }

    /* Shrink the logo container so it doesn't create empty space */
    #logo {
        max-width: 220px !important;
        flex: 0 0 auto !important;
        margin-right: 15px !important;
    }

    #logo img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Override the rigid 25% width on the cart/search area so it only takes needed space */
    .header-misc.col-lg-3 {
        width: auto !important;
        flex: 0 0 auto !important;
        padding-left: 0 !important;
    }

    /* Slightly reduce the gap between main menu items to ensure everything fits */
    #header nav.primary-menu > .menu-container > .menu-item > .menu-link {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* Mobile & Tablet Portrait Logo */
@media (max-width: 991px) {
    #logo {
        max-width: 180px !important;
    }
    #logo img {
        max-width: 100% !important;
        height: auto !important;
    }
}




/* ========================================= DYNAMIC HEADER SPACING FIX ========================================= */
@media (min-width: 992px) {
    
    /* 1. Force the header row to stay on one line and align items to the left */
    #header-wrap .header-row {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
    }

    /* 2. Logo - restrict width and add a specific right margin */
    #logo {
        width: auto !important;
        max-width: 240px !important; /* Keeps logo from taking over */
        flex: 0 0 auto !important;
        margin-right: 40px !important; /* The specific gap between logo and menu */
    }

    /* 3. Primary Menu - align to the left, right next to the logo's margin */
    #header nav.primary-menu {
        flex: 1 1 auto !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #header nav.primary-menu .menu-container {
        justify-content: flex-start !important; /* Pulls menu links to the left */
    }

    /* 4. Reduce spacing between menu links to fit the new items */
    #header nav.primary-menu > .menu-container > .menu-item > .menu-link {
        padding-left: 12px !important; /* Reduced from default */
        padding-right: 12px !important; /* Reduced from default */
        letter-spacing: 0px !important; /* Ensures text doesn't stretch */
    }

    /* 5. Cart/Search Area - Push to the far right edge */
    .header-misc {
        margin-left: auto !important; /* This forces the cart to the far right */
        flex: 0 0 auto !important;
        width: auto !important;
        padding-left: 20px !important;
    }
}

/* Extra safety for smaller laptops (992px to 1199px) where space is really tight */
@media (min-width: 992px) and (max-width: 1199px) {
    #logo {
        max-width: 180px !important;
        margin-right: 20px !important;
    }
    #header nav.primary-menu > .menu-container > .menu-item > .menu-link {
        padding-left: 8px !important;
        padding-right: 8px !important;
        font-size: 13px !important; /* Shrink text slightly to prevent breaking */
    }
}


.cart th { color: #fff;}
/*.variations select {color: #fff;}*/
.variations .reset_variations {color: #fff;}

.is-expanded-menu #header.sticky-header-shrink {
  --cnvs-sticky-header-height: 88px;
}

.svg-underline:before {display:none;}


.menu-item {
  padding-right: 15px;
}