/*
Theme Name: Blocksy Child - Marine Chandlery UK Express
Theme URI: https://creativethemes.com/blocksy/
Template: blocksy
Author: Marine Chandlery UK Express
Description: Premium Tailwind CSS & High-Ticket WooCommerce Overrides for Blocksy.
Version: 1.2.0 (Unified Architecture)
*/

/* ==========================================================================
   1. GLOBAL VARIABLES, BASE RESETS & UTILITIES
   ========================================================================== */
:root {
    --primary-color: #3c914b; /* Marine Green */
    --primary-hover: #2c6e37; /* Darker Marine Green */
    --text-main: #0f3448;     /* Rich Navy */
    --bg-light: #F8FAFC;      /* Soft Off-White */
    --white: #ffffff;
    --black: #000000;
}
html, body {
overflow-x: hidden !important;
}
body {
    font-family: 'Karla', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
}

#content {
    min-height: 700px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rubik', sans-serif;
    color: var(--text-main);
}

/* Global Outline & Focus Reset */
*, *:focus, a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: none !important;
    box-shadow: none !important;
}

body #content a:not(button, .button, .ct-button) {
    transition: color 0.2s ease;
    text-decoration: none;
}

.bg-primary {
    --tw-bg-opacity: 1;
    background-color: rgb(60 145 75 / var(--tw-bg-opacity, 1));
    color: #ffffff !important;
}

/* Hide Default WordPress Comments Globally */
.comment-respond, .comments-area, #comments { 
    display: none !important; 
}

/* Hide Native Theme Elements on Custom Pages */
.single-product .hero-section,
.single-product section.related.products,
.post-type-archive-product .hero-section, 
.tax-product_cat .hero-section,
.woocommerce-shop .page-title,
.woocommerce-account .hero-section,
.woocommerce-account .page-title,
.woocommerce-account .uagb-block-66785fe6,
.woocommerce-cart .hero-section, 
.woocommerce-checkout .hero-section,
.ct-woo-unauthorized .wp-block-uagb-advanced-heading,
.ct-woo-unauthorized .uagb-block-79892a54 {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Prevent Blocksy from crushing the right side of Tailwind layouts */
.single-product .ct-container-full article.post { display: block !important; }

/* ==========================================================================
   2. GLOBAL BUTTONS & FORMS
   ========================================================================== */
.ct-button, .button, input[type="submit"], 
.woocommerce button.button, .woocommerce a.button {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important; 
    border-radius: 50px !important;
    padding: 12px 32px !important;
    font-family: 'Karla', sans-serif;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none !important;
}

.ct-button:hover, .button:hover, 
.woocommerce button.button:hover, .woocommerce a.button:hover {
    background-color: var(--primary-hover) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   3. GLOBAL WOOCOMMERCE NOTICES & ALERTS (Industrial Style)
   ========================================================================== */
.woocommerce-notices-wrapper {
    width: 100% !important;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    clear: both;
}

.woocommerce-message, 
.woocommerce-info, 
.woocommerce-error {
    background: var(--white) !important;
    border: 1px solid #e2e8f0 !important; 
    border-top-width: 4px !important;     
    border-left-width: 6px !important;    
    border-radius: 24px !important;
    padding: 24px 32px 24px 70px !important; 
    margin: 0 0 32px 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 30px;
    position: relative;
    box-shadow: 0 10px 15px -3px rgba(15, 52, 72, 0.04) !important;
    font-family: 'Karla', sans-serif;
    font-weight: 700 !important;
    color: var(--text-main) !important;
    list-style: none !important;
}

/* Semantic Colors for Notices */
.woocommerce-message {
    border-color: #22c55e !important; /* Success Green */
}
.woocommerce-info {
    border-color: var(--text-main) !important; /* Brand Navy */
}
.woocommerce-error {
    background: #fef2f2 !important; /* Subtle red warning tint */
    border-color: #ef4444 !important; /* Industrial Red */
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.1) !important;
}

/* Material Icon Placement */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    font-family: 'Material Symbols Rounded' !important;
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    font-weight: normal;
}
.woocommerce-message::before { content: 'verified'; color: #22c55e !important; }
.woocommerce-info::before { content: 'verified'; color: var(--text-main) !important; }
.woocommerce-error::before { content: 'report'; color: #ef4444 !important; }

/* Notice Inner List Items */
.woocommerce-error li {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 20px !important;
    padding: 0 !important; 
    margin: 0 !important; 
    list-style: none !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

/* Buttons inside Notices (Unified Layout - High Specificity) */
.woocommerce .woocommerce-message a.button, 
.woocommerce .woocommerce-message button.button,
.woocommerce .woocommerce-info a.button, 
.woocommerce .woocommerce-info button.button,
.woocommerce .woocommerce-error a.button,
.woocommerce .woocommerce-error button.button,
.woocommerce .woocommerce-error li a.button,
.woocommerce .woocommerce-error li button.button,
.woocommerce .woocommerce-message .restore-item {
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 6px rgba(15, 52, 72, 0.1) !important;
    white-space: nowrap;
    line-height: 1 !important;
    order: 2 !important; 
    margin-left: auto !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

/* Specific Background Colors to match Notice Borders */
.woocommerce .woocommerce-message a.button, 
.woocommerce .woocommerce-message button.button,
.woocommerce .woocommerce-message .restore-item {
    background-color: #22c55e !important; /* Matches Success Green */
}

.woocommerce .woocommerce-info a.button,
.woocommerce .woocommerce-info button.button {
    background-color: var(--text-main) !important; /* Matches Info Navy */
}

.woocommerce .woocommerce-error a.button,
.woocommerce .woocommerce-error button.button,
.woocommerce .woocommerce-error li a.button,
.woocommerce .woocommerce-error li button.button {
    background-color: #ef4444 !important; /* Matches Error Red */
}

/* Unified Hover State - No color change, just a smooth lift */
.woocommerce .woocommerce-message a.button:hover, 
.woocommerce .woocommerce-message button.button:hover,
.woocommerce .woocommerce-info a.button:hover, 
.woocommerce .woocommerce-info button.button:hover,
.woocommerce .woocommerce-error a.button:hover,
.woocommerce .woocommerce-error button.button:hover,
.woocommerce .woocommerce-error li a.button:hover,
.woocommerce .woocommerce-error li button.button:hover,
.woocommerce .woocommerce-message .restore-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 15px rgba(15, 52, 72, 0.2) !important;
    color: #ffffff !important; /* Ensures text stays white */
}


@media (max-width:550px) {
.woocommerce-message, 
.woocommerce-info, 
.woocommerce-error {
    display: block !important;
    font-size: 12px !important;
}
.woocommerce .woocommerce-message a.button, .woocommerce .woocommerce-message button.button, .woocommerce .woocommerce-message .restore-item {
        margin: 0px !important;
        display: inline-block !important;
        font-size: 11px !important;
        padding: 4px 9px !important;
}
}

/* ==========================================================================
   4. SHOP GRID & ARCHIVE (Categories/Store)
   ========================================================================== */
.woocommerce-shop ul.products, 
.tax-product_cat ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 30px !important;
}

ul.products li.product {
    background: var(--white);
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 15px;
    width: 100% !important;
    margin: 0 !important;
    transition: all 0.3s ease;
}

ul.products li.product:hover {
    box-shadow: 0 10px 25px rgba(15, 52, 72, 0.08);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    z-index: 5;
}

ul.products li.product a img { border-radius: 8px; }

.woocommerce-loop-product__title {
    padding-top: 10px;
    font-size: 1.05rem !important;
    font-weight: 700;
    color: var(--text-main) !important;
}

.woocommerce ul.products li.product .price, 
.woocommerce div.product p.price {
    color: var(--text-main) !important; 
    font-weight: 800;
    font-size: 1.15rem;
}

/* SKU Badge */
.marine-sku-wrapper { width: 100%; text-align: left; }
.marine-sku-badge {
    display: inline-block;
    background-color: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: 'Karla', sans-serif;
    font-weight: 800;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sidebar Widgets */
.custom-sidebar-widgets .widget-title {
    font-family: 'Rubik', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.custom-sidebar-widgets .widget:first-child .widget-title { margin-top: 0; }
.custom-sidebar-widgets ul { list-style: none; padding: 0; margin: 0; }
.custom-sidebar-widgets ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.custom-sidebar-widgets ul li a {
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease;
}
.custom-sidebar-widgets ul li a:hover { color: var(--text-main) !important; }
.custom-sidebar-widgets ul li .count {
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 800;
}

/* Price Filter Slider */
.widget_price_filter .ui-slider {
    background-color: #e5e7eb;
    height: 6px;
    border-radius: 6px;
    margin-top: 10px;
    margin-bottom: 20px;
    position: relative;
}
.widget_price_filter .ui-slider .ui-slider-range { background-color: var(--primary-color); height: 100%; position: absolute; border-radius: 6px; }
.widget_price_filter .ui-slider .ui-slider-handle {
    background-color: var(--text-main);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    position: absolute;
    top: -6px;
    cursor: ew-resize;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Sorting Dropdown */
.custom-ordering select.orderby {
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}
.custom-ordering select.orderby:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(60, 145, 75, 0.3);
}

/* Mobile Responsive Grid */
@media (max-width: 1024px) { .woocommerce-shop ul.products, .tax-product_cat ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 640px) { .woocommerce-shop ul.products, .tax-product_cat ul.products { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; } }


/* ==========================================================================
   5. REFINED PAGINATION
   ========================================================================== */
.lock-custom-pagination nav.woocommerce-pagination {
    width: 100%;
    display: flex;
    justify-content: center;
}

.lock-custom-pagination nav.woocommerce-pagination ul {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.lock-custom-pagination nav.woocommerce-pagination ul li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.lock-custom-pagination .ct-pagination {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: "Karla", sans-serif;
}

.lock-custom-pagination .page-numbers,
.lock-custom-pagination nav.woocommerce-pagination ul li a,
.lock-custom-pagination nav.woocommerce-pagination ul li span.current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 46px;
    padding: 0 16px;
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Karla', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
}

.lock-custom-pagination .page-numbers:hover:not(.current),
.lock-custom-pagination nav.woocommerce-pagination ul li a:hover {
    border-color: var(--primary-color);
    color: var(--text-main);
    background: #f2f9f3; 
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(60, 145, 75, 0.2);
}

.lock-custom-pagination .page-numbers.current,
.lock-custom-pagination nav.woocommerce-pagination ul li span.current {
    background: var(--text-main); 
    color: #fff;
    border-color: var(--text-main);
    cursor: default;
    box-shadow: 0 10px 20px rgba(15, 52, 72, 0.1);
}

.lock-custom-pagination .next.page-numbers,
.lock-custom-pagination .prev.page-numbers {
    background: #ffffff;
    border-radius: 50px; 
    gap: 8px;
    border: 2px solid #e2e8f0;
}

.lock-custom-pagination .next.page-numbers:hover {
    background: var(--text-main);
    color: #ffffff;
    border-color: var(--text-main);
}

.lock-custom-pagination .page-numbers svg { width: 12px; height: 12px; transition: transform 0.3s ease; }
.lock-custom-pagination .page-numbers:hover svg { transform: translateX(3px); }
.lock-custom-pagination .ct-hidden-sm { display: flex !important; gap: 8px; }


/* ==========================================================================
   6. SINGLE PRODUCT LAYOUT
   ========================================================================== */
.woocommerce div.product div.images .woocommerce-product-gallery__image { pointer-events: none; }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger { pointer-events: auto; }

.woocommerce-js div.product div.images img {
    display: block;
    width: 100%;
    height: auto;
    box-shadow: none;
    padding: 0px;
    background: var(--white);
    border-radius: 12px;
}

/* Buy Box: Align Left */
.woocommerce div.product form.cart {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start; 
    gap: 15px; 
    margin-top: 1.5rem !important;
    margin-bottom: 0 !important;
}

.woocommerce div.product form.cart .quantity { margin: 0 !important; }

/* Modern Quantity Input */
.woocommerce .quantity .qty {
    width: 80px !important;
    height: 56px !important; 
    background: var(--white) !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-family: "Karla", sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    color: var(--text-main) !important;
    padding: 0 10px !important;
    text-align: center;
    transition: all 0.2s ease;
}
.woocommerce .quantity .qty:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(60, 145, 75, 0.3) !important; 
}

/* Massive Add to Cart Button */
.woocommerce-js div.product form.cart .single_add_to_cart_button {
    width: auto !important;
    flex-grow: 1; 
    max-width: 350px; 
    padding: 16px 24px !important;
    font-size: 1.1rem !important;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(60, 145, 75, 0.2);
    margin: 0 !important;
    color: #ffffff !important;
}

/* Product Tabs */
.woocommerce-tabs ul.tabs {
    display: flex !important;
    gap: 10px;
    padding: 0 !important;
    margin: 0 0 30px 0 !important;
    list-style: none !important;
    flex-wrap: wrap;
}
.woocommerce-tabs ul.tabs li { border-radius: 1rem; overflow:hidden; background: #fff !important; margin: 0 !important; padding: 0 !important; }
.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 12px 24px !important;
    font-family: 'Rubik', sans-serif;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    color: #6b7280 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 4px solid transparent;
    transition: all 0.3s ease;
}
.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover{	
    background: var(--primary-color); !important;
    color: #fff !important;
}
.woocommerce-Tabs-panel { color: #4b5563; line-height: 1.8; }
.woocommerce-Tabs-panel h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; color: var(--text-main); }

/* Technical Specs Table Overrides */
.woocommerce-Tabs-panel--additional_information { text-align: left !important; }
table.shop_attributes {
    margin-left: 0 !important;
    margin-right: auto !important;
    width: 100% !important;
    max-width: 800px !important;
    border: none !important;
}
table.shop_attributes th, 
table.shop_attributes td {
    text-align: left !important;
    background: transparent !important;
}
table.shop_attributes th {
    width: 200px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--text-main);
}

/*PRODUCT DESCRIPTION*/


/* =========================================================
   WooCommerce Tabs Styling
========================================================= */
.wc-tabs-wrapper {
    margin-top: 2rem;
    font-family: inherit;
}

/* Tab Navigation List */
.woocommerce-tabs ul.wc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 0;
    margin: 0;
    list-style: none;
    border-bottom: 1px solid var(--theme-border-light);
}

.woocommerce-tabs ul.wc-tabs li {
    margin: 0;
    padding: 0;
}

/* Tab Links */
.woocommerce-tabs ul.wc-tabs li a {
    display: inline-block;
    padding: 0.5rem 0 0.75rem 0;
    text-transform: uppercase;
    font-weight: 800; /* Extra bold to match the screenshot */
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: #9ca3af; /* Gray for inactive tabs */
    text-decoration: none;
    border: 0px solid transparent !important;
    border-bottom: 0px solid transparent !important;
    transition: all 0.3s ease;
}

/* Hover State for Tabs */
.woocommerce-tabs ul.wc-tabs li a:hover {
    color: var(--theme-dark-navy);
}

/* Active Tab State */
.woocommerce-tabs ul.wc-tabs li.active a {
    color: var(--theme-dark-navy);
}

/* =========================================================
   Tab Content Area
========================================================= */
.woocommerce-Tabs-panel {
    padding: 2rem;
    color: var(--theme-text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    background: #fff;
    border-radius: 1rem;
}

/* Typography inside the Description tab */
.woocommerce-Tabs-panel p {
    margin-bottom: 1rem;
}

.woocommerce-Tabs-panel ul {
    list-style-type: disc;
    margin-left: 2.5rem !important;
    margin-bottom: 2.5rem !important;
}

.woocommerce-Tabs-panel ul li {
    margin-bottom: 0.25rem;
}

/* =========================================================
   Additional Information Table Styling
========================================================= */
table.woocommerce-product-attributes {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

table.woocommerce-product-attributes th,
table.woocommerce-product-attributes td {
    padding: 1rem 0;
    border-bottom: 1px solid var(--theme-border-light);
}

table.woocommerce-product-attributes th {
    width: 30%;
    color: var(--theme-dark-navy);
    font-weight: 600;
}

table.woocommerce-product-attributes td p {
    margin: 0;
    color: var(--theme-text-gray);
}

/* =========================================================
   Related Products Responsive Grid
========================================================= */
.related.products {
    margin-top: 4rem;
}

.related.products h2.ct-module-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--theme-dark-navy);
    margin-bottom: 1.5rem;
}

/* Base Mobile Grid (1 Column) */
ul.products {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Reset margins that WooCommerce default CSS sometimes forces */
ul.products li.product {
    margin: 0 !important;
    width: 100% !important;
}

/* Tablet Grid (2 Columns) */
@media (min-width: 768px) {
    ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Desktop Grid (4 Columns) */
@media (min-width: 1024px) {
    ul.products {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Optional: Enforce the green text hover for links inside Tailwind cards just in case */
ul.products li.product:hover h2 {
    color: var(--theme-primary-green) !important;
}
ul.products li.product:hover .rounded-full {
    background-color: var(--theme-primary-green) !important;
    color: white !important;
}

/* ==========================================================================
   7. CART RECONSTRUCTION (Card Based)
   ========================================================================== */
.woocommerce-cart .shop_table.cart { border: none !important; border-radius: 0 !important; }
.woocommerce-cart .shop_table.cart thead th { background: transparent !important; border-bottom: 2px solid #f1f5f9 !important; padding: 20px 10px !important; }

.lock-qty-wrapper .quantity,
.lock-cart-container .quantity {
    display: flex !important;
    align-items: center;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
}
.lock-qty-wrapper .quantity .qty,
.lock-cart-container .quantity input.qty {
    background: transparent !important;
    border: none !important;
    width: 60px !important;
    height: 40px !important;
    text-align: center;
    font-weight: 900 !important;
    color: var(--text-main) !important;
    font-size: 1rem !important;
}

/* ==========================================================================
   CART SIDEBAR: TOTALS HERO CARD (The Navy Box)
   ========================================================================== */
.lock-totals-wrapper .cart_totals > h2 { display: none !important; }

.lock-totals-wrapper .cart_totals table.shop_table,
.cart_totals table,
.lock-totals-inner .shop_table {
    width: 100% !important;
    border: none !important;
    margin: 0 !important;
    border-collapse: collapse !important;
}

.lock-totals-wrapper .cart_totals table.shop_table th,
.lock-totals-wrapper .cart_totals table.shop_table td,
.cart_totals th,
.cart_totals td,
.lock-totals-inner .shop_table tr th,
.lock-totals-inner .shop_table tr td {
    background: transparent !important;
    border: none !important;
    padding: 16px 0 !important;
    color: #ffffff !important; 
}

.lock-totals-wrapper .cart_totals table.shop_table th,
.lock-totals-inner .shop_table tr th {
    text-align: left !important;
    color: #94a3b8 !important; /* Muted Slate */
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    vertical-align: top;
}

.lock-totals-wrapper .cart_totals table.shop_table td,
.lock-totals-inner .shop_table tr td {
    text-align: right !important;
    font-weight: 800;
    font-size: 1.1rem;
}

/* The Grand Total Row */
.lock-totals-wrapper .cart_totals table.shop_table tr.order-total th,
.lock-totals-wrapper .cart_totals table.shop_table tr.order-total td,
.cart_totals .order-total th,
.cart_totals .order-total td,
.lock-totals-inner .order-total th,
.lock-totals-inner .order-total td {
    padding-top: 25px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important; 
}

.lock-totals-wrapper .cart_totals table.shop_table tr.order-total th,
.lock-totals-inner .order-total th {
    font-size: 1rem !important;
    color: #ffffff !important;
    vertical-align: middle;
}

/* Force the final price to be Massive & Marine Green */
.lock-totals-wrapper .cart_totals table.shop_table tr.order-total td strong .woocommerce-Price-amount,
.cart_totals .order-total td span,
.lock-totals-inner .order-total td {
    color: var(--primary-color) !important;
    font-size: 2.2rem !important;
    font-weight: 900 !important;
    line-height: 1;
}

/* ==========================================================================
   SHIPPING CALCULATOR OVERRIDES (Compact Dark Mode)
   ========================================================================== */
.lock-totals-wrapper .woocommerce-shipping-destination {
    color: #cbd5e1 !important;
    font-size: 0.85rem;
    margin-bottom: 12px;
    text-align: right;
}

.shipping-calculator-button,
.lock-totals-wrapper .shipping-calculator-button {
    color: var(--primary-color) !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.2s ease;
}

.shipping-calculator-button:hover,
.lock-totals-wrapper .shipping-calculator-button:hover {
    opacity: 0.8;
}

/* Form Container & Row Spacing */
.lock-totals-wrapper .shipping-calculator-form {
    margin-top: 20px;
    text-align: left;
}

.lock-totals-wrapper .shipping-calculator-form .form-row {
    margin-bottom: 16px !important;
    padding: 0 !important;
}

/* Labels */
.lock-totals-wrapper .shipping-calculator-form label {
    display: block !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8 !important; /* Muted Slate */
    margin-bottom: 6px !important;
}

/* Compact Inputs */
.lock-totals-wrapper .shipping-calculator-form input.input-text, 
.lock-totals-wrapper .shipping-calculator-form select {
    width: 100% !important;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 8px 12px !important; /* Reduced for compact size */
    height: 40px !important; /* Fixed compact height */
    font-size: 0.85rem !important;
    outline: none !important;
    margin: 0 !important;
    transition: all 0.2s ease;
}

.lock-totals-wrapper .shipping-calculator-form input.input-text:focus {
    border-color: var(--primary-color) !important;
    background: rgba(255,255,255,0.1) !important;
}

.lock-totals-wrapper .shipping-calculator-form input::placeholder {
    color: rgba(255,255,255,0.3) !important;
}

/* WooCommerce Select2 Overrides (Fixing the Country Dropdown) */
.lock-totals-wrapper .shipping-calculator-form .select2-container .select2-selection--single {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 8px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.2s ease;
}

.lock-totals-wrapper .shipping-calculator-form .select2-container--open .select2-selection--single {
    border-color: var(--primary-color) !important;
}

.lock-totals-wrapper .shipping-calculator-form .select2-container .select2-selection--single .select2-selection__rendered {
    color: #ffffff !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    padding-left: 0px !important;
    line-height: normal !important;
}

.lock-totals-wrapper .shipping-calculator-form .select2-container .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 8px !important;
}

/* ==========================================================================
   SHIPPING CALCULATOR FIXES (Dark Mode Sync & Padding Constraint)
   ========================================================================== */

/* 1. Constrain the overall Navy Box horizontal padding to 20px */
#lock-summary-box {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* 2. Force Input Fields to perfectly match the Select2 dropdown */
#lock-summary-box .shipping-calculator-form input[type="text"],
#lock-summary-box .shipping-calculator-form input.input-text {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    height: 40px !important;
    font-size: 0.85rem !important;
    outline: none !important;
    margin: 0 !important;
    box-shadow: none !important;
    transition: all 0.2s ease;
    -webkit-text-fill-color: #ffffff !important; /* Forces white text even on autofill */
}

/* 3. Input Focus State (Slightly lighter dark background) */
#lock-summary-box .shipping-calculator-form input[type="text"]:focus,
#lock-summary-box .shipping-calculator-form input.input-text:focus {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
}

/* 4. Placeholder Text Color */
#lock-summary-box .shipping-calculator-form input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* 5. Ensure the Select2 rendered text remains explicitly white */
#lock-summary-box .shipping-calculator-form .select2-container .select2-selection--single .select2-selection__rendered {
    color: #ffffff !important;
}

/* Compact Update Button */
.lock-totals-wrapper .shipping-calculator-form button[name="calc_shipping"] {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    font-size: 0.75rem !important;
    letter-spacing: 0.5px;
    padding: 12px 20px !important;
    border-radius: 50px !important;
    width: 100%;
    margin-top: 8px;
    border: none !important;
    box-shadow: 0 4px 10px rgba(60, 145, 75, 0.15);
    transition: all 0.3s ease;
}

.lock-totals-wrapper .shipping-calculator-form button[name="calc_shipping"]:hover {
    background-color: #ffffff !important;
    color: var(--text-main) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(15, 52, 72, 0.4);
}

/* Proceed to Checkout Button */
.wc-proceed-to-checkout,
.lock-totals-wrapper .wc-proceed-to-checkout {
    padding: 0 !important;
    margin-top: 30px !important;
}

#lock-summary-box h2 {color:#fff !important;}

.wc-proceed-to-checkout .checkout-button,
.lock-totals-wrapper .wc-proceed-to-checkout .checkout-button,
#lock-summary-box .checkout-button {
    background-color: var(--primary-color) !important; 
    color: #ffffff !important; 
    padding: 22px !important;
    border-radius: 50px !important;
    font-size: 1.15rem !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    text-align: center;
    width: 100%;
    box-shadow: 0 10px 25px rgba(60, 145, 75, 0.3);
    transition: all 0.3s ease;
    text-decoration: none !important;
    border: none !important;
    margin-top: 20px;
}

.wc-proceed-to-checkout .checkout-button:hover,
.lock-totals-wrapper .wc-proceed-to-checkout .checkout-button:hover,
#lock-summary-box .checkout-button:hover {
    transform: translateY(-4px);
    background-color: #ffffff !important;
    color: var(--text-main) !important;
    box-shadow: 0 15px 35px rgba(15, 52, 72, 0.4);
}

/* Mobile Responsive Cart */
@media (max-width: 768px) {
    .woocommerce-cart .shop_table.cart tr {
        display: flex !important;
        flex-direction: column;
        padding: 20px;
        background: white;
        border-radius: 20px;
        margin-bottom: 20px;
        border: 1px solid #f1f5f9;
        box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    }
    .woocommerce-cart .shop_table.cart td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none !important;
        padding: 10px 0 !important;
        text-align: left !important;
    }
    .woocommerce-cart .shop_table.cart td::before {
        content: attr(data-title);
        font-weight: 800;
        text-transform: uppercase;
        font-size: 10px;
        color: #94a3b8;
    }
}


/* ==========================================================================
   8. CHECKOUT - PRECISION SPACING
   ========================================================================== */
textarea#order_comments {
  resize: vertical !important;
  min-height: 300px
}
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3 {
    font-family: "Rubik", sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woocommerce-NoticeGroup {
    margin-bottom: 2rem;
}

.lock-checkout-grid .form-row {
    margin: 0 0 24px 0 !important;
    display: block !important;
    width: 100% !important;
    clear: both;
}

.woocommerce-billing-fields__field-wrapper label {display: block !important;}
.lock-checkout-grid label {
	display: block;
    font-size: 10px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b !important; 
    margin-bottom: 10px !important;
}

/* Base checkout inputs */
.woocommerce form .form-row input.input-text, 
.woocommerce form .form-row textarea,
.select2-container--default .select2-selection--single,
.lock-checkout-grid input.input-text, 
.lock-checkout-grid select, 
.lock-checkout-grid textarea {
    width: 100% !important;
    background-color: #f8fafc !important; 
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 13px !important;
    font-family: "Karla", sans-serif;
    font-weight: 700 !important;
    color: var(--text-main) !important;
    height: auto !important;
    min-height: 45px;
    transition: all 0.2s ease;
}

.woocommerce form .form-row input.input-text:focus, 
.woocommerce form .form-row textarea:focus,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(60, 145, 75, 0.3) !important; 
    background-color: var(--white) !important;
}

.woocommerce-checkout-review-order-table { width: 100% !important; border: none !important; margin-bottom: 0 !important; }
.woocommerce-checkout-review-order-table th, 
.woocommerce-checkout-review-order-table td { border: none !important; background: transparent !important; padding: 12px 0 !important; text-align: left !important; }
.woocommerce-checkout-review-order-table .product-name {text-align:left !important; }
.woocommerce-checkout-review-order-table .product-total, 
.woocommerce-checkout-review-order-table .woocommerce-Price-amount, 
.woocommerce-checkout-review-order-table .cart-subtotal td, 
.woocommerce-checkout-review-order-table .tax-rate td {text-align:right !important; }

.woocommerce-checkout-review-order-table td.product-total,
.woocommerce-checkout-review-order-table td.product-name { font-weight: 800; font-size: 13px; }
.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td { padding-top: 20px !important; border-top: 2px solid #f8fafc !important; font-size: 1.5rem !important; color: var(--text-main); }

#place_order {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    padding: 24px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    font-size: 1.3rem !important;
    letter-spacing: 1px;
    margin-top: 20px !important;
    box-shadow: 0 20px 40px rgba(60, 145, 75, 0.3) !important;
    width: 100%;
    transition: all 0.3s ease;
}
#place_order:hover { transform: translateY(-4px); background-color: var(--text-main) !important; }

/* Payment Box Overrides */
.woocommerce-checkout #payment { background: transparent !important; border-radius: 0 !important; }
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid #e5e7eb; padding-bottom: 1rem; border-radius: 0; }
.woocommerce-checkout #payment div.payment_box { background-color: var(--white) !important; border: 0 !important; color: #4b5563 !important; border-radius: 8px; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #e5e7eb !important; }


/* ==========================================================================
   CUSTOM CHECKBOXES & RADIO BUTTONS (Industrial Overhaul)
   ========================================================================== */
.woocommerce form input[type="checkbox"],
.woocommerce form input[type="radio"],
.lock-checkout-grid input[type="checkbox"],
.lock-checkout-grid input[type="radio"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    min-width: 24px !important;
    width: 24px !important;
    height: 24px !important;
    border: 2px solid #cbd5e1 !important;
    background-color: #f8fafc !important;
    margin: 0 12px 0 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    vertical-align: middle;
    position: relative;
    outline: none !important;
    flex-shrink: 0;
}

.woocommerce form input[type="checkbox"]:hover,
.woocommerce form input[type="radio"]:hover {
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 10px rgba(60, 145, 75, 0.2) !important;
}

.woocommerce form input[type="checkbox"]:focus,
.woocommerce form input[type="radio"]:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(60, 145, 75, 0.3) !important;
}

/* Checkbox */
.woocommerce form input[type="checkbox"] { border-radius: 6px !important; }
.woocommerce form input[type="checkbox"]:checked { background-color: var(--primary-color) !important; border-color: var(--primary-color) !important; }
.woocommerce form input[type="checkbox"]:checked::after {
    content: ''; width: 6px; height: 12px; border: solid #ffffff; border-width: 0 3px 3px 0;
    transform: rotate(45deg); position: absolute; top: 2px; left: 7px;
}

/* Radio */
.woocommerce form input[type="radio"] { border-radius: 50% !important; }
.woocommerce form input[type="radio"]:checked { border-color: var(--primary-color) !important; background-color: #f2f9f3 !important; }
.woocommerce form input[type="radio"]:checked::after {
    content: ''; width: 10px; height: 10px; background-color: var(--text-main);
    border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
}

.woocommerce-form__label-for-checkbox,
.woocommerce-form__label-for-radio {
    display: inline-flex !important;
    align-items: center !important;
    cursor: pointer;
    font-weight: 800 !important;
    color: var(--text-main) !important;
}

#ship-to-different-address { display: flex; align-items: center; margin-bottom: 24px; }
#ship-to-different-address label { font-size: 1.1rem !important; text-transform: uppercase; letter-spacing: 0.5px; margin: 0 !important; }

.woocommerce .woocommerce-form-login__rememberme span,
.woocommerce .woocommerce-terms-and-conditions-checkbox-text { font-size: 0.9rem !important; text-transform: none !important; font-weight: 700 !important; color: #4b5563 !important; }
.woocommerce-privacy-policy-text {margin: 20px 0 !important;}


/* ==========================================================================
   9. MY ACCOUNT / CLIENT PORTAL & DASHBOARD TILES
   ========================================================================== */
.lock-account-portal { color: var(--text-main); }
.lock-account-content .woocommerce-notices-wrapper:empty { display: none !important; }

.lock-account-content { height: auto !important; overflow: visible !important; }
.lock-account-content > * + * { margin-top: 24px; }
.lock-account-content mark { background: transparent; color: var(--text-main); font-weight: 900; text-decoration: underline decoration-primary decoration-4; }

.lock-account-content p { font-size: 1.05rem; line-height: 1.7; color: #475569; margin: 0 0 1.25rem 0; }
.lock-account-content h2, .lock-account-content h3, .lock-account-content legend { font-family: "Rubik", sans-serif; color: var(--text-main); }

/* Sidebar Menu */
.lock-account-nav ul,
.lock-account-nav .woocommerce-MyAccount-navigation ul,
.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15, 52, 72, 0.06);
}

.lock-account-nav ul li,
.lock-account-nav .woocommerce-MyAccount-navigation ul li {
    margin: 0 !important;
    border-bottom: 1px solid #f1f5f9;
}
.lock-account-nav ul li:last-child,
.lock-account-nav .woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

.lock-account-nav ul li a,
.lock-account-nav .woocommerce-MyAccount-navigation ul li a,
.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 24px;
    color: #64748b;
    font-family: "Rubik", sans-serif;
    font-weight: 900;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 5px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    text-decoration: none !important;
}

.lock-account-nav ul li.is-active a,
.lock-account-nav ul li a:hover,
.lock-account-nav .woocommerce-MyAccount-navigation ul li.is-active a,
.lock-account-nav .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
    background-color: #f2f9f3; 
    color: var(--text-main);
    border-left-color: var(--primary-color);
    padding-left: 30px;
}
.lock-account-nav .woocommerce-MyAccount-navigation-link--customer-logout a,
.woocommerce-MyAccount-navigation-link--customer-logout a { color: #ef4444 !important; }

/* Dashboard Tile UI */
.lock-dashboard-tile {
    display: flex !important;
    flex-direction: column;
    padding: 30px !important;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 32px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}
.lock-dashboard-tile:hover {
    border-color: var(--primary-color); 
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(60, 145, 75, 0.1);
}
.tile-icon { width: 56px; height: 56px; background: #f2f9f3; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; transition: all 0.3s ease; }
.tile-icon .material-symbols-rounded { color: var(--primary-color); font-size: 2rem; }
.lock-dashboard-tile:hover .tile-icon { background: var(--text-main); color: var(--white); }
.tile-content h3 { font-family: "Rubik", sans-serif !important; font-size: 1.15rem !important; font-weight: 900 !important; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px !important; color: var(--text-main); }
.tile-content p { font-size: 0.85rem !important; line-height: 1.6 !important; color: #64748b !important; margin: 0 !important; }
.tile-arrow { position: absolute; bottom: 30px; right: 30px; color: #cbd5e1; transition: all 0.3s ease; }
.lock-dashboard-tile:hover .tile-arrow { color: var(--primary-color); transform: translateX(5px); }

/* Form Fields (Account Details / Edit Address) */
.lock-account-content .woocommerce-form-row,
.lock-account-content .form-row { margin-bottom: 24px !important; }

.lock-account-content .woocommerce-address-fields__field-wrapper,
.lock-account-content .woocommerce-EditAccountForm,
.lock-account-content form.edit-account { display: flex; flex-wrap: wrap; gap: 24px; }

.lock-account-content .woocommerce-address-fields__field-wrapper > .form-row,
.lock-account-content .woocommerce-EditAccountForm > .form-row,
.lock-account-content form.edit-account > .form-row { margin: 0 !important; flex: 1 1 100%; min-width: 0; }

@media (min-width: 768px) {
  .lock-account-content .form-row-first, .lock-account-content .form-row-last { flex: 1 1 calc(50% - 12px); }
  .lock-account-content .form-row-wide { flex: 1 1 100%; }
}

.lock-account-content .clear { display: none !important; }
.lock-account-content label { font-size: 11px !important; font-weight: 900 !important; text-transform: uppercase; letter-spacing: 1px; color: #64748b !important; margin: 0 0 10px 0 !important; }

.lock-account-content input.input-text,
.lock-account-content input[type="text"],
.lock-account-content input[type="email"],
.lock-account-content input[type="password"],
.lock-account-content select,
.lock-account-content textarea {
    width: 100% !important; padding: 14px 16px !important; background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important; border-radius: 14px !important; font-weight: 700 !important; color: var(--text-main) !important;
}

.lock-account-content .select2-container { width: 100% !important; }
.lock-account-content .select2-container--default .select2-selection--single {
    border-radius: 14px !important; border: 1px solid #e2e8f0 !important; background-color: #f8fafc !important;
    min-height: 48px !important; display: flex !important; align-items: center !important;
}
.lock-account-content .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-main) !important; font-weight: 700 !important; padding-left: 16px !important; padding-right: 44px !important; line-height: 1.2 !important;
}
.lock-account-content .select2-container--default .select2-selection--single .select2-selection__arrow { height: 100% !important; right: 12px !important; }

.lock-account-content .select2-container--default.select2-container--open .select2-selection--single,
.lock-account-content input.input-text:focus,
.lock-account-content input[type="text"]:focus,
.lock-account-content input[type="email"]:focus,
.lock-account-content input[type="password"]:focus,
.lock-account-content select:focus,
.lock-account-content textarea:focus {
    border-color: var(--primary-color) !important; box-shadow: 0 0 0 3px rgba(60, 145, 75, 0.25) !important; background-color: var(--white) !important;
}

.lock-account-content fieldset { margin-top: 40px; padding-top: 30px; border-top: 2px solid #f8fafc; width: 100%; }
.lock-account-content legend { font-weight: 900; text-transform: uppercase; font-size: 1.1rem; padding: 0 20px; color: var(--text-main); }

/* Orders & Downloads Tables */
.lock-account-content table.shop_table { 
    width: 100% !important; 
    border-collapse: separate !important; 
    border-spacing: 0 !important; 
    border-radius: 16px !important; 
    overflow: hidden !important; 
    margin: 0 !important; 
    padding: 0 !important; 
}

.woocommerce .lock-account-content table.shop_table td + td, 
.woocommerce .lock-account-content table.shop_table th + td, 
.woocommerce .lock-account-content table.woocommerce-orders-table td + td, 
.woocommerce .lock-account-content table.woocommerce-orders-table th + td {
    border: 0 !important;
    margin: 0 !important;
}

.woocommerce .account-orders-table .button.view { width: fit-content !important; padding: 10px 20px !important; }

@media(min-width: 768px) {
    .woocommerce .lock-account-content table tr:nth-child(even) { background-color: #f8fafc !important; }
	.lock-account-content table.shop_table { 
    border: 1px solid #e5e7eb !important; 
	}
}

@media(max-width: 768px) {
    .woocommerce .lock-account-content table td:nth-child(even) { background-color: #f8fafc !important; }
    .woocommerce .lock-account-content table.shop_table tr, 
    .woocommerce .lock-account-content table.woocommerce-orders-table tr,
    .woocommerce .lock-account-content table tr { padding: 0 !important; }
    .woocommerce .lock-account-content table.shop_table td, 
    .woocommerce .lock-account-content table.shop_table th, 
    .woocommerce .lock-account-content table.woocommerce-orders-table td, 
    .woocommerce .lock-account-content table.woocommerce-orders-table th { padding: 20px !important; }
}

.lock-account-content table.shop_table thead th { background: #f8fafc !important; padding: 20px !important; text-transform: uppercase; font-size: 10px; letter-spacing: 1.5px; color: #94a3b8; border: none !important; text-align: left; }
.lock-account-content table.shop_table tbody td { padding: 20px !important; border-bottom: 1px solid #f1f5f9 !important; font-weight: 700; color: var(--text-main); }

/* Mobile Orders View */
@media (max-width: 768px) {
    .account-orders-table thead { display: none !important; }
    .account-orders-table tr { 
        display: block !important; 
        background: #ffffff !important; 
        border-radius: 28px !important; 
        border: 1px solid #e2e8f0 !important; 
        overflow: hidden !important;
        padding: 24px !important; 
        margin-bottom: 20px !important; 
        box-shadow: 0 4px 6px rgba(15, 52, 72, 0.02) !important; 
    }
    .account-orders-table td, 
    .account-orders-table th { display: flex !important; justify-content: space-between !important; align-items: center !important; padding: 14px 0 !important; border-bottom: 1px solid #f1f5f9 !important; text-align: right !important; font-weight: 800 !important; font-size: 0.9rem !important; color: var(--text-main) !important; }
    .account-orders-table td::before,
    .account-orders-table th::before { content: attr(data-title); font-weight: 900; text-transform: uppercase; font-size: 10px; color: #94a3b8; letter-spacing: 1px; text-align: left; }
    .account-orders-table .woocommerce-orders-table__cell-order-number a { color: var(--text-main) !important; text-decoration: underline decoration-primary decoration-2 !important; }
    .account-orders-table td:last-child { border-bottom: none !important; margin-top: 10px; padding-bottom: 0 !important; }
    .account-orders-table .button.view { width: 100% !important; text-align: center !important; justify-content: center !important; background-color: #f8fafc !important; color: var(--text-main) !important; border: 1px solid #e2e8f0 !important; padding: 12px !important; border-radius: 12px !important; }
}
.woocommerce-orders-table__row--status-refunded .woocommerce-orders-table__cell-order-status { color: #ef4444 !important; }
.woocommerce-orders-table__row--status-completed .woocommerce-orders-table__cell-order-status { color: #22c55e !important; }

/* Download Button */
.woocommerce-MyAccount-content .shop_table .button.download {
    background-color: var(--primary-color) !important; 
    color: #ffffff !important; 
    font-size: 10px !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(60, 145, 75, 0.2);
}
.woocommerce-MyAccount-content .shop_table .button.download:hover { background-color: var(--text-main) !important; color: white !important; }

/* Address Cards Grid */
.lock-account-content .u-columns.woocommerce-Addresses,
.woocommerce-Addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 20px; }
.lock-account-content .woocommerce-Address,
.woocommerce-Address { background: #f8fafc; padding: 30px; border-radius: 24px; border: 1px solid #e2e8f0; }
.lock-account-content .woocommerce-Address-title h2,
.lock-account-content .woocommerce-Address-title h3,
.woocommerce-Address-title h3 { font-size: 1.25rem !important; font-weight: 900 !important; text-transform: uppercase; margin-bottom: 15px !important; display: flex; justify-content: space-between; align-items: center; }
.lock-account-content .woocommerce-Address-title a.edit { font-weight: 900; text-transform: uppercase; font-size: 10px; letter-spacing: 1px; color: var(--text-main); }
.lock-account-content address { margin: 0; color: #475569; line-height: 1.7; font-weight: 700; }

/* CENTER UNAUTHENTICATED ACCOUNT PAGES (Login / Lost Password) */
body.woocommerce-account:not(.logged-in) .woocommerce { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 70vh; padding: 2rem 1rem; }
body.woocommerce-account:not(.logged-in) .woocommerce-notices-wrapper { width: 100% !important; max-width: 28rem !important; margin: 0 auto !important; }


/* ==========================================================================
   10. AJAX PROCESSING & REVOLUT FIXES
   ========================================================================== */
.woocommerce-cart-form img {
	border-radius: 10px !important;
}
.woocommerce-cart-form button[name="update_cart"],
button[name="update_cart"] {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: none !important;
}

.woocommerce-cart-form.processing + .lg:col-span-4 .lock-totals-inner,
.lock-totals-inner[style*="opacity: 0.5"] { pointer-events: none; filter: blur(1px); transition: opacity 0.3s ease; }
.blockUI.blockOverlay::before { background-color: var(--primary-color) !important; opacity: 0.1 !important; }

.checkout-button.disabled { pointer-events: none !important; background-color: #1e293b !important; color: #475569 !important; opacity: 0.8; }

#revolut-payment-request-button { display: flex !important; flex-direction: column !important; gap: 0 !important; }
#revolut-payment-request-button iframe:not(:last-child) { display: none !important; }


/* ==========================================================================
   CHECKOUT: SELECT2 DROPDOWN FIXES (Matching Text Inputs)
   ========================================================================== */

/* 1. The Outer Wrapper (Set height, remove padding that breaks the layout) */
.lock-checkout-grid .select2-container--default .select2-selection--single {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    height: 56px !important; /* Matches the visual height of your padded text inputs */
    display: flex !important;
    align-items: center;
    padding: 0 !important; /* Crucial: removes the global padding */
    transition: all 0.2s ease;
}

/* 2. The Focus State (Marine Green glow) */
.lock-checkout-grid .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(60, 145, 75, 0.3) !important; 
    background-color: var(--white) !important;
}

/* 3. The Inner Text (Apply the left padding here instead) */
.lock-checkout-grid .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-main) !important;
    font-weight: 700 !important;
    padding-left: 20px !important;
    padding-right: 40px !important;
    line-height: normal !important;
    width: 100%;
}

/* 4. Center the dropdown arrow on the right */
.lock-checkout-grid .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 15px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 5. Style the actual dropdown menu list for a premium feel */
.select2-container--default .select2-dropdown {
    border: 1px solid var(--primary-color) !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 25px rgba(15, 52, 72, 0.1) !important;
    overflow: hidden;
    margin-top: 4px;
}

/* 6. Style the dropdown list items */
.select2-container--default .select2-results__option {
    padding: 12px 20px !important;
    font-family: "Karla", sans-serif;
    font-weight: 700;
    color: var(--text-main);
    transition: background-color 0.2s ease;
}

/* 7. Dropdown hover/highlight state */
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

.select2-search--dropdown .select2-search__field {
    padding: 4px 15px !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
    border-color: #0f3448 !important;
    color: #0f3448 !important;
	border-width: 2px !important;
    width: 100%;
    box-sizing: border-box;
}