/**
 * WooCommerce Block Checkout Styles
 *
 * Styles for the WooCommerce Block-based Checkout experience
 * Matches the design from docs/html/checkout.html
 *
 * @package BadassNetwork
 */

/* ==========================================================================
   CHECKOUT PAGE - Base Layout
   ========================================================================== */

/* Checkout page specific body styles */
body.woocommerce-checkout,
body.woocommerce-cart {
    background: var(--color-bg);
}

/* Clean main container for checkout/cart pages */
.checkout-page,
.cart-page {
    min-height: calc(100vh - 200px);
    padding-bottom: var(--space-5xl);
}

/* Remove any inherited styles from default page template */
.checkout-page .entry-content,
.cart-page .entry-content {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    max-width: none;
}

/* Ensure blocks inside checkout page are properly contained */
.checkout-page > .wp-block-woocommerce-checkout,
.checkout-page > .wc-block-checkout,
.cart-page > .wp-block-woocommerce-cart,
.cart-page > .wc-block-cart {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px var(--container-padding);
}

/* Hide default page title on checkout - use our own header */
body.woocommerce-checkout .page-title,
body.woocommerce-checkout .entry-title,
body.woocommerce-cart .page-title,
body.woocommerce-cart .entry-title,
.checkout-page .page-title,
.checkout-page .entry-title,
.cart-page .page-title,
.cart-page .entry-title {
    display: none;
}

/* ==========================================================================
   CHECKOUT GRID LAYOUT
   Two columns: form (left) and order summary (right)
   
   Actual WooCommerce Block Checkout structure:
   - .wp-block-woocommerce-checkout.wc-block-checkout (outer wrapper)
     - .wc-block-components-sidebar-layout.wc-block-checkout.is-large (layout container)
       - .wc-block-components-sidebar.wc-block-checkout__sidebar (order summary - FIRST in DOM)
       - .wc-block-components-main.wc-block-checkout__main (form fields - SECOND in DOM)
   
   DOM order: Sidebar first, Main second
   Visual order: Main (left), Sidebar (right)
   ========================================================================== */

/* Outer WordPress block wrapper - sets max-width and centering */
.wp-block-woocommerce-checkout {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 40px 24px !important;
    width: 100% !important;
}

/* Remove alignwide override */
.wp-block-woocommerce-checkout.alignwide,
.wp-block-woocommerce-checkout.alignfull {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* The sidebar layout container - Override WooCommerce's default layout */
.wc-block-components-sidebar-layout {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 40px !important;
    align-items: flex-start !important;
    max-width: 100% !important;
}

/* Main form column - SECOND in DOM, but should appear LEFT */
.wc-block-components-main {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    order: 1 !important; /* Visually first (left) */
}

/* Sidebar column - FIRST in DOM, but should appear RIGHT */
.wc-block-components-sidebar {
    flex: 0 0 380px !important;
    width: 380px !important;
    max-width: 380px !important;
    min-width: 380px !important;
    position: sticky !important;
    top: 100px !important;
    order: 2 !important; /* Visually second (right) */
    padding-left: 0 !important;
}

/* Tablet/Mobile: Single column layout */
@media (max-width: 1000px) {
    .wp-block-woocommerce-checkout {
        padding: 32px 20px !important;
    }
    
    .wc-block-components-sidebar-layout {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        gap: 32px !important;
    }
    
    .wc-block-components-sidebar {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        position: static !important;
        order: 2 !important; /* Show order summary below checkout details on mobile */
    }
    
    .wc-block-components-main {
        flex: 1 1 100% !important;
        width: 100% !important;
        order: 1 !important;
    }
}

/* ==========================================================================
   CHECKOUT SECTIONS - Card Styling
   Unified card design - outer border only, inner elements use dividers
   ========================================================================== */

/* Main checkout form */
.wc-block-checkout__form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Individual checkout step cards (fieldsets) - THE ONLY element with border */
.wc-block-components-checkout-step {
    background: var(--color-surface) !important;
    border: 3px solid var(--color-border) !important;
    box-shadow: var(--shadow) !important;
    margin-bottom: 32px !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Reset fieldset defaults */
fieldset.wc-block-components-checkout-step {
    min-width: 0;
}

/* Step header styling - dark background */
.wc-block-components-checkout-step__heading {
    background: var(--color-text) !important;
    color: white !important;
    padding: 16px 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: 0 !important;
    border: none !important;
}

.wc-block-components-checkout-step__title,
.wc-block-components-checkout-step__heading h2 {
    font-size: 16px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: white !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

/* Login link in header */
.wc-block-components-checkout-step__heading-content a {
    color: var(--color-mint) !important;
    font-size: 13px;
    font-weight: 600;
}

/* Step container wrapper */
.wc-block-components-checkout-step__container {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

/* Step description text */
.wc-block-components-checkout-step__description {
    padding: 20px 28px 0 !important;
    margin: 0 !important;
    font-size: 14px !important;
    color: var(--color-text-soft) !important;
    border: none !important;
    background: transparent !important;
}

/* Step content area */
.wc-block-components-checkout-step__content {
    padding: 24px 28px 28px !important;
    background: transparent !important;
    border: none !important;
}

/* Remove borders from all inner elements within checkout steps */
.wc-block-components-checkout-step .wc-block-components-radio-control,
.wc-block-components-checkout-step .wc-block-components-address-form,
.wc-block-components-checkout-step .wc-block-components-address-card-wrapper,
.wc-block-components-checkout-step .wc-block-components-address-form-wrapper {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Address card (saved address display) */
.wc-block-components-address-card {
    background: var(--color-bg) !important;
    border: none !important;
    border-bottom: 2px dashed var(--color-border) !important;
    padding: 16px 0 !important;
    margin-bottom: 16px !important;
    box-shadow: none !important;
}

.wc-block-components-address-card address {
    font-style: normal !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: var(--color-text) !important;
}

.wc-block-components-address-card__edit {
    color: var(--color-electric) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

.wc-block-components-address-card__edit:hover {
    text-decoration: underline !important;
}

/* ==========================================================================
   FORM ELEMENTS - Inputs, Labels, Selects
   WooCommerce uses floating labels inside input containers
   ========================================================================== */

/* Address form container */
.wc-block-components-address-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Text input wrapper - contains both input and floating label */
.wc-block-components-text-input {
    position: relative;
    border: 3px solid var(--color-border) !important;
    background: var(--color-bg) !important;
    border-radius: 0 !important;
    transition: all 0.2s ease;
    min-height: 56px !important;
}

.wc-block-components-text-input:focus-within {
    background: var(--color-surface) !important;
    box-shadow: var(--shadow-sm) !important;
}

/* The actual input field */
.wc-block-components-text-input input {
    width: 100% !important;
    padding: 24px 16px 10px !important;
    font-family: var(--font-main) !important;
    font-size: 15px !important;
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
}

.wc-block-components-text-input input:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Floating label - default state (placeholder position, when empty and not focused) */
.wc-block-components-text-input:not(.is-active) label,
.wc-block-checkout .wc-block-components-text-input:not(.is-active) label {
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-family: var(--font-main) !important;
    font-size: 14px !important;
    color: var(--color-text-soft) !important;
    pointer-events: none !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    max-width: calc(100% - 32px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Label base positioning (needed for all states) */
.wc-block-components-text-input label {
    position: absolute !important;
    left: 16px !important;
    pointer-events: none !important;
    transition: all 0.2s ease !important;
    max-width: calc(100% - 32px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Label moves up when input has value (.is-active) or is focused
   WooCommerce adds .is-active class via JS when input has value */
.wc-block-components-text-input.is-active label,
.wc-block-checkout .wc-block-components-text-input.is-active label,
.wc-block-components-text-input:focus-within label,
.wc-block-checkout .wc-block-components-text-input:focus-within label {
    top: 8px !important;
    transform: translateY(0) !important;
    font-size: 11px !important;
    font-family: var(--font-main) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-weight: 700 !important;
    color: var(--color-text) !important;
}

/* Select dropdown container */
.wc-blocks-components-select__container {
    position: relative;
    border: 3px solid var(--color-border) !important;
    background: var(--color-bg) !important;
    border-radius: 0 !important;
    min-height: 56px !important;
}

.wc-blocks-components-select__container:focus-within {
    background: var(--color-surface) !important;
    box-shadow: var(--shadow-sm) !important;
}

/* Select label */
.wc-blocks-components-select__label {
    position: absolute !important;
    left: 16px !important;
    top: 8px !important;
    font-family: var(--font-main) !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-weight: 700 !important;
    color: var(--color-text) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* Select element */
.wc-blocks-components-select__select {
    width: 100% !important;
    padding: 24px 48px 10px 16px !important;
    font-family: var(--font-main) !important;
    font-size: 15px !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    border-radius: 0 !important;
    line-height: 1.4 !important;
}

.wc-blocks-components-select__select:focus {
    outline: none !important;
}

/* Select dropdown arrow */
.wc-blocks-components-select__expand {
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
    color: var(--color-text) !important;
}

/* ==========================================================================
   COMBOBOX - Country/State Autocomplete Fields
   ========================================================================== */

/* Combobox container */
.wc-block-components-combobox {
    position: relative !important;
    border: 3px solid var(--color-border) !important;
    background: var(--color-bg) !important;
    border-radius: 0 !important;
    min-height: 56px !important;
}

.wc-block-components-combobox:focus-within {
    background: var(--color-surface) !important;
    box-shadow: var(--shadow-sm) !important;
}

/* Combobox label - floating style */
.wc-block-components-combobox label {
    position: absolute !important;
    left: 16px !important;
    top: 8px !important;
    font-family: var(--font-main) !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-weight: 700 !important;
    color: var(--color-text) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* Combobox input */
.wc-block-components-combobox input {
    width: 100% !important;
    padding: 24px 48px 10px 16px !important;
    font-family: var(--font-main) !important;
    font-size: 15px !important;
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
}

.wc-block-components-combobox input:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Combobox dropdown arrow/control */
.wc-block-components-combobox .wc-block-components-combobox-control {
    position: relative !important;
}

.wc-block-components-combobox .components-form-token-field__input-container {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Address toggle link */
.wc-block-components-address-form__address_2-toggle {
    color: var(--color-electric) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    padding: 8px 0 !important;
}

.wc-block-components-address-form__address_2-toggle:hover {
    text-decoration: underline !important;
}

/* Password input and strength meter */
.wc-block-components-password-strength {
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
}

/* Textarea */
.wc-block-components-textarea {
    border: 3px solid var(--color-border) !important;
    background: var(--color-bg) !important;
    border-radius: 0 !important;
}

.wc-block-components-textarea textarea {
    width: 100% !important;
    min-height: 100px !important;
    padding: 16px !important;
    font-family: var(--font-main) !important;
    font-size: 15px !important;
    border: none !important;
    background: transparent !important;
    resize: vertical !important;
}

.wc-block-components-textarea:focus-within {
    background: var(--color-surface) !important;
    box-shadow: var(--shadow-sm) !important;
}

/* ==========================================================================
   CHECKBOXES & RADIO BUTTONS
   ========================================================================== */

/* Checkbox container - the label wraps everything */
.wc-block-components-checkbox {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0 !important;
    cursor: pointer !important;
    padding: 12px 16px !important;
    background: transparent !important;
    border: none !important;
    margin-bottom: 0 !important;
}

.wc-block-components-checkbox label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    cursor: pointer !important;
    width: 100% !important;
}

/* Custom checkbox input styling */
.wc-block-components-checkbox__input {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    border: 3px solid var(--color-border) !important;
    background: var(--color-bg) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    position: relative !important;
}

.wc-block-components-checkbox__input:checked {
    background: var(--color-electric) !important;
}

/* Hide the SVG checkmark that WooCommerce adds, use our own */
.wc-block-components-checkbox__mark {
    display: none !important;
}

.wc-block-components-checkbox__input:checked::after {
    content: '✓' !important;
    color: white !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* Checkbox label text */
.wc-block-components-checkbox__label {
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: var(--color-text) !important;
    flex: 1 !important;
}

.wc-block-components-checkbox__label a {
    color: var(--color-electric) !important;
    font-weight: 600 !important;
}

.wc-block-components-checkbox__label a:hover {
    text-decoration: underline !important;
}

/* Radio buttons */
.wc-block-components-radio-control__input {
    width: 24px;
    height: 24px;
    border: 3px solid var(--color-border);
    background: var(--color-surface);
    appearance: none;
    -webkit-appearance: none;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
    margin-right: 16px;
}

.wc-block-components-radio-control__input:checked {
    background: var(--color-electric);
    position: relative;
}

.wc-block-components-radio-control__input:checked::after {
    content: '';
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ==========================================================================
   PAYMENT METHODS
   Clean design within checkout step cards - no nested borders
   ========================================================================== */

.wc-block-components-payment-method-icons,
.wc-block-components-payment-method-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Radio control wrapper - no border */
.wc-block-components-radio-control {
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Payment method options - use background instead of border */
.wc-block-components-radio-control-accordion-option {
    background: var(--color-bg) !important;
    border: none !important;
    border-bottom: 2px solid var(--color-border) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.wc-block-components-radio-control-accordion-option:last-child {
    border-bottom: none !important;
}

.wc-block-components-radio-control-accordion-option:hover {
    background: var(--color-surface) !important;
}

/* Payment method label wrapper */
.wc-block-components-radio-control__option {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
}

/* Radio input styling */
.wc-block-components-radio-control__input {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    border: 3px solid var(--color-border) !important;
    background: var(--color-surface) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    position: relative !important;
}

.wc-block-components-radio-control__input:checked {
    background: var(--color-electric) !important;
    border-color: var(--color-electric) !important;
}

.wc-block-components-radio-control__input:checked::after {
    content: '' !important;
    width: 8px !important;
    height: 8px !important;
    background: white !important;
    border-radius: 50% !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* Option layout */
.wc-block-components-radio-control__option-layout {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Payment method label text */
.wc-block-components-radio-control__label {
    font-weight: 700 !important;
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* Card icons in payment label */
.wc-block-components-radio-control__label img {
    height: 24px !important;
    width: auto !important;
}

/* Payment method description */
.wc-block-components-payment-method-label__description {
    font-size: 13px !important;
    color: var(--color-text-soft) !important;
    margin-top: 2px !important;
}

/* Expanded payment method content (Stripe form, etc.) */
.wc-block-components-radio-control-accordion-content {
    background: var(--color-bg) !important;
    border: none !important;
    border-top: 2px dashed var(--color-border) !important;
    padding: 20px !important;
    margin: 0 !important;
    box-shadow: none !important;
}

/* Content paragraphs inside payment methods */
.wc-block-components-radio-control-accordion-content p.content {
    font-size: 13px !important;
    color: var(--color-text-soft) !important;
    margin: 0 0 16px 0 !important;
    line-height: 1.5 !important;
}

.wc-block-components-radio-control-accordion-content p.content:last-child {
    margin-bottom: 0 !important;
}

.wc-block-components-radio-control-accordion-content p.content:empty {
    display: none !important;
}

.wc-block-components-radio-control-accordion-content a {
    color: var(--color-electric) !important;
    font-weight: 600 !important;
}

/* Stripe payment element container */
.wcstripe-payment-element {
    margin-top: 16px !important;
    border: 3px solid var(--color-border) !important;
    background: var(--color-surface) !important;
    padding: 16px !important;
}

/* Card input styling */
.wc-block-gateway-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.wc-block-gateway-container .wc-block-components-text-input {
    margin-bottom: 0 !important;
}

/* Card input row (expiry/cvv) */
.wc-block-card-elements {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
}

/* ==========================================================================
   SHIPPING OPTIONS
   ========================================================================== */

.wc-block-components-shipping-rates-control {
    background: var(--color-bg);
    border: 3px solid var(--color-border);
    padding: 0;
}

.wc-block-components-shipping-rates-control__package {
    border-bottom: 3px solid var(--color-border);
}

.wc-block-components-shipping-rates-control__package:last-child {
    border-bottom: none;
}

.wc-block-components-shipping-rates-control__package-title {
    padding: 16px 20px;
    font-weight: 700;
    font-size: 14px;
    background: var(--color-text);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wc-block-components-radio-control__option {
    padding: 16px 20px;
    border-bottom: 2px dashed var(--color-border);
    display: flex;
    align-items: center;
}

.wc-block-components-radio-control__option:last-child {
    border-bottom: none;
}

.wc-block-components-radio-control__option-layout {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wc-block-components-radio-control__label {
    font-weight: 600;
    font-size: 14px;
}

.wc-block-components-radio-control__secondary-label {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 14px;
}

.wc-block-components-radio-control__description {
    font-size: 13px;
    color: var(--color-text-soft);
    margin-top: 4px;
}

/* ==========================================================================
   ORDER SUMMARY SIDEBAR
   Unified card design - outer border only, inner sections use dividers
   ========================================================================== */

/* Sidebar wrapper - THE ONLY element with border + shadow */
.wc-block-components-sidebar {
    background: var(--color-surface) !important;
    border: 3px solid var(--color-border) !important;
    box-shadow: 6px 6px 0 var(--color-border) !important;
    overflow: hidden !important;
}

/* Remove all borders from inner blocks */
.wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-block,
.wc-block-components-sidebar .wc-block-components-totals-wrapper,
.wc-block-components-sidebar .wc-block-components-order-summary,
.wc-block-components-sidebar .wc-block-components-totals-item,
.wc-block-components-sidebar .wc-block-components-totals-coupon,
.wc-block-components-sidebar .wcs-recurring-totals-panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Order summary title/header bar - hot pink */
.wc-block-components-checkout-order-summary__title {
    background: var(--color-hot) !important;
    color: white !important;
    padding: 20px 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    cursor: pointer;
    border: none !important;
    margin: 0 !important;
}

.wc-block-components-checkout-order-summary__title-text {
    font-size: 18px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: white !important;
    margin: 0 !important;
}

.wc-block-components-checkout-order-summary__title-price {
    font-family: var(--font-mono) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: white !important;
}

/* Hide the expand icon in the title */
.wc-block-components-checkout-order-summary__title-icon {
    display: none !important;
}

/* Content area below header */
.wc-block-components-checkout-order-summary__content {
    padding: 0 !important;
}

/* Cart items section */
.wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-cart-items-block {
    padding: 20px 24px !important;
    border-bottom: 3px solid var(--color-border) !important;
}

.wc-block-components-order-summary__content {
    padding: 0 !important;
}

/* Individual cart item */
.wc-block-components-order-summary-item {
    display: flex !important;
    gap: 16px !important;
    padding: 12px 0 !important;
    border: none !important;
}

.wc-block-components-order-summary-item:not(:last-child) {
    border-bottom: 2px dashed var(--color-border) !important;
    padding-bottom: 16px !important;
    margin-bottom: 4px !important;
}

/* Product image */
.wc-block-components-order-summary-item__image {
    width: 60px !important;
    height: 60px !important;
    background: var(--color-bg) !important;
    border: 2px solid var(--color-border) !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    display: none !important;
}

.wc-block-components-order-summary-item__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Quantity badge */
.wc-block-components-order-summary-item__quantity {
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    background: var(--color-text) !important;
    color: white !important;
    font-family: var(--font-mono) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    min-width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 4px !important;
    border-radius: 0 !important;
}

/* Product details */
.wc-block-components-order-summary-item__description {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
}

.wc-block-components-product-name {
    font-weight: 800 !important;
    font-size: 14px !important;
    margin: 0 0 4px 0 !important;
    color: var(--color-text) !important;
}

.wc-block-components-order-summary-item__individual-prices {
    font-family: var(--font-mono) !important;
    font-size: 12px !important;
    color: var(--color-text-soft) !important;
}

/* Product price */
.wc-block-components-order-summary-item__total-price {
    font-family: var(--font-mono) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: right !important;
    flex-shrink: 0 !important;
}

/* Coupon section */
.wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-coupon-form-block {
    padding: 0 !important;
    border-bottom: 3px solid var(--color-border) !important;
}

.wc-block-components-sidebar .wc-block-components-totals-coupon .wc-block-components-panel__button {
    padding: 16px 24px !important;
    color: var(--color-electric) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

/* Totals section */
.wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-totals-block {
    padding: 20px 24px !important;
    border-bottom: 3px solid var(--color-border) !important;
}

.wc-block-components-sidebar .wc-block-components-totals-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0 !important;
}

.wc-block-components-totals-item__label {
    font-weight: 600 !important;
    font-size: 14px !important;
    color: var(--color-text) !important;
}

.wc-block-components-totals-item__value {
    font-family: var(--font-mono) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: var(--color-text) !important;
}

/* Grand total - highlighted with yellow background */
.wc-block-components-sidebar .wc-block-components-totals-footer-item {
    background: var(--color-sun) !important;
    padding: 20px 24px !important;
    border: none !important;
    border-top: 3px solid var(--color-border) !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-size: 16px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 20px !important;
}

/* Recurring totals section (subscriptions) */
.wc-block-components-sidebar .wc-block-components-totals-wrapper.slot-wrapper {
    padding: 20px 24px !important;
    background: var(--color-bg) !important;
}

.wcs-recurring-totals-panel__title {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    padding: 0 !important;
}

.wcs-recurring-totals-panel .wc-block-components-totals-item__description {
    width: 100% !important;
    font-size: 12px !important;
    color: var(--color-text-soft) !important;
    margin-top: 8px !important;
}

.wcs-recurring-totals-panel__details .wc-block-components-panel__button {
    padding: 12px 0 0 0 !important;
    color: var(--color-electric) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}

/* Empty wrapper blocks - hide them */
.wc-block-components-sidebar .wc-block-components-totals-wrapper:empty,
.wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-fee-block:empty,
.wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-discount-block:empty {
    display: none !important;
}

/* ==========================================================================
   ORDER TOTALS - General styles (non-sidebar contexts)
   Note: Sidebar-specific totals are styled in the ORDER SUMMARY SIDEBAR section
   ========================================================================== */

/* Discount row - applies everywhere */
.wc-block-components-totals-discount .wc-block-components-totals-item__label,
.wc-block-components-totals-discount .wc-block-components-totals-item__value {
    color: var(--color-hot) !important;
}

/* ==========================================================================
   COUPON / DISCOUNT CODE
   Note: Sidebar coupon styling is in ORDER SUMMARY SIDEBAR section
   ========================================================================== */

/* Coupon form when expanded (applies to expanded state in sidebar) */
.wc-block-components-totals-coupon__content {
    padding: 0 24px 20px !important;
}

.wc-block-components-totals-coupon__form {
    display: flex !important;
    gap: 12px !important;
}

.wc-block-components-totals-coupon__input {
    flex: 1 !important;
}

.wc-block-components-totals-coupon__input input {
    padding: 12px 16px !important;
    font-family: var(--font-mono) !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    border: 3px solid var(--color-border) !important;
    background: var(--color-bg) !important;
    width: 100% !important;
    border-radius: 0 !important;
}

.wc-block-components-totals-coupon__input input:focus {
    outline: none !important;
    box-shadow: var(--shadow-sm) !important;
    background: var(--color-surface) !important;
}

.wc-block-components-totals-coupon .wc-block-components-button {
    padding: 12px 20px !important;
    font-family: var(--font-main) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    background: var(--color-text) !important;
    color: white !important;
    border: 3px solid var(--color-border) !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    border-radius: 0 !important;
}

.wc-block-components-totals-coupon .wc-block-components-button:hover {
    background: var(--color-electric) !important;
}

/* Applied coupon chip */
.wc-block-components-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 12px !important;
    background: var(--color-mint) !important;
    border: 2px solid var(--color-border) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    border-radius: 0 !important;
}

.wc-block-components-chip__remove-button {
    background: none !important;
    border: none !important;
    color: var(--color-hot) !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin-left: 4px !important;
}

/* ==========================================================================
   PLACE ORDER BUTTON & ACTIONS
   ========================================================================== */

/* Actions container - no border, clean look */
.wc-block-checkout__actions {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 24px 0 0 0 !important;
    margin-top: 0 !important;
}

/* Actions row - contains return link and button */
.wc-block-checkout__actions_row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
}

/* Return to cart link */
.wc-block-components-checkout-return-to-cart-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: var(--color-text-soft) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.wc-block-components-checkout-return-to-cart-button:hover {
    color: var(--color-text) !important;
}

.wc-block-components-checkout-return-to-cart-button svg {
    width: 20px !important;
    height: 20px !important;
}

/* Place order button */
.wc-block-components-checkout-place-order-button {
    flex: 1 !important;
    padding: 18px 32px !important;
    font-family: var(--font-main) !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    background: var(--color-electric) !important;
    color: white !important;
    border: 3px solid var(--color-border) !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    box-shadow: var(--shadow) !important;
    border-radius: 0 !important;
}

.wc-block-components-checkout-place-order-button:hover {
    transform: translate(3px, 3px) !important;
    box-shadow: 1px 1px 0 var(--color-border) !important;
}

.wc-block-components-checkout-place-order-button:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: var(--shadow) !important;
}

/* Button text wrapper */
.wc-block-components-button__text {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

/* Mobile: Stack vertically */
@media (max-width: 600px) {
    .wc-block-checkout__actions_row {
        flex-direction: column-reverse !important;
        gap: 16px !important;
    }
    
    .wc-block-components-checkout-place-order-button {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* ==========================================================================
   TERMS & CONDITIONS
   ========================================================================== */

/* Terms - no border, clean look */
.wc-block-checkout__terms {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 16px 0 !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

/* When terms has separator class */
.wc-block-checkout__terms--with-separator {
    border: none !important;
    padding-top: 20px !important;
    margin-top: 8px !important;
    border-top: 2px dashed var(--color-border) !important;
}

.wc-block-checkout__terms .wc-block-components-checkbox__label {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: var(--color-text-soft) !important;
}

.wc-block-checkout__terms .wc-block-components-checkbox__label a {
    color: var(--color-electric) !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   TRUST BADGES & GUARANTEES
   Positioned at the bottom of the sidebar
   ========================================================================== */

/* Container injected via JS */
#checkout-trust-content {
    margin-top: 20px;
}

/* Trust section */
.checkout-trust-section {
    text-align: center;
    padding: 20px;
    background: transparent;
    border: none;
    border-top: 3px dashed var(--color-border);
}

.checkout-trust-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.checkout-trust-badge {
    width: 40px;
    height: 40px;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.checkout-trust-text {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Guarantee banner */
.checkout-guarantee-banner {
    background: var(--color-sun);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: none;
}

.checkout-guarantee-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.checkout-guarantee-text {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.checkout-guarantee-text strong {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

/* ==========================================================================
   EXPRESS CHECKOUT
   ========================================================================== */

.wc-block-components-express-payment {
    background: var(--color-surface);
    border: 3px solid var(--color-border);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 32px;
}

.wc-block-components-express-payment__title {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-soft);
    margin-bottom: 16px;
    text-align: center;
}

.wc-block-components-express-payment-continue-rule {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
}

.wc-block-components-express-payment-continue-rule::before,
.wc-block-components-express-payment-continue-rule::after {
    content: '';
    flex: 1;
    border-bottom: 3px dashed var(--color-border);
}

.wc-block-components-express-payment-continue-rule > span {
    padding: 0 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-soft);
}

/* ==========================================================================
   LOADING STATES & SPINNERS
   ========================================================================== */

.wc-block-components-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--color-mint);
    border-radius: 50%;
    animation: checkout-spin 1s linear infinite;
}

@keyframes checkout-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Processing overlay */
.wc-block-checkout__loading-screen {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.wc-block-checkout__loading-screen .wc-block-components-spinner {
    width: 60px;
    height: 60px;
    margin-bottom: 24px;
}

.wc-block-checkout__loading-screen__text {
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   ERROR STATES
   ========================================================================== */

.wc-block-components-validation-error {
    color: var(--color-hot);
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
}

.wc-block-components-text-input.has-error input,
.wc-block-components-combobox.has-error input {
    border-color: var(--color-hot);
}

.wc-block-components-notice-banner {
    background: var(--color-surface);
    border: 3px solid var(--color-border);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.wc-block-components-notice-banner.is-error {
    border-left: 6px solid var(--color-hot);
}

.wc-block-components-notice-banner.is-success {
    border-left: 6px solid var(--color-mint);
}

.wc-block-components-notice-banner.is-info {
    border-left: 6px solid var(--color-electric);
}

.wc-block-components-notice-banner.is-warning {
    border-left: 6px solid var(--color-sun);
}

.wc-block-components-notice-banner__content {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

/* ==========================================================================
   CREATE ACCOUNT SECTION
   ========================================================================== */

.wc-block-checkout__create-account {
    background: var(--color-bg);
    border: 3px solid var(--color-border);
    padding: 20px;
    margin-top: 20px;
}

.wc-block-checkout__create-account .wc-block-components-checkbox {
    background: transparent;
    border: none;
    padding: 0;
}

/* ==========================================================================
   ORDER NOTES SECTION
   ========================================================================== */

/* Order notes block wrapper - no border, clean look */
.wc-block-checkout__order-notes {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.wc-block-checkout__order-notes .wc-block-components-checkout-step__container {
    padding: 16px 0 !important;
}

.wc-block-checkout__order-notes .wc-block-components-checkout-step__content {
    padding: 0 !important;
}

/* Add note checkbox wrapper */
.wc-block-checkout__add-note {
    margin: 0 !important;
}

.wc-block-checkout__add-note .wc-block-components-checkbox {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    background: transparent !important;
    border: none !important;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */

@media (max-width: 768px) {
    .wp-block-woocommerce-checkout {
        padding: 24px 16px;
    }

    .wc-block-components-checkout-step__content {
        padding: 20px;
    }

    .wc-block-components-checkout-step__heading {
        padding: 12px 20px;
    }

    .wc-block-components-order-summary__content {
        padding: 16px;
    }

    .wc-block-components-checkout-place-order-button {
        padding: 16px 24px;
        font-size: 14px;
    }
}

/* ==========================================================================
   PROGRESS BAR (Custom - add via template or hooks)
   ========================================================================== */

.checkout-progress-bar {
    background: var(--color-surface);
    border-bottom: 3px solid var(--color-border);
    padding: 20px 0;
}

.checkout-progress-inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.checkout-progress-inner::before {
    content: '';
    position: absolute;
    top: 34%;
    left: 60px;
    right: 60px;
    height: 3px;
    background: var(--color-border);
    transform: translateY(-50%);
    z-index: 0;
}

.checkout-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.checkout-step-number {
    width: 40px;
    height: 40px;
    background: var(--color-bg);
    border: 3px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
}

.checkout-progress-step.completed .checkout-step-number {
    background: var(--color-mint);
}

.checkout-progress-step.active .checkout-step-number {
    background: var(--color-electric);
    color: white;
}

.checkout-step-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-soft);
}

.checkout-progress-step.active .checkout-step-label {
    color: var(--color-text);
    font-weight: 700;
}

@media (max-width: 500px) {
    .checkout-progress-inner::before {
        top: 50%;
    }
    
    .checkout-step-label {
        display: none;
    }
}

/* ==========================================================================
   SECURE CHECKOUT HEADER (Custom - add via template)
   ========================================================================== */

.checkout-secure-header {
    background: var(--color-text);
    color: white;
    border-bottom: 3px solid var(--color-border);
    padding: 16px 0;
}

.checkout-secure-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-secure-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-mint);
}

.checkout-secure-badge::before {
    content: '🔒';
}

/* When inside the header navigation */
.nav-menu .checkout-secure-badge {
    margin-left: auto;
    padding-left: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   CHECKOUT HEADER OVERRIDES
   Simplified header for checkout - keeps container intact
   Black background with inverted logo colors (matches footer)
   ========================================================================== */

/* Black background header for checkout/cart */
body.woocommerce-checkout .header,
body.woocommerce-cart .header {
    background: var(--color-text);
    border-bottom-color: var(--color-border);
}

/* Ensure header container keeps its max-width */
body.woocommerce-checkout .header .container,
body.woocommerce-cart .header .container,
body.woocommerce-checkout .header-inner,
body.woocommerce-cart .header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Inverted logo colors - white text like footer */
body.woocommerce-checkout .header .nav-logo,
body.woocommerce-checkout .header .logo,
body.woocommerce-cart .header .nav-logo,
body.woocommerce-cart .header .logo {
    color: white;
}

body.woocommerce-checkout .header .nav-logo:hover,
body.woocommerce-checkout .header .logo:hover,
body.woocommerce-cart .header .nav-logo:hover,
body.woocommerce-cart .header .logo:hover {
    color: white;
}

/* Inverted logo box - white border like footer */
body.woocommerce-checkout .header .nav-logo-box,
body.woocommerce-checkout .header .logo-box,
body.woocommerce-cart .header .nav-logo-box,
body.woocommerce-cart .header .logo-box {
    border-color: white;
}

/* Hide regular nav items on checkout for cleaner experience */
body.woocommerce-checkout .nav-links,
body.woocommerce-checkout .nav-cta {
    display: none;
}

body.woocommerce-checkout .nav-menu {
    justify-content: flex-end;
}

body.woocommerce-checkout .nav-toggle {
    display: none;
}

/* ==========================================================================
   SUBSCRIPTION INFO (For recurring payments)
   ========================================================================== */

.wc-block-components-product-metadata__description--subscription,
.wc-block-components-order-summary-item__subscription {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-electric);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Recurring total display */
.wc-block-components-totals-item--recurring {
    background: var(--color-mint);
    border-color: var(--color-border);
}

.wc-block-components-totals-item--recurring .wc-block-components-totals-item__label {
    font-weight: 700;
}

/* ==========================================================================
   ADDITIONAL BLOCK EDITOR OVERRIDES
   ========================================================================== */

/* Remove default WordPress block styling */
.wc-block-checkout .wp-block-group,
.wc-block-checkout .wp-block-columns {
    margin-bottom: 0;
}

/* Ensure proper stacking context - add to wrapper, not grid container */
.wp-block-woocommerce-checkout {
    position: relative;
    z-index: 1;
}

/* Override default WooCommerce button colors */
.wc-block-components-button:not(.is-link) {
    border-radius: 0;
}

.wc-block-components-button.wc-block-components-button--link {
    color: var(--color-electric);
    text-decoration: none;
}

.wc-block-components-button.wc-block-components-button--link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   FALLBACK OVERRIDES
   Reset styles if checkout is rendered within default page template
   Only target main content area, not header/footer
   ========================================================================== */

/* If checkout blocks are inside entry-content, reset the container styles */
body.woocommerce-checkout .site-main .entry-content,
body.woocommerce-cart .site-main .entry-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: none !important;
}

body.woocommerce-checkout .site-main .page-content,
body.woocommerce-cart .site-main .page-content {
    max-width: none;
    padding: 0;
}

/* Only reset container inside main content area - NOT header */
body.woocommerce-checkout .site-main > .container,
body.woocommerce-cart .site-main > .container,
body.woocommerce-checkout .site-main .page-content,
body.woocommerce-cart .site-main .page-content {
    max-width: none;
    padding: 0;
}

/* Reset article styling inside main content */
body.woocommerce-checkout .site-main article,
body.woocommerce-cart .site-main article {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

/* Hide featured images on checkout/cart */
body.woocommerce-checkout .page-featured-image,
body.woocommerce-cart .page-featured-image {
    display: none;
}

/* Hide entry footer on checkout/cart */
body.woocommerce-checkout .entry-footer,
body.woocommerce-cart .entry-footer {
    display: none;
}

/* ==========================================================================
   CART PAGE OVERRIDES (Block Cart)
   Comprehensive styling for WooCommerce Block Cart
   Matches checkout design patterns
   ========================================================================== */

/* Outer WordPress block wrapper */
.wp-block-woocommerce-cart {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 40px 24px !important;
    width: 100% !important;
}

/* Remove alignwide override */
.wp-block-woocommerce-cart.alignwide,
.wp-block-woocommerce-cart.alignfull {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Inner cart container */
.wc-block-cart {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Cart layout - uses same sidebar layout as checkout */
.wc-block-cart .wc-block-components-sidebar-layout {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 40px !important;
    align-items: flex-start !important;
    max-width: 100% !important;
}

/* Main cart items column */
.wc-block-cart .wc-block-components-main {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    order: 1 !important;
}

/* Cart sidebar column */
.wc-block-cart .wc-block-components-sidebar {
    flex: 0 0 380px !important;
    width: 380px !important;
    max-width: 380px !important;
    min-width: 380px !important;
    position: sticky !important;
    top: 100px !important;
    order: 2 !important;
    padding-left: 0 !important;
    background: var(--color-surface) !important;
    border: 3px solid var(--color-border) !important;
    box-shadow: 6px 6px 0 var(--color-border) !important;
    overflow: hidden !important;
}

/* Tablet/Mobile: Single column layout */
@media (max-width: 1000px) {
    .wp-block-woocommerce-cart {
        padding: 32px 20px !important;
    }
    
    .wc-block-cart .wc-block-components-sidebar-layout {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        gap: 32px !important;
    }
    
    .wc-block-cart .wc-block-components-sidebar {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        position: static !important;
        order: 2 !important;
    }
    
    .wc-block-cart .wc-block-components-main {
        flex: 1 1 100% !important;
        width: 100% !important;
        order: 1 !important;
    }
}

/* ==========================================================================
   CART ITEMS TABLE
   ========================================================================== */

/* Cart items wrapper */
.wc-block-cart-items {
    background: var(--color-surface) !important;
    border: 3px solid var(--color-border) !important;
    box-shadow: var(--shadow) !important;
    overflow: hidden !important;
}

/* Cart table */
.wc-block-cart-items__header,
.wc-block-cart-items table,
.wc-block-cart-items thead,
.wc-block-cart-items tbody {
    display: block !important;
    width: 100% !important;
}

/* Cart table header */
.wc-block-cart-items__header {
    background: var(--color-text) !important;
    color: white !important;
    padding: 16px 24px !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

.wc-block-cart-items__header-image,
.wc-block-cart-items__header-product,
.wc-block-cart-items__header-total {
    font-weight: 800 !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
    color: white !important;
}

/* Hide table header on actual table - we use custom header above */
.wc-block-cart-items thead {
    display: none !important;
}

/* Cart item row */
.wc-block-cart-items__row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 20px 24px !important;
    border-bottom: 3px dashed var(--color-border) !important;
    background: var(--color-surface) !important;
}

.wc-block-cart-items__row:last-child {
    border-bottom: none !important;
}

/* Product image cell */
.wc-block-cart-item__image {
    width: 80px !important;
    flex-shrink: 0 !important;
}

.wc-block-cart-item__image a {
    display: block !important;
}

.wc-block-cart-item__image img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    border: 3px solid var(--color-border) !important;
    background: var(--color-bg) !important;
}

/* Product details cell */
.wc-block-cart-item__product {
    flex: 1 !important;
    min-width: 200px !important;
    padding: 0 !important;
}

/* Product name */
.wc-block-cart-item__product .wc-block-components-product-name {
    font-weight: 800 !important;
    font-size: 16px !important;
    color: var(--color-text) !important;
    text-decoration: none !important;
    display: block !important;
    margin-bottom: 4px !important;
}

.wc-block-cart-item__product .wc-block-components-product-name:hover {
    color: var(--color-electric) !important;
}

/* Product metadata (variations, etc.) */
.wc-block-cart-item__product .wc-block-components-product-metadata {
    font-size: 13px !important;
    color: var(--color-text-soft) !important;
    margin-top: 4px !important;
}

.wc-block-cart-item__product .wc-block-components-product-metadata__description {
    font-family: var(--font-mono) !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: var(--color-electric) !important;
}

/* Product price (unit price) */
.wc-block-cart-item__product .wc-block-components-product-price {
    font-family: var(--font-mono) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin-top: 8px !important;
}

.wc-block-cart-item__product .wc-block-components-product-price del {
    color: var(--color-text-soft) !important;
    text-decoration: line-through !important;
    margin-right: 8px !important;
}

.wc-block-cart-item__product .wc-block-components-product-price ins {
    color: var(--color-hot) !important;
    text-decoration: none !important;
}

/* ==========================================================================
   QUANTITY CONTROLS
   ========================================================================== */

.wc-block-cart-item__quantity {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* Quantity input wrapper */
.wc-block-components-quantity-selector {
    display: flex !important;
    align-items: stretch !important;
    border: 3px solid var(--color-border) !important;
    background: var(--color-bg) !important;
    height: 44px !important;
}

/* Quantity buttons */
.wc-block-components-quantity-selector__button {
    width: 40px !important;
    height: 100% !important;
    background: var(--color-surface) !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--color-text) !important;
    transition: all 0.15s ease !important;
    padding: 0 !important;
}

.wc-block-components-quantity-selector__button:hover {
    background: var(--color-electric) !important;
    color: white !important;
}

.wc-block-components-quantity-selector__button:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

.wc-block-components-quantity-selector__button:disabled:hover {
    background: var(--color-surface) !important;
    color: var(--color-text) !important;
}

/* Quantity input */
.wc-block-components-quantity-selector__input {
    width: 50px !important;
    height: 100% !important;
    text-align: center !important;
    font-family: var(--font-mono) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border: none !important;
    border-left: 2px solid var(--color-border) !important;
    border-right: 2px solid var(--color-border) !important;
    background: var(--color-bg) !important;
    -moz-appearance: textfield !important;
}

.wc-block-components-quantity-selector__input::-webkit-outer-spin-button,
.wc-block-components-quantity-selector__input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.wc-block-components-quantity-selector__input:focus {
    outline: none !important;
    background: var(--color-surface) !important;
}

/* Remove item button */
.wc-block-cart-item__remove-link {
    color: var(--color-hot) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    padding: 8px 0 !important;
    background: none !important;
    border: none !important;
}

.wc-block-cart-item__remove-link:hover {
    text-decoration: underline !important;
}

/* ==========================================================================
   CART ITEM TOTAL
   ========================================================================== */

.wc-block-cart-item__total {
    min-width: 100px !important;
    text-align: right !important;
}

.wc-block-cart-item__total .wc-block-components-product-price {
    font-family: var(--font-mono) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--color-text) !important;
}

.wc-block-cart-item__total .wc-block-components-product-price__regular {
    text-decoration: line-through !important;
    color: var(--color-text-soft) !important;
    font-size: 14px !important;
}

/* ==========================================================================
   CART SIDEBAR / TOTALS
   ========================================================================== */

/* Cart totals title */
.wc-block-cart__totals-title {
    background: var(--color-hot) !important;
    color: white !important;
    padding: 20px 24px !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 0 !important;
    border: none !important;
}

/* Totals content wrapper */
.wc-block-cart .wc-block-components-totals-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Subtotal, shipping, etc. rows */
.wc-block-cart .wc-block-components-totals-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 24px !important;
    border-bottom: 2px dashed var(--color-border) !important;
    background: transparent !important;
    margin: 0 !important;
}

.wc-block-cart .wc-block-components-totals-item:last-child {
    border-bottom: none !important;
}

.wc-block-cart .wc-block-components-totals-item__label {
    font-weight: 600 !important;
    font-size: 14px !important;
    color: var(--color-text) !important;
}

.wc-block-cart .wc-block-components-totals-item__value {
    font-family: var(--font-mono) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: var(--color-text) !important;
}

/* Shipping calculator */
.wc-block-components-totals-shipping {
    padding: 16px 24px !important;
    border-bottom: 3px solid var(--color-border) !important;
}

.wc-block-components-totals-shipping__fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wc-block-components-shipping-calculator {
    margin-top: 12px !important;
}

.wc-block-components-shipping-calculator-address {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

/* Cart coupon section */
.wc-block-cart .wc-block-components-totals-coupon {
    padding: 0 !important;
    border-bottom: 3px solid var(--color-border) !important;
}

.wc-block-cart .wc-block-components-totals-coupon .wc-block-components-panel__button {
    padding: 16px 24px !important;
    color: var(--color-electric) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    width: 100% !important;
    text-align: left !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
}

.wc-block-cart .wc-block-components-totals-coupon .wc-block-components-panel__button:hover {
    background: var(--color-bg) !important;
}

/* Grand total - highlighted */
.wc-block-cart .wc-block-components-totals-footer-item {
    background: var(--color-sun) !important;
    padding: 20px 24px !important;
    border: none !important;
    margin: 0 !important;
}

.wc-block-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-size: 16px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

.wc-block-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 20px !important;
}

/* ==========================================================================
   PROCEED TO CHECKOUT BUTTON
   ========================================================================== */

.wc-block-cart__submit-container {
    padding: 20px 24px !important;
    background: var(--color-surface) !important;
}

.wc-block-cart__submit-button {
    width: 100% !important;
    padding: 18px 32px !important;
    font-family: var(--font-main) !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    background: var(--color-electric) !important;
    color: white !important;
    border: 3px solid var(--color-border) !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    box-shadow: var(--shadow) !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    display: block !important;
    text-align: center !important;
}

.wc-block-cart__submit-button:hover {
    transform: translate(3px, 3px) !important;
    box-shadow: 1px 1px 0 var(--color-border) !important;
    color: white !important;
}

.wc-block-cart__submit-button:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Accepted payment methods */
.wc-block-components-payment-method-icons {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 12px !important;
}

.wc-block-components-payment-method-icons__icon {
    height: 24px !important;
    width: auto !important;
}

/* ==========================================================================
   EMPTY CART STATE
   ========================================================================== */

.wc-block-cart--is-empty {
    max-width: 600px !important;
    margin: 0 auto !important;
    padding: 60px 24px !important;
    text-align: center !important;
}

.wc-block-cart--is-empty .wc-block-cart__empty-cart__title {
    font-size: 28px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    margin-bottom: 16px !important;
}

.wc-block-cart--is-empty .wc-block-cart__empty-cart__title::before {
    content: '🛒' !important;
    display: block !important;
    font-size: 64px !important;
    margin-bottom: 24px !important;
}

.wc-block-cart--is-empty p {
    color: var(--color-text-soft) !important;
    font-size: 16px !important;
    margin-bottom: 32px !important;
}

/* Start shopping button */
.wc-block-cart--is-empty .wc-block-components-button {
    display: inline-flex !important;
    padding: 16px 32px !important;
    font-family: var(--font-main) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    background: var(--color-electric) !important;
    color: white !important;
    border: 3px solid var(--color-border) !important;
    box-shadow: var(--shadow) !important;
    text-decoration: none !important;
    border-radius: 0 !important;
    transition: all 0.15s ease !important;
}

.wc-block-cart--is-empty .wc-block-components-button:hover {
    transform: translate(3px, 3px) !important;
    box-shadow: 1px 1px 0 var(--color-border) !important;
}

/* ==========================================================================
   CROSS-SELLS SECTION
   ========================================================================== */

.wc-block-cart__cross-sells {
    margin-top: 40px !important;
    padding-top: 40px !important;
    border-top: 3px solid var(--color-border) !important;
}

.wc-block-cart__cross-sells-title {
    font-size: 20px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    margin-bottom: 24px !important;
}

.wc-block-cart__cross-sells .cross-sells-product {
    background: var(--color-surface) !important;
    border: 3px solid var(--color-border) !important;
    box-shadow: var(--shadow-sm) !important;
    padding: 20px !important;
    transition: all 0.15s ease !important;
}

.wc-block-cart__cross-sells .cross-sells-product:hover {
    transform: translate(2px, 2px) !important;
    box-shadow: 2px 2px 0 var(--color-border) !important;
}

/* ==========================================================================
   CART PAGE MOBILE RESPONSIVENESS
   ========================================================================== */

@media (max-width: 768px) {
    .wp-block-woocommerce-cart {
        padding: 24px 16px !important;
    }
    
    .wc-block-cart-items__row {
        padding: 16px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    
    .wc-block-cart-item__image {
        width: 60px !important;
    }
    
    .wc-block-cart-item__image img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .wc-block-cart-item__product {
        min-width: 100% !important;
    }
    
    .wc-block-cart-item__quantity {
        width: 100% !important;
        justify-content: space-between !important;
    }
    
    .wc-block-cart-item__total {
        width: 100% !important;
        text-align: left !important;
        padding-top: 8px !important;
        border-top: 2px dashed var(--color-border) !important;
    }
    
    .wc-block-cart__submit-container {
        padding: 16px !important;
    }
    
    .wc-block-cart__submit-button {
        padding: 16px 24px !important;
        font-size: 14px !important;
    }
}

/* ==========================================================================
   CART - HEADER TITLE BAR (Custom)
   Can be used to add a header similar to checkout sections
   ========================================================================== */

.cart-page-header {
    background: var(--color-text) !important;
    color: white !important;
    padding: 16px 24px !important;
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.cart-page-header__icon {
    font-size: 24px !important;
}

.cart-page-header__title {
    font-size: 18px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 0 !important;
}

.cart-page-header__count {
    margin-left: auto !important;
    font-family: var(--font-mono) !important;
    font-size: 13px !important;
    opacity: 0.8 !important;
}

.wp-block-woocommerce-checkout .wc-block-checkout__login-prompt {
    float: right;
    font-size: 1em;
    margin-top: 0px;
}

.wp-block-woocommerce-checkout .wc-block-checkout__login-prompt {
    margin-top: 0px!important;
}