/* ============================================
   CHECKOUT v3 — ELECTRONICS PERU
   ============================================ */

.eps-checkout-page {
    background: #f4f6f4;
    min-height: 60vh;
    padding: 36px 0 80px;
}

/* ── GRID PRINCIPAL ───────────────────────── */
.eps-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
    width: 100%;
}

.eps-checkout-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.eps-checkout-right {
    min-width: 0;
    position: sticky;
    top: 90px;
}

/* ── CARDS ────────────────────────────────── */
.eps-checkout-card {
    background: #fff;
    border: 1.5px solid #e8ede8;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.eps-checkout-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--eps-font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #0f0f0f;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid #00b37e;
}

.eps-checkout-card-title svg {
    color: #00b37e;
    flex-shrink: 0;
}

/* ── PASOS ────────────────────────────────── */
.eps-checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 24px;
    padding: 18px 24px;
    background: #fff;
    border-radius: 14px;
    border: 1.5px solid #e8ede8;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.eps-step {
    display: flex;
    align-items: center;
    gap: 8px;
}

.eps-step-line {
    flex: 1;
    height: 2px;
    background: #e8ede8;
    margin: 0 12px;
    min-width: 40px;
    transition: background 0.3s;
}

.eps-step-line.done { background: #00b37e; }

.eps-step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #e8ede8;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #bbb;
    font-family: var(--eps-font-mono);
    flex-shrink: 0;
    transition: all 0.3s;
}

.eps-step.active .eps-step-num {
    background: #00b37e;
    border-color: #00b37e;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,179,126,0.3);
}

.eps-step.done .eps-step-num {
    background: #00b37e;
    border-color: #00b37e;
    color: #fff;
}

.eps-step-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #bbb;
    white-space: nowrap;
}

.eps-step.active .eps-step-label { color: #0f0f0f; }
.eps-step.done .eps-step-label   { color: #00b37e; }

/* ── CUPÓN ────────────────────────────────── */
.eps-checkout-coupon-bar {
    background: #fff;
    border: 1.5px solid #e8ede8;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.eps-checkout-coupon-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    font-size: 0.875rem;
    color: #666;
    cursor: pointer;
    transition: background 0.2s;
}

.eps-checkout-coupon-toggle:hover { background: #f9faf9; }
.eps-checkout-coupon-toggle svg   { color: #00b37e; flex-shrink: 0; }
.eps-checkout-coupon-toggle span  { color: #00b37e; font-weight: 600; }

.eps-checkout-coupon-form {
    padding: 0 20px 16px;
}

.eps-checkout-coupon-form form {
    display: flex;
    gap: 10px;
}

/* ── CAMPOS FORMULARIO ────────────────────── */
.woocommerce-checkout .form-row {
    margin-bottom: 14px !important;
}

.woocommerce-checkout .form-row label {
    display: block !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #555 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 6px !important;
}

.woocommerce-checkout .form-row .required { color: #ef4444 !important; }

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    width: 100% !important;
    border: 1.5px solid #e8ede8 !important;
    border-radius: 10px !important;
    padding: 11px 14px !important;
    font-size: 0.9rem !important;
    font-family: var(--eps-font-main) !important;
    color: #0f0f0f !important;
    background: #fafafa !important;
    transition: all 0.2s !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row select:focus {
    border-color: #00b37e !important;
    background: #fff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0,179,126,0.1) !important;
}

.woocommerce-checkout .form-row select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 40px !important;
    cursor: pointer !important;
}

.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
    width: calc(50% - 8px) !important;
    display: inline-block !important;
    float: left !important;
    box-sizing: border-box !important;
}

.woocommerce-checkout .form-row-first { margin-right: 16px !important; }

.woocommerce-checkout .form-row-wide {
    clear: both !important;
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* Enviar a dirección diferente */
.eps-ship-different label {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    color: #0f0f0f !important;
    padding: 4px 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.eps-ship-different input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: #00b37e !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

.eps-ship-different svg { color: #00b37e; flex-shrink: 0; }

/* Notas */
.eps-notes-textarea {
    width: 100%;
    border: 1.5px solid #e8ede8;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.875rem;
    font-family: var(--eps-font-main);
    color: #0f0f0f;
    background: #fafafa;
    resize: vertical;
    min-height: 90px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.eps-notes-textarea:focus {
    border-color: #00b37e;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,179,126,0.1);
}

/* ── MÉTODOS DE PAGO ──────────────────────── */
#eps-payment-card #payment {
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

#eps-payment-card #payment ul.payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    border: none !important;
}

#eps-payment-card #payment ul.payment_methods li {
    border: 1.5px solid #e8ede8 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    transition: border-color 0.2s !important;
    background: #fafafa !important;
    list-style: none !important;
}

#eps-payment-card #payment ul.payment_methods li:has(input:checked) {
    border-color: #00b37e !important;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0,179,126,0.1) !important;
}

#eps-payment-card #payment ul.payment_methods li label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 14px 16px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    color: #0f0f0f !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin: 0 !important;
    background: none !important;
}

#eps-payment-card #payment ul.payment_methods li label img {
    height: 24px !important;
    width: auto !important;
    max-width: 56px !important;
    object-fit: contain !important;
    border-radius: 4px !important;
}

#eps-payment-card #payment ul.payment_methods li input[type="radio"] {
    accent-color: #00b37e !important;
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

.payment_box {
    padding: 14px 16px 16px !important;
    border-top: 1px solid #f0f0f0 !important;
    background: #fff !important;
    font-size: 0.875rem !important;
    color: #555 !important;
}

/* Botón realizar pedido */
#eps-payment-card #payment .place-order {
    padding: 0 !important;
    border: none !important;
    background: none !important;
    margin-top: 16px !important;
}

#place_order {
    width: 100% !important;
    padding: 16px !important;
    background: #0f0f0f !important;
    color: #fff !important;
    border: 2px solid #0f0f0f !important;
    border-radius: 12px !important;
    font-family: var(--eps-font-main) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.25s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

#place_order::before { content: '🔒'; font-size: 0.85rem; }

#place_order:hover {
    background: #00b37e !important;
    border-color: #00b37e !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0,179,126,0.3) !important;
}

/* Términos */
.woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 14px !important;
}

.woocommerce-terms-and-conditions-wrapper label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    font-size: 0.82rem !important;
    color: #666 !important;
    cursor: pointer !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}

.woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
    accent-color: #00b37e !important;
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
}

.woocommerce-terms-and-conditions-wrapper a {
    color: #00b37e !important;
    font-weight: 600 !important;
}

/* ── RESUMEN DERECHA ──────────────────────── */
.eps-checkout-summary {
    background: #fff;
    border: 1.5px solid #e8ede8;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.eps-checkout-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #00b37e;
}

.eps-checkout-summary-head h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--eps-font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #0f0f0f;
    margin: 0;
}

.eps-checkout-summary-head h3 svg { color: #00b37e; }

/* Items del pedido */
.eps-checkout-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.eps-checkout-items::-webkit-scrollbar { width: 4px; }
.eps-checkout-items::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 2px; }
.eps-checkout-items::-webkit-scrollbar-thumb { background: #00b37e; border-radius: 2px; }

.eps-checkout-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eps-checkout-item-img {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid #e8ede8;
    background: #f4f6f4;
}

.eps-checkout-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eps-checkout-item-qty {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0f0f0f;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--eps-font-mono);
    border: 2px solid #fff;
}

.eps-checkout-item-info { flex: 1; min-width: 0; }

.eps-checkout-item-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #0f0f0f;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eps-checkout-item-sku {
    font-size: 0.72rem;
    color: #999;
    font-family: var(--eps-font-mono);
    margin-top: 2px;
}

.eps-checkout-item-price {
    font-family: var(--eps-font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f0f0f;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Totales */
.eps-checkout-totals {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
}

.eps-checkout-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    font-size: 0.875rem;
    color: #555;
    border-bottom: 1px solid #f8f8f8;
}

.eps-checkout-totals-row span:first-child { font-weight: 500; }
.eps-checkout-totals-row span:last-child  { font-family: var(--eps-font-mono); font-weight: 600; color: #0f0f0f; }

.eps-checkout-discount span:last-child { color: #00b37e !important; }

.eps-checkout-totals-divider {
    height: 2px;
    background: #0f0f0f;
    margin: 10px 0;
}

.eps-checkout-total {
    padding: 10px 0 !important;
    border-bottom: none !important;
}

.eps-checkout-total span:first-child {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #0f0f0f !important;
}

.eps-checkout-total span:last-child {
    font-size: 1.2rem !important;
    color: #00b37e !important;
}

.eps-checkout-tax {
    font-size: 0.78rem !important;
    color: #999 !important;
    border-bottom: none !important;
    padding-top: 2px !important;
}

/* Opciones de envío en sidebar */
.eps-checkout-shipping-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
}

.eps-checkout-shipping-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.eps-shipping-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1.5px solid #e8ede8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
    font-size: 0.82rem;
}

.eps-shipping-option.selected {
    border-color: #00b37e;
    background: rgba(0,179,126,0.05);
}

.eps-shipping-option input[type="radio"] {
    accent-color: #00b37e;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin: 0;
}

.eps-shipping-label {
    flex: 1;
    font-weight: 600;
    color: #0f0f0f;
}

.eps-shipping-cost {
    font-family: var(--eps-font-mono);
    font-weight: 700;
    font-size: 0.82rem;
    color: #0f0f0f;
}

/* ── NOTIFICACIONES ───────────────────────── */
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-info {
    border-radius: 10px !important;
    border-left-width: 4px !important;
    padding: 12px 16px !important;
    font-size: 0.875rem !important;
    margin-bottom: 16px !important;
    list-style: none !important;
}

.woocommerce-checkout .woocommerce-error   { border-left-color: #ef4444 !important; background: #fff5f5 !important; }
.woocommerce-checkout .woocommerce-message { border-left-color: #00b37e !important; background: #f0faf5 !important; }
.woocommerce-checkout .woocommerce-info    { border-left-color: #3b82f6 !important; background: #eff6ff !important; }

/* Badge seguridad */
.eps-checkout-secure {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.72rem;
    color: #bbb;
    margin-top: 10px;
    font-family: var(--eps-font-mono);
    text-align: center;
    writing-mode: horizontal-tb;
}

.eps-checkout-secure::before { content: '🔐'; }

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 900px) {
    .eps-checkout-grid {
        grid-template-columns: 1fr;
    }
    .eps-checkout-right { position: static; }
    .eps-checkout-steps { padding: 14px; }
    .eps-step-label { display: none; }
    .eps-step-line { min-width: 24px; margin: 0 6px; }
}

@media (max-width: 580px) {
    .eps-checkout-page { padding: 20px 0 60px; }
    .eps-checkout-card { padding: 20px 16px; border-radius: 12px; }
    .eps-checkout-summary { padding: 20px 16px; border-radius: 12px; }
    .woocommerce-checkout .form-row-first,
    .woocommerce-checkout .form-row-last {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
    }
}

/* ============================================
   CHECKOUT — FLUID CHECKOUT OVERRIDE
   ============================================ */

/* ── FONDO Y CONTENEDOR ───────────────────── */
.woocommerce-checkout,
.woocommerce-checkout body {
    background: #f4f6f4 !important;
}

.fluid-checkout-step,
.fc-wrapper,
.fc-page-wrapper,
.fc-checkout-page-wrapper {
    background: #f4f6f4 !important;
}

/* ── PROGRESS BAR / PASOS ─────────────────── */
.fc-progress-bar__step--current .fc-progress-bar__step-label,
.fc-progress-bar__step--complete .fc-progress-bar__step-label {
    color: #00b37e !important;
    font-family: var(--eps-font-main) !important;
    font-weight: 700 !important;
}

.fc-progress-bar__step-count {
    background: #0f0f0f !important;
    color: #fff !important;
    font-family: var(--eps-font-mono) !important;
    font-weight: 700 !important;
}

.fc-progress-bar__step--current .fc-progress-bar__step-count,
.fc-progress-bar__step--complete .fc-progress-bar__step-count {
    background: #00b37e !important;
    box-shadow: 0 4px 12px rgba(0,179,126,0.3) !important;
}

.fc-progress-bar__bar {
    background: #e8ede8 !important;
}

.fc-progress-bar__bar-fill {
    background: linear-gradient(90deg, #00b37e, #84cc16) !important;
}

/* ── CARDS / SECCIONES ────────────────────── */
.fc-step__content,
.fc-substep,
.wc-block-components-checkout-step,
.fc-checkout-step__content {
    background: #fff !important;
    border: 1.5px solid #e8ede8 !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
    padding: 28px !important;
    margin-bottom: 16px !important;
}

/* ── TÍTULOS DE SECCIÓN ───────────────────── */
.fc-step__title,
.fc-substep__title,
.fc-checkout-step__title,
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
    font-family: var(--eps-font-display) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #0f0f0f !important;
    padding-bottom: 14px !important;
    border-bottom: 2px solid #00b37e !important;
    margin-bottom: 24px !important;
}

/* ── CAMPOS DEL FORMULARIO ────────────────── */
.woocommerce-checkout .form-row label,
.fc-step .form-row label {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #555 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 6px !important;
    display: block !important;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea,
.fc-step input.input-text,
.fc-step select,
.fc-step textarea {
    width: 100% !important;
    border: 1.5px solid #e8ede8 !important;
    border-radius: 10px !important;
    padding: 11px 14px !important;
    font-size: 0.9rem !important;
    font-family: var(--eps-font-main) !important;
    color: #0f0f0f !important;
    background: #fafafa !important;
    transition: all 0.2s !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row select:focus,
.fc-step input.input-text:focus,
.fc-step select:focus {
    border-color: #00b37e !important;
    background: #fff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0,179,126,0.1) !important;
}

.woocommerce-checkout .form-row .required { color: #ef4444 !important; }

/* Select arrow */
.woocommerce-checkout .form-row select,
.fc-step select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 40px !important;
}

/* ── RESUMEN DEL PEDIDO ───────────────────── */
.fc-sidebar,
.fc-order-summary,
.fc-checkout-order-review,
#order_review {
    background: #fff !important;
    border: 1.5px solid #e8ede8 !important;
    border-radius: 14px !important;
    padding: 24px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
}

.fc-sidebar__title,
#order_review_heading {
    font-family: var(--eps-font-display) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #0f0f0f !important;
    padding-bottom: 14px !important;
    border-bottom: 2px solid #00b37e !important;
    margin-bottom: 20px !important;
}

/* Tabla del pedido */
.woocommerce-checkout-review-order-table thead th {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #999 !important;
    background: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 0 0 10px !important;
}

.woocommerce-checkout-review-order-table tbody td {
    padding: 12px 0 !important;
    font-size: 0.875rem !important;
    border-bottom: 1px solid #f8f8f8 !important;
    border-top: none !important;
}

.woocommerce-checkout-review-order-table .product-name {
    font-weight: 600 !important;
    color: #0f0f0f !important;
}

.woocommerce-checkout-review-order-table .product-quantity {
    color: #00b37e !important;
    font-family: var(--eps-font-mono) !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
}

.woocommerce-checkout-review-order-table .product-total {
    font-family: var(--eps-font-mono) !important;
    font-weight: 700 !important;
    text-align: right !important;
}

.woocommerce-checkout-review-order-table tfoot th {
    font-size: 0.82rem !important;
    color: #666 !important;
    font-weight: 600 !important;
    background: none !important;
    border-top: 1px solid #f0f0f0 !important;
    padding: 10px 0 !important;
}

.woocommerce-checkout-review-order-table tfoot td {
    font-family: var(--eps-font-mono) !important;
    font-weight: 700 !important;
    text-align: right !important;
    border-top: 1px solid #f0f0f0 !important;
    padding: 10px 0 !important;
}

.woocommerce-checkout-review-order-table tfoot .order-total th,
.woocommerce-checkout-review-order-table tfoot .order-total td {
    border-top: 2px solid #0f0f0f !important;
    padding-top: 14px !important;
    font-size: 1rem !important;
}

.woocommerce-checkout-review-order-table tfoot .order-total td {
    color: #00b37e !important;
    font-size: 1.2rem !important;
}

/* ── MÉTODOS DE PAGO ──────────────────────── */
.wc_payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    border: none !important;
}

.wc_payment_methods .wc_payment_method {
    border: 1.5px solid #e8ede8 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    background: #fafafa !important;
    list-style: none !important;
}

.wc_payment_methods .wc_payment_method:has(input:checked) {
    border-color: #00b37e !important;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0,179,126,0.1) !important;
}

.wc_payment_methods label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 14px 16px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    color: #0f0f0f !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin: 0 !important;
    background: none !important;
}

.wc_payment_methods label img {
    height: 24px !important;
    width: auto !important;
    max-width: 56px !important;
    object-fit: contain !important;
    border-radius: 4px !important;
}

.wc_payment_methods input[type="radio"] {
    accent-color: #00b37e !important;
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

.payment_box {
    padding: 14px 16px 16px !important;
    border-top: 1px solid #f0f0f0 !important;
    background: #fff !important;
    font-size: 0.875rem !important;
    color: #555 !important;
}

/* ── OPCIONES DE ENVÍO ────────────────────── */
.woocommerce-shipping-methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 6px 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.woocommerce-shipping-methods li {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 12px !important;
    border: 1.5px solid #e8ede8 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    font-size: 0.875rem !important;
    background: #fafafa !important;
    list-style: none !important;
}

.woocommerce-shipping-methods li:has(input:checked) {
    border-color: #00b37e !important;
    background: rgba(0,179,126,0.05) !important;
}

.woocommerce-shipping-methods li input[type="radio"] {
    accent-color: #00b37e !important;
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

.woocommerce-shipping-methods li label {
    font-weight: 600 !important;
    color: #0f0f0f !important;
    cursor: pointer !important;
    font-size: 0.875rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin: 0 !important;
    flex: 1 !important;
}

/* ── TÉRMINOS ─────────────────────────────── */
.woocommerce-terms-and-conditions-wrapper label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    font-size: 0.82rem !important;
    color: #666 !important;
    cursor: pointer !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    margin-bottom: 14px !important;
}

.woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
    accent-color: #00b37e !important;
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
}

.woocommerce-terms-and-conditions-wrapper a {
    color: #00b37e !important;
    font-weight: 600 !important;
}

/* ── BOTÓN REALIZAR PEDIDO ────────────────── */
#place_order,
.fc-place-order-button,
button[name="woocommerce_checkout_place_order"] {
    width: 100% !important;
    padding: 16px !important;
    background: #0f0f0f !important;
    color: #fff !important;
    border: 2px solid #0f0f0f !important;
    border-radius: 12px !important;
    font-family: var(--eps-font-main) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.25s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 0 !important;
}

#place_order:hover,
.fc-place-order-button:hover,
button[name="woocommerce_checkout_place_order"]:hover {
    background: #00b37e !important;
    border-color: #00b37e !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0,179,126,0.3) !important;
}

/* ── BOTONES SECUNDARIOS FLUID CHECKOUT ───── */
.fc-step__next-step-btn,
.fc-step__prev-step-btn {
    border-radius: 10px !important;
    font-family: var(--eps-font-main) !important;
    font-weight: 700 !important;
    transition: all 0.25s !important;
}

.fc-step__next-step-btn {
    background: #00b37e !important;
    border-color: #00b37e !important;
    color: #fff !important;
}

.fc-step__next-step-btn:hover {
    background: #008f63 !important;
    border-color: #008f63 !important;
    transform: translateY(-2px) !important;
}

/* ── CUPÓN ────────────────────────────────── */
.woocommerce-form-coupon-toggle,
.fc-coupon-toggle {
    background: #fff !important;
    border: 1.5px solid #e8ede8 !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    font-size: 0.875rem !important;
    color: #666 !important;
    margin-bottom: 16px !important;
}

.woocommerce-form-coupon-toggle a,
.fc-coupon-toggle a {
    color: #00b37e !important;
    font-weight: 600 !important;
}

.checkout_coupon {
    background: #fff !important;
    border: 1.5px solid #e8ede8 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 16px !important;
}

.checkout_coupon input[type="text"] {
    border: 1.5px solid #e8ede8 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
    font-family: var(--eps-font-main) !important;
}

.checkout_coupon input[type="text"]:focus {
    border-color: #00b37e !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0,179,126,0.1) !important;
}

.checkout_coupon button {
    background: #00b37e !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    transition: background 0.2s !important;
}

.checkout_coupon button:hover { background: #008f63 !important; }

/* ── NOTIFICACIONES ───────────────────────── */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    border-radius: 10px !important;
    border-left-width: 4px !important;
    padding: 12px 16px !important;
    font-size: 0.875rem !important;
    margin-bottom: 16px !important;
}

.woocommerce-error   { border-left-color: #ef4444 !important; background: #fff5f5 !important; }
.woocommerce-message { border-left-color: #00b37e !important; background: #f0faf5 !important; }
.woocommerce-info    { border-left-color: #3b82f6 !important; background: #eff6ff !important; }

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 768px) {
    .fc-step__content,
    .fc-substep {
        padding: 20px 16px !important;
        border-radius: 12px !important;
    }
}

/* ============================================
   FIN CHECKOUT — FLUID CHECKOUT OVERRIDE
   ============================================ */