/**
 * Estilos para el Módulo de Pago por Transferencia Bancaria
 * Andrea Tovio Cursos - ecademy-child
 */

:root {
    --at-tp-primary: #db3a6b;
    --at-tp-primary-hover: #c22d5b;
    --at-tp-dark: #27181c;
    --at-tp-dark-card: #331f24;
    --at-tp-cream: #faf7f5;
    --at-tp-white: #ffffff;
    --at-tp-muted: #6b6366;
    --at-tp-border: #ebd9df;
    --at-tp-wa-green: #25d366;
    --at-tp-wa-green-hover: #1ebd5a;
    --at-tp-warning-bg: #fff9ea;
    --at-tp-warning-border: #f4cf7a;
    --at-tp-warning-text: #8c5b05;
    --at-tp-success-bg: #eefbf3;
    --at-tp-success-border: #9ae6b4;
    --at-tp-success-text: #1d733e;
    --at-tp-radius: 14px;
    --at-tp-radius-sm: 8px;
    --at-tp-shadow: 0 4px 18px rgba(39, 24, 28, 0.06);
    --at-tp-shadow-hover: 0 8px 24px rgba(39, 24, 28, 0.12);
}

/* ==========================================================================
   Contenedor Principal de la Página de Gracias
   ========================================================================== */
.at-tp-thankyou-wrapper {
    max-width: 920px;
    margin: 40px auto 70px;
    padding: 0 20px;
    font-family: var(--fontFamily, 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    color: var(--at-tp-dark);
}

/* Encabezado y Estado */
.at-tp-status-banner {
    background: linear-gradient(135deg, #fffdf7 0%, #fff6df 100%);
    border: 1px solid var(--at-tp-warning-border);
    border-left: 6px solid #e09b13;
    border-radius: var(--at-tp-radius);
    padding: 24px 28px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    box-shadow: var(--at-tp-shadow);
}

.at-tp-status-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: #ffecb8;
    color: #945d04;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.at-tp-status-icon svg {
    width: 24px;
    height: 24px;
}

.at-tp-status-content h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: var(--at-tp-dark);
}

.at-tp-status-content p {
    margin: 0;
    color: #5c4424;
    font-size: 15px;
    line-height: 1.55;
}

/* Resumen del Pedido */
.at-tp-card {
    background: var(--at-tp-white);
    border: 1px solid var(--at-tp-border);
    border-radius: var(--at-tp-radius);
    padding: 26px 30px;
    margin-bottom: 30px;
    box-shadow: var(--at-tp-shadow);
}

.at-tp-card-title {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--at-tp-dark);
}

.at-tp-card-title svg {
    width: 22px;
    height: 22px;
    color: var(--at-tp-primary);
}

.at-tp-order-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    padding: 16px;
    background: var(--at-tp-cream);
    border-radius: var(--at-tp-radius-sm);
    margin-bottom: 20px;
}

.at-tp-order-item {
    display: flex;
    flex-direction: column;
}

.at-tp-order-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--at-tp-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.at-tp-order-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--at-tp-dark);
}

.at-tp-order-value.total-highlight {
    color: var(--at-tp-primary);
    font-size: 18px;
}

.at-tp-order-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
}

.at-tp-courses-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px dashed var(--at-tp-border);
    padding-top: 14px;
}

.at-tp-course-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 15px;
}

.at-tp-course-name {
    font-weight: 600;
    color: var(--at-tp-dark);
}

/* ==========================================================================
   Información Bancaria (QR + Cuentas)
   ========================================================================== */
.at-tp-transfer-details-box {
    margin-bottom: 30px;
}

.at-tp-bank-section {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: stretch;
}

@media (max-width: 820px) {
    .at-tp-bank-section {
        grid-template-columns: 1fr;
    }
}

/* Tarjeta QR */
.at-tp-qr-card {
    background: var(--at-tp-white);
    border: 1px solid var(--at-tp-border);
    border-radius: var(--at-tp-radius);
    padding: 22px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--at-tp-shadow);
}

.at-tp-qr-badge {
    display: inline-block;
    background: var(--at-tp-cream);
    color: var(--at-tp-primary);
    border: 1px solid var(--at-tp-border);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.at-tp-qr-image-frame {
    background: #ffffff;
    padding: 10px;
    border-radius: 12px;
    border: 2px solid var(--at-tp-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    display: inline-block;
    max-width: 220px;
    width: 100%;
    margin-bottom: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.at-tp-qr-image-frame:hover {
    transform: translateY(-2px);
    box-shadow: var(--at-tp-shadow-hover);
}

.at-tp-qr-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.at-tp-qr-placeholder {
    width: 180px;
    height: 180px;
    background: #f7f1f3;
    border: 2px dashed #db3a6b;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--at-tp-primary);
    padding: 12px;
    font-size: 13px;
    text-align: center;
}

.at-tp-qr-caption {
    font-size: 13px;
    color: var(--at-tp-muted);
    line-height: 1.4;
    margin: 0;
}

/* Lista de Cuentas */
.at-tp-accounts-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
}

.at-tp-account-card {
    background: var(--at-tp-white);
    border: 1px solid var(--at-tp-border);
    border-radius: var(--at-tp-radius);
    padding: 18px 20px;
    box-shadow: var(--at-tp-shadow);
    transition: transform 0.2s ease, border-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.at-tp-account-card:hover {
    border-color: var(--at-tp-primary);
    box-shadow: var(--at-tp-shadow-hover);
}

.at-tp-account-info {
    flex: 1;
    min-width: 0;
}

.at-tp-account-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.at-tp-bank-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--at-tp-dark);
}

.at-tp-account-type {
    font-size: 12px;
    font-weight: 600;
    color: var(--at-tp-primary);
    background: #faedf1;
    padding: 2px 8px;
    border-radius: 12px;
}

.at-tp-account-holder {
    font-size: 13px;
    color: var(--at-tp-muted);
    margin-bottom: 6px;
}

.at-tp-account-number-wrap {
    display: inline-flex;
    align-items: center;
    background: var(--at-tp-cream);
    padding: 6px 12px;
    border-radius: var(--at-tp-radius-sm);
    border: 1px solid var(--at-tp-border);
}

.at-tp-account-number {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--at-tp-dark);
    letter-spacing: 0.8px;
    user-select: all;
}

/* Botón de Copiar */
.at-tp-copy-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fcedf2;
    color: var(--at-tp-primary);
    border: 1px solid #f4cdd8;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.at-tp-copy-btn:hover {
    background: var(--at-tp-primary);
    color: #ffffff;
    border-color: var(--at-tp-primary);
    transform: translateY(-1px);
}

.at-tp-copy-btn svg {
    width: 15px;
    height: 15px;
    transition: transform 0.2s ease;
}

.at-tp-copy-btn.copied {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
}

/* ==========================================================================
   Sección de Subida de Comprobante
   ========================================================================== */
.at-tp-upload-card {
    background: var(--at-tp-white);
    border: 1px solid var(--at-tp-border);
    border-radius: var(--at-tp-radius);
    padding: 26px 30px;
    margin-bottom: 30px;
    box-shadow: var(--at-tp-shadow);
}

.at-tp-dropzone {
    border: 2px dashed #d1c0c6;
    border-radius: var(--at-tp-radius);
    background: #fdfafb;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.at-tp-dropzone:hover,
.at-tp-dropzone.dragover {
    border-color: var(--at-tp-primary);
    background: #fff5f8;
}

.at-tp-dropzone-icon {
    width: 48px;
    height: 48px;
    color: var(--at-tp-primary);
    margin: 0 auto 12px;
}

.at-tp-dropzone-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--at-tp-dark);
    margin: 0 0 6px;
}

.at-tp-dropzone-subtitle {
    font-size: 13px;
    color: var(--at-tp-muted);
    margin: 0 0 14px;
}

.at-tp-dropzone-formats {
    display: inline-block;
    background: var(--at-tp-white);
    border: 1px solid var(--at-tp-border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    color: var(--at-tp-muted);
}

.at-tp-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Vista Previa del Archivo Seleccionado */
.at-tp-preview-container {
    display: none;
    margin-top: 18px;
    padding: 16px;
    background: var(--at-tp-cream);
    border-radius: var(--at-tp-radius-sm);
    border: 1px solid var(--at-tp-border);
}

.at-tp-preview-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.at-tp-preview-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--at-tp-border);
    background: #fff;
}

.at-tp-preview-info {
    flex: 1;
    min-width: 0;
}

.at-tp-preview-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--at-tp-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.at-tp-preview-size {
    font-size: 12px;
    color: var(--at-tp-muted);
}

.at-tp-btn-change-file {
    background: none;
    border: none;
    color: #e11d48;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
    padding: 6px;
}

.at-tp-upload-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}

.at-tp-btn-submit-receipt {
    background: var(--at-tp-primary);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(219, 58, 107, 0.35);
    transition: all 0.2s ease;
}

.at-tp-btn-submit-receipt:hover {
    background: var(--at-tp-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(219, 58, 107, 0.45);
}

.at-tp-btn-submit-receipt:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Estado: Comprobante Ya Subido */
.at-tp-receipt-uploaded-box {
    background: var(--at-tp-success-bg);
    border: 1px solid var(--at-tp-success-border);
    border-radius: var(--at-tp-radius);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.at-tp-receipt-uploaded-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.at-tp-receipt-uploaded-icon {
    width: 36px;
    height: 36px;
    color: var(--at-tp-success-text);
}

.at-tp-receipt-uploaded-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--at-tp-success-text);
    margin: 0 0 2px;
}

.at-tp-receipt-uploaded-date {
    font-size: 13px;
    color: #2b6e44;
    margin: 0;
}

.at-tp-receipt-uploaded-actions {
    display: flex;
    gap: 10px;
}

.at-tp-btn-view-receipt {
    background: #ffffff;
    border: 1px solid var(--at-tp-success-border);
    color: var(--at-tp-success-text);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.at-tp-btn-view-receipt:hover {
    background: #e2f6eb;
    color: var(--at-tp-success-text);
}

.at-tp-btn-reupload {
    background: none;
    border: none;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}

/* Spinner de Carga */
.at-tp-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: at-tp-spin 0.8s linear infinite;
}

@keyframes at-tp-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Sección de Confirmación por WhatsApp
   ========================================================================== */
.at-tp-whatsapp-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #e6f9ed 100%);
    border: 2px solid #86efac;
    border-radius: var(--at-tp-radius);
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.15);
}

.at-tp-whatsapp-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: #14532d;
    margin: 0 0 8px;
}

.at-tp-whatsapp-card p {
    font-size: 15px;
    color: #166534;
    max-width: 600px;
    margin: 0 auto 22px;
    line-height: 1.5;
}

.at-tp-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--at-tp-wa-green);
    color: #ffffff !important;
    font-size: 17px;
    font-weight: 800;
    padding: 16px 36px;
    border-radius: 40px;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.at-tp-whatsapp-btn:hover {
    background: var(--at-tp-wa-green-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.5);
    color: #ffffff !important;
}

.at-tp-whatsapp-btn svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.at-tp-whatsapp-btn.pulse-glow {
    animation: at-tp-pulse 2s infinite;
}

@keyframes at-tp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ==========================================================================
   Contenedor Paso a Paso (Página de Gracias)
   ========================================================================== */
.at-tp-steps-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 30px;
}

.at-tp-step-card {
    background: var(--at-tp-white, #ffffff);
    border: 1px solid var(--at-tp-border, #ebd9df);
    border-radius: var(--at-tp-radius, 14px);
    padding: 28px 32px;
    box-shadow: var(--at-tp-shadow, 0 4px 18px rgba(39, 24, 28, 0.06));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.at-tp-step-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3e8ec;
}

.at-tp-step-badge {
    flex-shrink: 0;
    background: linear-gradient(135deg, #db3a6b 0%, #ba2554 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: 0 3px 8px rgba(219, 58, 107, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.at-tp-step-titles {
    flex: 1;
}

.at-tp-step-title {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 800;
    color: var(--at-tp-dark, #27181c);
}

.at-tp-step-desc {
    margin: 0;
    color: var(--at-tp-muted, #6b6366);
    font-size: 14.5px;
    line-height: 1.5;
}

.at-tp-step-body {
    padding-top: 4px;
}

/* Paso 1: QR & Cuentas */
.at-tp-qr-container {
    text-align: center;
    margin-bottom: 24px;
}

.at-tp-qr-box {
    display: inline-block;
    background: #ffffff;
    padding: 18px;
    border-radius: 16px;
    border: 2px solid #ebd9df;
    box-shadow: 0 6px 20px rgba(39, 24, 28, 0.07);
    max-width: 290px;
    width: 100%;
}

.at-tp-qr-img {
    max-width: 230px !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 10px;
    display: block !important;
    margin: 0 auto 10px !important;
}

.at-tp-qr-caption {
    display: block;
    font-size: 12px;
    color: #6b6366;
    line-height: 1.4;
    font-weight: 600;
}

.at-tp-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.at-tp-account-item {
    background: #faf7f5;
    border: 1px solid #ebd9df;
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    transition: all 0.2s ease;
}

.at-tp-account-item:hover {
    border-color: #db3a6b;
    box-shadow: 0 4px 14px rgba(219, 58, 107, 0.1);
}

.at-tp-account-details {
    flex: 1;
    min-width: 0;
}

.at-tp-bank-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.at-tp-bank-badge {
    font-size: 14px;
    font-weight: 800;
    color: var(--at-tp-dark, #27181c);
}

.at-tp-type-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--at-tp-primary, #db3a6b);
    background: #faedf1;
    padding: 2px 8px;
    border-radius: 10px;
}

.at-tp-holder-wrap {
    margin-bottom: 4px;
}

.at-tp-holder {
    font-size: 12px;
    color: var(--at-tp-muted, #6b6366);
    display: block;
}

.at-tp-num-wrap {
    display: inline-block;
}

.at-tp-account-num {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--at-tp-dark, #27181c);
    letter-spacing: 0.6px;
    user-select: all;
}

.at-tp-copy-btn-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.at-tp-step-tip {
    background: #fdf6ec;
    border: 1px solid #faecd8;
    border-left: 4px solid #e09b13;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13.5px;
    color: #92540c;
    line-height: 1.45;
}

/* Paso 3: Verificación */
.at-tp-verification-info-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #eefbf3 100%);
    border: 1px solid #9ae6b4;
    border-left: 5px solid #10b981;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.at-tp-verification-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.at-tp-verification-icon svg {
    width: 24px;
    height: 24px;
}

.at-tp-verification-text h4 {
    margin: 0 0 8px 0;
    font-size: 16.5px;
    font-weight: 700;
    color: #065f46;
}

.at-tp-verification-text p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #14532d;
}

.at-tp-verification-text p:last-child {
    margin-bottom: 0;
}

.at-tp-verification-highlight {
    font-weight: 600;
    color: #047857;
}

/* Tarjeta de Acceso a Mis Cursos */
.at-tp-courses-action-card {
    background: linear-gradient(135deg, #27181c 0%, #3d232b 100%);
    color: #ffffff;
    border-radius: var(--at-tp-radius, 14px);
    padding: 26px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 8px 24px rgba(39, 24, 28, 0.15);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.at-tp-courses-action-text h3 {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.at-tp-courses-action-text p {
    margin: 0;
    color: #ebd9df;
    font-size: 14px;
    line-height: 1.5;
}

.at-tp-btn-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--at-tp-primary, #db3a6b);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(219, 58, 107, 0.35);
    white-space: nowrap;
}

.at-tp-btn-dashboard:hover {
    background: var(--at-tp-primary-hover, #c22d5b);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(219, 58, 107, 0.45);
    color: #ffffff !important;
}

.at-tp-btn-dashboard svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Checkout Personalizaciones (Avisos, Enlaces y BACS)
   ========================================================================== */
.at-checkout-contact-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #16a34a;
    color: #15803d;
    padding: 11px 16px;
    border-radius: 8px;
    margin: 12px 0 16px 0;
    font-size: 13.5px;
    line-height: 1.45;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.05);
}

.at-checkout-contact-notice svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #16a34a;
}

/* Enlace personalizado de Login en Checkout */
.at-custom-login-link,
.wc-block-components-checkout-step__heading-action a.at-custom-login-link {
    font-weight: 700 !important;
    color: var(--at-tp-primary, #db3a6b) !important;
    text-decoration: underline !important;
    transition: color 0.2s ease;
}

.at-custom-login-link:hover,
.wc-block-components-checkout-step__heading-action a.at-custom-login-link:hover {
    color: var(--at-tp-primary-hover, #c22d5b) !important;
}

/* Nota simple y limpia de BACS en Checkout */
.at-tp-checkout-bacs-note {
    background: #faf7f5;
    border: 1px solid #ebd9df;
    border-left: 4px solid var(--at-tp-primary, #db3a6b);
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 10px;
    font-size: 13.5px;
    color: var(--at-tp-dark, #27181c);
    line-height: 1.5;
}

.at-tp-checkout-bacs-lead {
    margin: 0 0 6px 0 !important;
    font-size: 14px;
    color: var(--at-tp-dark, #27181c);
}

.at-tp-checkout-bacs-text {
    margin: 0 !important;
    color: var(--at-tp-muted, #6b6366);
    font-size: 12.5px;
}

/* ==========================================================================
   Aviso Superior en Todo el Sitio (Banner de Pago Pendiente)
   ========================================================================== */
.at-tp-site-pending-banner {
    position: relative;
    background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 50%, #fffbeb 100%);
    border-bottom: 1px solid #fcd34d;
    color: #92400e;
    font-family: var(--fontFamily, 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 14px;
    line-height: 1.45;
    z-index: 99999;
    box-shadow: 0 2px 8px rgba(180, 83, 9, 0.08);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.at-tp-site-pending-banner.fade-out {
    opacity: 0;
    transform: translateY(-100%);
}

.at-tp-site-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.at-tp-site-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-height: auto;
}

.at-tp-site-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f59e0b;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.at-tp-site-banner-text {
    color: #78350f;
    font-weight: 500;
}

.at-tp-site-banner-text strong {
    color: #451a03;
    font-weight: 700;
}

.at-tp-site-banner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.at-tp-site-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #b45309;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.at-tp-site-banner-btn:hover {
    background: #92400e;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(146, 64, 14, 0.25);
}

.at-tp-site-banner-close {
    background: transparent;
    border: none;
    color: #92400e;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    opacity: 0.7;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.at-tp-site-banner-close:hover {
    opacity: 1;
    background: rgba(180, 83, 9, 0.1);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .at-tp-site-pending-banner {
        font-size: 13px;
        line-height: 1.4;
        height: auto !important;
        min-height: auto !important;
    }
    .at-tp-site-banner-container {
        padding: 8px 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        height: auto !important;
        min-height: auto !important;
    }
    .at-tp-site-banner-content {
        flex: 0 0 auto !important;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        height: auto !important;
        min-height: auto !important;
    }
    .at-tp-site-banner-badge {
        font-size: 10px;
        padding: 2px 7px;
    }
    .at-tp-site-banner-text {
        font-size: 13px;
        line-height: 1.4;
    }
    .at-tp-site-banner-actions {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        height: auto !important;
    }
    .at-tp-site-banner-btn {
        padding: 5px 12px;
        font-size: 11.5px;
    }
    .at-tp-step-card {
        padding: 22px 20px;
    }
    .at-tp-step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .at-tp-courses-action-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 20px;
    }
    .at-tp-btn-dashboard {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .at-tp-thankyou-wrapper {
        margin: 20px auto 50px;
        padding: 0 14px;
    }

    .at-tp-status-banner {
        flex-direction: column;
        padding: 18px 20px;
        gap: 12px;
    }

    .at-tp-card {
        padding: 20px 18px;
    }

    .at-tp-account-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .at-tp-account-item .at-tp-copy-btn-wrap,
    .at-tp-account-item .at-tp-copy-btn {
        width: 100%;
        justify-content: center;
    }

    .at-tp-copy-btn {
        width: 100%;
        justify-content: center;
    }

    .at-tp-receipt-uploaded-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .at-tp-whatsapp-btn {
        width: 100%;
        padding: 15px 20px;
        font-size: 16px;
    }

    .at-tp-qr-img {
        max-width: 190px !important;
    }
}
