/* ============================================
   KIOSK THEME — Vertical Touchscreen Layout
   Optimized for 17"/22" ELO i5 portrait mode
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    background: #0a0a0a;
    color: #fff;
    touch-action: manipulation;
    -ms-touch-action: manipulation;
    cursor: default;
}

/* Prevent text selection everywhere */
body * {
    -webkit-user-select: none;
    user-select: none;
}

/* Hide scrollbars but allow scrolling */
::-webkit-scrollbar {
    display: none;
}

/* Smooth scrolling for touch */
.scroll-container {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

/* --- App Layout --- */
#kiosk-app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

/* --- Header --- */
#kiosk-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #111;
    border-bottom: 1px solid #222;
    flex-shrink: 0;
    z-index: 100;
    min-height: 72px;
    gap: 12px;
}

.kiosk-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #222;
    border: none;
    border-radius: 16px;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
}

.kiosk-cart-btn:active {
    background: #333;
    transform: scale(0.95);
}

.cart-icon {
    width: 28px;
    height: 28px;
}

.cart-count {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 24px;
    height: 24px;
    background: #e63946;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    transition: transform 0.2s;
}

.cart-count.bump {
    animation: cartBump 0.3s ease;
}

@keyframes cartBump {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.cart-count:empty,
.cart-count[data-count="0"] {
    display: none;
}

/* --- Category Navigation (inside header) --- */
#kiosk-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    flex: 1;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

#kiosk-categories::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 50px;
    color: #aaa;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s;
    min-height: 46px;
    scroll-snap-align: start;
}

.cat-pill:active {
    transform: scale(0.95);
}

.cat-pill.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* --- Main Content --- */
#kiosk-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 16px 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

/* --- Category Sections --- */
.category-section {
    margin-bottom: 8px;
}

.category-heading {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    padding: 16px 0 12px;
    border-bottom: 1px solid #333;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding-bottom: 24px;
}

.product-card {
    background: #161616;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    border: 2px solid transparent;
}

.product-card:active {
    transform: scale(0.97);
    border-color: #333;
}

.product-card-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: #222;
    position: relative;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card-info {
    padding: 16px;
}

.product-card-name {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
    color: #fff;
}

.product-card-price {
    font-size: 20px;
    font-weight: 800;
    color: #4ecdc4;
}

.product-card-price del {
    color: #666;
    font-size: 16px;
    font-weight: 400;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    font-size: 20px;
    padding: 80px 0;
}

/* --- Product Modal --- */
.modal-overlay,
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 500;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal-overlay {
    background: rgba(0, 0, 0, 0.85);
    z-index: 499;
}

.modal-overlay.active,
.product-modal.active {
    pointer-events: auto;
    opacity: 1;
}

.product-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 94%;
    max-width: 900px;
    background: #1a1a1a;
    border-radius: 24px;
    overflow: hidden;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    display: flex;
    flex-direction: row;
}

.product-modal.active .product-modal-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-close:active {
    background: rgba(0, 0, 0, 0.9);
}

.modal-product-image {
    width: 45%;
    min-height: 380px;
    overflow: hidden;
    background: #222;
    flex-shrink: 0;
}

.modal-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.modal-product-info {
    flex: 1;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.modal-product-info h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 4px;
}

.modal-product-price {
    font-size: 22px;
    font-weight: 700;
    color: #4ecdc4;
    margin-bottom: 20px;
}

/* Variant labels */
.variant-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 8px;
}

/* Color selector */
.modal-product-colors {
    margin-bottom: 12px;
}

.swatch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.color-btn {
    height: 40px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #252525;
    border: 2px solid #444;
    border-radius: 10px;
    color: #ccc;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.color-btn:active {
    transform: scale(0.95);
}

.color-btn.selected {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Size selector */
.modal-product-sizes {
    margin-bottom: 16px;
}

.size-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-btn {
    min-width: 52px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #252525;
    border: 2px solid #444;
    border-radius: 10px;
    color: #ccc;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    padding: 0 14px;
}

.size-btn:active {
    transform: scale(0.95);
}

.size-btn.selected {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.size-btn.out-of-stock {
    opacity: 0.3;
    text-decoration: line-through;
    pointer-events: none;
}

/* Quantity selector */
.modal-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 16px;
    background: #252525;
    border-radius: 16px;
    overflow: hidden;
    max-width: 200px;
}

.qty-btn {
    width: 72px;
    height: 64px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:active {
    background: #333;
}

.qty-value {
    flex: 1;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    min-width: 60px;
}

/* Add to cart button */
.btn-add-to-cart {
    width: 100%;
    height: 58px;
    margin-top: 8px;
    background: #4ecdc4;
    color: #000;
    border: none;
    border-radius: 18px;
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: 0.3px;
}

.btn-add-to-cart:active {
    transform: scale(0.97);
    background: #3dbdb5;
}

.btn-add-to-cart.added {
    background: #2ecc71;
}

.btn-add-to-cart:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

/* --- Cart Panel --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 299;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s;
}

.cart-overlay.active {
    pointer-events: auto;
    opacity: 1;
}

.cart-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background: #1a1a1a;
    border-radius: 28px 28px 0 0;
    z-index: 300;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cart-panel.active {
    transform: translateY(0);
}

.cart-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}

.cart-panel-header h2 {
    font-size: 24px;
    font-weight: 800;
}

.cart-close-btn {
    width: 52px;
    height: 52px;
    background: #252525;
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-close-btn:active {
    background: #333;
}

.cart-panel-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
    -webkit-overflow-scrolling: touch;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #252525;
    align-items: center;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: #222;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 15px;
    color: #4ecdc4;
    font-weight: 600;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0;
    background: #252525;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-qty button {
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-qty button:active {
    background: #333;
}

.cart-item-qty span {
    min-width: 36px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

.cart-item-remove {
    width: 48px;
    height: 48px;
    background: #2a1a1a;
    border: none;
    border-radius: 12px;
    color: #e63946;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-item-remove:active {
    background: #3a1a1a;
}

.cart-empty-msg {
    text-align: center;
    color: #666;
    font-size: 18px;
    padding: 60px 0;
}

/* Cart footer */
.cart-panel-footer {
    padding: 20px 24px 32px;
    border-top: 1px solid #333;
    flex-shrink: 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 800;
}

#cart-total-amount {
    color: #4ecdc4;
}

.cart-actions {
    display: flex;
    gap: 12px;
}

.btn-checkout {
    flex: 2;
    height: 64px;
    background: #00bf63;
    border: none;
    border-radius: 16px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-checkout:active {
    background: #00a654;
    transform: scale(0.98);
}

.btn-continue-shopping {
    flex: 1;
    height: 64px;
    background: #222;
    border: 2px solid #444;
    border-radius: 16px;
    color: #ccc;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.btn-continue-shopping:active {
    background: #333;
}

.cart-actions-secondary {
    margin-top: 10px;
    text-align: left;
}

.btn-clear-cart {
    background: none;
    border: none;
    color: #e63946;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
}

.btn-clear-cart:active {
    opacity: 0.7;
}

/* --- Sticky Checkout Bar --- */
.checkout-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: #111;
    border-top: 1px solid #2a2a2a;
}

.checkout-bar-clear {
    background: none;
    border: none;
    color: #e63946;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 12px;
    flex-shrink: 0;
}

.checkout-bar-clear:active {
    opacity: 0.7;
}

.checkout-bar-btn {
    flex: 1;
    height: 56px;
    background: #00bf63;
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.checkout-bar-btn:active {
    background: #00a654;
    transform: scale(0.98);
}

.checkout-bar-total {
    font-weight: 800;
}

/* --- Toast Notification --- */
.kiosk-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #2ecc71;
    color: #000;
    padding: 18px 36px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.kiosk-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --- WooCommerce overrides --- */
.woocommerce-notices-wrapper,
.woocommerce-message,
.woocommerce-info,
.storefront-handheld-footer-bar,
.woocommerce-breadcrumb {
    display: none !important;
}

/* --- Responsive: wider screens (22") get 3 columns --- */
@media (min-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */

.kiosk-checkout {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.checkout-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    border-bottom: 1px solid #222;
    flex-shrink: 0;
}

.checkout-back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    padding: 12px 16px;
    background: #222;
    border-radius: 12px;
    transition: background 0.15s;
}

.checkout-back-btn:active {
    background: #333;
}

.checkout-header h1 {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
}

.checkout-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 24px;
}

/* --- WooCommerce Checkout Form Styling --- */
.checkout-body .woocommerce {
    max-width: 700px;
    margin: 0 auto;
}

/* Hide coupon, login, and other non-kiosk elements */
.woocommerce-form-coupon-toggle,
.woocommerce-form-login-toggle,
.woocommerce-form-coupon,
.showlogin,
.showcoupon,
.woocommerce-privacy-policy-text,
#ship-to-different-address {
    display: none !important;
}

/* Section headings */
.checkout-body h3,
.checkout-body .woocommerce-checkout h3 {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
}

/* Hide additional information section */
.checkout-body .woocommerce-additional-fields {
    display: none !important;
}

/* Form rows */
.checkout-body .woocommerce-billing-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkout-body .form-row {
    margin-bottom: 0;
    flex: 1 1 100%;
}

.checkout-body .form-row-first,
.checkout-body .form-row-last {
    flex: 1 1 calc(50% - 6px);
}

/* Labels */
.checkout-body label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #ccc;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-body label .required {
    color: #e63946;
}

.checkout-body label .optional {
    color: #777;
    font-weight: 400;
    text-transform: none;
}

/* Inputs */
.checkout-body input[type="text"],
.checkout-body input[type="email"],
.checkout-body input[type="tel"],
.checkout-body input[type="number"],
.checkout-body input[type="password"],
.checkout-body textarea,
.checkout-body select,
.checkout-body .select2-container .select2-selection--single {
    width: 100%;
    height: 56px;
    padding: 0 18px;
    background: #252525;
    border: 2px solid #333;
    border-radius: 14px;
    color: #fff;
    font-size: 18px;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    transition: border-color 0.15s;
}

.checkout-body textarea {
    height: auto;
    min-height: 100px;
    padding: 16px 18px;
    resize: none;
}

.checkout-body input:focus,
.checkout-body textarea:focus,
.checkout-body select:focus {
    border-color: #4ecdc4;
}

.checkout-body input::placeholder,
.checkout-body textarea::placeholder {
    color: #888;
}

/* Select2 dropdown overrides */
.checkout-body .select2-container .select2-selection--single {
    display: flex;
    align-items: center;
}

.checkout-body .select2-container .select2-selection__rendered {
    color: #fff;
    line-height: 56px;
    padding: 0;
}

.checkout-body .select2-container .select2-selection__arrow {
    top: 50%;
    transform: translateY(-50%);
    right: 12px;
}

.select2-dropdown {
    background: #252525 !important;
    border: 2px solid #444 !important;
    border-radius: 14px !important;
    overflow: hidden;
}

.select2-results__option {
    color: #fff !important;
    padding: 14px 18px !important;
    font-size: 17px !important;
}

.select2-results__option--highlighted {
    background: #4ecdc4 !important;
    color: #000 !important;
}

/* Order review table */
.checkout-body .woocommerce-checkout-review-order {
    margin-top: 28px;
}

.checkout-body .woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.checkout-body .woocommerce-checkout-review-order-table th,
.checkout-body .woocommerce-checkout-review-order-table td {
    padding: 14px 0;
    border-bottom: 1px solid #252525;
    color: #ccc;
    font-size: 17px;
    text-align: left;
}

.checkout-body .woocommerce-checkout-review-order-table th {
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.checkout-body .woocommerce-checkout-review-order-table .cart_item td {
    color: #fff;
}

.checkout-body .woocommerce-checkout-review-order-table .order-total td,
.checkout-body .woocommerce-checkout-review-order-table .order-total th {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    border-bottom: none;
    padding-top: 20px;
}

.checkout-body .woocommerce-checkout-review-order-table .order-total td .amount {
    color: #4ecdc4;
}

/* Payment methods — hidden in kiosk mode (single gateway auto-selected) */
.checkout-body .wc_payment_methods {
    list-style: none;
    padding: 0;
    display: none !important;
    margin: 0 0 24px;
}

.checkout-body .wc_payment_method {
    background: #222;
    border: 2px solid #333;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.15s;
}

.checkout-body .wc_payment_method.active,
.checkout-body .wc_payment_method:has(input:checked) {
    border-color: #4ecdc4;
}

.checkout-body .wc_payment_method label {
    font-size: 17px;
    color: #fff;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    margin: 0;
}

.checkout-body .wc_payment_method input[type="radio"] {
    accent-color: #4ecdc4;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
}

.checkout-body .payment_box {
    padding: 12px 0 0 30px;
    color: #888;
    font-size: 15px;
}

/* Place order button */
.checkout-body #place_order {
    width: 100%;
    height: 72px;
    background: #00bf63;
    color: #fff;
    border: none;
    border-radius: 18px;
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s;
    margin-top: 12px;
    -webkit-appearance: none;
}

.checkout-body #place_order:active {
    transform: scale(0.97);
    background: #00a654;
}

/* Terms checkbox */
.checkout-body .woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 16px;
}

.checkout-body .woocommerce-terms-and-conditions-wrapper label {
    font-size: 15px;
    color: #888;
    text-transform: none;
    letter-spacing: 0;
}

/* ============================================
   ORDER CONFIRMATION / THANK YOU
   ============================================ */

.checkout-body .woocommerce-order {
    text-align: center;
    padding: 60px 20px;
}

.checkout-body .woocommerce-thankyou-order-received {
    font-size: 28px;
    font-weight: 800;
    color: #4ecdc4;
    margin-bottom: 24px;
}

.checkout-body .woocommerce-order-overview {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
}

.checkout-body .woocommerce-order-overview li {
    background: #222;
    border-radius: 14px;
    padding: 16px 24px;
    text-align: center;
}

.checkout-body .woocommerce-order-overview li strong {
    display: block;
    color: #fff;
    font-size: 20px;
    margin-top: 4px;
}

.checkout-body .woocommerce-order-details {
    text-align: left;
    margin-top: 32px;
}

/* ============================================
   BUNDLE & SAVE
   ============================================ */

/* Badge on product grid cards */
.product-bundle-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #000;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 8px;
    z-index: 2;
}

/* Bundle upsell modal */
.bundle-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 700;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s;
}

.bundle-overlay.active {
    pointer-events: auto;
    opacity: 1;
}

.bundle-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 750;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s;
}

.bundle-modal.active {
    pointer-events: auto;
    opacity: 1;
}

.bundle-modal-content {
    background: #1a1a1a;
    border-radius: 24px;
    padding: 32px 28px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.25s ease;
}

.bundle-modal.active .bundle-modal-content {
    transform: scale(1);
}

.bundle-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #000;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.bundle-modal-image {
    margin-bottom: 20px;
}

.bundle-child-images {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.bundle-child {
    flex: 1;
    text-align: center;
    max-width: 140px;
}

.bundle-child-img {
    width: 100%;
    aspect-ratio: 1;
    background: #222;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 8px;
}

.bundle-child-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.bundle-child-name {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #aaa;
    line-height: 1.3;
    margin-bottom: 2px;
}

.bundle-child-price {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #666;
    text-decoration: line-through;
}

/* Plus signs between items */
.bundle-child + .bundle-child::before {
    content: "+";
    display: block;
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translate(-50%, -80%);
    color: #666;
    font-size: 18px;
    font-weight: 700;
}

.bundle-child {
    position: relative;
}

.bundle-modal-content h2 {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.bundle-pricing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.bundle-original {
    font-size: 20px;
    color: #666;
}

.bundle-original del {
    text-decoration: line-through;
}

.bundle-price {
    font-size: 28px;
    font-weight: 800;
    color: #4ecdc4;
}

.bundle-savings-tag {
    display: inline-block;
    background: rgba(78, 205, 196, 0.15);
    color: #4ecdc4;
    font-size: 16px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.bundle-includes {
    display: none;
}

.btn-get-bundle {
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #000;
    border: none;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 10px;
}

.btn-get-bundle:active {
    transform: scale(0.97);
}

.btn-no-thanks {
    width: 100%;
    height: 50px;
    background: transparent;
    border: 2px solid #444;
    border-radius: 14px;
    color: #888;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.btn-no-thanks:active {
    background: #252525;
}

/* Bundle size picker modal */
.bundle-sizes-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 800;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.bundle-sizes-modal.active {
    display: flex;
}

.bundle-sizes-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 790;
    display: none;
}

.bundle-sizes-overlay.active {
    display: block;
}

.bundle-sizes-content {
    background: #1a1a1a;
    border-radius: 24px;
    padding: 32px 28px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    max-height: 85vh;
    overflow-y: auto;
}

.bundle-sizes-item {
    background: #222;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    text-align: left;
}

.bundle-sizes-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.bundle-sizes-item-img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: #333;
    flex-shrink: 0;
}

.bundle-sizes-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.bundle-sizes-item-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.bundle-sizes-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bundle-size-btn {
    min-width: 52px;
    height: 42px;
    padding: 0 14px;
    background: #333;
    border: 2px solid #444;
    border-radius: 10px;
    color: #ccc;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.bundle-size-btn.selected {
    background: rgba(78, 205, 196, 0.15);
    border-color: #4ecdc4;
    color: #4ecdc4;
}

.bundle-size-btn:active {
    transform: scale(0.95);
}

/* --- Address Autocomplete Dropdown --- */
.kiosk-address-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #252525;
    border: 2px solid #444;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    margin-top: 6px;
    z-index: 10000;
    overflow: hidden;
    max-height: 300px;
    overflow-y: auto;
}

.kiosk-address-item {
    padding: 16px 18px;
    border-top: 1px solid #333;
    cursor: pointer;
    color: #ccc;
    font-size: 16px;
    line-height: 1.4;
}

.kiosk-address-item:first-child {
    border-top: none;
}

.kiosk-address-item:hover,
.kiosk-address-item:active {
    background: #333;
    color: #fff;
}

/* Address field indicator */
.kiosk-address-autocomplete input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    padding-right: 48px !important;
}

/* --- Address Verification Modal --- */
.addr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.addr-modal {
    background: #1a1a1a;
    border-radius: 24px;
    padding: 32px 28px;
    width: 100%;
    max-width: 520px;
}

.addr-modal h3 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    border: none !important;
    padding: 0 !important;
}

.addr-modal-sub {
    font-size: 16px;
    color: #888;
    margin-bottom: 24px;
}

.addr-option {
    background: #252525;
    border: 2px solid #333;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.addr-option:active {
    transform: scale(0.98);
}

.addr-suggested {
    border-color: #4ecdc4;
}

.addr-suggested:hover,
.addr-suggested:active {
    background: #1a2e2c;
}

.addr-entered:hover,
.addr-entered:active {
    background: #2a2a2a;
}

.addr-option-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 8px;
}

.addr-suggested .addr-option-label {
    color: #4ecdc4;
}

.addr-option-value {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    line-height: 1.5;
}

.addr-modal-cancel {
    width: 100%;
    height: 56px;
    background: transparent;
    border: 2px solid #444;
    border-radius: 14px;
    color: #aaa;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.15s;
}

.addr-modal-cancel:active {
    background: #252525;
}

/* --- Animations --- */
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
