/* ============================================================
   GUITARRA FÁCIL — CARRITO
   Archivo: assets/ecommerce/css/cart.css
   Cargado en: ecommerce/cart/index.blade.php via @push('head')
   ============================================================ */

/* ══════════════════════════════════════════════════════════════
   1. STEPPER DE PASOS (Carrito → Envío → Pago → Completado)
   ══════════════════════════════════════════════════════════════ */



.gfc-stepper-nav {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 0 12px;
}



.gfc-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 16px;
}

.gfc-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.gfc-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #ccc;
    transition: all .3s;
    position: relative;
    z-index: 2;
}

.gfc-step-label {
    font-size: 10px;
    color: #bbb;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    white-space: nowrap;
}

.gfc-step-line {
    flex: 1;
    height: 2px;
    background: #e8e8e8;
    margin: 0 4px;
    margin-bottom: 18px;
    transition: background .3s;
}

.gfc-step-line.passed {
    background: #c9a800;
}

.gfc-step.active .gfc-step-circle {
    background: #fff8e0;
    border-color: #c9a800;
    color: #111;
    transform: scale(1.1);
    box-shadow: 0 2px 10px rgba(201, 168, 0, .25);
}

.gfc-step.active .gfc-step-label {
    color: #111;
}

.gfc-step.passed .gfc-step-circle {
    background: #c9a800;
    border-color: #c9a800;
    color: #fff;
}

.gfc-step.passed .gfc-step-label {
    color: #c9a800;
}

@media (max-width: 480px) {
    .gfc-step-circle {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }

    .gfc-step-label {
        font-size: 9px;
    }

    .gfc-stepper-nav {
        padding: 12px 0 8px;
    }
}

/* ══════════════════════════════════════════════════════════════
   2. OCULTAR FOOTER Y STICKY EN CHECKOUT
   ══════════════════════════════════════════════════════════════ */
body.page-cart .gf-footer,
body.page-cart .sticky-footer,
body.page-cart .gf-whatsapp-fixed,
body.page-checkout .gf-footer,
body.page-checkout .sticky-footer,
body.page-checkout .gf-whatsapp-fixed {
    display: none !important;
}

.gf-footer,
.gf-whatsapp-fixed {
    display: none !important;
}

@media (max-width: 991px) {

    .sticky-footer.sticky-content.fix-bottom,
    .sticky-footer.fix-bottom,
    .sticky-footer {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

/* ══════════════════════════════════════════════════════════════
   3. CARRITO VACÍO
   ══════════════════════════════════════════════════════════════ */
.gfc-empty {
    text-align: center;
    padding: 60px 20px;
    color: #555;
}

.gfc-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.gfc-empty h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222;
}

.gfc-empty p {
    font-size: 14px;
    margin-bottom: 24px;
}

.gfc-btn-primary {
    display: inline-block;
    background: #c9a800;
    color: #000;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s;
}

.gfc-btn-primary:hover {
    background: #a88f00;
    color: #000;
}

/* ══════════════════════════════════════════════════════════════
   4. BANNER ENVÍO GRATIS
   ══════════════════════════════════════════════════════════════ */
.gfc-shipping-banner {
    background: #fdfaf3;
    border: 1px solid #f1e0b9;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.gfc-shipping-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.gfc-shipping-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.gfc-shipping-msg {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

.gfc-progress-track {
    background: #e9ecef;
    border-radius: 20px;
    height: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.gfc-progress-fill {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, #f0ad4e, #c9a800);
    transition: width .8s ease;
}

.gfc-progress-fill.free {
    background: #28a745;
}

.gfc-shipping-note {
    font-size: 11px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.gfc-shipping-note small {
    display: block;
    margin-top: 3px;
    color: #999;
}

/* ══════════════════════════════════════════════════════════════
   5. LAYOUT CARRITO (grid de 2 columnas en desktop)
   ══════════════════════════════════════════════════════════════ */
.gfc-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    padding-bottom: 50px;
    align-items: start;
}

@media (max-width: 991px) {
    .gfc-layout {
        grid-template-columns: 1fr;
        padding-bottom: 80px;
    }
}

/* ══════════════════════════════════════════════════════════════
   6. HEADER DE TABLA (solo desktop)
   ══════════════════════════════════════════════════════════════ */
.gfc-table-head {
    display: grid;
    grid-template-columns: 82px 1fr 100px 130px 100px;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 2px solid #f0f0f0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #aaa;
    letter-spacing: .5px;
}

.gfc-table-head span {
    text-align: center;
}

.gfc-table-head .gfc-th-product {
    text-align: left;
}

.gfc-table-head .gfc-th-sub {
    text-align: right;
}

@media (max-width: 767px) {
    .gfc-table-head {
        display: none;
    }
}

/* ══════════════════════════════════════════════════════════════
   7. LISTA CON SCROLL INTERNO
   ══════════════════════════════════════════════════════════════ */
.gfc-scroll-list {
    max-height: calc(6 * 107px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 40px), transparent 100%);
    mask-image: linear-gradient(to bottom, black calc(100% - 40px), transparent 100%);
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.gfc-scroll-list::-webkit-scrollbar {
    width: 4px;
}

.gfc-scroll-list::-webkit-scrollbar-track {
    background: transparent;
}

.gfc-scroll-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.gfc-scroll-list:not([data-overflow]) {
    -webkit-mask-image: none;
    mask-image: none;
}

@media (max-width: 767px) {
    .gfc-scroll-list {
        max-height: calc(5 * 120px);
    }
}

/* ══════════════════════════════════════════════════════════════
   8. ITEM DEL CARRITO
   ══════════════════════════════════════════════════════════════ */
.gfc-item {
    display: grid;
    grid-template-columns: 82px 1fr 100px 130px 100px;
    gap: 8px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.gfc-item:last-child {
    border-bottom: none;
}

@media (max-width: 767px) {
    .gfc-item {
        grid-template-columns: 72px 1fr;
        grid-template-rows: auto auto auto;
        gap: 0 10px;
        padding: 12px 8px;
    }

    .gfc-item-img {
        grid-row: 1 / 4;
        grid-column: 1;
    }

    .gfc-item-info {
        grid-row: 1;
        grid-column: 2;
    }

    .gfc-item-qty {
        grid-row: 2;
        grid-column: 2;
        margin-top: 8px;
    }

    .gfc-item-price {
        display: none;
    }

    .gfc-item-subtotal {
        grid-row: 3;
        grid-column: 2;
        margin-top: 4px;
        font-size: 14px;
        font-weight: 700;
        color: #222;
    }

    .gfc-item-subtotal::before {
        content: attr(data-label) ': ';
        font-size: 11px;
        font-weight: 400;
        color: #999;
    }
}

.gfc-item-img {
    position: relative;
    width: 70px;
}

.gfc-item-img img {
    width: 70px;
    height: 82px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.gfc-item-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e74c3c;
    color: #fff;
    border: none;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gfc-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gfc-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    line-height: 1.3;
}

.gfc-item-name:hover {
    color: #c9a800;
}

.gfc-item-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .4px;
    width: fit-content;
}

.gfc-item-badge.digital {
    background: #8a7761;
    color: #fff;
}

.gfc-item-badge.fisico {
    background: #c9a800;
    color: #000;
}

.gfc-item-attr {
    font-size: 11px;
    color: #999;
}

.gfc-item-price {
    font-size: 13px;
    color: #444;
    text-align: center;
}

.gfc-item-qty {
    display: flex;
    justify-content: center;
}

.gfc-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
}

.gfc-qty-btn {
    width: 28px;
    height: 28px;
    background: #f5f5f5;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.gfc-qty-btn:hover {
    background: #e0e0e0;
}

.gfc-qty-input {
    width: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 13px;
    height: 28px;
    outline: none;
    -moz-appearance: textfield;
}

.gfc-qty-input::-webkit-outer-spin-button,
.gfc-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.gfc-qty-fixed {
    font-size: 13px;
    color: #888;
}

.gfc-item-subtotal {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    text-align: right;
}

/* ══════════════════════════════════════════════════════════════
   9. ACCIONES INFERIORES
   ══════════════════════════════════════════════════════════════ */
.gfc-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 0;
    flex-wrap: wrap;
    gap: 10px;
}

.gfc-btn-back {
    font-size: 12px;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    transition: color .15s;
}

.gfc-btn-back:hover {
    color: #000;
}

.gfc-btn-clear {
    font-size: 12px;
    color: #e74c3c;
    background: none;
    border: 1px solid #e74c3c;
    border-radius: 20px;
    padding: 4px 14px;
    cursor: pointer;
    transition: all .15s;
}

.gfc-btn-clear:hover {
    background: #e74c3c;
    color: #fff;
}

/* ══════════════════════════════════════════════════════════════
   10. SIDEBAR RESUMEN CARRITO (desktop)
   ══════════════════════════════════════════════════════════════ */
.gfc-sidebar {
    position: sticky;
    top: 20px;
}

@media (max-width: 991px) {
    .gfc-sidebar {
        display: none;
    }
}

.gfc-summary {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px;
}

.gfc-summary-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 16px;
    color: #111;
}

.gfc-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 13px;
    color: #333;
    padding: 6px 0;
    gap: 10px;
}

.gfc-summary-row.muted span:last-child {
    font-size: 11px;
    color: #999;
    text-align: right;
}

.gfc-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 14px 0;
}

.gfc-verify-box {
    display: flex;
    gap: 8px;
    background: #fffbf0;
    border: 1px dashed #c9a800;
    border-radius: 6px;
    padding: 10px 12px;
    margin: 12px 0;
}

.gfc-verify-box p {
    font-size: 11px;
    color: #555;
    margin: 0;
    line-height: 1.4;
}

.gfc-btn-checkout {
    display: block;
    width: 100%;
    text-align: center;
    background: #111;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s;
    margin-bottom: 8px;
}

.gfc-btn-checkout:hover {
    background: #333;
    color: #fff;
}

.gfc-btn-whatsapp {
    display: block;
    width: 100%;
    text-align: center;
    background: #25d366;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s;
}

.gfc-btn-whatsapp:hover {
    background: #1ebe5d;
    color: #fff;
}

/* ══════════════════════════════════════════════════════════════
   11. STICKY CTA MÓVIL
   ══════════════════════════════════════════════════════════════ */
.gfc-sticky-mobile {
    display: none;
}

@media (max-width: 991px) {
    .gfc-sticky-mobile {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 2px solid #c9a800;
        padding: 10px 16px;
        z-index: 1000;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, .1);
    }
}

.gfc-sticky-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto;
}

.gfc-sticky-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .5px;
    display: block;
}

.gfc-sticky-amount {
    font-size: 17px;
    font-weight: 800;
    color: #111;
}

.gfc-sticky-btn {
    background: #111;
    color: #fff;
    padding: 11px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s;
    white-space: nowrap;
}

.gfc-sticky-btn:hover {
    background: #333;
    color: #fff;
}

.gfc-sticky-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}


/* ══════════════════════════════════════════════════════════════
   CHECKOUT — LAYOUT Y COMPONENTES
   Prefijo: gfco- (guitarra fácil checkout)
   ══════════════════════════════════════════════════════════════ */

.gfco-wrapper {
    padding: 24px 0 60px;
    background: #f8f9fa;
    min-height: 60vh;
}

/* Layout 2 columnas desktop / 1 columna móvil — paso Envío */
.gfco-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 991px) {
    .gfco-layout {
        grid-template-columns: 1fr;
        gap: 8px;
        padding-bottom: 90px;
    }

    /* Envío: sidebar abajo */
    .gfco-col-side {
        order: 10;
    }

    .gfco-col-main {
        order: 1;
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* ── Secciones ── */
.gfco-section {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
    max-width: 100%;
}

.gfco-section:last-child {
    margin-bottom: 0;
}

.gfco-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.gfco-section-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gfco-section-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #111;
    margin: 0;
}

.gfco-section-body {
    padding: 20px;
    overflow-x: hidden;
}

/* Cupón: desktop/móvil toggle */
@media (max-width: 991px) {
    .gfco-coupon-desktop {
        display: none;
    }
}

@media (min-width: 992px) {

    .gfco-coupon-mobile,
    hr.gfco-coupon-mobile {
        display: none;
    }
}

/* ── Sidebar: tarjeta resumen (paso Envío) ── */
.gfco-summary-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
}

.gfco-summary-toggle {
    display: none;
}

@media (max-width: 991px) {
    .gfco-summary-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 16px;
        background: #f8f9fa;
        border: none;
        border-top: 2px solid #e8e8e8;
        cursor: pointer;
        font-size: 13px;
        font-weight: 700;
        color: #111;
        border-radius: 0;
    }

    .gfco-summary-toggle-label {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #c9a800;
    }

    .gfco-summary-toggle-amount {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        color: #111;
    }

    .gfco-chevron {
        font-size: 10px;
        transition: transform .3s;
    }

    .gfco-summary-body {
        display: none;
    }

    .gfco-summary-body.is-open {
        display: block;
    }

    .gfco-summary-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        border-bottom: none;
        background: #f9f9f9;
        margin-top: 0 !important;
    }

    /* Ocultar botón confirmar y nota en sidebar móvil */
    .gfco-summary-body .gfco-btn-order {
        display: none !important;
    }

    .gfco-summary-body .gfco-security-note {
        display: none;
    }

    .gfco-col-side {
        margin-top: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 80px;
    }

    .gfco-col-main {
        padding-bottom: 80px;
    }
}

.gfco-summary-body {
    padding: 16px;
}

/* ── Items del pedido ── */
.gfco-order-items {
    margin-bottom: 4px;
}

.gfco-order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.gfco-order-item:last-child {
    border-bottom: none;
}

.gfco-order-item-img {
    position: relative;
    flex-shrink: 0;
}

.gfco-order-item-img img {
    width: 52px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.gfco-order-item-no-img {
    width: 52px;
    height: 60px;
    background: #f0f0f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 18px;
}

.gfco-order-item-qty {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    background: #111;
    color: #fff;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gfco-order-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gfco-order-item-name {
    font-size: 12px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
}

.gfco-order-item-type {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    width: fit-content;
}

.gfco-order-item-type.digital {
    background: #8a7761;
    color: #fff;
}

.gfco-order-item-type.fisico {
    background: #c9a800;
    color: #000;
}

.gfco-order-item-price {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
}

/* ── Totales ── */
.gfco-divider {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 12px 0;
}

.gfco-totals {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gfco-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #333;
    padding: 5px 0;
}

.gfco-total-discount {
    color: #28a745;
}

.gfco-total-days {
    color: #888;
    font-size: 11px;
}

.gfco-total-final {
    font-size: 15px;
    font-weight: 800;
    color: #111;
    padding-top: 8px;
}

.gfco-badge-pending {
    background: #fff3cd;
    color: #856404;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

/* ── Botón confirmar ── */
.gfco-btn-order {
    display: block;
    width: 100%;
    background: #111;
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    margin-top: 16px;
    text-align: center;
}

.gfco-btn-order:hover:not(:disabled) {
    background: #333;
}

.gfco-btn-order:disabled {
    background: #ccc;
    cursor: not-allowed;
}

@media (max-width: 991px) {
    .gfco-btn-order--desktop-only {
        display: none !important;
    }
}

/* ── Nota de seguridad ── */
.gfco-security-note {
    text-align: center;
    font-size: 11px;
    color: #aaa;
    margin-top: 10px;
    margin-bottom: 0;
}

.gfco-security-note i {
    color: #28a745;
    margin-right: 4px;
}

/* ── Error general ── */
.gfco-error-general {
    background: #fff5f5;
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 12px;
    margin-top: 10px;
}

/* ── Cupón inline ── */
.gfco-coupon-inline {
    border-top: 1px dashed #e0e0e0;
    border-bottom: 1px dashed #e0e0e0;
    padding: 10px 0;
    margin: 4px 0 12px;
}

/* ── Stepper paso deshabilitado ── */
.gfc-step-disabled .gfc-step-circle {
    background: #f0f0f0;
    border: 2px solid #ddd;
    color: #ccc;
    cursor: default;
    pointer-events: none;
}

.gfc-step-disabled .gfc-step-label {
    color: #ccc;
}

/* ══════════════════════════════════════════════════════════════
   MÉTODO DE ENVÍO
   ══════════════════════════════════════════════════════════════ */
.gfco-shipping-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    min-width: 0;
}

.gfco-shipping-option:last-child {
    border-bottom: none;
}

.gfco-shipping-radio {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #c9a800;
    cursor: pointer;
}

.gfco-shipping-label {
    flex: 1;
    min-width: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gfco-shipping-name {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    white-space: normal;
    word-break: break-word;
}

.gfco-shipping-meta {
    font-size: 11px;
    color: #888;
}

.gfco-shipping-price {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
}

.gfco-shipping-empty {
    font-size: 13px;
    color: #888;
    margin: 8px 0 0;
    padding: 0;
}

@media (max-width: 991px) {
    .gfco-shipping-label {
        font-size: 12px;
    }

    .gfco-section-body label,
    .gfco-section-body input[type="checkbox"]+label,
    .gfco-section-body input[type="radio"]+label {
        white-space: normal !important;
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        display: inline-block;
    }
}

/* ══════════════════════════════════════════════════════════════
   FORMULARIO DIRECCIÓN
   ══════════════════════════════════════════════════════════════ */
.gfco-addr-create {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gfco-addr-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 600px) {
    .gfco-addr-row2 {
        grid-template-columns: 1fr;
    }
}

.gfco-addr-row2--always {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 600px) {
    .gfco-addr-row2--always .gfco-label {
        font-size: 11px;
    }

    .gfco-addr-row2--always .gfco-input,
    .gfco-addr-row2--always .gfco-select {
        font-size: 13px;
        padding: 0 8px;
    }
}

.gfco-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

.gfco-label {
    font-size: 12px;
    font-weight: 600;
    color: #444;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.gfco-optional {
    font-weight: 400;
    text-transform: none;
    color: #aaa;
    font-size: 11px;
}

.gfco-input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color .15s;
    box-sizing: border-box;
}

.gfco-input:focus {
    border-color: #c9a800;
}

.gfco-input.is-invalid {
    border-color: #e74c3c;
}

.gfco-textarea {
    height: auto;
    padding: 10px 12px;
    resize: vertical;
    min-height: 72px;
}

.gfco-select-wrap {
    position: relative;
}

.gfco-select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: border-color .15s;
}

.gfco-select:focus {
    border-color: #c9a800;
}

.gfco-field-error {
    font-size: 11px;
    color: #e74c3c;
    margin-top: 2px;
}

.gfco-map-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border: 1.5px dashed #ccc;
    border-radius: 8px;
    background: #fafafa;
    color: #555;
    font-size: 13px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    margin-bottom: 16px;
}

.gfco-map-btn:hover {
    border-color: #c9a800;
    background: #fffdf0;
    color: #333;
}

.gfco-step2-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin: 8px 0 18px;
}

.gfco-step2-divider::before,
.gfco-step2-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}

/* ── Dirección seleccionada ── */
.gfco-addr-selected {
    border: 1.5px solid #c9a800;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.gfco-addr-selected-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 8px;
}

.gfco-addr-selected-name {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    display: flex;
    align-items: center;
    gap: 7px;
}

.gfco-addr-selected-name i {
    color: #c9a800;
    font-size: 13px;
}

.gfco-badge-selected {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    background: #c9a800;
    color: #fff;
    padding: 3px 8px;
    border-radius: 20px;
}

.gfco-addr-selected-body {
    padding: 0 16px 12px;
}

.gfco-addr-line {
    font-size: 13px;
    color: #444;
    line-height: 1.5;
}

.gfco-addr-line--bold {
    font-weight: 600;
    color: #222;
}

.gfco-addr-line--muted {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
}

.gfco-addr-divider {
    border-top: 1px dashed #e8e8e8;
    margin: 10px 0;
}

.gfco-addr-contact {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gfco-addr-contact span {
    font-size: 12px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gfco-addr-contact i {
    color: #aaa;
    width: 12px;
}

.gfco-addr-refs {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: #fffbf0;
    border: 1px dashed #c9a800;
    border-radius: 6px;
    padding: 8px 10px;
    margin: 6px 0;
    font-size: 12px;
    color: #555;
}

.gfco-addr-actions {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    flex-wrap: wrap;
}

.gfco-addr-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    cursor: pointer;
    border: none;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

.gfco-addr-btn--outline {
    background: #fff;
    border: 1.5px solid #ddd;
    color: #555;
}

.gfco-addr-btn--outline:hover {
    border-color: #c9a800;
    color: #c9a800;
}

.gfco-addr-btn--dark {
    background: #111;
    color: #fff;
}

.gfco-addr-btn--dark:hover {
    background: #333;
}

.gfco-addr-btn--xs {
    padding: 4px 10px;
    font-size: 11px;
    background: #f0f0f0;
    color: #333;
    border: none;
}

.gfco-addr-btn--xs:hover {
    background: #e0e0e0;
}

.gfco-addr-btn-delete {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 4px 6px;
    font-size: 13px;
    transition: color .15s;
    border-radius: 4px;
}

.gfco-addr-btn-delete:hover {
    color: #e74c3c;
    background: #fff0f0;
}

/* ── Formulario nueva dirección inline ── */
@keyframes gfcoCouponFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gfco-addr-new-form {
    margin-top: 12px;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    animation: gfcoCouponFadeIn .2s ease;
}

.gfco-addr-new-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.gfco-addr-new-form-header i.fa-map-marker-alt {
    color: #c9a800;
    margin-right: 6px;
}

.gfco-addr-new-form-close {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color .15s, background .15s;
}

.gfco-addr-new-form-close:hover {
    color: #e74c3c;
    background: #fff0f0;
}

.gfco-addr-new-form>div:last-child,
.gfco-addr-new-form>.gfco-addr-create {
    padding: 16px;
}

/* ── Lista de otras direcciones ── */
.gfco-addr-list {
    display: none;
    margin-top: 8px;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.gfco-addr-list.is-open {
    display: block;
}

.gfco-addr-list-empty {
    padding: 14px 16px;
    color: #888;
    font-size: 13px;
    text-align: center;
    background: #fafafa;
    border-radius: 8px;
    margin: 6px 0;
}

.gfco-addr-list-empty i {
    margin-right: 6px;
    color: #c9a800;
}

.gfco-addr-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-top: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background .12s;
}

.gfco-addr-list-item:hover {
    background: #fffdf0;
}

.gfco-addr-list-icon {
    color: #ccc;
    font-size: 16px;
    flex-shrink: 0;
}

.gfco-addr-list-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gfco-addr-list-name {
    font-size: 13px;
    font-weight: 600;
    color: #222;
}

.gfco-addr-list-detail {
    font-size: 11px;
    color: #888;
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
}

.gfco-addr-list-btns {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   MAPA MODAL TIPO APP
   ══════════════════════════════════════════════════════════════ */
.gfco-map-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.gfco-map-modal-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gfco-map-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    background: #fff;
    z-index: 10;
    flex-shrink: 0;
}

.gfco-map-back {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    font-size: 16px;
    transition: background .15s;
}

.gfco-map-back:hover {
    background: #f0f0f0;
}

.gfco-map-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.gfco-map-container {
    position: relative;
    flex: 1;
    min-height: 0;
}

#gfcoMap {
    width: 100%;
    height: 100%;
}

.gfco-map-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    pointer-events: none;
    z-index: 5;
}

.gfco-crosshair-pin {
    font-size: 36px;
    color: #c9a800;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3));
    line-height: 1;
}

.gfco-crosshair-pin::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: rgba(201, 168, 0, .25);
    border-radius: 50%;
    margin: -2px auto 0;
}

.gfco-map-geolocate {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #555;
    cursor: pointer;
    z-index: 6;
    transition: background .15s;
}

.gfco-map-geolocate:hover {
    background: #f5f5f5;
    color: #c9a800;
}

.gfco-map-address-bar {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: #fff;
    border-top: 1px solid #eee;
    flex-shrink: 0;
    min-height: 60px;
}

.gfco-map-address-icon {
    color: #c9a800;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.gfco-map-address-text {
    font-size: 13px;
    color: #444;
    margin: 0;
    line-height: 1.4;
}

.gfco-map-footer {
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.gfco-map-confirm {
    width: 100%;
    padding: 14px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .15s;
}

.gfco-map-confirm:hover:not(:disabled) {
    background: #333;
}

.gfco-map-confirm:disabled {
    background: #ccc;
    cursor: default;
}

@media (min-width: 992px) {
    .gfco-map-modal {
        background: rgba(0, 0, 0, .55);
        align-items: center;
        justify-content: center;
    }

    .gfco-map-modal-inner {
        width: 560px;
        max-width: 90vw;
        height: 620px;
        max-height: 90vh;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    }
}

@media (max-width: 991px) {
    .gfco-map-modal-inner {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

/* ══════════════════════════════════════════════════════════════
   CUPÓN
   ══════════════════════════════════════════════════════════════ */
.gfco-coupon-wrap {
    width: 100%;
}

.gfco-coupon-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    color: #888;
    cursor: pointer;
    width: 100%;
    text-align: left;
    line-height: 1.4;
    transition: color .15s;
}

.gfco-coupon-trigger:hover {
    color: #444;
}

.gfco-coupon-trigger i.fa-tag {
    font-size: 11px;
    color: #bbb;
}

.gfco-coupon-trigger-action {
    font-weight: 700;
    color: #555;
    text-decoration: underline;
    text-decoration-color: #ddd;
    text-underline-offset: 2px;
    margin-left: 2px;
}

.gfco-coupon-trigger:hover .gfco-coupon-trigger-action {
    color: #c9a800;
    text-decoration-color: #c9a800;
}

.gfco-coupon-spinner {
    margin-left: 4px;
    color: #aaa;
    font-size: 11px;
}

.gfco-coupon-form {
    display: none;
    margin-top: 10px;
    animation: gfcoCouponFadeIn .2s ease;
}

.gfco-coupon-form.is-open {
    display: block;
}

.gfco-coupon-input-row {
    display: flex;
    gap: 6px;
}

.gfco-coupon-input {
    flex: 1;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    background: #fafafa;
    outline: none;
    transition: border-color .15s;
}

.gfco-coupon-input:focus {
    border-color: #c9a800;
    background: #fff;
}

.gfco-coupon-input.is-invalid {
    border-color: #e74c3c;
}

.gfco-coupon-btn {
    height: 36px;
    padding: 0 14px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    min-width: 70px;
    text-align: center;
}

.gfco-coupon-btn:hover:not(:disabled) {
    background: #333;
}

.gfco-coupon-btn:disabled {
    background: #ccc;
    cursor: default;
}

.gfco-coupon-alert {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 7px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.gfco-coupon-alert--success {
    background: #f0faf4;
    color: #27ae60;
    border: 1px solid #a8e6c3;
}

.gfco-coupon-alert--danger,
.gfco-coupon-alert--error {
    background: #fef0f0;
    color: #e74c3c;
    border: 1px solid #f5c6cb;
}

.gfco-coupon-error {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: #e74c3c;
}

/* ══════════════════════════════════════════════════════════════
   MODAL NUEVA DIRECCIÓN
   ══════════════════════════════════════════════════════════════ */
.gfco-modal-content {
    border: none;
    border-radius: 14px;
    overflow: hidden;
}

.gfco-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    font-weight: 700;
    color: #222;
}

.gfco-modal-header i.fa-map-marker-alt {
    color: #c9a800;
    margin-right: 7px;
}

.gfco-modal-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 15px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color .15s, background .15s;
}

.gfco-modal-close:hover {
    color: #e74c3c;
    background: #fff0f0;
}

.gfco-modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.gfco-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    margin-top: 8px;
}

@media (max-width: 576px) {
    .gfco-modal-footer {
        flex-direction: column-reverse;
    }

    .gfco-modal-footer .gfco-addr-btn {
        width: 100%;
        justify-content: center;
    }

    .gfco-modal-body {
        max-height: 60vh;
        padding: 14px;
    }
}

/* ══════════════════════════════════════════════════════════════
   MÉTODOS DE PAGO
   ══════════════════════════════════════════════════════════════ */
.gfco-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gfco-payment-block {
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    padding: 16px;
    background: #fff;
}

.gfco-payment-note {
    display: block;
    text-align: center;
    font-size: 11px;
    color: #aaa;
    margin-top: 10px;
    line-height: 1.4;
}

.gfco-payment-transfer {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s;
    text-align: left;
    min-height: 68px;
    color: inherit;
    text-decoration: none;
}

.gfco-payment-transfer:hover {
    border-color: #c9a800;
    background: #fffdf0;
    box-shadow: 0 2px 10px rgba(201, 168, 0, .12);
}

.gfco-payment-transfer-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.gfco-payment-transfer-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #555;
    flex-shrink: 0;
    transition: background .2s, color .2s;
}

.gfco-payment-transfer:hover .gfco-payment-transfer-icon {
    background: #fdf6d8;
    color: #c9a800;
}

.gfco-payment-transfer-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.gfco-payment-transfer-text strong {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}

.gfco-payment-transfer-text span {
    font-size: 11px;
    color: #999;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
}

.gfco-payment-transfer-arrow {
    color: #ccc;
    font-size: 11px;
    flex-shrink: 0;
    transition: color .2s, transform .2s;
}

.gfco-payment-transfer:hover .gfco-payment-transfer-arrow {
    color: #c9a800;
    transform: translateX(2px);
}

.gfco-payment-transfer-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    font-size: 13px;
    color: #555;
    font-weight: 600;
}

.gfco-payment-transfer:disabled {
    opacity: .6;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .gfco-payment-transfer-text strong {
        font-size: 12px;
    }

    .gfco-payment-transfer-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

/* Trust badges */
.gfco-trust-badges {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.gfco-trust-note {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.gfco-trust-note i {
    color: #28a745;
    margin-right: 4px;
}

.gfco-trust-icons {
    margin-bottom: 8px;
}

.gfco-trust-disclaimer {
    font-size: 10px;
    color: #bbb;
    line-height: 1.4;
    margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   PAGO — Fixes v2
   Pegar al FINAL de cart.css (reemplaza el bloque "PAGO — Layout invertido")
   ══════════════════════════════════════════════════════════════ */

/* ── Layout paso de pago ──────────────────────────────────────
   Desktop: izq resumen+dir+envío | der pagos (sticky)
   Móvil:   misma secuencia vertical (resumen → dir → envío → pagos)
   ────────────────────────────────────────────────────────────── */
.gfco-layout--payment {
    grid-template-columns: 1fr 360px;
}

.gfco-col-side--payment {
    position: sticky;
    top: 20px;
    align-self: start;
}

/* Sección pago sin margen inferior */
.gfco-section--payment-main {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .gfco-layout--payment {
        grid-template-columns: 1fr;
    }

    /* Misma secuencia que desktop: col-main (resumen/dir/envío) primero */
    .gfco-layout--payment .gfco-col-main {
        order: 1;
    }

    .gfco-layout--payment .gfco-col-side--payment {
        order: 2;
        position: static;
    }
}

/* ── Números de paso en pago ──────────────────────────────────*/
.gfco-section-num.passed {
    background: #c9a800;
    color: #fff;
    font-size: 12px;
}

.gfco-section-num--active {
    background: #c9a800;
    color: #000;
    font-weight: 900;
}

/* ── Badge confirmado ─────────────────────────────────────────*/
.gfco-section-badge-confirmed {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    background: #d4edda;
    color: #155724;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: .3px;
}

/* ── Ref de orden ─────────────────────────────────────────────*/
.gfco-order-ref {
    margin-left: auto;
    font-size: 11px;
    color: #aaa;
    font-weight: 600;
}

/* ── Secciones bloqueadas ─────────────────────────────────────*/
.gfco-section-locked {
    opacity: 0.88;
}

.gfco-section-locked .gfco-section-header {
    background: #f8f8f8;
}

/* Dirección en pago: borde neutro, no dorado */
.gfco-section-locked .gfco-addr-confirmed {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 14px 16px;
    background: #fff;
}

/* ── Dirección confirmada (sin el componente gfco-addr-selected) ──*/
.gfco-addr-confirmed {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gfco-addr-confirmed-name {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
}

.gfco-addr-confirmed-name i {
    color: #888;
    font-size: 13px;
}

/* ── Body compacto ────────────────────────────────────────────*/
.gfco-section-body--compact {
    padding: 12px 16px !important;
}

/* ── Envío confirmado ─────────────────────────────────────────*/
.gfco-shipping-confirmed {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 10px 14px;
}

.gfco-shipping-confirmed-icon {
    width: 36px;
    height: 36px;
    background: #fdf6d8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #c9a800;
    flex-shrink: 0;
}

.gfco-shipping-confirmed-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gfco-shipping-confirmed-info strong {
    font-size: 13px;
    font-weight: 700;
    color: #111;
}

.gfco-shipping-confirmed-info span {
    font-size: 11px;
    color: #888;
}

/* ── Total destacado ──────────────────────────────────────────*/
.gfco-payment-total-highlight {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.gfco-payment-total-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .4px;
    font-weight: 600;
}

.gfco-payment-total-amount {
    font-size: 20px;
    font-weight: 800;
    color: #111;
}

/* ── Número de orden ──────────────────────────────────────────*/
.gfco-order-number {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gfco-order-number strong {
    color: #111;
}

.gfco-order-number i {
    color: #c9a800;
}

/* ══════════════════════════════════════════════════════════════
   PRODUCTOS — layout lineal (nombre + badge en fila)
   ══════════════════════════════════════════════════════════════ */
.gfco-order-item--inline {
    align-items: center;
}

.gfco-order-item-info--inline {
    flex-direction: row !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px !important;
}

.gfco-order-item-info--inline .gfco-order-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}

.gfco-order-item-info--inline .gfco-order-item-type {
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   RESUMEN COLAPSABLE EN MÓVIL
   ══════════════════════════════════════════════════════════════ */

/* El toggle (header de la sección resumen) */
.gfco-summary-payment-toggle {
    cursor: default;
    /* desktop: no clickeable */
}

.gfco-summary-payment-toggle.is-toggleable {
    cursor: pointer;
    user-select: none;
}

.gfco-summary-payment-toggle.is-toggleable:hover {
    background: #f5f5f5;
}

/* Meta: count + total + chevron — solo visible en móvil */
.gfco-summary-payment-meta {
    display: none;
    margin-left: auto;
    align-items: center;
    gap: 8px;
}

.gfco-summary-payment-count {
    font-size: 11px;
    color: #aaa;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.gfco-summary-payment-total {
    font-size: 13px;
    font-weight: 800;
    color: #111;
}

.gfco-summary-payment-chevron {
    font-size: 10px;
    color: #aaa;
    transition: transform .25s ease;
    flex-shrink: 0;
}

.gfco-summary-payment-chevron.rotated {
    transform: rotate(180deg);
}

/* Body del resumen */
.gfco-summary-payment-body {
    display: block;
    /* desktop: siempre visible */
}

@media (max-width: 991px) {

    /* En móvil mostrar meta y activar toggle */
    .gfco-summary-payment-meta {
        display: flex;
    }

    /* Ocultar el título "Resumen del pedido" en móvil (lo reemplaza el meta) */
    .gfco-section--summary .gfco-section-title {
        display: none;
    }

    /* También ocultar el ref de orden del header */
    .gfco-section--summary .gfco-order-ref {
        display: none;
    }

    /* Body colapsado por defecto */
    .gfco-summary-payment-body.is-collapsed {
        display: none;
    }

    .gfco-summary-payment-body.is-open {
        display: block;
    }
}

/* ══════════════════════════════════════════════════════════════
   FIX — Botón transferencia: quitar estado "Procesando" al cargar
   El botón vive en una vista normal (no Livewire), wire:loading
   no aplica. Ocultar el div de loading permanentemente aquí.
   ══════════════════════════════════════════════════════════════ */
.gfco-payment-transfer-loading[wire\:loading] {
    /* wire:loading lo muestra Livewire, pero si no hay contexto
       Livewire activo el atributo wire:loading queda en el DOM
       y algunos builds lo muestran. Este selector lo fuerza oculto. */
    display: none !important;
}


/* ── Dirección + envío compactos ─────────────────────────────
   Agregar al final de cart.css
   ────────────────────────────────────────────────────────── */

.gfco-section--addr-compact {
    margin-bottom: 12px;
}

/* Nombre: pequeño y discreto */
.gfco-addr-compact-name {
    font-size: 12px;
    font-weight: 700;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 3px;
}

.gfco-addr-compact-name i {
    color: #aaa;
    font-size: 11px;
    flex-shrink: 0;
}

/* Dirección: 1-2 líneas en gris */
.gfco-addr-compact-lines {
    font-size: 12px;
    color: #444;
    line-height: 1.5;
    margin-bottom: 4px;
}

/* Contacto: una sola línea con separador */
.gfco-addr-compact-contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    font-size: 11px;
    color: #888;
    margin-bottom: 8px;
}

.gfco-addr-compact-contact i {
    color: #bbb;
    margin-right: 3px;
}

.gfco-addr-compact-sep {
    color: #ccc;
}

/* Envío inline pegado */
.gfco-addr-compact-shipping {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #f8f8f8;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
}

.gfco-addr-compact-shipping>i {
    color: #c9a800;
    font-size: 12px;
    flex-shrink: 0;
}

.gfco-addr-compact-shipping-name {
    flex: 1;
    color: #333;
    font-weight: 600;
}

.gfco-addr-compact-shipping-price {
    color: #888;
    font-weight: 600;
    white-space: nowrap;
}


/* ══ LAYOUT ══════════════════════════════════════════════════════ */
.gfco-layout--complete {
    display: grid;  /* ← esto faltaba */
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

.gfco-col-side--complete {
    position: sticky; top: 20px; align-self: start;
}
@media (max-width: 991px) {
    .gfco-layout--complete { grid-template-columns: 1fr; }
    .gfco-layout--complete .gfco-col-main        { order: 1; }
    .gfco-layout--complete .gfco-col-side--complete { order: 2; position: static; }
}

/* ══ RESUMEN COLAPSABLE ══════════════════════════════════════════ */
.gfco-summary-toggle { cursor: pointer; user-select: none; }
.gfco-summary-toggle:hover { background: #f5f5f5; }

.gfco-summary-meta {
    margin-left: auto;
    display: flex; align-items: center; gap: 8px;
}
.gfco-summary-count  { font-size: 11px; color: #aaa; }
.gfco-summary-total  { font-size: 13px; font-weight: 800; color: #111; }
.gfco-summary-chevron {
    font-size: 10px; color: #aaa;
    transition: transform .25s ease;
}
.gfco-summary-chevron.rotated { transform: rotate(180deg); }

.gfco-summary-body { display: block; }
.gfco-summary-body.is-collapsed { display: none; }
.gfco-summary-body.is-open      { display: block; }

/* Ocultar título cuando el meta está visible (siempre en esta página) */
.gfco-section--summary .gfco-section-title { display: none; }

/* ══ ACCIÓN TRANSFERENCIA ════════════════════════════════════════ */
.gfco-complete-action {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}
.gfco-complete-action--transfer {
    border: 2px solid #f0a500;
    background: #fffdf0;
    padding: 0;
}
.gfco-complete-action--paid {
    border: 2px solid #28a745;
    background: #f0fff4;
}

.gfco-complete-action-header {
    background: #f0a500;
    color: #000;
    font-weight: 800;
    font-size: 15px;
    padding: 12px 16px;
    display: flex; align-items: center; gap: 8px;
}
.gfco-complete-action-header--paid {
    background: #28a745;
    color: #fff;
}
.gfco-complete-action-intro {
    font-size: 13px; color: #555;
    padding: 12px 16px 0;
    margin: 0;
}

/* Datos bancarios */
.gfco-bank-data {
    margin: 12px 16px;
    border: 1px dashed #f0a500;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}
.gfco-bank-row {
    display: flex; justify-content: space-between;
    font-size: 13px; padding: 4px 0;
    border-bottom: 1px solid #f5f5f5;
}
.gfco-bank-row:last-child { border-bottom: none; }
.gfco-bank-row span  { color: #888; }
.gfco-bank-row strong { color: #111; }

.gfco-bank-oxxo {
    margin: 0 16px 12px;
    background: #fff8e1;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    color: #c9a800;
    font-weight: 700;
    display: flex; align-items: center; gap: 6px;
}

.gfco-complete-action-note {
    font-size: 12px; color: #888;
    padding: 0 16px 12px;
    display: flex; align-items: flex-start; gap: 5px;
    margin: 0;
}

/* Botones de acción */
.gfco-complete-btn {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; width: calc(100% - 32px);
    margin: 0 16px 10px;
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 14px; font-weight: 700;
    text-decoration: none;
    transition: opacity .2s;
}
.gfco-complete-btn:last-child { margin-bottom: 16px; }
.gfco-complete-btn:hover { opacity: .88; }
.gfco-complete-btn--whatsapp { background: #25d366; color: #fff; }
.gfco-complete-btn--email    { background: #111; color: #fff; }
.gfco-complete-btn--digital  { background: #c9a800; color: #000; }
.gfco-complete-btn--account  { background: #007bff; color: #fff; }

/* Info rows en pago exitoso */
.gfco-complete-info-row {
    display: flex; align-items: flex-start;
    gap: 10px; padding: 12px 16px;
    font-size: 13px; color: #444;
}
.gfco-complete-info-row i { color: #007bff; margin-top: 2px; flex-shrink: 0; }
.gfco-complete-info-row--digital i { color: #c9a800; }

/* Botón ver mis pedidos */
.gfco-complete-account-btn {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; width: 100%;
    padding: 12px; border-radius: 8px;
    border: 1.5px solid #ddd;
    font-size: 14px; font-weight: 600;
    color: #444; background: #fff;
    text-decoration: none;
    transition: border-color .2s, color .2s;
    margin-top: 12px;
}
.gfco-complete-account-btn:hover { border-color: #c9a800; color: #c9a800; }

/* Aviso digital pendiente de pago (en hero) */
.gfco-complete-digital-pending {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff8e1; border: 1px solid #f0a500;
    color: #7a5000; border-radius: 8px;
    padding: 10px 18px; font-size: 13px; font-weight: 600;
    margin-top: 12px;
}

/* Aviso dentro de tarjeta de transferencia */
.gfco-complete-action-note--info {
    background: #fff8e1;
    border-left: 3px solid #f0a500;
    border-radius: 0 6px 6px 0;
    padding: 10px 14px;
    margin: 0 16px 12px;
    font-size: 12px;
    color: #7a5000;
    font-weight: 600;
    display: flex; align-items: flex-start; gap: 7px;
}


</style>



<style>
/* ══ HERO ═══════════════════════════════════════════════════════ */
.gfco-complete-hero {
    text-align: center;
    padding: 32px 16px 24px;
}
.gfco-complete-hero-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff;
    margin: 0 auto 14px;
}
.gfco-complete-hero-icon--success { background: #28a745; }
.gfco-complete-hero-icon--pending  { background: #f0a500; }
.gfco-complete-hero-title { font-size: 22px; font-weight: 800; color: #111; margin-bottom: 6px; }
.gfco-complete-hero-sub   { font-size: 14px; color: #888; margin-bottom: 16px; }

.gfco-complete-cta-digital {
    display: inline-flex; align-items: center; gap: 8px;
    background: #c9a800; color: #000;
    font-weight: 800; font-size: 15px;
    padding: 12px 24px; border-radius: 8px;
    text-decoration: none;
    transition: background .2s;
    margin-bottom: 10px;
}
.gfco-complete-cta-digital:hover { background: #b39600; color: #000; }
.gfco-complete-cta-note {
    font-size: 12px; color: #888;
    display: flex; align-items: center; justify-content: center; gap: 5px;
}

