/* ══════════════════════════════════════
   FLUJO DE COMPRA — Header compartido
   Luna y el Tarot — MGWeb 2026
   Archivo: assets/css/flow.css
   Cargado en: carrito, checkout, confirmación
══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,700&family=Nunito:wght@400;500;600;700&display=swap');

/* ── Header del flujo ── */
.luna-flow-header {
    background: #1a1625;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* evita scroll horizontal */
}

.luna-flow-logo {
    height: 48px;
    width: auto;
}

/* ── Pills de progreso ── */
.luna-flow-steps {
    display: flex;
    align-items: center;
    gap: 6px;
}

.luna-step {
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 99px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.luna-step.done {
    background: rgba(149,123,234,0.3);
    color: #c9bcf5;
}

/* "done" como enlace (solo en checkout — volver al carrito) */
a.luna-step.done {
    cursor: pointer;
}

a.luna-step.done:hover {
    background: rgba(149,123,234,0.5);
    color: white;
}

.luna-step.active {
    background: #957bea;
    color: white;
    font-weight: 600;
}

.luna-step.pending {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.35);
}

.luna-step-sep {
    color: rgba(255,255,255,0.2);
    font-size: 12px;
}

/* ── Candado SSL ── */
.luna-flow-secure {
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .luna-flow-header {
        padding: 14px 16px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .luna-flow-secure {
        display: none;
    }
}

/* ══════════════════════════════════════
   PÁGINA DE CONFIRMACIÓN
   Estilos de thankyou.php
══════════════════════════════════════ */

.luna-thankyou-wrap {
    background: #faf9f6;
    min-height: 60vh;
    padding: 48px 32px;
    max-width: 900px;
    margin: 0 auto;
}

/* ── Hero de confirmación ── */
.luna-thankyou-hero {
    text-align: center;
    margin-bottom: 32px;
}

.luna-thankyou-icon {
    font-size: 52px;
    display: block;
    margin-bottom: 16px;
}

.luna-thankyou-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #1a1625;
    margin-bottom: 8px;
}

.luna-thankyou-subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    color: #4a4458;
    margin-bottom: 6px;
}

.luna-thankyou-email {
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    color: #8b82a0;
}

/* ── Mensaje de entrega ── */
.luna-thankyou-delivery {
    background: #f0ecfd;
    border-left: 3px solid #957bea;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    color: #4a4458;
    line-height: 1.6;
    margin-bottom: 36px;
    text-align: center;
}

/* ── Grid dos columnas ── */
.luna-thankyou-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
    align-items: start;
}

.luna-thankyou-section-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a1625;
    margin-bottom: 14px;
}

/* ── Producto en confirmación ── */
.luna-thankyou-item {
    background: white;
    border: 1px solid rgba(149,123,234,0.2);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.luna-thankyou-item-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: #f0ecfd;
    flex-shrink: 0;
    overflow: hidden;
}

.luna-thankyou-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.luna-thankyou-item-info {
    flex: 1;
    min-width: 0;
}

.luna-thankyou-item-name {
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1a1625;
    margin-bottom: 6px;
}

.luna-thankyou-item-qty {
    font-weight: 400;
    color: #8b82a0;
    margin-left: 4px;
}

.luna-thankyou-item-price {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a1625;
    flex-shrink: 0;
}

/* ── Acordeón de preguntas en confirmación ── */
.luna-thankyou-meta-details {
    border-left: 3px solid #957bea;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 8px;
}

.luna-thankyou-meta-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    background: #f7f4fe;
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #957bea;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.luna-thankyou-meta-summary::-webkit-details-marker { display: none; }
.luna-thankyou-meta-summary::marker { display: none; }

.luna-thankyou-meta-chevron {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.luna-thankyou-meta-details[open] .luna-thankyou-meta-chevron {
    transform: rotate(90deg);
}

.luna-thankyou-meta-content {
    background: #f7f4fe;
    padding: 10px 12px;
}

.luna-thankyou-meta-content dt {
    font-family: 'Nunito', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8b82a0;
    display: block;
    margin: 6px 0 2px;
    float: none;
    clear: both;
}

.luna-thankyou-meta-content dt:first-of-type { margin-top: 0; }

.luna-thankyou-meta-content dd {
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    color: #4a4458;
    margin: 0;
    display: block;
}

/* ── Fila de total ── */
.luna-thankyou-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0 0;
    border-top: 1px solid rgba(149,123,234,0.15);
    margin-top: 4px;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    color: #8b82a0;
}

.luna-thankyou-total-val {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a1625;
}

/* ── Card de detalles del pedido ── */
.luna-thankyou-detail-card {
    background: white;
    border: 1px solid rgba(149,123,234,0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
}

.luna-thankyou-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 0.5px solid rgba(149,123,234,0.1);
    gap: 12px;
}

.luna-thankyou-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.luna-thankyou-detail-label {
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    color: #8b82a0;
}

.luna-thankyou-detail-val {
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #1a1625;
    text-align: right;
}

.luna-thankyou-status {
    color: #957bea;
}

.luna-thankyou-account-link {
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    color: #957bea;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.luna-thankyou-account-link:hover {
    color: #7d60d4;
}

/* ── Footer / CTA ── */
.luna-thankyou-footer {
    text-align: center;
    padding-top: 8px;
}

.luna-thankyou-cta {
    display: inline-block;
    background: #957bea;
    color: white;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    padding: 15px 32px;
    margin-bottom: 14px;
    transition: background 0.2s;
}

.luna-thankyou-cta:hover {
    background: #7d60d4;
    color: white;
}

.luna-thankyou-footer-note {
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    color: #8b82a0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .luna-thankyou-wrap {
        padding: 28px 16px;
    }
    .luna-thankyou-grid {
        grid-template-columns: 1fr;
    }
    .luna-thankyou-title {
        font-size: 24px;
    }
}

/* ══════════════════════════════════════
   BODY EN FLUJO — sin padding-top del header
   El header de flujo va dentro del contenido,
   no necesita compensación del header fijo.
══════════════════════════════════════ */

body.woocommerce-cart,
body.woocommerce-checkout,
body.woocommerce-order-received {
    padding-top: 0 !important;
}
