/**
 * SuperPyme Checkout Blocks - Base Styles
 * Variables, layout, typography, form fields, radio cards
 */

/* ============================================
   SVG ICON STYLES (LUCIDE ICONS)
   ============================================ */
svg.spcb-icon {
    display: inline-block;
    vertical-align: middle;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* Info section icons */
.spcb-info-section h4 svg.spcb-icon {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    vertical-align: -3px;
}

/* Warning icon in validation */
.spcb-warning-icon svg.spcb-icon {
    width: 24px;
    height: 24px;
    color: #dc2626;
}

/* Branch summary icon */
.spcb-branch-icon svg.spcb-icon {
    width: 18px;
    height: 18px;
    color: var(--spcb-accent, #008060);
}

/* ============================================
   OCULTAR HEADER/FOOTER EN CHECKOUT
   ============================================ */
body.woocommerce-checkout header,
body.woocommerce-checkout footer,
body.woocommerce-checkout #brx-header,
body.woocommerce-checkout #brx-footer,
body.woocommerce-checkout .brxe-header,
body.woocommerce-checkout .brxe-footer {
    display: none !important;
}

/* Ocultar titulo de pagina */
body.woocommerce-checkout h1.entry-title,
body.woocommerce-checkout .page-title,
body.woocommerce-checkout #brx-content > h1:first-child,
body.woocommerce-checkout .brxe-post-title {
    display: none !important;
}

/* ============================================
   LAYOUT Y CONTENEDOR
   ============================================ */
body.woocommerce-checkout {
    background-color: #f5f5f5;
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
}

body.woocommerce-checkout #brx-content {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout {
    max-width: var(--spcb-shell-content-width, 1200px);
    margin: 0 auto;
    padding: 40px var(--spcb-shell-desktop-gutter, 0);
    font-size: 16px;
}

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --spcb-accent: #008060;
    --spcb-accent-hover: #006e52;
    --spcb-accent-light: rgba(0, 128, 96, 0.08);
    --spcb-accent-hover-light: rgba(0, 128, 96, 0.03);
    /* Link colors: darker variation of accent for better contrast with icons */
    --spcb-link-color: #005942;
    --spcb-link-hover: #004634;
    --spcb-border: #d9d9d9;
    --spcb-text: #1a1a1a;
    --spcb-text-muted: #666666;
    --spcb-radius: 8px;
    --spcb-transition: 150ms ease;
    /* Font: inherit from theme, fallback to system fonts */
    --spcb-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* ============================================
   FONT FAMILY - HEREDAR DEL TEMA
   ============================================ */
body.woocommerce-checkout,
body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-checkout .wc-block-components-checkout-step,
body.woocommerce-checkout h1,
body.woocommerce-checkout h2,
body.woocommerce-checkout h3,
body.woocommerce-checkout h4,
body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-components-checkout-step__title,
body.woocommerce-checkout input,
body.woocommerce-checkout select,
body.woocommerce-checkout textarea,
body.woocommerce-checkout button,
body.woocommerce-checkout label,
body.woocommerce-checkout p,
body.woocommerce-checkout span,
body.woocommerce-checkout a {
    font-family: var(--spcb-font-family);
}

/* ============================================
   TIPOGRAFIA BASE - MAS GRANDE
   ============================================ */
body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-checkout .wc-block-components-checkout-step,
body.woocommerce-checkout .wc-block-components-text-input,
body.woocommerce-checkout .wc-block-components-select-input {
    font-size: 16px;
}

body.woocommerce-checkout .wc-block-components-checkout-step__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

body.woocommerce-checkout .wc-block-components-checkout-step__description {
    font-size: 14px;
    color: var(--spcb-text-muted);
    margin-bottom: 20px;
}

body.woocommerce-checkout input,
body.woocommerce-checkout select,
body.woocommerce-checkout textarea {
    font-size: 16px !important;
}

body.woocommerce-checkout label {
    font-size: 14px;
    font-weight: 500;
}

/* ============================================
   RADIO CARDS - BOLETA/FACTURA
   ============================================ */

/* ===========================================
   SOLUCION v7: FORZAR FLEXBOX en el contenedor
   El contenedor .wc-block-components-address-form NO tiene display:flex por defecto
   Debemos forzarlo para que los campos puedan usar flex properties
   v1.11.2: Selectores ultra-específicos para sobreescribir cualquier tema
   =========================================== */

/* PASO 1: Forzar FLEX en el contenedor padre con máxima especificidad */
/* v1.16.4: Gaps separados - column-gap 16px (anchos), row-gap 20px (filas) */
body.woocommerce-checkout .wc-block-checkout__contact-fields #contact.wc-block-components-address-form,
body.woocommerce-checkout div#contact.wc-block-components-address-form,
body.woocommerce-checkout #contact.wc-block-components-address-form,
body.woocommerce-checkout .wc-block-components-address-form,
#contact.wc-block-components-address-form,
.wc-block-components-address-form {
    display: flex !important;
    flex-wrap: wrap !important;
    column-gap: 16px !important;
    row-gap: 20px !important;
    align-items: flex-start !important;
    align-content: flex-start !important;
}

/* PASO 2: Campos que ocupan 100% del ancho */

/* Selector Boleta/Factura - full width */
/* v1.16.4: margin: 0 - usar solo gap del contenedor para espaciado uniforme */
.wc-block-components-address-form .wc-block-components-select-input-spcb-document_type,
.wc-block-components-select-input-spcb-document_type,
.spcb-document-type-wrapper {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Campo RUT - full width */
.wc-block-components-address-form .wc-block-components-address-form__spcb-billing_rut,
.wc-block-components-address-form__spcb-billing_rut,
.wc-block-components-text-input.wc-block-components-address-form__spcb-billing_rut {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Campos de factura - 2 columnas en PC (50% cada uno) */
/* Campos de texto: razón social, giro, dirección, teléfono */
.wc-block-components-address-form__spcb-invoice_company,
.wc-block-components-address-form__spcb-invoice_giro,
.wc-block-components-address-form__spcb-invoice_address,
.wc-block-components-address-form__spcb-invoice_phone {
    flex: 0 0 calc(50% - 8px) !important;
    max-width: calc(50% - 8px) !important;
}

/* Campos select: región y comuna factura */
.wc-block-components-select-input-spcb-invoice_region,
.wc-block-components-select-input-spcb-invoice_comuna {
    flex: 0 0 calc(50% - 8px) !important;
    max-width: calc(50% - 8px) !important;
}

/* RUT de quien recibe - full width (v1.10.30) */
.wc-block-components-address-form__spcb-shipping_rut,
.wc-block-components-text-input.wc-block-components-address-form__spcb-shipping_rut {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Email field - v1.11.2: ahora es 50% junto con teléfono - ver sección CONTACT NAME FIELDS */

/* El margin-bottom del wrapper ya está en la regla anterior (32px) */

/* Ocultar elementos del select original cuando hay radio cards */
.spcb-document-type-wrapper .wc-blocks-components-select__expand,
.spcb-document-type-wrapper .wc-blocks-components-select__label {
    display: none !important;
}

/* El contenedor del select debe ser bloque completo */
.spcb-document-type-wrapper .wc-blocks-components-select,
.spcb-document-type-wrapper .wc-blocks-components-select__container {
    display: block !important;
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Radio Cards - Layout HORIZONTAL compacto */
.spcb-radio-cards {
    display: flex;
    gap: 12px;
    width: 100%;
}

.spcb-radio-card {
    flex: 1;
    position: relative;
    min-width: 0; /* Permite que se encojan en mobile */
}

.spcb-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
    margin: 0;
}

/* Label HORIZONTAL: icono a la izquierda, texto a la derecha */
body.woocommerce-checkout .spcb-radio-card label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff !important;
    border: 2px solid var(--spcb-border) !important;
    border-radius: var(--spcb-radius) !important;
    cursor: pointer;
    min-height: auto;
    transition: border-color var(--spcb-transition), background var(--spcb-transition), box-shadow var(--spcb-transition);
}

/* Hover SUTIL para cards - v1.8.53 usando hover en padre (input tiene z-index) */
body.woocommerce-checkout .spcb-radio-card:hover label {
    border-color: #66b3a0 !important;
    background: var(--spcb-accent-hover-light) !important;
}

body.woocommerce-checkout .spcb-radio-card:hover .spcb-icon {
    color: #4d997f !important;
}

/* Modern browsers with color-mix support */
@supports (background: color-mix(in srgb, red 50%, blue)) {
    body.woocommerce-checkout .spcb-radio-card:hover label {
        border-color: color-mix(in srgb, var(--spcb-accent, #008060) 50%, #ccc) !important;
        background: color-mix(in srgb, var(--spcb-accent, #008060) 3%, white) !important;
    }

    body.woocommerce-checkout .spcb-radio-card:hover .spcb-icon {
        color: color-mix(in srgb, var(--spcb-accent, #008060) 70%, #666) !important;
    }
}

body.woocommerce-checkout .spcb-radio-card input[type="radio"]:checked + label {
    border-color: var(--spcb-accent) !important;
    background: var(--spcb-accent-light) !important;
    box-shadow: 0 0 0 1px var(--spcb-accent) !important;
}

/* Icono mas pequeño */
.spcb-radio-card .spcb-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--spcb-text-muted);
    transition: color var(--spcb-transition);
}

.spcb-radio-card input[type="radio"]:checked + label .spcb-icon {
    color: var(--spcb-accent);
}

/* Contenedor de texto */
.spcb-radio-card .spcb-label-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--spcb-text);
    line-height: 1.2;
}

.spcb-radio-card input[type="radio"]:checked + label .spcb-label-text {
    color: var(--spcb-accent);
}

/* Descripcion oculta en desktop, visible en mobile */
.spcb-radio-card .spcb-label-desc {
    display: none;
}

/* RESPONSIVE: En mobile, cards en columna */
@media (max-width: 600px) {
    .spcb-radio-cards {
        flex-direction: column;
        gap: 8px;
    }

    .spcb-radio-card label {
        padding: 12px 14px;
    }

    .spcb-radio-card .spcb-label-desc {
        display: block;
        font-size: 12px;
        color: var(--spcb-text-muted);
        margin-top: 2px;
    }

    /* Margen entre Boleta/Factura y RUT en móvil - reducido */
    #contact .wc-block-components-select-input-spcb-document_type,
    #contact .spcb-document-type-wrapper,
    .wc-block-components-address-form .spcb-document-type-wrapper {
        margin-bottom: 16px !important;
    }

    /* Espacio arriba del RUT en móvil - reducido */
    #contact .wc-block-components-address-form__spcb-billing_rut,
    .wc-block-components-address-form .wc-block-components-address-form__spcb-billing_rut,
    .wc-block-components-text-input.wc-block-components-address-form__spcb-billing_rut {
        margin-top: 8px !important;
    }

    /* Campos de factura en 1 columna en móvil */
    .wc-block-components-address-form__spcb-invoice_company,
    .wc-block-components-address-form__spcb-invoice_giro,
    .wc-block-components-address-form__spcb-invoice_address,
    .wc-block-components-address-form__spcb-invoice_phone,
    .wc-block-components-select-input-spcb-invoice_region,
    .wc-block-components-select-input-spcb-invoice_comuna {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* ============================================
   CAMPOS CONDICIONALES - FACTURA
   Ocultar por defecto usando el WRAPPER del campo
   ============================================ */

/* WooCommerce genera wrappers con clase que contiene el ID del campo */
/* Patron: .wc-block-components-text-input[class*="spcb-invoice"] */

/* Ocultar todos los campos de factura por defecto */
.wc-block-components-text-input[class*="spcb-invoice"],
.wc-block-components-select-input[class*="spcb-invoice"],
.wc-block-components-form-row[class*="spcb-invoice"],
[class*="address-form__spcb-invoice"],
[class*="address-form__spcb-shipping_rut"] {
    display: none !important;
}

/* Mostrar en modo factura - usar flex en vez de block para layout 2 columnas */
body.spcb-factura-mode .wc-block-components-text-input[class*="spcb-invoice"],
body.spcb-factura-mode .wc-block-components-select-input[class*="spcb-invoice"],
body.spcb-factura-mode .wc-block-components-form-row[class*="spcb-invoice"],
body.spcb-factura-mode [class*="address-form__spcb-invoice"] {
    display: flex !important;
    flex-direction: column;
}

/* RUT de quien recibe - full width en modo factura (v1.10.30) */
body.spcb-factura-mode [class*="address-form__spcb-shipping_rut"],
body.spcb-factura-mode .wc-block-components-text-input.wc-block-components-address-form__spcb-shipping_rut {
    display: flex !important;
    flex-direction: column;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Ocultar "(opcional)" en labels cuando Factura está seleccionada */
body.spcb-factura-mode .spcb-optional-text {
    display: none !important;
}

/* Indicador visual de campo requerido (asterisco rojo) */
/* Se agrega via JS cuando el campo es requerido para evitar validación de WC Blocks */
.spcb-field-required label::after {
    content: " *";
    color: #d63638;
    font-weight: 600;
}

/* ============================================
   CAMPOS CONDICIONALES - SUCURSAL
   ============================================ */
.wc-block-components-text-input[class*="spcb-branch"],
.wc-block-components-select-input[class*="spcb-branch"],
[class*="address-form__spcb-branch"] {
    display: none !important;
}

body.spcb-branch-mode .wc-block-components-text-input[class*="spcb-branch"],
body.spcb-branch-mode .wc-block-components-select-input[class*="spcb-branch"],
body.spcb-branch-mode [class*="address-form__spcb-branch"] {
    display: block !important;
}

/* ============================================
   CAMPOS DE FORMULARIO - INPUTS
   ============================================ */
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-textarea textarea {
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid var(--spcb-border);
    border-radius: var(--spcb-radius);
    background: #fff;
    transition: border-color var(--spcb-transition), box-shadow var(--spcb-transition);
}

body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus {
    border-color: var(--spcb-accent);
    box-shadow: 0 0 0 1px var(--spcb-accent);
    outline: none;
}

body.woocommerce-checkout .wc-blocks-components-select__container {
    border: 1px solid var(--spcb-border);
    border-radius: var(--spcb-radius);
}

body.woocommerce-checkout .wc-blocks-components-select__select {
    padding: 14px 16px;
    font-size: 16px;
}

/* ============================================
   RUT FIELD - MONOSPACE
   ============================================ */
[data-spcb-field="billing_rut"],
[data-spcb-field="shipping_rut"] {
    font-family: "SF Mono", Monaco, Consolas, monospace;
    letter-spacing: 1px;
}

/* ============================================
   SECCIONES DEL CHECKOUT
   ============================================ */
body.woocommerce-checkout .wc-block-components-checkout-step {
    background: #fff;
    border: 1px solid var(--spcb-border);
    border-radius: var(--spcb-radius);
    padding: 24px;
    margin-bottom: 16px;
}

/* ============================================
   OCULTAR SECCIONES REDUNDANTES
   ============================================ */

/* ============================================
   BILLING ADDRESS: COMPLETAMENTE OCULTO (v1.10.45)
   ============================================
   Los nombres del cliente vienen de campos custom en la sección
   de contacto (spcb/contact_first_name, spcb/contact_last_name).

   El billing block se oculta SIEMPRE porque:
   - Los nombres están en contacto
   - La dirección de factura (para Factura) usa campos custom
   - Para Boleta, no se necesitan datos de facturación

   IMPORTANTE: Usar "visually hidden" (no display:none) para que
   React/WooCommerce Blocks pueda acceder a los campos.
   ============================================ */
body.woocommerce-checkout .wp-block-woocommerce-checkout-billing-address-block {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    pointer-events: none !important;
}

/* ============================================
   SHIPPING ADDRESS: OCULTAR NOMBRES Y TELÉFONO (v1.11.5)
   ============================================
   Los nombres y teléfono están en la sección de contacto como campos custom.
   Los campos en shipping son redundantes y se ocultan.

   v1.11.5: Múltiples selectores de alta especificidad para máxima
   compatibilidad con todos los temas de WooCommerce.
   ============================================ */
body.woocommerce-checkout .wp-block-woocommerce-checkout-shipping-address-block .wc-block-components-address-form__first_name,
body.woocommerce-checkout .wp-block-woocommerce-checkout-shipping-address-block .wc-block-components-address-form__last_name,
body.woocommerce-checkout .wp-block-woocommerce-checkout-shipping-address-block .wc-block-components-address-form__phone,
body.woocommerce-checkout #shipping.wc-block-components-address-form .wc-block-components-address-form__first_name,
body.woocommerce-checkout #shipping.wc-block-components-address-form .wc-block-components-address-form__last_name,
body.woocommerce-checkout #shipping.wc-block-components-address-form .wc-block-components-address-form__phone,
body.woocommerce-checkout .wc-block-checkout__shipping-fields .wc-block-components-address-form__first_name,
body.woocommerce-checkout .wc-block-checkout__shipping-fields .wc-block-components-address-form__last_name,
body.woocommerce-checkout .wc-block-checkout__shipping-fields .wc-block-components-address-form__phone {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Selector por :has() para navegadores modernos (Chrome 105+, Safari 15.4+, Firefox 121+) */
@supports selector(:has(*)) {
    body.woocommerce-checkout .wc-block-components-text-input:has(#shipping-first_name),
    body.woocommerce-checkout .wc-block-components-text-input:has(#shipping-last_name),
    body.woocommerce-checkout .wc-block-components-text-input:has(#shipping-phone) {
        display: none !important;
        position: absolute !important;
        left: -9999px !important;
    }
}

/* También ocultar el shadow del teléfono de shipping (intl-tel-input) */
body.woocommerce-checkout .spcb-phone-shadow[data-shadow-for="shipping-phone"] {
    display: none !important;
}

/* "Información adicional del pedido" - ocultar siempre */
/* Los campos de sucursal se manejan via modal, el checkbox de términos se inyecta via JS */
body.woocommerce-checkout .wp-block-woocommerce-checkout-additional-information-block {
    display: none !important;
}

/* ============================================
   CHECKBOX DE TÉRMINOS INYECTADO (v1.16.30)
   Inyectado via JS para tener control total del HTML
   (WC Additional Fields API escapa el HTML)
   ============================================ */

.spcb-terms-checkbox-injected {
    margin-bottom: 20px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--spcb-border, #e0e0e0);
    border-radius: var(--spcb-radius, 8px);
}

.spcb-terms-checkbox-injected .spcb-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: var(--spcb-text, #333);
}

.spcb-terms-checkbox-injected .spcb-terms-input {
    flex-shrink: 0;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--spcb-accent, #005942);
}

.spcb-terms-checkbox-injected .spcb-terms-text a {
    color: var(--spcb-accent, #005942);
    text-decoration: underline;
}

.spcb-terms-checkbox-injected .spcb-terms-text a:hover {
    color: var(--spcb-accent-hover, #004634);
}

.spcb-terms-checkbox-injected .spcb-terms-error {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 12px;
    background: #fff5f5;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #cc1818;
    font-size: 13px;
}

.spcb-terms-checkbox-injected .spcb-terms-error svg {
    flex-shrink: 0;
}

/* Ocultar "Usar la misma dirección para facturación" */
body.woocommerce-checkout .wc-block-checkout__use-address-for-billing {
    display: none !important;
}

/* Ocultar skip links de Bricks */
body.woocommerce-checkout a.skip-link {
    display: none !important;
}

/* Ocultar "Empresa" en dirección de envío */
body.woocommerce-checkout .wc-block-components-address-form__company {
    display: none !important;
}

/* Ocultar "País/Región" en dirección de envío (solo vendemos en Chile) */
body.woocommerce-checkout .wc-block-components-address-form__country {
    display: none !important;
}

/* ============================================
   NOTAS DEL PEDIDO - ALINEAR CHECKBOX
   ============================================ */

/* Agregar padding izquierdo para alinear con otros elementos */
body.woocommerce-checkout .wc-block-checkout__order-notes .wc-block-components-checkout-step__content {
    padding-left: 16px !important;
}

body.spcb-order-note-required .wc-block-checkout__order-notes .wc-block-components-textarea label::after {
    content: " *";
    color: #d63638;
    font-weight: 600;
}

/* ============================================
   CHECKBOXES - HOVER INTERACTIVO (v1.8.47)
   ============================================ */

body.woocommerce-checkout .wc-block-components-checkbox label {
    padding: 8px 12px;
    margin: -8px -12px;
    border-radius: var(--spcb-radius, 8px);
    transition: background 0.2s ease;
    cursor: pointer;
}

body.woocommerce-checkout .wc-block-components-checkbox label:hover {
    background: var(--spcb-accent-light, rgba(0, 128, 96, 0.03));
}

body.woocommerce-checkout .wc-block-components-checkbox__label {
    transition: color 0.2s ease;
}

body.woocommerce-checkout .wc-block-components-checkbox label:hover .wc-block-components-checkbox__label {
    color: var(--spcb-accent, #008060);
}

/* ============================================
   DIRECCIÓN DE ENVÍO - LAYOUT 2 COLUMNAS
   v1.8.28 - Toggle y address_2 en misma fila que address_1
   ============================================ */

/* Contenedor de dirección de envío debe ser flex */
#shipping.wc-block-components-address-form {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
}

/* Dirección al 50% */
#shipping .wc-block-components-address-form__address_1 {
    flex: 0 0 calc(50% - 8px) !important;
    max-width: calc(50% - 8px) !important;
}

/* Toggle "+ Agregar Depto / Piso / Oficina" - 50% en la misma fila */
#shipping .wc-block-components-address-form__address_2-toggle {
    flex: 0 0 calc(50% - 8px) !important;
    max-width: calc(50% - 8px) !important;
    display: flex !important;
    align-items: center !important;
    height: 48px !important; /* Misma altura que el input */
    padding: 0 16px !important;
    background: #fff !important;
    border: 1px dashed var(--spcb-border, #d9d9d9) !important;
    border-radius: var(--spcb-radius, 8px) !important;
    color: var(--spcb-accent, #008060) !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

#shipping .wc-block-components-address-form__address_2-toggle:hover {
    background: var(--spcb-accent-light, rgba(0, 128, 96, 0.08)) !important;
    border-color: var(--spcb-accent, #008060) !important;
}

/* Campo address_2 (Apartamento) - 50% cuando está visible */
#shipping .wc-block-components-address-form__address_2 {
    flex: 0 0 calc(50% - 8px) !important;
    max-width: calc(50% - 8px) !important;
}

/* En móvil (< 500px), dirección, toggle y apartamento al 100% */
@media (max-width: 500px) {
    #shipping .wc-block-components-address-form__address_1,
    #shipping .wc-block-components-address-form__address_2-toggle,
    #shipping .wc-block-components-address-form__address_2 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    #shipping .wc-block-components-address-form__address_2-toggle {
        height: 44px !important;
        justify-content: center !important;
    }
}

/* ============================================
   NOTA: Los labels requeridos de contacto se normalizan por JS.
   En PHP algunos campos quedan required=false para evitar validación live
   prematura de Woo Blocks, pero siguen siendo obligatorios en submit final.
   ============================================ */

/* ============================================
   SELECT CONVERTIDO (shipping-city, billing-city)
   Estilizar selects que fueron convertidos desde inputs
   ============================================ */

/* Wrapper del campo ciudad cuando tiene select inyectado */
.wc-block-components-address-form__city:has(select[data-spcb-converted]) {
    position: relative;
}

/* Label flotante para campo ciudad con select */
.wc-block-components-address-form__city:has(select[data-spcb-converted]) > label {
    position: absolute;
    top: -8px;
    left: 12px;
    background: #fff;
    padding: 0 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--spcb-text-muted);
    z-index: 3;
    pointer-events: none;
}

/* El select convertido */
.wc-block-components-text-input select[data-spcb-converted],
.wc-block-components-address-form__city select[data-spcb-converted] {
    width: 100%;
    padding: 14px 40px 14px 16px;
    font-size: 16px;
    border: 1px solid var(--spcb-border);
    border-radius: var(--spcb-radius);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 12px center;
    background-size: 20px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color var(--spcb-transition), box-shadow var(--spcb-transition);
    height: 52px;
    box-sizing: border-box;
}

.wc-block-components-text-input select[data-spcb-converted]:hover,
.wc-block-components-address-form__city select[data-spcb-converted]:hover {
    border-color: #999;
}

.wc-block-components-text-input select[data-spcb-converted]:focus,
.wc-block-components-address-form__city select[data-spcb-converted]:focus {
    border-color: var(--spcb-accent);
    box-shadow: 0 0 0 1px var(--spcb-accent);
    outline: none;
}

/* Ocultar el label cuando hay searchable-select */
.wc-block-components-text-input:has(.spcb-searchable-select) > label {
    display: none;
}

/* ============================================
   SEARCHABLE SELECT (Select2-like)
   ============================================ */

.spcb-searchable-select {
    position: relative;
    width: 100%;
}

/* Floating label */
.spcb-searchable-select__label {
    position: absolute;
    top: -8px;
    left: 12px;
    background: #fff;
    padding: 0 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--spcb-text-muted);
    z-index: 2;
    pointer-events: none;
}

.spcb-searchable-select.is-open .spcb-searchable-select__label {
    color: var(--spcb-accent);
}

.spcb-searchable-select__display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--spcb-border);
    border-radius: var(--spcb-radius);
    cursor: pointer;
    transition: border-color var(--spcb-transition), box-shadow var(--spcb-transition);
    min-height: 52px;
}

.spcb-searchable-select__display:hover {
    border-color: #999;
}

.spcb-searchable-select.is-open .spcb-searchable-select__display {
    border-color: var(--spcb-accent);
    box-shadow: 0 0 0 1px var(--spcb-accent);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.spcb-searchable-select__value {
    font-size: 16px;
    color: var(--spcb-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spcb-searchable-select__value.is-placeholder {
    color: var(--spcb-text-muted);
}

.spcb-searchable-select__arrow {
    flex-shrink: 0;
    color: var(--spcb-text-muted);
    transition: transform var(--spcb-transition);
}

.spcb-searchable-select.is-open .spcb-searchable-select__arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.spcb-searchable-select__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--spcb-accent);
    border-top: none;
    border-radius: 0 0 var(--spcb-radius) var(--spcb-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow: hidden;
}

.spcb-searchable-select.is-open .spcb-searchable-select__dropdown {
    display: block;
}

/* Search input */
.spcb-searchable-select__search-wrapper {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid var(--spcb-border);
    background: #f9f9f9;
}

.spcb-searchable-select__search-icon {
    flex-shrink: 0;
    color: var(--spcb-text-muted);
    margin-right: 8px;
}

.spcb-searchable-select__search {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    padding: 4px 0;
}

.spcb-searchable-select__search::placeholder {
    color: var(--spcb-text-muted);
}

/* Options list */
.spcb-searchable-select__options {
    max-height: 240px;
    overflow-y: auto;
    padding: 4px 0;
}

.spcb-searchable-select__option {
    padding: 10px 16px;
    font-size: 14px;
    color: var(--spcb-text);
    cursor: pointer;
    transition: background var(--spcb-transition);
}

.spcb-searchable-select__option:hover,
.spcb-searchable-select__option.is-focused {
    background: var(--spcb-accent-light);
}

.spcb-searchable-select__option.is-selected {
    background: var(--spcb-accent-light);
    color: var(--spcb-accent);
    font-weight: 500;
}

.spcb-searchable-select__option.is-selected::after {
    content: "✓";
    float: right;
    color: var(--spcb-accent);
}

.spcb-searchable-select__no-results {
    padding: 16px;
    text-align: center;
    color: var(--spcb-text-muted);
    font-size: 14px;
}

/* Scrollbar styling */
.spcb-searchable-select__options::-webkit-scrollbar {
    width: 6px;
}

.spcb-searchable-select__options::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.spcb-searchable-select__options::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.spcb-searchable-select__options::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ============================================
   UTILIDADES
   ============================================ */
.spcb-field-hidden {
    display: none !important;
}

/* ============================================
   VALIDACIÓN DE CAMPOS DE ENVÍO (v1.9.17)
   ============================================ */

/* Error state for shipping fields */
.wc-block-components-text-input.has-error input,
.wc-block-components-text-input.has-error textarea,
.wc-block-components-textarea.has-error textarea,
.wc-blocks-components-select.has-error .wc-blocks-components-select__select,
.spcb-comuna-active.has-error .spcb-comuna-select {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 1px #dc2626 !important;
}

.wc-block-components-text-input.has-error label,
.wc-block-components-textarea.has-error label,
.wc-blocks-components-select.has-error label {
    color: #dc2626 !important;
}

/* Shake animation for invalid fields */
@keyframes spcb-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

.wc-block-components-text-input.has-error,
.wc-block-components-textarea.has-error,
.wc-blocks-components-select.has-error,
.spcb-comuna-active.has-error {
    animation: spcb-shake 0.4s ease-in-out;
}

/* Validation error banner */
.spcb-shipping-validation-error,
.spcb-order-note-required-error {
    margin-bottom: 16px;
}

.spcb-shipping-address-number-error {
    margin-bottom: 12px;
}

.spcb-field-validation-card {
    align-items: center;
    background: #fef2f2;
    border: 1px solid #dc2626;
    border-radius: 4px;
    color: #7f1d1d;
    display: flex;
    font-size: 14px;
    gap: 12px;
    line-height: 1.35;
    padding: 14px 16px;
}

.spcb-field-validation-card__icon {
    align-items: center;
    background: #dc2626;
    border-radius: 50%;
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 28px;
    font-weight: 700;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.spcb-field-validation-card__close {
    background: transparent;
    border: 0;
    color: #7f1d1d;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    margin-left: auto;
    padding: 0 0 0 8px;
}

/* ============================================
   RUT HELP TEXT - Textos de ayuda (v1.10.31)
   ============================================ */
.spcb-rut-help-text {
    font-size: 12px;
    color: var(--spcb-text-muted, #666);
    margin-top: 4px;
    padding-left: 2px;
    line-height: 1.4;
}

/* Ocultar cuando hay error de validación */
.wc-block-components-text-input.has-error .spcb-rut-help-text {
    display: none !important;
}

/* ============================================
   SELECT CURSOR POINTER (v1.10.33)
   ============================================
   Los campos select (Región, Comuna, etc.) deben mostrar
   el cursor de "manito" (pointer) al pasar el mouse,
   indicando que son elementos interactivos/clickeables.

   Esto mejora la UX al dar feedback visual al usuario.
   ============================================ */
body.woocommerce-checkout select,
body.woocommerce-checkout .wc-blocks-components-select__select,
body.woocommerce-checkout .wc-block-components-select-input select,
body.woocommerce-checkout [data-spcb-field] select {
    cursor: pointer;
}

/* También el contenedor del select de WooCommerce Blocks */
body.woocommerce-checkout .wc-blocks-components-select__container {
    cursor: pointer;
}

/* ============================================
   NOTA: "(opcional)" se muestra en algunos campos porque el filtro
   woocommerce_get_country_locale hace los campos opcionales.
   Esto es necesario para que el checkout funcione con local pickup.
   ============================================ */

/* ============================================
   CONTACT NAME FIELDS - v1.11.2
   Campos de nombre en contacto: Nombre, Apellido, Email
   Estos son la fuente de verdad para la identidad del cliente.

   v1.11.2: CSS ultra-específico para garantizar layout en
   todos los temas, incluyendo los que sobrescriben flex.
   ============================================ */

/* PASO 0: Asegurar que el contenedor #contact tenga flex */
body.woocommerce-checkout #contact.wc-block-components-address-form,
body.woocommerce-checkout .wc-block-checkout__contact-fields #contact,
body.woocommerce-checkout div#contact.wc-block-components-address-form {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    align-items: flex-start !important;
}

/* PASO 1: Contact First Name - primero (order: -3), 50% */
body.woocommerce-checkout #contact .wc-block-components-address-form__spcb-contact_first_name,
body.woocommerce-checkout #contact > .wc-block-components-address-form__spcb-contact_first_name,
body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__spcb-contact_first_name,
body.woocommerce-checkout .wc-block-components-text-input.wc-block-components-address-form__spcb-contact_first_name,
#contact .wc-block-components-address-form__spcb-contact_first_name,
.wc-block-components-address-form .wc-block-components-address-form__spcb-contact_first_name {
    order: -3 !important;
    flex: 0 0 calc(50% - 8px) !important;
    max-width: calc(50% - 8px) !important;
    width: calc(50% - 8px) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* PASO 2: Contact Last Name - segundo (order: -2), 50% */
body.woocommerce-checkout #contact .wc-block-components-address-form__spcb-contact_last_name,
body.woocommerce-checkout #contact > .wc-block-components-address-form__spcb-contact_last_name,
body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__spcb-contact_last_name,
body.woocommerce-checkout .wc-block-components-text-input.wc-block-components-address-form__spcb-contact_last_name,
#contact .wc-block-components-address-form__spcb-contact_last_name,
.wc-block-components-address-form .wc-block-components-address-form__spcb-contact_last_name {
    order: -2 !important;
    flex: 0 0 calc(50% - 8px) !important;
    max-width: calc(50% - 8px) !important;
    width: calc(50% - 8px) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* PASO 3: Email - tercero (order: -1), 50% */
body.woocommerce-checkout #contact .wc-block-components-address-form__email,
body.woocommerce-checkout #contact > .wc-block-components-address-form__email,
body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__email,
body.woocommerce-checkout .wc-block-components-text-input.wc-block-components-address-form__email,
#contact .wc-block-components-address-form__email,
.wc-block-components-address-form .wc-block-components-address-form__email {
    order: -1 !important;
    flex: 0 0 calc(50% - 8px) !important;
    max-width: calc(50% - 8px) !important;
    width: calc(50% - 8px) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    margin-top: 0 !important;
}

/* PASO 4: Teléfono - cuarto (order: 0), 50% */
body.woocommerce-checkout #contact .wc-block-components-address-form__spcb-contact_phone,
body.woocommerce-checkout #contact .spcb-phone-shadow[data-shadow-for="contact-spcb-contact_phone"],
body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-address-form__spcb-contact_phone,
body.woocommerce-checkout .wc-block-components-address-form .spcb-phone-shadow[data-shadow-for="contact-spcb-contact_phone"],
#contact .wc-block-components-address-form__spcb-contact_phone,
#contact .spcb-phone-shadow[data-shadow-for="contact-spcb-contact_phone"],
.wc-block-components-address-form .wc-block-components-address-form__spcb-contact_phone,
.wc-block-components-address-form .spcb-phone-shadow[data-shadow-for="contact-spcb-contact_phone"] {
    order: 0 !important;
    flex: 0 0 calc(50% - 8px) !important;
    max-width: calc(50% - 8px) !important;
    width: calc(50% - 8px) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    margin-top: 0 !important;
}

/* PASO 5: Document Type - full width, después de teléfono (order: 1) - v1.16.0 */
/* v1.16.4: margin: 0 - usar solo gap del contenedor para espaciado uniforme */
body.woocommerce-checkout #contact .wc-block-components-select-input-spcb-document_type,
body.woocommerce-checkout #contact .spcb-document-type-wrapper,
#contact .wc-block-components-select-input-spcb-document_type,
.wc-block-components-select-input-spcb-document_type {
    order: 1 !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* PASO 6: Billing RUT - full width, después de document type (order: 2) - v1.16.0 */
body.woocommerce-checkout #contact .wc-block-components-address-form__spcb-billing_rut,
#contact .wc-block-components-address-form__spcb-billing_rut,
.wc-block-components-address-form__spcb-billing_rut {
    order: 2 !important;
}

/* PASO 7: Invoice fields (order: 3-8) - v1.16.0 */
body.woocommerce-checkout #contact .wc-block-components-address-form__spcb-invoice_company,
#contact .wc-block-components-address-form__spcb-invoice_company { order: 3 !important; }

body.woocommerce-checkout #contact .wc-block-components-address-form__spcb-invoice_giro,
#contact .wc-block-components-address-form__spcb-invoice_giro { order: 4 !important; }

body.woocommerce-checkout #contact .wc-block-components-select-input-spcb-invoice_region,
#contact .wc-block-components-select-input-spcb-invoice_region { order: 5 !important; }

body.woocommerce-checkout #contact .wc-block-components-select-input-spcb-invoice_comuna,
#contact .wc-block-components-select-input-spcb-invoice_comuna { order: 6 !important; }

body.woocommerce-checkout #contact .wc-block-components-address-form__spcb-invoice_address,
#contact .wc-block-components-address-form__spcb-invoice_address { order: 7 !important; }

body.woocommerce-checkout #contact .wc-block-components-address-form__spcb-invoice_phone,
#contact .wc-block-components-address-form__spcb-invoice_phone { order: 8 !important; }

/* PASO 8: Shipping RUT (order: 10) - v1.16.0 */
body.woocommerce-checkout #contact .wc-block-components-address-form__spcb-shipping_rut,
#contact .wc-block-components-address-form__spcb-shipping_rut { order: 10 !important; }

/* PASO 9: Birthday al final (order: 100) - v1.16.0 */
body.woocommerce-checkout #contact .wc-block-components-address-form__spcb-birthday,
#contact .wc-block-components-address-form__spcb-birthday { order: 100 !important; }

/* PASO 10: Guest notice y botón de registro al FINAL (order: 200) - v1.16.3 */
body.woocommerce-checkout #contact #wc-guest-checkout-notice,
body.woocommerce-checkout #contact .wc-block-checkout__guest-checkout-notice,
#contact #wc-guest-checkout-notice,
#contact .wc-block-checkout__guest-checkout-notice {
    order: 200 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
}

body.woocommerce-checkout #contact .spcb-registration-button,
#contact .spcb-registration-button {
    order: 201 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
}

body.woocommerce-checkout #contact .wc-block-checkout__create-account,
#contact .wc-block-checkout__create-account {
    order: 202 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
}

/* PASO 11: Asegurar que has-error NO rompa el layout */
body.woocommerce-checkout #contact .wc-block-components-text-input.has-error,
body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-text-input.has-error {
    /* No cambiar flex properties por tener error */
}

/* Nombre con error */
body.woocommerce-checkout #contact .wc-block-components-address-form__spcb-contact_first_name.has-error,
body.woocommerce-checkout .wc-block-components-text-input.wc-block-components-address-form__spcb-contact_first_name.has-error {
    flex: 0 0 calc(50% - 8px) !important;
    max-width: calc(50% - 8px) !important;
    width: calc(50% - 8px) !important;
}

/* Apellido con error */
body.woocommerce-checkout #contact .wc-block-components-address-form__spcb-contact_last_name.has-error,
body.woocommerce-checkout .wc-block-components-text-input.wc-block-components-address-form__spcb-contact_last_name.has-error {
    flex: 0 0 calc(50% - 8px) !important;
    max-width: calc(50% - 8px) !important;
    width: calc(50% - 8px) !important;
}

/* PASO 6: Validación error NO debe afectar el ancho del campo padre */
body.woocommerce-checkout #contact .wc-block-components-validation-error,
body.woocommerce-checkout .wc-block-components-address-form .wc-block-components-validation-error {
    position: relative !important;
    width: 100% !important;
    flex: none !important;
}

/* En móvil (< 600px): Email y Teléfono al 100%, Nombre y Apellido permanecen al 50% */
/* v1.16.4: row-gap 15px en mobile */
@media (max-width: 600px) {
    /* v1.16.4: row-gap 15px en mobile, column-gap 16px se mantiene */
    body.woocommerce-checkout #contact.wc-block-components-address-form,
    body.woocommerce-checkout .wc-block-checkout__contact-fields #contact,
    body.woocommerce-checkout div#contact.wc-block-components-address-form,
    #contact.wc-block-components-address-form {
        row-gap: 15px !important;
        column-gap: 16px !important;
    }

    /* Email al 100% */
    body.woocommerce-checkout #contact .wc-block-components-address-form__email,
    #contact .wc-block-components-address-form__email,
    .wc-block-components-address-form .wc-block-components-address-form__email {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Teléfono al 100% */
    body.woocommerce-checkout #contact .wc-block-components-address-form__spcb-contact_phone,
    body.woocommerce-checkout #contact .spcb-phone-shadow[data-shadow-for="contact-spcb-contact_phone"],
    #contact .wc-block-components-address-form__spcb-contact_phone,
    #contact .spcb-phone-shadow[data-shadow-for="contact-spcb-contact_phone"],
    .wc-block-components-address-form .wc-block-components-address-form__spcb-contact_phone,
    .wc-block-components-address-form .spcb-phone-shadow[data-shadow-for="contact-spcb-contact_phone"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Nombre y Apellido permanecen al 50% (heredan del CSS principal, no se sobrescriben aquí) */
}

/* ============================================
   PHONE FIELD VALIDATION STYLES (v1.11.0)
   ============================================
   Estilos de validación para el campo de teléfono
   que imitan el comportamiento de WooCommerce Blocks
   ============================================ */

/* Has-error state - red border */
.spcb-phone-shadow.has-error .iti__tel-input,
.spcb-phone-shadow.has-error input[type="tel"] {
    border-color: #cc1818 !important;
}

/* Shake animation like WooCommerce Blocks */
@keyframes spcb-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.spcb-phone-shadow.spcb-shake {
    animation: spcb-shake 0.5s ease-in-out;
}

/* Error message styling (matches WooCommerce) */
.spcb-phone-error {
    color: #cc1818;
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.spcb-phone-error svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* ============================================
   ACCESSIBILITY - Focus Visible and Skip Link (v1.16.19)
   ============================================ */

/* Focus visible - better keyboard navigation indication */
body.woocommerce-checkout *:focus-visible {
    outline: 2px solid var(--spcb-accent) !important;
    outline-offset: 2px !important;
}

body.woocommerce-checkout *:focus:not(:focus-visible) {
    outline: none !important;
}

/* Screen reader only - visually hidden but accessible */
.spcb-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Skip link - hidden off-screen by default, visible when focused (v1.16.19) */
.spcb-skip-link {
    position: fixed;
    top: -100px;
    left: 10px;
    z-index: 999999;
    background: var(--spcb-accent);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--spcb-radius);
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: top 0.2s ease;
}

.spcb-skip-link:focus,
.spcb-skip-link:focus-visible {
    top: 10px !important;
    outline: 2px solid #fff !important;
    outline-offset: 2px !important;
}

.spcb-skip-link:hover {
    background: var(--spcb-accent-hover);
}

/* Focus on radio cards */
.spcb-radio-card input[type="radio"]:focus-visible + label {
    outline: 2px solid var(--spcb-accent);
    outline-offset: 2px;
}

/* Focus on place order button */
.wc-block-components-checkout-place-order-button:focus-visible {
    outline: 2px solid #fff !important;
    outline-offset: -4px !important;
    box-shadow: 0 0 0 4px var(--spcb-accent) !important;
}

