/* --- DISEÑO EXCLUSIVO PARA LA PÁGINA DE CHECKOUT --- */

.checkout-wrapper {
    background-color: #f8fafc; /* Fondo gris slate suave idéntico al off-canvas */
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

.checkout-logo {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
    transition: transform 0.3s ease;
}
.checkout-logo:hover {
    transform: scale(1.05);
}

.checkout-main-title {
    font-size: 24pt;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
}

/* Banner de Aviso Especial */
.checkout-info-banner {
    max-width: 720px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.font-medium {
    font-weight: 500;
}

/* Contenedores Principales */
.checkout-form-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
}

.text-title-section {
    font-size: 14pt;
    font-weight: 600;
    color: #0f172a;
}

/* Inputs Personalizados */
.custom-input {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    font-size: 10.5pt;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.custom-help-text {
    font-size: 8.5pt;
    color: #64748b !important;
    margin-top: 4px;
}

/* Tarjeta del Resumen de Compra */
.checkout-summary-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
}

.checkout-summary-card .list-group-item {
    border-left: none;
    border-right: none;
    border-color: #f1f5f9;
    background-color: #ffffff;
}

.product-summary-name {
    font-size: 11pt;
    font-weight: 600;
    color: #1e293b;
}

.badge-items-count {
    background-color: #0f172a !important;
    font-weight: 600;
    font-size: 9.5pt;
    padding: 0.4rem 0.8rem;
}

.total-row {
    background-color: #f8fafc !important;
    border-top: 2px solid #e2e8f0 !important;
}

.fw-extrabold {
    font-weight: 800;
}

/* Botones Interactivos */
.btn-submit-checkout {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 50rem;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    padding: 12px 24px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.btn-submit-checkout:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-submit-checkout:active {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.2);
}

.btn-submit-checkout i {
    font-size: 1.2rem;
    pointer-events: none;
}

/* Botón Regresar Mobile */
.btn-back-store {
    background: #ffffff;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 500;
    font-size: 10.5pt;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}

.btn-back-store:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}

/* Sticky Sidebar para Escritorio */
@media (min-width: 768px) {
    .sticky-sidebar {
        position: sticky;
        top: 2rem;
        z-index: 5;
    }
}

/* Cláusula aclaratoria al pie */
.custom-disclaimer {
    font-size: 8pt;
    line-height: 1.5;
    color: #94a3b8;
}
 /* Botón de WhatsApp Moderno */
.btn-whatsapp-modern {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    min-height: 46px;
}

.btn-whatsapp-modern:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 62, 144, 0.2);
}

.btn-whatsapp-modern {
    background-color: #25d366;
}

.btn-whatsapp-modern:hover {
    background-color: #1ea952;
}

.btn-whatsapp-modern {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    padding: 12px 24px;
    border: none;
    border-radius: 50rem; /* Redondeado simétrico elegante estilo píldora */
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.btn-whatsapp-modern:hover {
    transform: translateY(-2px); /* Pequeña elevación */
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    background: linear-gradient(135deg, #20ba5a 0%, #0e7367 100%);
}

/* Efecto Click (Active) */
.btn-whatsapp-modern:active {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.2);
}

/* Asegurar que el icono no interfiera con los clics en JS */
.btn-whatsapp-modern i {
    font-size: 1.2rem;
    pointer-events: none; 
}