/**
 * The Bread Queen - Frontend Cart Styles
 * Path: bread-queen-cart/assets/css/bq-frontend.css
 */

/* ========================================= */
/* 1. GLOBAL VARIABLES & TYPOGRAPHY          */
/* ========================================= */
.bq-builder-app, .global-cart-mount, .woocommerce-account {
    --builder-max-width: 1300px;
    --color-background: transparent;
    --color-foreground: #000000;
    --color-primary-button-bg: #F25841;
    --color-primary-button-text: #FFFFFF;
    --color-border: #E6E6E6;
    --font-heading: var(--e-global-typography-primary-font-family, "Corben", serif);
    --font-body: var(--e-global-typography-text-font-family, "Instrument Sans", sans-serif);
    font-family: var(--font-body);
    color: var(--color-foreground);
    line-height: 1.5;
}
.global-cart-mount * { box-sizing: border-box; }
.global-cart-mount h2, .global-cart-mount h3, .global-cart-mount h4 { 
    font-family: var(--font-heading); 
    margin-top: 0; 
}

/* ========================================= */
/* 2. GLOBAL WOOCOMMERCE ANTI-PURPLE RESET   */
/* ========================================= */
:root {
    --woocommerce-primary: #F25841 !important;
    --woocommerce-primary-text: #ffffff !important;
}

/* Target default WooCommerce purple links and hover states specifically to avoid bleeding into custom builder elements */
.woocommerce-MyAccount-navigation-link a,
.woocommerce-breadcrumb a,
.woocommerce-message a,
.woocommerce-info a,
.woocommerce-account .woocommerce-MyAccount-content a:not(.button):not(.btn),
.woocommerce-order-details a,
.woocommerce-customer-details a,
.bq-unified-details-header a { 
    color: #F25841;
    text-decoration: none;
    transition: color 0.2s ease; 
}

.woocommerce-MyAccount-navigation-link a:hover,
.woocommerce-breadcrumb a:hover,
.woocommerce-message a:hover,
.woocommerce-info a:hover,
.woocommerce-account .woocommerce-MyAccount-content a:not(.button):not(.btn):hover,
.woocommerce-order-details a:hover,
.woocommerce-customer-details a:hover,
.bq-unified-details-header a:hover { 
    color: #bf4533 !important; 
    text-decoration: underline;
}

/* Override Woo Buttons safely so they retain shape but lose the purple */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce #respond input#submit.alt {
    transition: all 0.2s ease !important;
}

/* Hard kill elementor purple on close/remove icons in slideout */
.global-cart-mount .drawer-close:hover,
.global-cart-mount .drawer-close:focus,
.global-cart-mount .drawer-close:active,
.slideout-drawer .drawer-close:hover,
.global-cart-mount .bq-cart-item-remove:hover,
.global-cart-mount .bq-cart-item-remove:focus,
.global-cart-mount .bq-cart-item-remove:active,
.slideout-drawer .bq-cart-item-remove:hover {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.global-cart-mount .drawer-close:hover {
    color: #000000 !important;
}
.global-cart-mount .bq-cart-item-remove,
.global-cart-mount .bq-cart-item-remove i,
.slideout-drawer .bq-cart-item-remove,
.slideout-drawer .bq-cart-item-remove i {
    color: #000000 !important;
}
.global-cart-mount .bq-cart-item-remove:hover,
.global-cart-mount .bq-cart-item-remove:hover i,
.slideout-drawer .bq-cart-item-remove:hover,
.slideout-drawer .bq-cart-item-remove:hover i {
    color: #000000 !important;
    opacity: 0.7;
}

/* Fix generic Woo notices and star ratings defaulting to purple */
.woocommerce-message, .woocommerce-error, .woocommerce-info {
    border-top-color: #F25841 !important;
}
.woocommerce-message::before, .woocommerce-info::before {
    color: #F25841 !important;
}
.woocommerce-store-notice {
    background-color: #F25841 !important;
}
.woocommerce .star-rating span::before,
.woocommerce .star-rating::before,
.woocommerce p.stars a::before {
    color: #F25841 !important;
}

/* Remove icon focus fix */
.woocommerce a.remove:hover, .woocommerce a.remove:focus, .woocommerce a.remove:active,
.woocommerce-cart table.shop_table td.product-remove a.remove:hover,
.woocommerce-cart table.shop_table td.product-remove a.remove:focus,
.woocommerce-cart table.shop_table td.product-remove a.remove:active {
    background-color: transparent !important;
    color: #000000 !important;
    text-decoration: none !important;
    outline: none !important;
}

*:focus {
    outline-color: #F25841 !important;
}

/* ========================================= */
/* 3. ELEMENTOR CART OVERRIDES               */
/* ========================================= */
.elementor-menu-cart__container { display: none !important; }
.elementor-menu-cart__toggle_wrapper.elementor-active .elementor-menu-cart__container { display: none !important; }

/* ========================================= */
/* 4. WCSATT NATIVE STYLING OVERRIDES        */
/* ========================================= */
.wcsatt-options-wrapper-radio { margin-bottom: 24px !important; }
.wcsatt-options-prompt-radios { list-style: none !important; padding: 0 !important; margin: 0 !important; display: flex; flex-direction: column; gap: 12px; }
.wcsatt-options-prompt-radio { background: #fff; border: 2px solid #e5e7eb !important; border-radius: 12px !important; padding: 20px !important; transition: all 0.2s; margin: 0 !important; cursor: pointer; }
.wcsatt-options-prompt-radio:has(input:checked) { border-color: #F25841 !important; background: #fff8f7 !important; }
.wcsatt-options-prompt-label { display: flex !important; align-items: center; cursor: pointer; margin: 0 !important; width: 100%; }
.wcsatt-options-prompt-action { display: flex !important; width: 100% !important; justify-content: space-between !important; align-items: center !important; }
.bq-sub-title, .bq-once-title { font-weight: 600 !important; font-size: 1rem !important; color: #111 !important; }
.wcsatt-options-prompt-label .price, .wcsatt-options-prompt-label .bq-once-price { margin-left: auto; font-weight: 600 !important; color: #111 !important; font-size: 1.05rem !important; }
.wcsatt-options-prompt-label .price del { color: #9ca3af !important; font-size: 0.85rem !important; margin-right: 4px !important; font-weight: 400 !important; }
.wcsatt-options-prompt-label .subscription-details { display: none !important; }
.wcsatt-options-prompt-action-input[type="radio"] { appearance: none; -webkit-appearance: none; width: 22px !important; height: 22px !important; border: 2px solid #d1d5db !important; border-radius: 50% !important; margin-right: 12px !important; margin-left: 0 !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; position: relative; background: #fff; flex-shrink: 0; cursor: pointer; }
.wcsatt-options-prompt-action-input[type="radio"]:checked { border-color: #F25841 !important; }
.wcsatt-options-prompt-action-input[type="radio"]:checked::after { content: ""; width: 10px; height: 10px; background: #F25841; border-radius: 50%; position: absolute; }
.bq-native-benefits-list { margin-top: 1rem; padding: 0; list-style: none; display: block !important; margin-left: 34px; }
.bq-native-benefit-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #4b5563; margin-bottom: 6px; font-weight: 400; }
.bq-native-benefit-item i { color: #F25841; }
.wcsatt-options-product-wrapper { display: none !important; }

/* TASK 1: Hide Add To Subscription action label UNLESS user has active subscription */
body:not(.bq-has-active-sub) .wcsatt-add-to-subscription-action-label { display: none !important; }

/* ========================================= */
/* 5. NATIVE WOO QUANTITY & ADD TO CART      */
/* ========================================= */
.e-atc-qty-button-holder { display: flex !important; align-items: stretch !important; gap: 12px !important; width: 100% !important; margin-top: 1rem !important; }
form.cart .quantity { margin: 0 !important; float: none !important; }
.bq-native-qty-wrapper { display: inline-flex !important; align-items: center; background-color: #ffffff !important; border: 1px solid #e5e7eb; border-radius: 30px !important; height: 52px; padding: 0 4px; min-width: 110px; }
.bq-native-qty-btn { width: 32px; height: 32px; border-radius: 30px; border: none; background-color: #ffffff !important; color: #f25841 !important; font-weight: 600; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; padding: 0px !important; }
.bq-native-qty-btn:hover { background-color: #fce7e4 !important; }
.bq-native-qty-wrapper input[type="number"] { -moz-appearance: textfield; width: 40px !important; text-align: center !important; background: transparent !important; border: none !important; font-weight: 600 !important; font-size: 1.05rem !important; color: #111 !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; }
.bq-native-qty-wrapper input[type="number"]::-webkit-inner-spin-button, .bq-native-qty-wrapper input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Task 3 & 4 Setup: Custom Add to Cart Button Restyling */
.bq-custom-add-to-cart-wrapper form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; }
.bq-custom-add-to-cart-wrapper form.cart .quantity { margin: 0 !important; }
.bq-custom-add-to-cart-wrapper form.cart button.single_add_to_cart_button { margin: 0 !important; flex-grow: 1; }
.bq-custom-add-to-cart-wrapper form.variations_form { display: block; width: 100%; }

/* RESCUED: Removed any global display:none on .single_variation_wrap to save Stripe Express Buttons natively */
.bq-custom-add-to-cart-wrapper form.variations_form .single_variation_wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin-top: 15px; width: 100%; }
.bq-custom-add-to-cart-wrapper form.variations_form .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; width: 100%; }

.bq-custom-add-to-cart-wrapper form.cart .single_add_to_cart_button {
    height: auto !important; border-radius: 100px !important; font-weight: 500 !important; font-size: 16px !important; color: #f9f1e5 !important; background-color: #f25841 !important; box-shadow: 6px 6px 0px 0px #fd8b28 !important; flex-grow: 1 !important; display: flex !important; align-items: center !important; justify-content: center !important; margin: 0 !important; padding: 18px 24px !important; border: none !important; transition: all 0.15s ease !important; cursor: pointer !important;
}
.bq-custom-add-to-cart-wrapper form.cart .single_add_to_cart_button:not(:disabled):hover { transform: translate(2px, 2px) !important; box-shadow: 4px 4px 0px 0px #fd8b28 !important; background-color: #000000 !important; }
.bq-custom-add-to-cart-wrapper form.cart .single_add_to_cart_button:not(:disabled):active { transform: translate(6px, 6px) !important; box-shadow: 0px 0px 0px 0px #fd8b28 !important; background-color: #000000 !important; outline: none !important; }

/* ========================================= */
/* 6. BUTTONS & UI UTILITIES                 */
/* ========================================= */
.global-cart-mount .btn, .bq-builder-app .btn { display: inline-flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-radius: 100px; text-decoration: none; font-weight: 600; font-size: 15px; cursor: pointer; transition: all 0.15s ease; border: none; text-align: center; width: 100%; line-height: 1.2; font-family: var(--font-body); }
.global-cart-mount .btn-primary, .bq-builder-app .btn-primary { background-color: #f25841; color: #f9f1e5 !important; box-shadow: 4px 4px 0px 0px #fd8b28; }
.global-cart-mount .btn-primary:not(:disabled):hover, .bq-builder-app .btn-primary:not(:disabled):hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0px 0px #fd8b28; background-color: #000000 !important; }
.global-cart-mount .btn-primary:not(:disabled):active, .bq-builder-app .btn-primary:not(:disabled):active { transform: translate(4px, 4px); box-shadow: 0px 0px 0px 0px #fd8b28; background-color: #000000 !important; }
.global-cart-mount .btn-secondary, .bq-builder-app .btn-secondary { background-color: #ffffff; color: #374151 !important; border: 2px solid #e5e7eb; box-shadow: 4px 4px 0px 0px #e5e7eb; padding: 12px 20px; }
.global-cart-mount .btn-secondary:not(:disabled):hover, .bq-builder-app .btn-secondary:not(:disabled):hover { border-color: #d1d5db; transform: translate(2px, 2px); box-shadow: 2px 2px 0px 0px #d1d5db; }
.global-cart-mount .btn-secondary:not(:disabled):active, .bq-builder-app .btn-secondary:not(:disabled):active { transform: translate(4px, 4px); box-shadow: 0px 0px 0px 0px #d1d5db; }

/* Status Bars */
.active-status-bar { width: 100%; background: #fff8f7; border: 1px solid #ffd8d3; border-radius: 12px; padding: 4px 4px 4px 16px; display: flex; align-items: center; justify-content: space-between; height: 48px; }
.active-status-bar.once-status { background: #f9fafb; border-color: #e5e7eb; }
.status-text { font-weight: 600; font-size: 0.85rem; color: var(--color-primary-button-bg); }
.once-status .status-text { color: #374151; }
.qty-selector { display: flex; align-items: center; background: white; border: 1px solid #ffd8d3; border-radius: 8px; height: 38px; padding: 0 4px; gap: 8px; }
.once-status .qty-selector { border-color: #e5e7eb; }
.qty-btn { width: 28px; height: 28px; border-radius: 6px; border: none; background: transparent; color: #333; font-weight: 500; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s; }
.qty-btn:hover { background: #f3f4f6; }
.qty-val { font-weight: 600; font-size: 0.9rem; min-width: 15px; text-align: center; }

/* Neo-Brutalist Utility Buttons */
.bq-btn-brand-small {
    background-color: #F25841 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 100px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    font-family: "Hobeaux All", sans-serif !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease !important;
    box-shadow: 4px 4px 0px 0px #fd8b28 !important;
    text-decoration: none !important;
}
.bq-btn-brand-small:hover {
    background-color: #000000 !important;
}
.bq-btn-brand-small:active {
    transform: translate(2px, 2px) !important;
    box-shadow: 0px 0px 0px 0px #fd8b28 !important;
}

/* ========================================= */
/* 7. SINGLE PRODUCT SHORTCODE STYLES        */
/* ========================================= */
/* V2 Modal Layout */
.product-actions-v2 { display: flex; flex-direction: column; align-items: stretch; width: 100%; margin-top: auto; gap: 8px; }
@media(min-width: 768px) {
    .product-actions-v2.modal-layout { flex-direction: row; align-items: center; justify-content: center; gap: 15px; }
    .product-actions-v2.modal-layout > * { flex: 1; margin-top: 0 !important; }
}

/* Default V2 Inline (Desktop Row, Mobile Row 50/50 unless narrow) */
.bq-single-action-mount-2 .product-actions-v2 { flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.bq-single-action-mount-2 .product-actions-v2 > * { flex: 1 1 calc(50% - 10px); min-width: 120px; margin-top: 0 !important; }

/* Default V3 Split 50/50 Layout (Row wrap) */
.product-actions-v3-inline { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; width: 100%; align-items: stretch; }
.product-actions-v3-inline > * { flex: 1 1 calc(50% - 10px); min-width: 130px; margin-top: 0 !important; }
.product-actions-v3-inline .btn.bq-btn-split { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px; gap: 4px; height: auto; min-height: 64px; width: 100%; }
.product-actions-v3-inline .active-status-bar.bq-btn-split { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px; height: auto; min-height: 64px; gap: 6px; width: 100%; }
.product-actions-v3-inline .bq-btn-title { font-size: 14px; line-height: 1; font-weight: 600; text-align: center; }
.product-actions-v3-inline .bq-btn-price { font-size: 13px; font-weight: 500; opacity: 0.9; line-height: 1; text-align: center; }

/* Stacked Layout Overrides (Forced Column) */
.bq-layout-stacked .product-actions-v2,
.bq-layout-stacked .product-actions-v3-inline { flex-direction: column !important; flex-wrap: nowrap !important; }
.bq-layout-stacked .product-actions-v2 > *,
.bq-layout-stacked .product-actions-v3-inline > * { flex: 1 1 auto !important; width: 100% !important; max-width: 100% !important; }

/* Only stack naturally on extremely narrow screens (like watches) */
@media(max-width: 280px) { 
    .product-actions-v3-inline, 
    .bq-single-action-mount-2 .product-actions-v2 { flex-direction: column; } 
}

/* Single Product Radio UI */
.single-product-actions-v3 { display: flex; flex-direction: column; gap: 0.75rem; width: 100%; max-width: 500px; }
.purchase-option { background: #ffffff; border: 2px solid #e5e7eb; border-radius: 12px; padding: 1.25rem; cursor: pointer; transition: all 0.2s ease; position: relative; }
.purchase-option.active { border-color: #6b7280; background: #f9fafb; }
.purchase-option.active.is-sub { border-color: var(--color-primary-button-bg); background: #fff8f7; }
.option-header { display: flex; justify-content: space-between; align-items: center; }
.option-label-group { display: flex; align-items: center; gap: 12px; font-weight: 600;}
.custom-radio { width: 22px; height: 22px; border: 2px solid #d1d5db; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: white; }
.purchase-option.active .custom-radio { border-color: #000; }
.purchase-option.active.is-sub .custom-radio { border-color: var(--color-primary-button-bg); }
.purchase-option.active .custom-radio::after { content: ""; width: 10px; height: 10px; background: #000; border-radius: 50%; }
.purchase-option.active.is-sub .custom-radio::after { background: var(--color-primary-button-bg); }
.old-price { text-decoration: line-through; color: #9ca3af; font-size: 0.85rem; margin-right: 4px; }
.new-price { font-weight: 600; font-size: 1.05rem; color: #111; }
.benefits-list { margin-top: 1rem; padding: 0; list-style: none; display: none; }
.purchase-option.active .benefits-list { display: block; }
.benefit-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #4b5563; margin-bottom: 6px; }
.benefit-item i { color: var(--color-primary-button-bg); }
.footer-action-row { display: flex; gap: 12px; margin-top: 0.5rem; align-items: stretch; }
.v3-add-btn { height: auto; background: #f25841; color: #f9f1e5 !important; border: none; border-radius: 100px; font-weight: 500; font-size: 16px; flex-grow: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px 24px; box-shadow: 6px 6px 0px 0px #fd8b28; transition: all 0.15s ease; }
.v3-add-btn:hover { transform: translate(2px, 2px); box-shadow: 4px 4px 0px 0px #fd8b28; background-color: #000000 !important; }

/* ========================================= */
/* 8. PRODUCT MODAL (GALLERY & TABS)         */
/* ========================================= */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 100001; opacity: 0; pointer-events: none; transition: opacity 0.3s; backdrop-filter: blur(2px); }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-content { background: #fff; width: 90%; max-width: 1150px; max-height: 90vh; border-radius: 20px; position: relative; transform: translateY(20px); transition: transform 0.3s; box-shadow: 0 10px 40px rgba(0,0,0,0.3); padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.modal-overlay.active .modal-content { transform: translateY(0); }
.close-modal { position: absolute; top: 1rem; right: 1rem; background: var(--color-primary-button-bg); color: #ffffff; border: none; font-size: 1.5rem; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; line-height: 1; transition: transform 0.2s, opacity 0.2s; z-index: 20; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.close-modal:hover { transform: scale(1.05); opacity: 0.9;}
#modal-body { display: flex; flex-direction: column; overflow: hidden; flex-grow: 1; }
.modal-body-scroll { padding: 2rem; overflow-y: auto; flex-grow: 1; }
.modal-grid { display: flex; flex-direction: column; }
.modal-image-col { order: -1; margin-bottom: 1.5rem; }
@media(min-width: 768px) { .modal-grid { display: grid; grid-template-columns: 45% 1fr; gap: 2.5rem; align-items: start; } .modal-text-col { order: 2; } .modal-image-col { order: 1; margin-bottom: 0; align-self: center; } }
.modal-footer-sticky { padding: 1.5rem 2rem; background: #ffffff; border-top: 1px solid var(--color-border); box-shadow: 0 -4px 15px rgba(0,0,0,0.03); z-index: 10; }

/* Tabs */
.modal-tabs { display: flex; flex-wrap: nowrap; border-bottom: 1px solid var(--color-border); margin-bottom: 1.5rem; gap: 1.25rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.modal-tabs::-webkit-scrollbar { display: none; }
.modal-tab { padding: 0.5rem 0; cursor: pointer; border-bottom: 2px solid transparent; font-weight: 500; color: #888; transition: all 0.2s; font-size: 0.95rem; white-space: nowrap; }
.modal-tab:hover { color: var(--color-foreground); }
.modal-tab.active { border-bottom-color: var(--color-primary-button-bg); color: var(--color-foreground); }
.modal-tab-content { display: none; font-size: 0.95rem; color: #555; line-height: 1.6; max-height: 280px; overflow-y: auto; padding-right: 10px; }
.modal-tab-content.active { display: block; animation: fadeInTab 0.3s ease; }
@keyframes fadeInTab { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Gallery */
.modal-gallery { display: flex; flex-direction: column; gap: 10px; }
.modal-main-image { width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #f5f5f5; position: relative; }
.modal-main-image img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: opacity 0.15s ease; }
.modal-thumbnails { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; }
.modal-thumb { width: 70px; height: 70px; flex-shrink: 0; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; opacity: 0.6; transition: all 0.2s; }
.modal-thumb.active { border-color: var(--color-primary-button-bg); opacity: 1; }
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.zoom-img-container { background-position: center; background-size: cover; background-repeat: no-repeat; cursor: zoom-in; position: relative; }
.zoom-img-container:hover img { opacity: 0; }
.zoom-img-container:hover { background-size: 200%; }

/* ========================================= */
/* 9. GLOBAL CART DRAWER UI                  */
/* ========================================= */
.drawer-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.5); z-index: 999998; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; backdrop-filter: blur(2px); }
.drawer-overlay.open { opacity: 1; pointer-events: all; }
.slideout-drawer { 
    position: fixed; top: 0; right: 0; width: 100%; max-width: 450px; 
    height: 100vh; height: 100dvh; /* Ensure mobile browsers don't hide footer under address bar */
    background: #ffffff; z-index: 999999; transform: translateX(100%); 
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
    box-shadow: -10px 0 40px rgba(0,0,0,0.15); display: flex; flex-direction: column; 
}
.slideout-drawer.open { transform: translateX(0); }
.drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; border-bottom: 1px solid var(--color-border); flex-shrink: 0; }
.drawer-title { font-weight: 700; font-size: 1.5rem; margin: 0; font-family: var(--font-heading); color: #111; }
.drawer-close { background: none; border: none; font-size: 2rem; cursor: pointer; color: #888; line-height: 1; padding:0; transition: color 0.2s; display: flex; align-items: center; justify-content: center; }
.drawer-body { flex-grow: 1; overflow-y: auto; padding: 1.5rem; scrollbar-width: thin; display: flex; flex-direction: column; }
.slideout-drawer.bq-updating #combined-totals, .slideout-drawer.bq-updating .bq-cart-item-total { opacity: 0.5; }
.slideout-drawer.bq-updating #checkout-btn, .slideout-drawer.bq-updating .bq-success-actions-wrap { opacity: 0.7; pointer-events: none; cursor: not-allowed; }

.bq-cart-group-sub { background: #fffaf9; border: 1px solid #ffd8d3; border-radius: 16px; padding: 16px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.bq-cart-group-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(242, 88, 65, 0.15); padding-bottom: 12px; margin-bottom: 12px; }
.bq-cart-group-title { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0; display: flex; align-items: center; gap: 8px; color: #F25841; }
.bq-cart-group-badge { background: #F25841; color: white; font-size: 10px; padding: 2px 8px; border-radius: 100px; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }

.bq-cart-item { display: flex; gap: 16px; border-bottom: 1px dashed #e5e7eb; padding: 16px 0; }
.bq-cart-item:last-child { border-bottom: none; padding-bottom: 0; }

/* Strict clip-path mask to prevent flexbox oval stretching */
.bq-cart-item-img { 
    width: 48px !important; 
    height: 48px !important; 
    min-width: 48px !important; 
    min-height: 48px !important; 
    max-width: 48px !important; 
    max-height: 48px !important; 
    object-fit: cover; 
    clip-path: circle(50% at 50% 50%); 
    -webkit-clip-path: circle(50% at 50% 50%);
    border-radius: 50%; /* Fallback */
    background: #f9fafb; 
    flex-shrink: 0; 
    align-self: flex-start;
    border: none;
}

.bq-cart-item-details { flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.bq-cart-item-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
.bq-cart-item-title { font-weight: 600; font-size: 0.9rem; color: #1f2937; text-decoration: none; transition: color 0.2s; margin: 0; padding-right: 8px; line-height: 1.2; font-family: var(--font-body); }
.bq-cart-item-title a { color: inherit; text-decoration: none; }
.bq-cart-item-title a:hover { color: #F25841; }
.bq-cart-item-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bq-cart-item-remove { border: none; cursor: pointer; padding: 0; font-size: 1rem; transition: color 0.2s; line-height: 1; display: flex; align-items: center; justify-content: center; }
.bq-cart-item-price-unit { font-size: 0.75rem; color: #6b7280; font-weight: 500; font-family: var(--font-body); }
.bq-cart-item-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }

.bq-cart-qty-ui { display: flex; align-items: center; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 100px; overflow: hidden; height: 28px; }
.bq-cart-qty-btn { width: 28px; height: 100%; background: none; border: none; color: #4b5563; font-weight: 600; cursor: pointer; transition: background 0.2s; display: flex; align-items: center; justify-content: center; padding: 0; font-family: var(--font-body); }
.bq-cart-qty-btn:hover { background: #e5e7eb; }
.bq-cart-qty-val { width: 24px; text-align: center; font-size: 0.75rem; font-weight: 600; font-family: var(--font-body); display: flex; align-items: center; justify-content: center; }
.bq-cart-item-total { font-size: 0.9rem; font-weight: 600; color: #111; font-family: var(--font-body); }

/* Drawer Success State */
.bq-success-header-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 0; text-align: center; }
#cart-items .bq-success-header-wrap .bq-success-icon-wrap { width: 64px; height: 64px; background-color: #f25841 !important; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #ffffff !important; font-size: 1.875rem; margin-bottom: 16px; box-shadow: 0 4px 15px rgba(242, 88, 65, 0.2); border: 2px solid #f25841; }
.bq-success-title { font-size: 1.5rem; line-height: 2rem; font-family: var(--font-heading); color: #000; margin-bottom: 8px; }
.bq-success-subtitle { color: #4b5563; font-weight: 500; margin-bottom: 24px; font-family: var(--font-body); font-size: 1rem;}
.bq-success-subtitle span { font-weight: 600; color: #000; }
.bq-success-actions-wrap { width: 100%; display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid #f3f4f6; padding-bottom: 32px; }
.bq-success-header-wrap .bq-success-actions-wrap .bq-btn-continue { background-color: #f25841 !important; color: white !important; border-radius: 30px !important; padding: 12px 20px; font-weight: 600 !important; font-size: 0.95rem; display: inline-flex; align-items: center; justify-content: center; transition: all 0.15s ease; border: none; cursor: pointer; box-shadow: 4px 4px 0px 0px #fd8b28 !important; font-family: var(--font-body); width: 100%; }
.bq-success-header-wrap .bq-success-actions-wrap .bq-btn-continue:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0px 0px #fd8b28 !important; }
.bq-success-header-wrap .bq-success-actions-wrap .bq-btn-checkout-alt { background-color: #fff; color: var(--color-primary-button-bg) !important; border: 1px solid #e5e7eb; border-radius: 30px !important; padding: 12px 20px; font-weight: 600 !important; font-size: 0.95rem; cursor: pointer; transition: all 0.2s ease; font-family: var(--font-body); width: 100%; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.bq-success-header-wrap .bq-success-actions-wrap .bq-btn-checkout-alt:hover { background-color: #f9fafb; border-color: #d1d5db; }

/* Stacked Upsells Fix */
.bq-upsell-stack { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding-right: 4px; }
.bq-upsell-card { border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px; background: #fff; transition: border-color 0.2s; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 1px 2px rgba(0,0,0,0.02); }
.bq-upsell-card:hover { border-color: #F25841; }
.bq-upsell-img { 
    width: 48px !important; height: 48px !important; min-width: 48px !important; min-height: 48px !important; 
    max-width: 48px !important; max-height: 48px !important; object-fit: cover; 
    clip-path: circle(50% at 50% 50%); -webkit-clip-path: circle(50% at 50% 50%);
    border-radius: 50%; background: #f9fafb; flex-shrink: 0; align-self: center; border: none; 
}
.bq-upsell-info { flex-grow: 1; text-align: left; display: flex; flex-direction: column; }
.bq-upsell-title { font-weight: 600; font-size: 0.9rem; color: #1f2937; margin-bottom: 2px; line-height: 1.2; font-family: var(--font-body); }
.bq-upsell-card a { font-weight: 600 !important; color: #222222 !important; }
.bq-upsell-price { font-size: 0.75rem; color: #6b7280; font-weight: 500; font-family: var(--font-body); }
.bq-cart-upsell-btn { width: 32px; height: 32px; background: #f9fafb; border: 1px solid #e5e7eb; color: #374151; border-radius: 50%; font-size: 1.2rem; font-weight: 600; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0; line-height: 1; }
.bq-cart-upsell-btn:hover { background: #F25841; color: #fff; border-color: #F25841; }
.bq-cart-upsell-btn-brand { background: #fff8f7; color: #F25841; border: 1px solid #ffd8d3; }
.bq-cart-upsell-btn-brand:hover { background: #F25841; color: white; border-color: #F25841; }

/* Drawer Footer */
.drawer-footer { 
    padding: 1.5rem; 
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); 
    border-top: 1px solid var(--color-border); 
    background: #fafafa; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    flex-shrink: 0;
}

.submit-btn { width: 100%; padding: 18px 24px !important; border-radius: 100px; box-shadow: 6px 6px 0px 0px #fd8b28; font-weight: 500; font-size: 16px; color: #f9f1e5 !important; border: none; background: var(--color-primary-button-bg); cursor: pointer; display: flex; justify-content: center; align-items: center; transition: all 0.15s ease; font-family: var(--font-body); }
.submit-btn:not(:disabled):hover { transform: translate(2px, 2px); box-shadow: 4px 4px 0px 0px #fd8b28; }
.submit-btn:not(:disabled):active { transform: translate(6px, 6px); box-shadow: 0px 0px 0px 0px #fd8b28; }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: translate(6px, 6px); }

/* Loaders/Toast */
.loader-container { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4rem 2rem; color: #666; font-style: italic; text-align: center; gap: 15px; font-family: var(--font-body); }
.spinner { border: 4px solid #eee; border-top: 4px solid var(--color-primary-button-bg); border-radius: 50%; width: 45px; height: 45px; animation: spin 1s linear infinite; box-sizing: border-box; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.bq-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(100px); background: #111; color: #fff; padding: 12px 24px; border-radius: 100px; font-weight: 600; opacity: 0; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); z-index: 9999999; box-shadow: 0 4px 15px rgba(0,0,0,0.2); pointer-events: none; }
.bq-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ========================================= */
/* 10. NATIVE WOOCOMMERCE CART/CHECKOUT UI   */
/* ========================================= */
.woocommerce-cart-form table.shop_table { display: flex !important; flex-direction: column !important; gap: 32px !important; border: none !important; background: transparent !important; }
.woocommerce-cart-form table.shop_table thead { display: none !important; }
.bq-cart-group-sub-tbody { display: flex !important; flex-direction: column !important; background-color: #fffaf9 !important; border: 2px solid #ffd8d3 !important; border-radius: 24px !important; padding: 32px !important; box-shadow: 0 10px 30px rgba(242, 88, 65, 0.05) !important; }
.bq-cart-group-once-tbody { display: flex !important; flex-direction: column !important; background-color: #ffffff !important; border: 2px solid #e5e7eb !important; border-radius: 24px !important; padding: 32px !important; box-shadow: 0 10px 30px rgba(0,0,0,0.02) !important; }
.woocommerce-cart-form .bq-injected-header td { border-bottom: 2px solid rgba(0,0,0,0.05) !important; padding: 0 0 16px 0 !important; margin-bottom: 16px !important; display: block !important; width: 100% !important; border-top: none !important; border-left: none !important; border-right: none !important; }
.bq-injected-header h4 { display: flex; justify-content: space-between; align-items: center; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; margin: 0 !important; font-family: var(--font-body); }
.bq-cart-group-sub-tbody .bq-injected-header h4 { color: #F25841; }
.bq-cart-group-once-tbody .bq-injected-header h4 { color: #111; }
.bq-badge { background: #F25841; color: white; font-size: 11px; padding: 4px 12px; border-radius: 100px; font-weight: 600; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }

/* Cart Row Layout */
.woocommerce-cart-form tr.cart_item { display: flex !important; flex-wrap: wrap !important; align-items: flex-end !important; padding: 24px 0 24px 100px !important; border-bottom: 1px dashed #e5e7eb !important; position: relative !important; width: 100% !important; min-height: 128px !important; }
.bq-cart-group-sub-tbody tr.cart_item:last-child, .bq-cart-group-once-tbody tr.cart_item:last-child { border-bottom: none !important; padding-bottom: 0 !important; }
.woocommerce-cart-form td { border: none !important; padding: 0 !important; background: transparent !important; }
.woocommerce-cart-form td.product-thumbnail { position: absolute !important; top: 24px !important; left: 0 !important; width: 80px !important; }
.woocommerce-cart-form td.product-thumbnail img { width: 80px !important; height: 80px !important; border-radius: 12px !important; object-fit: cover !important; border: 1px solid #e5e7eb !important; background: #f9fafb !important; }
.woocommerce-cart-form td.product-name { width: 100% !important; order: 2 !important; padding: 0 40px 0 0 !important; margin-bottom: 12px !important; display: block !important; font-family: var(--font-body) !important; font-weight: 600 !important; font-size: 1.2rem !important; line-height: 1.2 !important; color: #111 !important; }
.woocommerce-cart-form td.product-name a { color: inherit !important; text-decoration: none !important; }
.woocommerce-cart-form td.product-name a:hover { color: #F25841 !important; }
.woocommerce-cart-form td.product-price { display: none !important; }
.woocommerce-cart-form td.product-quantity { width: auto !important; order: 4 !important; }
.woocommerce-cart-form td.product-subtotal { flex-grow: 1 !important; order: 5 !important; text-align: right !important; font-weight: 600 !important; font-size: 1.1rem !important; color: #111 !important; display: flex !important; align-items: center !important; justify-content: flex-end !important; }
.woocommerce-cart-form td.product-remove { position: absolute !important; top: 24px !important; right: 0 !important; width: auto !important; }
.woocommerce-cart-form td.product-remove a.remove { background: transparent !important; color: #9ca3af !important; border: none !important; font-size: 24px !important; font-weight: 400 !important; width: 32px !important; height: 32px !important; display: flex !important; align-items: center !important; justify-content: center !important; line-height: 1 !important; transition: all 0.2s ease !important; }
.woocommerce-cart-form td.product-remove a.remove:hover { color: #ef4444 !important; transform: scale(1.1); }

/* Cart Delivery Date Picker */
.bq-cart-date-picker-wrap { background: #fffaf9; border: 1px solid #ffd8d3; border-radius: 24px; padding: 32px; margin-bottom: 32px; box-shadow: 0 4px 15px rgba(242, 88, 65, 0.05); }
.bq-cart-date-picker-wrap input[type="date"] { width: 100%; border-radius: 12px; border: 1px solid #e5e7eb; padding: 16px 20px; font-family: inherit; font-size: 1.1rem; color: #111; font-weight: 600; outline: none; transition: border-color 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.bq-cart-date-picker-wrap input[type="date"]:focus { border-color: #F25841; box-shadow: 0 0 0 3px rgba(242, 88, 65, 0.1); }

/* ========================================= */
/* 11. CHECKOUT TABLE & STEPPED UI           */
/* ========================================= */
.woocommerce-checkout-review-order-table { width: 100% !important; border-collapse: collapse !important; background: transparent !important; }
.woocommerce-checkout-review-order-table thead { display: none !important; }
#order_review_heading { cursor: pointer !important; display: flex !important; justify-content: space-between !important; align-items: center !important; color: #111 !important; user-select: none !important; transition: color 0.2s !important; border-bottom: 2px solid #e5e7eb !important; padding-bottom: 16px !important; margin-bottom: 0 !important; }
#order_review_heading:hover { color: #F25841 !important; }
#order_review_heading .bq-chevron { transition: transform 0.3s ease !important; color: #9ca3af !important; font-size: 1.2rem !important; }
#order_review_heading.bq-accordion-open .bq-chevron { transform: rotate(180deg) !important; }

.woocommerce-checkout-review-order-table tbody { display: none !important; }
body.bq-show-items .woocommerce-checkout-review-order-table tbody { display: table-row-group !important; }
.woocommerce-checkout-review-order-table tbody tr.cart_item { border-bottom: 1px dashed #e5e7eb !important; display: table-row !important; }
.woocommerce-checkout-review-order-table td { padding: 24px 0 !important; vertical-align: top !important; border: none !important; display: table-cell !important; }
.woocommerce-checkout-review-order-table td.product-name { position: relative !important; padding-left: 84px !important; padding-right: 16px !important; width: 65% !important; }
.woocommerce-checkout-review-order-table td.product-total { width: 35% !important; text-align: right !important; font-weight: 600 !important; font-size: 1.05rem !important; color: #111 !important; word-break: break-word !important; }

.woocommerce-checkout-review-order-table .bq-injected-header { display: table-row !important; }
.woocommerce-checkout-review-order-table .bq-injected-header td { padding: 24px 0 12px 0 !important; border-bottom: 2px solid rgba(0,0,0,0.05) !important; }

.bq-checkout-img { position: absolute !important; top: 24px !important; left: 0 !important; width: 64px !important; height: 64px !important; margin: 0 !important; border-radius: 12px !important; border: 1px solid #e5e7eb !important; box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important; overflow: hidden !important; }
.bq-checkout-img img { width: 100% !important; height: 100% !important; object-fit: cover !important; border: none !important; display: block !important; }
.bq-checkout-title { display: inline-block !important; font-family: var(--font-body) !important; font-weight: 600 !important; font-size: 1.05rem !important; color: #111 !important; line-height: 1.2 !important; vertical-align: middle !important; }

.woocommerce-checkout-review-order-table strong.product-quantity { display: inline-flex !important; align-items: center !important; font-size: 0.8rem !important; color: #6b7280 !important; background: #f3f4f6 !important; padding: 2px 8px !important; border-radius: 100px !important; margin-left: 8px !important; font-weight: 600 !important; vertical-align: middle !important; }
.woocommerce-checkout-review-order-table dl.variation { margin: 8px 0 0 0 !important; font-size: 0.85rem !important; color: #6b7280 !important; font-weight: 500 !important; display: block !important; }
.woocommerce-checkout-review-order-table dl.variation p { margin: 0 !important; }

/* Checkout Totals Footer */
.woocommerce-checkout-review-order-table tfoot th, .woocommerce-checkout-review-order-table tfoot td { padding: 16px 0 !important; border-bottom: 1px solid #f3f4f6 !important; display: table-cell !important; }
.woocommerce-checkout-review-order-table tfoot tr { display: table-row !important; }
.woocommerce-checkout-review-order-table tfoot tr:last-child th, .woocommerce-checkout-review-order-table tfoot tr:last-child td { border-bottom: none !important; }
.woocommerce-checkout-review-order-table tfoot th { text-align: left !important; font-weight: 600 !important; color: #6b7280 !important; }
.woocommerce-checkout-review-order-table tfoot td { text-align: right !important; font-weight: 600 !important; font-size: 1.1rem !important; color: #111 !important; }

/* Stepped Checkout UI */
.bq-checkout-steps-indicator { display: flex; gap: 12px; margin-bottom: 2rem; width: 100%; }
.bq-step-ind { flex: 1; padding: 14px 16px; text-align: center; background: #f3f4f6; border-radius: 12px; font-weight: 600; color: #9ca3af; font-size: 0.95rem; transition: all 0.3s; }
.bq-step-ind.active { background: #F25841; color: white; box-shadow: 0 4px 15px rgba(242, 88, 65, 0.2); }
.bq-checkout-step-1 { background: #ffffff; padding: 32px; border-radius: 20px; border: 1px solid #e5e7eb; margin-bottom: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.02); animation: bqFadeIn 0.4s ease; }
.bq-back-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 100px; text-decoration: none; font-weight: 600; font-size: 15px; cursor: pointer; transition: all 0.15s ease; border: 2px solid #e5e7eb; background-color: #ffffff; color: #374151 !important; box-shadow: 4px 4px 0px 0px #e5e7eb; }
.bq-back-btn:hover { border-color: #d1d5db; transform: translate(2px, 2px); box-shadow: 2px 2px 0px 0px #d1d5db; color: #111 !important; }

@keyframes bqFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Stripe Checkout Modernization */
#wc-stripe-upe-form { background-color: #f9fafb !important; border: 1px solid #e5e7eb !important; border-radius: 12px !important; padding: 20px !important; box-shadow: 0 2px 10px rgba(0,0,0,0.02) !important; margin-bottom: 20px !important; }
.wc-stripe-upe-element { border: 2px solid #e5e7eb !important; border-radius: 8px !important; padding: 4px !important; background-color: #ffffff !important; transition: border-color 0.2s ease !important; }
.wc-stripe-upe-element:hover { border-color: #d1d5db !important; }
.wc-stripe-upe-element.StripeElement--focus { border-color: #F25841 !important; box-shadow: 0 0 0 3px rgba(242, 88, 65, 0.1) !important; }

/* Re-engineered Gifting Checkbox Wrap Fix */
.woocommerce-checkout-review-order-table .wcsg_add_recipient_fields_container { margin: 8px 0 0 0 !important; display: block !important; width: 100% !important; }
.wcsg_add_recipient_fields_container > label { display: inline-flex !important; align-items: flex-start !important; font-weight: 600 !important; color: #F25841 !important; font-size: 0.85rem !important; cursor: pointer !important; margin: 0 !important; line-height: 1.3 !important; text-align: left !important; white-space: normal !important; }
.wcsg_add_recipient_fields_container > input[type="checkbox"] { width: 16px !important; height: 16px !important; margin: 2px 8px 0 0 !important; flex-shrink: 0 !important; }

/* ========================================= */
/* 12. TRIAL BOX CUSTOM UI                   */
/* ========================================= */

/* Trial Box Typography */
.trial-box-wrapper, .trial-inline-wrapper {
    --font-heading: var(--e-global-typography-primary-font-family, "Corben", serif);
    --font-body: var(--e-global-typography-text-font-family, "Instrument Sans", sans-serif);
    --color-brand: #F25841;
    --color-border: #e5e7eb;
}

/* Cards Layout */
.trial-card { display: flex; align-items: center; padding: 15px 20px; border: 2px solid #e0e5eb; border-radius: 15px; margin-bottom: 15px; cursor: pointer; transition: all 0.2s ease; background: #ffffff; }
.trial-card input[type="radio"] { display: none; }
.radio-circle { width: 20px; height: 20px; border: 2px solid #ccd5df; border-radius: 50%; margin-right: 15px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.active-card { border-color: var(--color-brand); background: #fff8f7; }
.active-card .radio-circle { border-color: var(--color-brand); }
.active-card .radio-circle::after { content: ""; width: 10px; height: 10px; background: var(--color-brand); border-radius: 50%; }
.trial-card img { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; margin-right: 15px; }
.trial-text { flex-grow: 1; display: flex; flex-direction: column; }
.trial-title { font-family: var(--font-heading); font-weight: bold; color: #111; font-size: 18px; line-height: 1.2; }
.trial-desc { font-family: var(--font-body); color: #888; font-size: 13px; margin-top: 3px; }
.trial-desc p { margin: 0 !important; padding: 0 !important; }
.trial-price { font-family: var(--font-body); font-weight: bold; font-size: 16px; color: #111; }

/* Neo-Brutalist Buttons */
.trial-btn { width: 100%; background-color: var(--color-brand); color: #f9f1e5 !important; border: none; padding: 18px 24px; border-radius: 100px; font-size: 16px; font-weight: 500; cursor: pointer; margin-top: 10px; transition: all 0.15s ease; font-family: var(--font-body); box-shadow: 6px 6px 0px 0px #fd8b28; display: flex; justify-content: center; align-items: center; }
.trial-btn:hover, .trial-btn-inline:hover { transform: translate(2px, 2px); box-shadow: 4px 4px 0px 0px #fd8b28; background-color: #000000 !important; }
.trial-btn:active, .trial-btn-inline:active { transform: translate(6px, 6px); box-shadow: 0px 0px 0px 0px #fd8b28; background-color: #000000 !important; }

/* Pills Inline Layout */
.trial-inline-wrapper { display: flex; flex-direction: column; gap: 15px; width: 100%; margin-bottom: 20px; }
@media (min-width: 600px) { .trial-inline-wrapper { flex-direction: row; align-items: flex-start; flex-wrap: wrap; width: 550px; display: inline-flex; } }
.trial-pills-flex { display: flex; flex-wrap: wrap; gap: 12px; flex-grow: 1; }
.trial-pill { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 12px; border: 2px solid var(--color-border); border-radius: 12px; background: #ffffff; cursor: pointer; transition: all 0.2s ease; text-align: center; width: 250px !important; max-width: 100% !important; height: 60px; }
.trial-pill input[type="radio"] { display: none; }
.trial-pill:hover { border-color: #d1d5db; background: #f9fafb; }
.trial-pill.active-pill { border-color: var(--color-brand); background: #fff8f7; }
.trial-pill-title { font-family: var(--font-heading); font-weight: 700; color: #111; font-size: 0.95rem; line-height: 1.2; margin-bottom: 2px; text-transform: capitalize; }
.trial-pill-price { font-family: var(--font-body); color: #6b7280; font-weight: 600; font-size: 0.85rem; }
.active-pill .trial-pill-price { color: var(--color-brand); }
.trial-btn-inline { background: var(--color-brand); border: none; border-radius: 100px; cursor: pointer; transition: all 0.15s ease; font-family: var(--font-body); display: flex; flex-direction: row; align-items: center; justify-content: center; height: 60px; padding-left: 18px; padding-right: 18px; font-weight: 500; font-size: 16px; color: #f9f1e5 !important; box-shadow: 6px 6px 0px 0px #fd8b28; width: 100%; }
@media (min-width: 600px) { .trial-btn-inline { width: 200px; min-width: 200px; flex-shrink: 0; } }

/* ========================================= */
/* 13. WOOCOMMERCE MY ACCOUNT - UNIFIED TABS */
/* ========================================= */
body.woocommerce-account {
    background-color: #f9f1e5 !important;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

body.woocommerce-account h1, 
body.woocommerce-account h2, 
body.woocommerce-account h3, 
body.woocommerce-account h4,
body.woocommerce-account h5,
body.woocommerce-account h6,
body.woocommerce-account legend {
    font-family: "Hobeaux All", sans-serif !important;
}

body.woocommerce-account p, 
body.woocommerce-account span,
body.woocommerce-account div,
body.woocommerce-account td,
body.woocommerce-account th,
body.woocommerce-account a,
body.woocommerce-account label,
body.woocommerce-account input,
body.woocommerce-account select,
body.woocommerce-account textarea,
body.woocommerce-account button {
    font-family: "Obviously", sans-serif;
}

/* Hard-Hide the native WooCommerce 'Hello David' and dashboard links */
.woocommerce-MyAccount-content > p:not(.bq-visible) {
    display: none !important;
}

.woocommerce-account .woocommerce {
    display: flex;
    flex-direction: row-reverse; /* Flipped Layout */
    flex-wrap: nowrap; /* Prevent sidebar from dropping down */
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
    align-items: flex-start;
}

/* Sidebar Navigation */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: calc(35% - 20px);
    min-width: 250px;
    float: none; /* Override default Woo float */
    position: sticky; /* Sticky Sidebar */
    top: 40px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
    border-bottom: 1px solid var(--color-border);
}

.woocommerce-account .woocommerce-MyAccount-navigation li:last-child {
    border-bottom: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    color: var(--color-foreground);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
    background-color: #f9fafb;
    color: var(--color-primary-button-bg);
    border-left-color: var(--color-primary-button-bg);
}

/* Main Content Area */
.woocommerce-account .woocommerce-MyAccount-content {
    width: calc(65% - 20px);
    min-width: 0; /* Crucial: Prevents table overflow in flexbox */
    float: none; /* Override default Woo float */
}

.woocommerce-account .woocommerce-MyAccount-content > h2,
.woocommerce-account .woocommerce-MyAccount-content > h3 {
    margin-top: 0;
    color: var(--color-foreground);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 25px;
}

/* Detail layout tweaks for Native Woo Pages */
.woocommerce-order-details__title,
.woocommerce-column__title {
    font-size: 1.5rem !important;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f3f4f6;
}
.woocommerce-customer-details address {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    line-height: 1.6;
    font-style: normal;
}

/* My Account Forms */
.woocommerce-account .woocommerce-MyAccount-content form {
    background: #fff;
    padding: 30px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Prevent double-boxing inside custom unified wrappers */
.woocommerce-account .bq-unified-settings-wrapper form,
.woocommerce-account .bq-account-tab-content form {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-content form fieldset legend {
    font-family: "Hobeaux All", sans-serif !important;
    font-size: 1.5rem !important;
    color: #111 !important;
    font-weight: normal !important;
    padding-bottom: 10px;
}

.woocommerce-account .woocommerce-MyAccount-content form fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-content form label {
    font-family: "Obviously", sans-serif !important;
    font-weight: 600 !important;
    color: #111 !important;
    display: block;
    margin-bottom: 8px;
}

.woocommerce-account .woocommerce-MyAccount-content form input[type="text"],
.woocommerce-account .woocommerce-MyAccount-content form input[type="email"],
.woocommerce-account .woocommerce-MyAccount-content form input[type="password"],
.woocommerce-account .woocommerce-MyAccount-content form input[type="tel"],
.woocommerce-account .woocommerce-MyAccount-content form select,
.woocommerce-account .woocommerce-MyAccount-content form textarea {
    font-family: "Obviously", sans-serif !important;
    font-size: 1rem !important;
    color: #111 !important;
    width: 100%;
    padding: 14px 16px !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 12px !important;
    background-color: #f9fafb !important;
    transition: all 0.2s ease !important;
}

.woocommerce-account .woocommerce-MyAccount-content form input:focus,
.woocommerce-account .woocommerce-MyAccount-content form select:focus,
.woocommerce-account .woocommerce-MyAccount-content form textarea:focus {
    border-color: var(--color-primary-button-bg) !important;
    background-color: #fff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(242, 88, 65, 0.1) !important;
}

/* My Account Buttons - Force matching brand style */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button,
.woocommerce-account .woocommerce-MyAccount-content .button,
.woocommerce-account .woocommerce-MyAccount-content button[type="submit"],
.woocommerce-account .woocommerce-MyAccount-content input[type="submit"] {
    background-color: var(--color-primary-button-bg) !important;
    color: #f9f1e5 !important;
    border: none !important;
    padding: 14px 28px !important;
    border-radius: 100px !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    font-family: "Obviously", sans-serif !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 4px 0px 0px #fd8b28 !important;
    margin-top: 10px;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button:hover,
.woocommerce-account .woocommerce-MyAccount-content .button:hover,
.woocommerce-account .woocommerce-MyAccount-content button[type="submit"]:hover,
.woocommerce-account .woocommerce-MyAccount-content input[type="submit"]:hover {
    transform: translate(2px, 2px) !important;
    box-shadow: 2px 2px 0px 0px #fd8b28 !important;
    background-color: #000000 !important;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button:active,
.woocommerce-account .woocommerce-MyAccount-content .button:active,
.woocommerce-account .woocommerce-MyAccount-content button[type="submit"]:active,
.woocommerce-account .woocommerce-MyAccount-content input[type="submit"]:active {
    transform: translate(4px, 4px) !important;
    box-shadow: 0px 0px 0px 0px #fd8b28 !important;
    background-color: #000000 !important;
}

/* WooCommerce Tables (Orders, Subscriptions, Details) */
.woocommerce-account table.shop_table {
    border: none;
    border-radius: 0;
    border-collapse: collapse;
    overflow: visible;
    width: 100%;
    margin-bottom: 2rem;
}

.woocommerce-account table.shop_table th {
    background-color: transparent;
    color: #9ca3af;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    padding: 12px 16px;
    border-bottom: 2px solid #f3f4f6;
    text-align: left;
}

.woocommerce-account table.shop_table td {
    padding: 16px;
    border-top: none;
    border-bottom: 1px dashed #e5e7eb;
    vertical-align: middle;
    color: #111;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.woocommerce-account table.shop_table tbody tr:hover td {
    background-color: #f9fafb;
}

.woocommerce-account table.shop_table tbody tr:last-child td {
    border-bottom: none;
}

.woocommerce-account table.shop_table td.order-actions,
.woocommerce-account table.shop_table td.subscription-actions {
    text-align: right;
}

/* Convert bulky table buttons into sleek outline buttons */
.woocommerce-account table.shop_table td .button {
    background: transparent !important;
    border: 1px solid #d1d5db !important;
    color: #374151 !important;
    box-shadow: none !important;
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    transform: none !important;
    margin: 0 0 0 8px !important;
    border-radius: 100px !important;
}
.woocommerce-account table.shop_table td .button:hover {
    border-color: #111 !important;
    color: #111 !important;
    background: #f9fafb !important;
    transform: none !important;
}

/* Status text highlights */
.woocommerce-account mark.order-number, 
.woocommerce-account mark.order-date, 
.woocommerce-account mark.order-status {
    background: #f9fafb;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    border: 1px solid #e5e7eb;
}

/* Native Account Tables (View Order / View Subscription) */
.woocommerce-account table.order_details td.product-name,
.woocommerce-account table.subscription_details td.product-name {
    display: flex !important;
    align-items: center;
    gap: 12px;
}
.woocommerce-account table.order_details td.product-name .product-quantity {
    font-size: 0.8rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 100px;
    font-weight: 600;
    margin-left: auto;
}

/* White Card Wrapper for Loose Sections */
.bq-card-wrap,
.woocommerce-account .woocommerce-order-details {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.bq-card-wrap h2,
.bq-card-wrap header h2,
.woocommerce-account .woocommerce-order-details__title {
    font-family: var(--font-heading) !important;
    font-size: 1.5rem !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 16px;
    color: #111;
}
.bq-card-wrap table.shop_table,
.woocommerce-account .woocommerce-order-details table.shop_table {
    margin-bottom: 0;
}

/* Address Cards */
.woocommerce-account .woocommerce-customer-details {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 30px;
}
.woocommerce-account .woocommerce-customer-details .woocommerce-column__title {
    font-family: var(--font-heading) !important;
    font-size: 1.3rem !important;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 10px;
}
.woocommerce-account .woocommerce-customer-details address {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    line-height: 1.6;
    font-style: normal;
    color: #4b5563;
}

.woocommerce-account table.subscription_details th {
    width: 35%;
}
.woocommerce-account table.subscription_details td {
    font-weight: 600;
    color: #111;
}

/* Subscription Quick Add Forms */
.bq-add-to-subscription-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border: 1px dashed var(--color-border);
    margin-top: 20px;
}

/* Custom AJAX Message Box */
.bq-message-box {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    margin-top: 15px;
}

.bq-message-box.bq-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.bq-message-box.bq-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Gifting Toggle Switch (From HTML Snippets) */
.gifting-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.gifting-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.gifting-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-border);
    transition: .4s;
    border-radius: 24px;
}

.gifting-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .gifting-slider {
    background-color: var(--color-primary-button-bg);
}

input:checked + .gifting-slider:before {
    transform: translateX(20px);
}

/* ========================================= */
/* 16. NATIVE DETAILS HEADER OVERRIDES       */
/* ========================================= */
.bq-unified-details-header {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.bq-udh-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 16px;
}
.bq-udh-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.bq-udh-title {
    font-family: var(--font-heading) !important;
    font-size: 1.75rem !important;
    color: #111;
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
}
.bq-udh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}
.bq-udh-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.bq-udh-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 0.05em;
    font-family: 'Obviously', sans-serif;
    font-weight: 700;
}
.bq-udh-val {
    font-size: 0.95rem;
    color: #1f2937;
    font-weight: 600;
    font-family: 'Obviously', sans-serif;
}

/* Actions Dropdown */
.bq-dropdown-wrap {
    position: relative;
    display: inline-block;
}
.bq-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    min-width: 220px;
    z-index: 100;
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.bq-dropdown-menu.show {
    display: flex;
    animation: bqFadeIn 0.2s ease-out;
}
.bq-dropdown-item {
    padding: 12px 16px;
    color: #374151 !important;
    font-family: 'Obviously', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s;
    text-align: left;
    background: transparent;
    border-left: none;
    border-right: none;
    border-top: none;
    width: 100%;
    cursor: pointer;
}
.bq-dropdown-item:last-child {
    border-bottom: none;
}
.bq-dropdown-item:hover {
    background-color: #f9fafb;
    color: #F25841 !important;
}

/* Utility for hiding restructured native elements */
.bq-restructured-hide {
    display: none !important;
}

/* ========================================= */
/* Responsive Breakpoints (Mobile Account UI)*/
/* ========================================= */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
        gap: 20px;
        padding: 20px 15px;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation {
        display: none !important; /* Hide native sidebar completely on mobile screens */
    }

    .woocommerce-account .woocommerce-MyAccount-content {
        width: 100%;
    }

    /* Minimal Mobile Layout for "All Orders" & "Subscriptions" Tables */
    .woocommerce-account table.my_account_orders tbody tr,
    .woocommerce-account table.my_account_subscriptions tbody tr {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        gap: 12px 16px !important;
        background: #ffffff;
        border: 1px solid #e5e7eb !important;
        border-radius: 12px;
        margin-bottom: 16px;
        padding: 16px !important;
        box-shadow: 0 4px 6px rgba(0,0,0,0.02);
        align-items: center !important;
    }
    
    .woocommerce-account table.my_account_orders tbody td,
    .woocommerce-account table.my_account_subscriptions tbody td {
        padding: 0 !important;
        border: none !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
    }
    
    .woocommerce-account table.my_account_orders tbody td::before,
    .woocommerce-account table.my_account_subscriptions tbody td::before {
        display: none !important; /* Hide redundant data titles for a cleaner look */
    }

    /* Row 1: Order/Sub Number (Left) & Status Badge (Right) */
    .woocommerce-account table.my_account_orders tbody td.woocommerce-orders-table__cell-order-number,
    .woocommerce-account table.my_account_subscriptions tbody td.subscription-id {
        grid-column: 1 / 2;
        font-size: 1.1rem !important;
        font-weight: 700 !important;
    }
    .woocommerce-account table.my_account_orders tbody td.woocommerce-orders-table__cell-order-status,
    .woocommerce-account table.my_account_subscriptions tbody td.subscription-status {
        grid-column: 2 / 3;
        justify-content: flex-end !important;
    }

    /* Row 2: Date (Left) & Total (Right) */
    .woocommerce-account table.my_account_orders tbody td.woocommerce-orders-table__cell-order-date,
    .woocommerce-account table.my_account_subscriptions tbody td.subscription-next-payment {
        grid-column: 1 / 2;
        font-size: 0.85rem !important;
        color: #6b7280 !important;
    }
    .woocommerce-account table.my_account_orders tbody td.woocommerce-orders-table__cell-order-total,
    .woocommerce-account table.my_account_subscriptions tbody td.subscription-total {
        grid-column: 2 / 3;
        justify-content: flex-end !important;
        font-weight: 600 !important;
        font-size: 0.95rem !important;
    }

    /* Row 3: Actions (Full Width Bottom) */
    .woocommerce-account table.my_account_orders tbody td.woocommerce-orders-table__cell-order-actions,
    .woocommerce-account table.my_account_subscriptions tbody td.subscription-actions {
        grid-column: 1 / 3;
        margin-top: 8px !important;
        border-top: 1px dashed #e5e7eb !important;
        padding-top: 16px !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .woocommerce-account table.my_account_orders tbody td.woocommerce-orders-table__cell-order-actions .button,
    .woocommerce-account table.my_account_subscriptions tbody td.subscription-actions .button {
        width: 100% !important;
        margin: 0 !important;
        text-align: center;
        justify-content: center;
    }

    /* Single Order & Subscription Details Tables (Stacked Cards) */
    .woocommerce-account table.order_details,
    .woocommerce-account table.subscription_details {
        display: block !important;
        width: 100% !important;
        overflow: hidden !important;
        border: none !important;
    }
    .woocommerce-account table.order_details thead,
    .woocommerce-account table.subscription_details thead {
        display: none !important;
    }
    .woocommerce-account table.order_details tbody,
    .woocommerce-account table.subscription_details tbody {
        display: block !important;
        width: 100% !important;
    }
    .woocommerce-account table.order_details tbody tr,
    .woocommerce-account table.subscription_details tbody tr {
        display: flex !important;
        flex-direction: column !important;
        background: #ffffff;
        border: 1px solid #e5e7eb !important;
        border-radius: 12px;
        margin-bottom: 16px;
        padding: 16px !important;
        box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    }
    .woocommerce-account table.order_details tbody td.product-name,
    .woocommerce-account table.subscription_details tbody td.product-name {
        width: 100% !important;
        border: none !important;
        padding: 0 0 12px 0 !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 12px !important;
    }
    .woocommerce-account table.order_details tbody td.product-name > div,
    .woocommerce-account table.subscription_details tbody td.product-name > div {
        flex: 1;
        min-width: 0; /* Prevents badges/text from breaking the flex container on mobile */
        word-wrap: break-word;
    }
    .woocommerce-account table.order_details tbody td.product-total,
    .woocommerce-account table.subscription_details tbody td.product-total {
        width: 100% !important;
        border: none !important;
        padding: 12px 0 0 0 !important;
        border-top: 1px dashed #e5e7eb !important;
        text-align: right !important;
        font-weight: 600 !important;
        font-size: 1rem !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    .woocommerce-account table.order_details tbody td.product-total::before,
    .woocommerce-account table.subscription_details tbody td.product-total::before {
        content: "Total";
        font-size: 0.8rem;
        text-transform: uppercase;
        color: #9ca3af;
        letter-spacing: 0.05em;
        font-weight: 700;
        display: block !important;
    }

    /* Specific for tfoot (Totals) on Single Details Pages */
    .woocommerce-account table.order_details tfoot,
    .woocommerce-account table.subscription_details tfoot {
        display: block !important;
        width: 100% !important;
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 16px;
        margin-top: 16px;
        box-sizing: border-box;
    }
    .woocommerce-account table.order_details tfoot tr,
    .woocommerce-account table.subscription_details tfoot tr {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 0 !important;
        border-bottom: 1px solid #f3f4f6 !important;
    }
    .woocommerce-account table.order_details tfoot tr:last-child,
    .woocommerce-account table.subscription_details tfoot tr:last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }
    .woocommerce-account table.order_details tfoot tr:first-child,
    .woocommerce-account table.subscription_details tfoot tr:first-child {
        padding-top: 0 !important;
    }
    .woocommerce-account table.order_details tfoot th,
    .woocommerce-account table.order_details tfoot td,
    .woocommerce-account table.subscription_details tfoot th,
    .woocommerce-account table.subscription_details tfoot td {
        display: block !important;
        border: none !important;
        padding: 0 !important;
        white-space: normal !important;
        width: auto !important;
    }
    .woocommerce-account table.order_details tfoot th,
    .woocommerce-account table.subscription_details tfoot th {
        text-align: left !important;
        color: #6b7280;
    }
    .woocommerce-account table.order_details tfoot td,
    .woocommerce-account table.subscription_details tfoot td {
        text-align: right !important;
    }
}

/* ========================================= */
/* 14. MY ACCOUNT V2 APP-UI COMPONENTS       */
/* ========================================= */

/* Tabs */
.bq-tabs-container { display: flex; gap: 2rem; border-bottom: 2px solid #e5e7eb; margin-bottom: 2rem; }
.bq-tab-btn { background: none; border: none; padding: 0 0 0.75rem 0; font-family: "Hobeaux All", sans-serif !important; font-size: 1.25rem; color: #9ca3af; cursor: pointer; margin-bottom: -2px; border-bottom: 3px solid transparent; transition: all 0.3s ease; }
.bq-tab-btn:hover { color: #4b5563; }
.bq-tab-btn.active { color: #F25841; border-bottom-color: #F25841; }
.bq-tab-content.hidden { display: none; }

/* Status Badges */
.bq-status-badge { display: inline-block; padding: 4px 12px; border-radius: 100px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; line-height: 1; }
.bq-badge-sub { background: #dcfce7 !important; color: #166534 !important; border: 1px solid #bbf7d0 !important; }
.bq-badge-delivered { background: #f3f4f6 !important; color: #4b5563 !important; border: 1px solid #e5e7eb !important; }
.bq-badge-transit { background: #e0f2fe !important; color: #0369a1 !important; border: 1px solid #bae6fd !important; }

/* Utilities */
.bq-fade-in { animation: bqFadeIn 0.3s ease-out; }
@keyframes bqFadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Locked Production Notice */
.bq-locked-note { background-color: #f8fafc !important; border: 1px solid #e2e8f0 !important; color: #1e40af !important; font-size: 0.85rem; padding: 12px 16px; border-radius: 12px; margin-top: 1rem; display: flex; align-items: center; gap: 8px; font-family: "Obviously", sans-serif; }

/* Box Contents Grid */
.bq-item-row { display: flex; align-items: center; padding: 0.75rem 0; border-bottom: 1px dashed #e5e7eb; }
.bq-item-row:last-child { border-bottom: none; }
.bq-item-img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; background: #f3f4f6; margin-right: 1rem; flex-shrink: 0; }

/* Sidebar Widgets */
.bq-sidebar-widget { background: #ffffff; border-radius: 16px; border: 1px solid #eee; padding: 1.5rem; box-shadow: 0 4px 15px rgba(0,0,0,0.02); margin-bottom: 1.5rem; }
.bq-sidebar-widget h4 { font-size: 1.2rem !important; margin-bottom: 1rem !important; border-bottom: 1px solid #f3f4f6; padding-bottom: 0.5rem; font-family: "Hobeaux All", sans-serif !important; }
.bq-news-widget { background: #fffaf9 !important; border-color: #ffd8d3 !important; }
.bq-news-widget h4 { color: #F25841 !important; border-bottom-color: rgba(242, 88, 65, 0.2) !important; }

/* Custom Nav Menu */
.bq-nav-menu { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.bq-nav-menu a { display: flex; align-items: center; color: #4b5563 !important; font-weight: 500; font-size: 0.95rem; padding: 0.6rem 0.8rem; border-radius: 8px; transition: all 0.2s ease; text-decoration: none !important; }
.bq-nav-menu a:hover, .bq-nav-menu a.active { background: #fff8f7; color: #F25841 !important; transform: translateX(4px); }
.bq-nav-menu i { width: 24px; text-align: center; color: inherit; margin-right: 8px; }

/* Secondary Buttons */
.bq-btn-outline { background: transparent !important; border: 0px solid transparent !important; color: #374151 !important; border-radius: 100px !important; padding: 8px 16px !important; font-weight: 500 !important; font-size: 0.85rem !important; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s ease; font-family: "Obviously", sans-serif !important; text-decoration: none !important;}
.bq-btn-outline:hover { border-color: transparent !important; color: #f25841 !important; background: transparent !important; }

.bq-btn-pause { background: transparent !important; border: none !important; color: #6b7280 !important; font-size: 0.75rem !important; font-weight: 500 !important; margin-left: auto !important; padding: 0 0.5rem !important; cursor: pointer !important; display: inline-flex !important; align-items: center !important; transition: color 0.2s ease !important; font-family: "Obviously", sans-serif !important; }
.bq-btn-pause:hover { text-decoration: underline !important; color: #F25841 !important; }

/* Summary Card */
.bq-summary-card { background-color: #ffffff !important; border: 1px solid #f1f1f1 !important; border-radius: 12px !important; padding: 1.5rem !important; height: 100% !important; display: flex !important; flex-direction: column !important; justify-content: space-between !important; }

/* Upsells */
.bq-upsell-item { display: flex; align-items: center; padding: 0.75rem 0; border-bottom: 1px dashed #eee; }
.bq-upsell-item:last-child { border-bottom: none; padding-bottom: 0; }
.bq-upsell-img { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; margin-right: 12px; }
.bq-upsell-btn { background: #f3f4f6; color: #374151; border: none; border-radius: 100px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-weight: bold; cursor: pointer; transition: all 0.2s; flex-shrink: 0; margin-left: auto; }
.bq-upsell-btn:hover { background: #F25841; color: white; }

/* ========================================= */
/* 15. CUSTOM MODALS & APP SCROLLBARS        */
/* ========================================= */
.bq-custom-scrollbar::-webkit-scrollbar { width: 6px; }
.bq-custom-scrollbar::-webkit-scrollbar-track { background: #f3f4f6; border-radius: 4px; }
.bq-custom-scrollbar::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.bq-custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

.bq-modal-header {
    background-color: #f9f1e5;
    padding: 24px 30px;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 16px 0 0;
}
.bq-modal-title {
    margin: 0;
    font-family: 'Hobeaux All', sans-serif !important;
    font-size: 1.85rem;
    color: #111;
}
.bq-modal-close {
    width: 36px;
    height: 36px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #111;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}
.bq-modal-close:hover {
    background: #F25841;
    color: #fff;
    border-color: #F25841;
    transform: scale(1.05);
}

.bq-btn-brand-outline {
    background-color: #ffffff !important;
    color: var(--color-primary-button-bg) !important;
    border: 2px solid var(--color-primary-button-bg) !important;
    border-radius: 8px !important;
    box-shadow: 4px 4px 0px 0px var(--color-primary-button-bg) !important;
    padding: 14px 20px !important;
    font-weight: 600 !important;
    font-family: "Hobeaux All", sans-serif !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
}
.bq-btn-brand-outline:hover {
    transform: translate(2px, 2px) !important;
    box-shadow: 2px 2px 0px 0px var(--color-primary-button-bg) !important;
}
.bq-btn-brand-outline:active {
    transform: translate(4px, 4px) !important;
    box-shadow: 0px 0px 0px 0px var(--color-primary-button-bg) !important;
}

.bq-qty-control-btn {
    background: #fff;
    border: 1px solid #d1d5db;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    color: #374151;
    font-weight: 600;
    transition: all 0.15s;
}
.bq-qty-control-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111;
}
.bq-qty-control-btn.once-minus {
    border-color: #ffd8d3;
    color: var(--color-primary-button-bg);
}
.bq-qty-control-btn.once-minus:hover {
    background: #fff8f7;
    border-color: var(--color-primary-button-bg);
}
.bq-qty-control-btn.once-plus {
    background: var(--color-primary-button-bg);
    border: none;
    color: #fff;
}
.bq-qty-control-btn.once-plus:hover {
    background: #d94b36;
}

/* ========================================= */
/* 17. NATIVE CART PAGE REFINEMENTS          */
/* ========================================= */
.woocommerce-cart .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}
.woocommerce-cart .woocommerce-cart-form {
    flex: 1 1 60%;
    min-width: 300px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}
.woocommerce-cart .cart-collaterals {
    flex: 1 1 35%;
    min-width: 300px;
}
.woocommerce-cart .cart-collaterals .cart_totals {
    background: #f9fafb;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 32px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    float: none;
}
.woocommerce-cart .cart-collaterals .cart_totals h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 16px;
    margin-bottom: 20px;
    color: #111;
}
.woocommerce-cart .cart-collaterals .cart_totals table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}
.woocommerce-cart .cart-collaterals .cart_totals table th {
    text-align: left;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.95rem;
}
.woocommerce-cart .cart-collaterals .cart_totals table td {
    text-align: right;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    color: #111;
    font-weight: 600;
}
.woocommerce-cart .cart-collaterals .cart_totals table tr:last-child th,
.woocommerce-cart .cart-collaterals .cart_totals table tr:last-child td {
    border-bottom: none;
}
.woocommerce-cart .cart-collaterals .cart_totals table tr.order-total th {
    font-size: 1.1rem;
    color: #111;
}
.woocommerce-cart .cart-collaterals .cart_totals table tr.order-total td {
    font-size: 1.4rem;
    color: #72682a;
}

/* Cart Table specific overrides */
.woocommerce-cart table.shop_table.cart { border-collapse: separate; border-spacing: 0 16px; border: none; background: transparent; }
.woocommerce-cart table.shop_table.cart th { font-family: var(--font-body); font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; border: none; border-bottom: 2px solid #f3f4f6; padding: 0 0 12px 0; }
.woocommerce-cart table.shop_table.cart td { border: none; border-bottom: 1px dashed #e5e7eb; padding: 24px 0; background: transparent; }
.woocommerce-cart table.shop_table.cart tr.cart_item:last-child td { border-bottom: none; }

/* Cart Images */
.woocommerce-cart table.shop_table.cart td.product-thumbnail img { width: 64px !important; height: 64px !important; object-fit: cover; border-radius: 50%; border: 1px solid #e5e7eb; padding: 0; box-shadow: none; }

/* Coupon Section */
.woocommerce-cart .actions {
    padding: 24px 0 0 0 !important;
    border-top: 2px dashed #e5e7eb !important;
    border-bottom: none !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
}
.woocommerce-cart .coupon {
    display: flex;
    gap: 12px;
    flex-grow: 1;
    max-width: 400px;
}
.woocommerce-cart .coupon .input-text {
    flex-grow: 1;
    background: #f7f8f9 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 100px !important;
    padding: 0 20px !important;
    height: 48px !important;
    width: auto !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    font-family: var(--font-body) !important;
}
.woocommerce-cart .coupon .input-text:focus {
    background: #fff !important;
    border-color: var(--color-primary-button-bg) !important;
    box-shadow: 0 4px 15px rgba(242, 88, 65, 0.1) !important;
    outline: none !important;
}
.woocommerce-cart .coupon .button {
    background: var(--color-primary-button-bg) !important;
    color: #fff !important;
    border-radius: 100px !important;
    padding: 0 24px !important;
    height: 48px !important;
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    box-shadow: 4px 4px 0px 0px #fd8b28 !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.15s ease !important;
}
.woocommerce-cart .coupon .button:hover {
    transform: translate(2px, 2px) !important;
    box-shadow: 2px 2px 0px 0px #fd8b28 !important;
    background: #000 !important;
}
.woocommerce-cart .coupon .button:active {
    transform: translate(4px, 4px) !important;
    box-shadow: 0px 0px 0px 0px #fd8b28 !important;
}

/* Update Cart Button */
.woocommerce-cart .actions > .button {
    background: #fff !important;
    color: #374151 !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 100px !important;
    padding: 12px 24px !important;
    height: 48px !important;
    font-weight: 600 !important;
    box-shadow: 4px 4px 0px 0px #e5e7eb !important;
    cursor: pointer;
    transition: all 0.15s ease !important;
}
.woocommerce-cart .actions > .button:hover {
    border-color: #d1d5db !important;
    transform: translate(2px, 2px) !important;
    box-shadow: 2px 2px 0px 0px #d1d5db !important;
    color: #111 !important;
}
.woocommerce-cart .actions > .button:active {
    transform: translate(4px, 4px) !important;
    box-shadow: 0px 0px 0px 0px #d1d5db !important;
}

/* Proceed to Checkout Button */
.woocommerce-cart .wc-proceed-to-checkout {
    padding: 24px 0 0 0;
}
.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    background: var(--color-primary-button-bg) !important;
    color: #fff !important;
    font-family: var(--font-body) !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    padding: 18px 24px !important;
    border-radius: 100px !important;
    box-shadow: 6px 6px 0px 0px #fd8b28 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transition: all 0.15s ease !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    text-decoration: none !important;
}
.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
    transform: translate(2px, 2px) !important;
    box-shadow: 4px 4px 0px 0px #fd8b28 !important;
    background: #000 !important;
}
.woocommerce-cart .wc-proceed-to-checkout .checkout-button:active {
    transform: translate(6px, 6px) !important;
    box-shadow: 0px 0px 0px 0px #fd8b28 !important;
    background: #000 !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .woocommerce-cart .woocommerce { flex-direction: column; gap: 24px; }
    .woocommerce-cart .woocommerce-cart-form,
    .woocommerce-cart .cart-collaterals { width: 100%; flex: 1 1 100%; min-width: 100%; }
    .woocommerce-cart .actions { flex-direction: column; }
    .woocommerce-cart .coupon { max-width: 100%; }
    .woocommerce-cart .actions > .button { width: 100%; }
}


/* ========================================= */
/* ORDER PAY PAGE                            */
/* ========================================= */

body.woocommerce-order-pay .elementor-widget-woocommerce-checkout-page form#order_review,body.woocommerce-order-pay .woocommerce form#order_review{
	background-color: #ffffff !important;
	padding: 40px !important;
	border-radius: 20px !important;
	border: 1px solid #e5e7eb !important;
	box-shadow: 0 10px 40px rgba(0,0,0,0.03) !important;
	max-width: 800px;
	margin: 0 auto;
}

body.woocommerce-order-pay table.shop_table{
	width: 100%;
	border-collapse: collapse !important;
	margin-bottom: 30px !important;
	border: none !important;
}

body.woocommerce-order-pay table.shop_table th,body.woocommerce-order-pay table.shop_table td{
	border: none !important;
	background: transparent !important;
}

body.woocommerce-order-pay table.shop_table thead th{
	text-align: left !important;
	padding: 12px 0 !important;
	border-bottom: 2px solid #f3f4f6 !important;
	color: #9ca3af !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	font-size: 0.85rem !important;
	letter-spacing: 0.05em !important;
	font-family: var(--font-body) !important;
}

body.woocommerce-order-pay table.shop_table thead th.product-total{
	text-align: right !important;
}

body.woocommerce-order-pay table.shop_table tbody td{
	padding: 20px 0 !important;
	border-bottom: 1px dashed #e5e7eb !important;
	vertical-align: middle !important;
	font-weight: 600 !important;
	color: #111 !important;
	font-size: 1.05rem !important;
	font-family: var(--font-body) !important;
}

body.woocommerce-order-pay table.shop_table tfoot th,body.woocommerce-order-pay table.shop_table tfoot td{
	padding: 16px 0 !important;
	border-bottom: 1px solid #f3f4f6 !important;
	font-family: var(--font-body) !important;
}

body.woocommerce-order-pay table.shop_table tfoot tr:last-child th,body.woocommerce-order-pay table.shop_table tfoot tr:last-child td{
	border-bottom: none !important;
}

body.woocommerce-order-pay table.shop_table tfoot th{
	text-align: left !important;
	font-weight: 600 !important;
	color: #6b7280 !important;
}

body.woocommerce-order-pay table.shop_table td.product-total,body.woocommerce-order-pay table.shop_table tfoot td{
	text-align: right !important;
	font-weight: 600 !important;
	color: #111 !important;
}

body.woocommerce-order-pay table.shop_table tfoot tr.order-total th{
	font-size: 1.1rem !important;
	color: #111 !important;
}

body.woocommerce-order-pay table.shop_table tfoot tr.order-total td{
	font-size: 1.4rem !important;
	color: #72682a !important;
}

body.woocommerce-order-pay #payment{
	background: transparent !important;
	padding: 0 !important;
	border-radius: 0 !important;
}

body.woocommerce-order-pay #payment .wc_payment_methods{
	padding: 0 !important;
	border-bottom: 1px solid #e5e7eb !important;
}

body.woocommerce-order-pay button#place_order{
	color: #f9f1e5 !important;
	border: none !important;
	padding: 18px 24px !important;
	border-radius: 100px !important;
	font-weight: 500 !important;
	font-size: 16px !important;
	font-family: var(--font-body) !important;
	cursor: pointer !important;
	transition: all 0.15s ease !important;
	text-align: center !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-shadow: 6px 6px 0px 0px #fd8b28 !important;
	width: 100% !important;
	margin-top: 30px !important;
}

body.woocommerce-order-pay button#place_order:hover{
	transform: translate(2px, 2px) !important;
	box-shadow: 4px 4px 0px 0px #fd8b28 !important;
	background-color: #000000 !important;
}

body.woocommerce-order-pay button#place_order:active{
	transform: translate(6px, 6px) !important;
	box-shadow: 0px 0px 0px 0px #fd8b28 !important;
	background-color: #000000 !important;
}

body.woocommerce-order-pay .shop_table tbody .product-subtotal{
	text-align:right;
}

/* 768px and smaller screen sizes */
@media (max-width: 768px){

	body.woocommerce-order-pay .elementor-widget-woocommerce-checkout-page form#order_review, body.woocommerce-order-pay .woocommerce form#order_review{
		padding: 24px !important;
		border-radius: 16px !important;
	}
	
}