/* wso-style.css */

/* --- CORE LAYOUT --- */
.tab-content { display: none; }
#main-header, #main-footer { display: none; }
#page-container { padding-top: 0px !important; }
.entry-content table:not(.variations) { border: 1px solid #eee !important; }
.tab-container { max-width: 100%; margin: 0 auto; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.1); overflow: hidden; position: relative; padding-bottom: 120px; transition: background 0.3s, color 0.3s; }

/* --- BANNERS & PANELS --- */
.promo-top-bar { background-color: #ffc376; color: #333; text-align: center; padding: 10px; font-weight: bold; font-size: 0.95em; border-bottom: 1px solid #ffc376; }
.top-panels-row { display: flex; gap: 15px; padding: 20px 20px 0 20px; height: 240px; }
.top-panel-item { flex: 1; background: #252525; color: white; padding: 15px; border-radius: 6px; text-align: center; text-decoration: none; transition: transform 0.2s, background 0.2s; display: flex; flex-direction: column; justify-content: center; align-items: center; border: 1px solid #333;cursor: pointer; background-size: cover; background-position: center; }
.top-panel-item:hover { transform: translateY(-2px); background-color: #333; color: #fff; }
.top-panel-item strong { font-size: 1.1em; display: block; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; text-shadow: 0 2px 4px rgba(0,0,0,0.6); }
.top-panel-item span { font-size: 0.85em; opacity: 0.9; font-weight: normal; text-shadow: 0 1px 2px rgba(0,0,0,0.6); }

/* IMAGES */
#panel-shop-link { background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://twdc.com.sg/wp-content/uploads/2026/01/austria_banner.jpg'); }
#panel-member-shop-link { background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://twdc.com.sg/wp-content/uploads/2026/01/36065.jpg'); }      
#panel-btn-featured { background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://twdc.com.sg/wp-content/uploads/2026/01/36063.jpg'); }
#panel-website-link { background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://twdc.com.sg/wp-content/uploads/2020/08/96080675_2690468424543159_5025858811521400832_o.jpg'); }

/* --- HEADER --- */
.header-content { padding: 20px; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; position: relative; }
.header-title { flex: 1; min-width: 200px; }
.header-title h1 { margin-top: 0; margin-bottom: 5px; font-size: 1.8em; }
.header-title p { margin: 0; color: #666; }
.social-links-row { display: flex; gap: 10px; margin-top: 12px; margin-bottom: 12px; }
.social-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 4px; text-decoration: none; color: white !important; font-size: 0.9em; font-weight: bold; transition: opacity 0.2s; border: none; }
.social-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.social-btn svg { width: 20px; height: 20px; fill: white; } 
.btn-ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.btn-fb { background-color: #1877f2; }
.discount-info { margin-top: 12px; font-size: 0.9em; color: #555; line-height: 1.5; }
.discount-info ul { margin: 5px 0 0 20px; padding: 0; }

/* --- NOTIFICATIONS --- */
#search-status-container { display: none; padding: 0 20px 15px 20px; }
.search-status-box { background: #eef2f7; padding: 12px 15px; border-radius: 6px; font-size: 0.95em; color: #333; border: 1px solid #d1d9e6; display: flex; align-items: center; gap: 10px; }
.search-icon { font-size: 1.2em; }
#upsell-notification-bar { background: #e3f2fd; color: #000000; padding: 15px; border: 1px solid #bbdefb; border-radius: 6px; margin: 0 20px 15px 20px; display: none; font-size: 1em; text-align: center; animation: slideDown 0.3s; }
#upsell-notification-bar strong { font-weight: 800; }
.upsell-label { color: #000; }

/* --- LEGEND BOX --- */
.legend-box { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 6px; padding: 10px 15px; font-size: 0.85em; color: #555; min-width: 240px; box-shadow: 0 2px 4px rgba(0,0,0,0.03); }
.legend-title { font-weight: bold; margin-bottom: 8px; display: block; color: #333; text-transform: uppercase; font-size: 0.9em; letter-spacing: 0.5px; }
.legend-item { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.legend-item:last-child { margin-bottom: 0; }
.badge-example { display: inline-block; padding: 2px 7px; border-radius: 12px; color: white; font-weight: bold; font-size: 10px; line-height: 1; min-width: 15px; text-align: center; }
.badge-example.blue { background-color: #007bff; }
.badge-example.green { background-color: #28a745; }
.badge-example.black { background-color: #252525; }
.badge-example.red { background-color: #dc3545; }
.badge-example.teal { background-color: #17a2b8; } 
.badge-example.legend-strikethrough { text-decoration: line-through; background-color: #ccc; color: #666; }
.badge-example.legend-red-text { color: #dc3545; background-color: transparent; border: 1px solid #dc3545; }
.badge-example.gold-star { background-color: transparent; color: #f39c12; font-size: 16px; padding: 0; }

/* --- SWITCH --- */
.switch-container { display: flex; align-items: center; gap: 10px; border-top: 1px dashed #ddd; margin-top: 8px; padding-top: 8px; }
.switch { position: relative; display: inline-block; width: 34px; height: 20px; margin-bottom: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #6f42c1; } 
input:checked + .slider:before { transform: translateX(14px); }
.switch-label { font-size: 0.9em; color: #333; font-weight: bold; cursor: pointer;}


/* ==========================================================================
   VERTICAL TABS / SHELF PANEL WITH FLAP (FULLY UPGRADED)
   ========================================================================== */

/* Main Flex Layout */
.layout-wrapper { 
    display: flex; 
    align-items: stretch; 
    gap: 0; 
    padding: 0; 
    position: relative; 
}

/* The Sidebar Drawer */
#tab-nav-container { 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    width: 150px;          /* FIXED width to prevent text squishing */
    flex-shrink: 0;        /* Prevents flexbox from compressing it */
    background-color: #fff; 
    border-right: 1px solid #e2e8f0; 
    box-shadow: 2px 0 10px rgba(0,0,0,0.03); /* Subtle depth */
    transition: margin-left 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
    z-index: 50; 
    margin-bottom: 0;
}

/* Sidebar HIDDEN State (Slides left via negative margin) */
.layout-wrapper.panels-hidden #tab-nav-container { 
    margin-left: -150px; 
}

/* The Table Area */
#dynamic-content-container { 
    flex-grow: 1; 
    width: calc(100% - 150px); /* Fill remaining space */
    padding: 15px 25px; 
    min-height: 400px; 
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
} 

/* Pushes the shelf name slightly so the flap doesn't cover it */
.layout-wrapper.panels-hidden .tab-content h3 {
    margin-left: 45px; 
    transition: margin-left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- SIDEBAR HEADER & FLAP BUTTON --- */
.sidebar-header { 
    padding: 10px; 
    background-color: #f8fafc; 
    border-bottom: 1px solid #e2e8f0; 
    text-align: center; 
    width: 100%; 
    box-sizing: border-box; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    height: 55px; 
}

/* The Toggle Button (Inside the sidebar) */
#sidebar-toggle-btn { 
    background: transparent; 
    border: 1px solid #cbd5e1; 
    border-radius: 6px; 
    color: #475569; 
    padding: 8px 12px; 
    font-size: 0.85em; 
    font-weight: 700; 
    cursor: pointer; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px;
    width: 100%; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    -webkit-tap-highlight-color: transparent; 
    outline: none; 
    user-select: none; 
}
#sidebar-toggle-btn:hover { 
    background-color: #e2e8f0; 
    color: #0f172a;
}

/* The "Hanging Flap" Styling (When Sidebar is hidden) */
.layout-wrapper.panels-hidden .sidebar-header {
    background: transparent;
    border: none;
    padding: 0;
    height: 0;
    overflow: visible;
}
.layout-wrapper.panels-hidden #sidebar-toggle-btn { 
    position: absolute;
    right: -45px;      /* Hangs outside the hidden sidebar container */
    top: 0px; 
    width: 45px;
    height: 55px;
    padding: 0;
    background-color: #252525;
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0; 
    box-shadow: 4px 2px 10px rgba(0,0,0,0.2);
    font-size: 1.4em;
    z-index: 9999; 
}
.layout-wrapper.panels-hidden #sidebar-toggle-btn:hover {
    background-color: #444;
}

/* --- TAB LINKS --- */
.tab-link { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 14px 15px; 
    text-decoration: none; 
    color: #475569; 
    font-weight: 600; 
    border-left: 4px solid transparent; /* Ready for accent */
    border-bottom: 1px solid #f1f5f9; 
    transition: all 0.2s ease; 
    position: relative; 
    width: 100%; 
    box-sizing: border-box; 
    font-size: 0.9em; 
    white-space: nowrap; 
}
.tab-link span:first-child { 
    overflow: hidden; 
    text-overflow: ellipsis; 
    max-width: 100px; 
}
.tab-link:last-child { border-bottom: none; }

.tab-link:hover { 
    background-color: #f8fafc; 
    color: #0f172a; 
    border-left-color: #cbd5e1;
}
.tab-link.active { 
    background-color: #252525; 
    color: #fff; 
    border-left-color: #ffc376; /* Nice gold accent */
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.tab-link.no-search-match { opacity: 0.4; }

.search-match-badge, .selection-indicator { background-color: #007bff; color: white; border-radius: 12px; padding: 2px 8px; font-size: 11px !important; font-weight: bold; display: none; margin-left: 6px; box-shadow: 0 2px 2px rgba(0,0,0,0.2); flex-shrink: 0; z-index: 5; border: 1px solid white; align-items: center; justify-content: center; min-width: 20px; height: 20px; }
.selection-indicator { background: #28a745; }
.selection-indicator.active-badge { display: inline-flex !important; }

@media (max-width: 768px) { 
    .header-content { flex-direction: column; } 
    .legend-box { width: 100%; box-sizing: border-box; } 
    .top-panels-row { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 15px; height: 240px; padding: 20px 20px 10px 20px; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
    .top-panel-item { flex: 0 0 85%; min-width: 85%; scroll-snap-align: center; }
    .top-panel-item strong { font-size: 1.2em; }
    .top-panel-item span { display: block; font-size: 0.9em; }
    .wine-table td.name-cell { min-width: 65vw !important; max-width: none !important; }
    #dynamic-content-container { padding: 10px; }
}

/* ========================================================================== */

/* TABLE STYLING */
.tab-content { padding: 0; animation: fadeIn 0.3s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 5px; }
.wine-table { width: 100%; border-collapse: collapse; font-size: 0.9em; border: none; white-space: normal; margin: 0px !important; }
.wine-table th, .wine-table td { padding: 12px 5px; border-bottom: 1px solid #eee; text-align: left; vertical-align: middle; }
.wine-table th { background-color: #fafafa; color: #333; font-weight: 700; text-transform: uppercase; font-size: 0.85em; letter-spacing: 0.5px; white-space: nowrap; position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1); }
.wine-table tr:hover { background-color: #f9f9f9; }
.wine-table td:last-child { font-weight: bold; color: #252525; white-space: nowrap; }
.wine-table td.name-cell { min-width: 300px; max-width: 400px; line-height: 1.4; }

/* FIX: Changed white-space to normal so text wraps cleanly */
.loc-sku-cell { white-space: normal; max-width: 120px; word-wrap: break-word; }
.loc-text { font-weight: bold; color: #333; display: block; margin-bottom: 3px; font-size: 0.9em; white-space: normal; word-wrap: break-word; }
.sku-text { font-size: 0.85em; color: #000; letter-spacing: 0.5px; display: block; white-space: normal; word-wrap: break-word; }

.hidden-logic-input { display: none !important; } 
.number-cell { font-weight: bold; color: #888; text-align: center; }
.wine-table tr.active-row { background-color: #e8f5e9 !important; border-left: 4px solid #28a745; }
.row-in-bundle { background-color: #fff3cd !important; opacity: 0.8; }
.row-in-bundle td:first-child::after { content: "IN BUNDLE"; display: block; font-size: 0.7em; font-weight: bold; color: #856404; white-space: nowrap; margin-top: 4px; }

/* SMART ADD BUTTON STYLES */
.smart-action-container { display: flex; align-items: center; justify-content: center; } 
.btn-smart-add { background-color: #fff; color: #28a745; border: 1px solid #28a745; padding: 6px 12px; border-radius: 20px; font-weight: bold; font-size: 0.85em; cursor: pointer; transition: all 0.2s; text-transform: uppercase; display: block; } 
.btn-smart-add:hover { background-color: #28a745; color: white; }
.smart-stepper { display: flex; align-items: center; background-color: #28a745; border-radius: 20px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.1); } 
.step-btn { background: transparent; border: none; color: white; font-weight: bold; font-size: 1.2em; width: 30px; height: 30px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; line-height: 1; }
.step-btn:hover { background-color: rgba(255,255,255,0.2); }
.step-display { color: white; font-weight: bold; font-size: 0.95em; width: 30px; text-align: center; user-select: none; }

/* BUBBLE (TAG) STYLES */
.item-tag { display: inline-block; padding: 2px 8px; margin-right: 6px; margin-top: 6px; border-radius: 4px; font-size: 0.75em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; white-space: nowrap; border: 1px solid transparent; }
.style-red { background-color: #ffebee; color: #c62828; border-color: #ffcdd2; }
.style-white { background-color: #fff9c4; color: #f57f17; border-color: #fff176; }
.style-sparkling { background-color: #004d40; color: #80cbc4; border-color: #00695c; }
.style-rose { background-color: #fce4ec; color: #880e4f; border-color: #f8bbd0; }
.style-sweet { background-color: #fff3e0; color: #e65100; border-color: #ffe0b2; }
.style-orange { background-color: #ffe0b2; color: #bf360c; border-color: #ffcc80; }
.style-sake { background-color: #f5f5f5; color: #212121; border-color: #e0e0e0; }
.style-spirits { background-color: #ede7f6; color: #311b92; border-color: #d1c4e9; }
.style-default { background-color: #0d47a1; color: #bbdefb; border-color: #1565c0; }
.tag-coo { background-color: #252525; color: #fff; border-color: #000; }

/* STATUS ROWS */
.sold-out-row { background-color: #f2f2f2 !important; opacity: 0.7; }
.sold-out-row td { text-decoration: line-through; color: #999; }
.low-stock-row td { color: #dc3545 !important; font-weight: 500; }
.low-stock-row .name-cell, .low-stock-row .price-cell, .low-stock-row td:last-child, .low-stock-row .loc-text, .low-stock-row .sku-text, .low-stock-row .prod-name-display { color: #dc3545 !important; font-weight: bold; }

/* CONTROLS */
.controls-container { padding: 15px 20px; background: #fafafa; border-bottom: 1px solid #ddd; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search-box { flex-grow: 1; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 1em; }
.filter-dropdown { padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 1em; min-width: 150px; }
.clear-btn { padding: 10px 15px; background-color: #fff; color: #dc3545; border: 1px solid #dc3545; border-radius: 4px; cursor: pointer; font-weight: bold; transition: all 0.2s; white-space: nowrap; }
.clear-btn:hover { background-color: #dc3545; color: white; }
.toggle-panel-btn { display:none; }
.dark-toggle-btn { padding: 8px 15px; background: #333; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 0.85em; font-weight: bold; transition: all 0.2s; display: block; width: 100%; margin-top: 10px; text-align: center; text-transform: uppercase; }
.dark-toggle-btn:hover { background: #555; }
.reset-btn { padding: 10px 15px; background-color: #fff; color: #6c757d; border: 1px solid #6c757d; border-radius: 4px; cursor: pointer; font-weight: bold; transition: all 0.2s; white-space: nowrap; }
.reset-btn:hover { background-color: #6c757d; color: white; }
.no-results { padding: 40px; text-align: center; color: #777; display: none; font-style: italic;}

/* SHELF BANNER */
#shelf-location-banner { display: none; margin: 0 20px 0 20px; padding: 10px 15px; text-align: left; font-size: 1em; font-weight: bold; border-radius: 6px; border: 1px solid transparent; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.shelf-found-single { background-color: #d4edda; color: #155724; border-color: #c3e6cb; }
.shelf-found-multi { background-color: #fff3cd; color: #856404; border-color: #ffeeba; }
.shelf-found-none { background-color: #f8d7da; color: #721c24; border-color: #f5c6cb; }
.shelf-link-action { text-decoration: underline; cursor: pointer; transition: opacity 0.2s; }
.shelf-link-action:hover { opacity: 0.7; }

/* FLOATING CALCULATOR */
#calculator-summary { position: fixed; bottom: 20px; right: 20px; width: 90%; max-width: 350px; background: #252525; color: white; padding: 12px 20px; border-radius: 50px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 10000; cursor: pointer; transition: transform 0.2s, background-color 0.2s; display: flex; justify-content: space-between; align-items: center; }
#calculator-summary:hover { transform: translateY(-2px); background-color: #333; }
#calculator-summary.pulse { animation: pulse-animation 2s infinite; }
@keyframes pulse-animation { 0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); } 100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); } }
.calc-text { font-size: 0.9em; display: flex; flex-direction: column; line-height: 1.2; }
.calc-total { font-size: 1.2em; font-weight: bold; color: #fff; }
.calc-btn { background: #28a745; color: white; padding: 8px 16px; border-radius: 30px; font-weight: bold; font-size: 0.9em; text-transform: uppercase; }

@media (max-width: 768px) { 
    #calculator-summary { bottom: 20px; right: 20px; width: auto; max-width: none; border-radius: 50px; padding: 10px 15px;} 
    #calculator-summary .calc-text { display: none; } 
}

/* MODAL */
.modal { display: none; position: fixed; z-index: 999999; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.5); backdrop-filter: blur(3px); }
.modal-content { overflow-y: auto; background-color: #fefefe; margin: 2% auto; padding: 0; width: 95%; max-width: 700px; border-radius: 8px; box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2); animation: slideDown 0.3s; display: flex; flex-direction: column; max-height: 90vh; overscroll-behavior: none; }
@keyframes slideDown { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header { padding: 15px 20px; background-color: #252525; color: white; border-top-left-radius: 8px; border-top-right-radius: 8px; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.modal-header h2 { margin: 0; font-size: 1.2rem; }
.close-btn { color: #aaa; font-size: 28px; font-weight: bold; cursor: pointer; }
.modal-body { padding: 20px; flex-grow: 1; }

/* --- NEW SPLIT TABLE STYLING --- */
.modal-table-wrapper { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #eee; max-height: 35vh; overflow-y: auto; border-bottom: none; border-bottom-left-radius: 0; border-bottom-right-radius: 0; overscroll-behavior: none; }
.modal-totals-wrapper { width: 100%; border: 1px solid #eee; border-top: 2px solid #ccc; margin-bottom: 20px; background: #fafafa; border-top-left-radius: 0; border-top-right-radius: 0; }

.summary-table { width: 100%; border-collapse: collapse; margin: 0; }
.summary-table th { text-align: left; padding: 8px; color: #555; font-size: 0.9em; white-space: nowrap; position: sticky; top: -1px; background: #fafafa; z-index: 5; box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);}
.summary-table td { border-bottom: 1px solid #eee; padding: 8px; font-size: 0.9em; vertical-align: middle; }
.summary-table tr:last-child td { border-bottom: none; }
.summary-table td:nth-child(4) { min-width: 200px; white-space: normal; line-height: 1.4; } 
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Desktop alignment for totals */
.modal-totals-wrapper .summary-table td { padding: 6px 24px; }

.row-promo { background-color: #ffebee; color: #d63384; }
.row-voucher { background-color: #e6ffe6; color: #28a745; }
.row-fee { background-color: #fff4f4; color: #dc3545; }
.row-free { background-color: #f0fff4; color: #28a745; }

/* TEXT COLORS */
.instruction-text { color: #000000; font-size: 15px; border-bottom: none; margin-bottom: 14px; padding-bottom: 0px; }
.instruction-step { color: #000000; font-size: 13px; border-bottom: none; margin-bottom: 5px; padding-bottom: 0px; }

.customer-form { background: #f9f9f9; padding: 15px; border-radius: 6px; border: 1px solid #e0e0e0; }
.customer-form h3 { margin-top: 0; padding-bottom: 10px; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9em; margin-bottom: 5px; color: #333; }
.form-group input, .form-group textarea { width:100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 1em; box-sizing: border-box; resize: none;}
.modal-footer { padding: 15px 20px; background-color: #f9f9f9; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; text-align: right; font-size: 1.2em; font-weight: bold; color: #252525; border-top: 1px solid #eee; flex-shrink: 0; padding-bottom: 50px;}

.wpcf7-form { margin: 0; padding: 0; }
.wpcf7-response-output { display: none !important; } 

/* TOASTS */
#action-toast { visibility: hidden; min-width: 250px; background-color: #333; color: #fff; text-align: center; border-radius: 4px; padding: 16px; position: fixed; z-index: 10000; left: 50%; top: 30px; transform: translateX(-50%); font-size: 17px; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
#action-toast.show { visibility: visible; -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s; animation: fadein 0.5s, fadeout 0.5s 2.5s; }
@keyframes fadein { from {top: 0; opacity: 0;} to {top: 30px; opacity: 1;} }
@keyframes fadeout { from {top: 30px; opacity: 1;} to {top: 0; opacity: 0;} }
#landscape-toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); background: #252525; color: white; padding: 10px 20px; border-radius: 30px; font-size: 0.9em; z-index: 999; display: none; box-shadow: 0 4px 10px rgba(0,0,0,0.3); white-space: nowrap; border: 1px solid #444; }
.landscape-close { margin-left: 10px; cursor: pointer; font-weight: bold; opacity: 0.7; color: #ffc376; }

/* VOUCHER UI */
.promo-box { background:#eef2f7; padding:12px; border-radius:6px; border:1px dashed #b8c7ce; margin-bottom:15px; }
.promo-input-group { display:flex; gap:10px; }
.promo-input-group input { text-transform: uppercase; font-weight: bold; }
.promo-btn { padding: 8px 15px; background: #000; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 0.9em; white-space: nowrap; }

/* --- PROMO DETAILS MODAL --- */
.promo-link-text { color: #3782d3; font-weight: bold; font-size: 0.85em; margin-top: 6px; display: inline-block; cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; transition: color 0.2s; }
.promo-link-text:hover { color: #1e40af; }
#promoDetailsModal .modal-content { max-width: 400px; padding: 0; border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04); }
#promoDetailsModal .modal-header { background: #f8fafc; border-bottom: 1px solid #e2e8f0; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; border-radius: 12px 12px 0 0; }
#promoDetailsModal .modal-header h3 { margin: 0; font-size: 16px; color: #1e293b; display: flex; align-items: center; gap: 8px; }
#promoDetailsModal .modal-body { padding: 20px; background: #fff; }
.promo-detail-card { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 12px 15px; margin-bottom: 10px; }
.promo-detail-card:last-child { margin-bottom: 0; }
.promo-detail-title { font-weight: 800; color: #1e3a8a; font-size: 14px; display: block; margin-bottom: 4px; }
.promo-detail-desc { color: #334155; font-size: 13px; line-height: 1.4; }

/* DARK MODE */
body.dark-mode { background-color: #121212; color: #e0e0e0; }
body.dark-mode .tab-container, body.dark-mode .modal-content, body.dark-mode .legend-box,
body.dark-mode .customer-form, body.dark-mode .controls-container, body.dark-mode .modal-footer,
body.dark-mode .search-status-box, body.dark-mode #upsell-notification-bar { background-color: #1e1e1e; color: #fff; border-color: #333; }

/* Dark mode overrides for new sidebar */
body.dark-mode #tab-nav-container { background-color: #1e1e1e; border-right-color: #333; box-shadow: 2px 0 10px rgba(0,0,0,0.5); }
body.dark-mode .sidebar-header { background-color: #1a1a1a; border-bottom-color: #333; }
body.dark-mode #sidebar-toggle-btn { background-color: #2c2c2c; border-color: #444; color: #ddd; }
body.dark-mode #sidebar-toggle-btn:hover { background-color: #444; color: #fff; }
body.dark-mode .tab-link { color: #aaa; border-bottom-color: #333; }
body.dark-mode .tab-link:hover { background-color: #2c2c2c; color: #fff; }
body.dark-mode .tab-link.active { background-color: #252525; color: #fff; border-left-color: #ffc376; }
body.dark-mode .layout-wrapper.panels-hidden #sidebar-toggle-btn { background-color: #333; border: 1px solid #555; border-left: none; box-shadow: 3px 2px 6px rgba(0,0,0,0.8); }
body.dark-mode .layout-wrapper.panels-hidden #sidebar-toggle-btn:hover { background-color: #555; }

body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode p, body.dark-mode span, body.dark-mode label,
body.dark-mode div, body.dark-mode .legend-title { color: #f0f0f0; }
body.dark-mode .instruction-text, body.dark-mode .instruction-step { color: #ffffff !important; }
body.dark-mode .bundle-subtext { color: #ccc; }
body.dark-mode .bundle-breakdown-list { color: #ccc; }

body.dark-mode .summary-table th { color: #fff; background-color: #2c2c2c; }
body.dark-mode .modal-table-wrapper { border-color: #333; }
body.dark-mode .modal-totals-wrapper { border-color: #333; border-top: 2px solid #555; background-color: #2c2c2c; }

/* Forces SKU and Regular Price text in summary table to white in dark mode */
body.dark-mode .summary-table td span, 
body.dark-mode .summary-table td div:not([style*="color:#d63384"]) { color: #fff !important; }

/* Force remove item button to red */
.modal-remove-item { color: #dc3545 !important; transition: transform 0.2s; }
.modal-remove-item:hover { transform: scale(1.2); }

body.dark-mode .row-promo { background-color: #ce4465; color: #ff8fb3; }
body.dark-mode .row-voucher { background-color: #1b3a1b; color: #4ade80; }
body.dark-mode .row-fee { background-color: #3f1d1d; color: #f87171; }
body.dark-mode .row-free { background-color: #1b3a1b; color: #4ade80; }

body.dark-mode .promo-top-bar { background-color: #ffc376; color: #000; border-bottom: 1px solid #ffc376; }
body.dark-mode .discount-info { color: #ccc; }
body.dark-mode .mix-match-header td { color: #000 !important; }
body.dark-mode .wine-table th { background-color: #2c2c2c; color: #fff; border-color: #333; }
body.dark-mode .wine-table td, body.dark-mode .summary-table td, body.dark-mode .wine-table tr, body.dark-mode .summary-table tr { border-color: #333; color: #ddd; }
body.dark-mode .entry-content table:not(.variations) { border: 1px solid #333 !important; }
body.dark-mode .modal-footer { border-color: #333; }
body.dark-mode .wine-table tr:hover { background-color: #2c2c2c; }
body.dark-mode .sold-out-row { background-color: #333 !important; }
body.dark-mode .sold-out-row td { color: #666; }
body.dark-mode .low-stock-row td { color: #ff6b6b !important; } 
body.dark-mode .low-stock-row .name-cell, body.dark-mode .low-stock-row .price-cell, body.dark-mode .low-stock-row td:last-child, body.dark-mode .low-stock-row .loc-text, body.dark-mode .low-stock-row .sku-text, body.dark-mode .low-stock-row .prod-name-display { color: #ff6b6b !important; }
body.dark-mode .wine-table tr.active-row { background-color: #1b3a1b !important; border-left-color: #28a745; }
body.dark-mode .row-in-bundle { background-color: #3a331a !important; }
body.dark-mode .row-in-bundle td:first-child::after { color: #ffeeba; }
body.dark-mode .wine-table td:last-child { color: white; }
body.dark-mode .strikethrough-price { color: #aaa !important; text-decoration-color: #ff6b6b !important; }
body.dark-mode input, body.dark-mode select, body.dark-mode textarea { background-color: #333; color: #fff !important; border-color: #555; }
body.dark-mode ::placeholder { color: #bbb; opacity: 1; }
body.dark-mode .dark-toggle-btn { background: #f0f0f0; color: #333; }
body.dark-mode .dark-toggle-btn:hover { background: #fff; }
body.dark-mode #search-status-text strong { color: #fff; }
body.dark-mode .switch-label { color: #f0f0f0; }
body.dark-mode #upsell-notification-bar { background-color: #002752; color: #fff; border-color: #004085; }
body.dark-mode .upsell-label { color: #fff; }
body.dark-mode #landscape-toast { background: #f9f9f9; color: #252525; border-color: #ccc;}
body.dark-mode .landscape-close { color: #d63384; }
body.dark-mode .shelf-found-single { background-color: #1b3a1b; color: #d4edda; border-color: #28a745; }
body.dark-mode .shelf-found-multi { background-color: #3a331a; color: #ffeeba; border-color: #856404; }
body.dark-mode .shelf-found-none { background-color: #3a1b1b; color: #f8d7da; border-color: #dc3545; }
body.dark-mode .btn-smart-add { background-color: #2c2c2c; border-color: #28a745; color: #28a745; }
body.dark-mode .btn-smart-add:hover { background-color: #28a745; color: #fff; }
body.dark-mode .reset-btn { background-color: #1e1e1e; color: #aaa; border-color: #aaa; }
body.dark-mode .reset-btn:hover { background-color: #aaa; color: #000; }
body.dark-mode .style-red { background-color: #5c0000; color: #ff8a80; border-color: #b71c1c; }
body.dark-mode .style-white { background-color: #4a4a00; color: #fff59d; border-color: #827717; }
body.dark-mode .style-sparkling { background-color: #004d40; color: #80cbc4; border-color: #00695c; }
body.dark-mode .style-rose { background-color: #4a002c; color: #f48fb1; border-color: #880e4f; }
body.dark-mode .style-sweet { background-color: #e65100; color: #ffcc80; border-color: #bf360c; }
body.dark-mode .style-orange { background-color: #bf360c; color: #ffab91; border-color: #d84315; }
body.dark-mode .style-sake { background-color: #424242; color: #eee; border-color: #616161; }
body.dark-mode .style-spirits { background-color: #311b92; color: #b39ddb; border-color: #4527a0; }
body.dark-mode .style-default { background-color: #0d47a1; color: #bbdefb; border-color: #1565c0; }
body.dark-mode .tag-coo { background-color: #fff; color: #000; border-color: #fff; }
body.dark-mode .loc-text { color: #fff; }
body.dark-mode .sku-text { color: #fff; }
body.dark-mode .promo-box { background-color: #2c2c2c; border-color: #555; }

/* Dark mode for Promo Modal */
body.dark-mode #promoDetailsModal .modal-header { background-color: #1e293b; border-bottom-color: #334155; }
body.dark-mode #promoDetailsModal .modal-header h3 { color: #f8fafc; }
body.dark-mode #promoDetailsModal .modal-body { background-color: #0f172a; }
body.dark-mode .promo-detail-card { background-color: #1e293b; border-color: #334155; }
body.dark-mode .promo-detail-title { color: #93c5fd; }
body.dark-mode .promo-detail-desc { color: #cbd5e1; }
body.dark-mode .promo-link-text { color: #60a5fa; }
body.dark-mode .promo-link-text:hover { color: #93c5fd; }

/* --- FIND OUT MORE BUTTON --- */
.btn-info-link { display: inline-flex; align-items: center; margin-left: 8px; padding: 2px 8px; background-color: #f0f8ff; color: #007bff; border: 1px solid #cce5ff; border-radius: 4px; font-size: 0.75em; cursor: pointer; font-weight: 600; text-transform: uppercase; vertical-align: middle; }
.btn-info-link:hover { background-color: #007bff; color: white; }
body.dark-mode .btn-info-link { background-color: #1a2a3a; color: #66b2ff; border-color: #2a3a4a; }
body.dark-mode .btn-info-link:hover { background-color: #66b2ff; color: #000; }
body.dark-mode .volume-promo-info { color: #66b2ff !important; }