/* ============================================
   ORDER CONFIRMATION - ESTILS NETS I COMPACTES
   ============================================ */

.order-confirmation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
    min-height: 400px;
}

/* Icona */
.order-confirm-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F2ED;
    border-radius: 50%;
    margin-bottom: 0.875rem;
    color: #57534E;
    animation: scaleIn 0.4s var(--ease-out-expo);
}

.order-confirm-icon.success {
    background: #F5F2ED;
    color: #57534E;
}

.order-confirm-icon.warning {
    background: #FFF7ED;
    color: #EA580C;
}

.order-confirm-icon svg {
    width: 24px;
    height: 24px;
}

.whatsapp-icon {
    color: #57534E;
}

/* Títol i text */
.order-confirm-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.25rem;
    color: var(--stone-900);
    margin: 0 0 0.5rem 0;
    font-weight: 400;
}

.order-confirm-text {
    font-size: 0.8125rem;
    color: var(--stone-600);
    line-height: 1.5;
    margin: 0 0 1rem 0;
    max-width: 320px;
}

/* Detalls compactes */
.order-confirm-details {
    background: var(--stone-50);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    width: 100%;
    max-width: 360px;
}

.order-confirm-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.8125rem;
}

.order-confirm-detail:not(:last-child) {
    border-bottom: 1px solid var(--stone-200);
}

.order-confirm-detail strong {
    color: var(--stone-600);
    font-weight: 500;
}

.order-confirm-detail span {
    color: var(--stone-900);
    font-weight: 600;
}

/* Productes */
.order-confirm-products {
    background: #FFFCF9;
    border: 1px solid var(--stone-200);
    border-radius: 10px;
    padding: 0.875rem;
    margin: 0.75rem 0;
    width: 100%;
    max-width: 360px;
    text-align: left;
}

.order-confirm-products h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--stone-600);
    margin: 0 0 0.625rem 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.order-confirm-product {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.8125rem;
}

.order-confirm-product:not(:last-child) {
    border-bottom: 1px dashed var(--stone-200);
}

.order-confirm-product-name {
    color: var(--stone-900);
    line-height: 1.3;
}

.order-confirm-product-qty {
    color: var(--stone-500);
    margin-left: 0.25rem;
    font-size: 0.75rem;
}

.order-confirm-product-price {
    color: var(--terracotta-600);
    font-weight: 600;
}

/* Límit de temps - compacte */
.order-confirm-limit {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: #FFF7ED;
    border-radius: 8px;
    font-size: 0.75rem;
    color: #EA580C;
    font-weight: 500;
    margin: 0.75rem 0 1rem 0;
}

.order-confirm-limit svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Accions */
.order-confirm-actions {
    display: flex;
    gap: 0.625rem;
    margin-top: 1.25rem;
    width: 100%;
    max-width: 360px;
}

/* Botons - molt compactes amb icones petites */
.btn-modify-order,
.btn-cancel-order,
.btn-back,
.btn-confirm-cancel,
.btn-confirm-sent {
    flex: 1;
    padding: 0.625rem 0.875rem;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.btn-modify-order svg,
.btn-cancel-order svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-modify-order {
    background: var(--terracotta-500);
    color: white;
}

.btn-modify-order:hover {
    background: var(--terracotta-600);
    transform: translateY(-1px);
}

.btn-modify-order:active {
    transform: translateY(0);
}

.btn-cancel-order {
    background: var(--stone-200);
    color: var(--stone-700);
}

.btn-cancel-order:hover {
    background: var(--stone-300);
}

.btn-back {
    background: var(--stone-200);
    color: var(--stone-700);
}

.btn-back:hover {
    background: var(--stone-300);
}

.btn-confirm-cancel {
    background: #DC2626;
    color: white;
}

.btn-confirm-cancel:hover {
    background: #B91C1C;
}

.btn-confirm-sent {
    background: #57534E;
    color: white;
}

.btn-confirm-sent:hover {
    background: #44403C;
}

/* Animacions */
@keyframes scaleIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.order-confirmation > * {
    animation: fadeIn 0.4s var(--ease-out-expo) backwards;
}

.order-confirmation > *:nth-child(1) { animation-delay: 0.05s; }
.order-confirmation > *:nth-child(2) { animation-delay: 0.1s; }
.order-confirmation > *:nth-child(3) { animation-delay: 0.15s; }
.order-confirmation > *:nth-child(4) { animation-delay: 0.2s; }
.order-confirmation > *:nth-child(5) { animation-delay: 0.25s; }

/* Whatsapp confirmation */
.whatsapp-confirm .order-confirm-icon {
    background: #F5F2ED;
}

/* Text de contacte - compacte en una línia */
.order-confirm-contact {
    font-size: 0.75rem;
    color: var(--stone-600);
    margin-top: 1.5rem;
    line-height: 1.4;
}

.order-confirm-contact strong {
    color: var(--stone-900);
    font-weight: 600;
    white-space: nowrap;
}

.order-confirm-expired {
    font-size: 0.8125rem;
    color: var(--stone-500);
    margin-top: 1rem;
    font-style: italic;
}

/* Total dins productes */
.order-confirm-total {
    display: flex;
    justify-content: space-between;
    padding-top: 0.625rem;
    margin-top: 0.5rem;
    border-top: 2px solid var(--stone-300);
    font-size: 0.9375rem;
}

.order-confirm-total strong {
    color: var(--stone-900);
}

.order-confirm-total strong:last-child {
    color: var(--terracotta-600);
}

/* Responsive - encara més compacte en mòbil */
@media (max-width: 480px) {
    .order-confirmation {
        padding: 1.5rem 0.875rem;
        min-height: 360px;
    }
    
    .order-confirm-icon {
        width: 44px;
        height: 44px;
    }
    
    .order-confirm-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .order-confirm-title {
        font-size: 1.125rem;
    }
    
    .order-confirm-text {
        font-size: 0.75rem;
    }
    
    .order-confirm-details,
    .order-confirm-products {
        max-width: 100%;
        padding: 0.875rem;
    }
    
    .order-confirm-actions {
        flex-direction: column;
        max-width: 100%;
    }
    
    .btn-modify-order,
    .btn-cancel-order,
    .btn-back,
    .btn-confirm-cancel,
    .btn-confirm-sent {
        width: 100%;
    }
    
    .order-confirm-contact {
        font-size: 0.6875rem;
    }
}