/**
 * Payment confirmation page styles.
 *
 * @package CFDB_Payment
 * @since   1.1.0
 */

.cfdb-confirmation {
    max-width: 640px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cfdb-confirmation__header {
    text-align: center;
    margin-bottom: 24px;
}

.cfdb-confirmation__page-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f457e;
    margin: 0 0 4px;
}

.cfdb-confirmation__page-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
    margin: 0;
}

.cfdb-confirmation__card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    border-top: 4px solid #059669;
    padding: 32px 24px;
    text-align: center;
    margin-bottom: 24px;
}

.cfdb-confirmation__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    font-size: 28px;
    line-height: 56px;
    margin: 0 auto 16px;
}

.cfdb-confirmation__title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 24px;
}

.cfdb-confirmation__details {
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    font-size: 14px;
    margin: 0;
    padding: 20px 0 0;
    border-top: 1px solid #f3f4f6;
}

.cfdb-confirmation__details dt {
    color: #6b7280;
    font-weight: 500;
}

.cfdb-confirmation__details dd {
    color: #111827;
    margin: 0;
    text-align: right;
}

.cfdb-confirmation__mono {
    font-family: monospace;
    font-size: 13px;
}

.cfdb-confirmation__content {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
}

.cfdb-confirmation__content h2,
.cfdb-confirmation__content h3 {
    color: #1f457e;
    margin-top: 0;
}

.cfdb-confirmation__content a {
    color: #1f457e;
}

.cfdb-confirmation__expired {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 16px;
}

/* Redirect loader (used in payment-result.php) */
.cfdb-payment-result__loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
}

.cfdb-payment-result__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top-color: #1f457e;
    border-radius: 50%;
    animation: cfdb-spin 0.8s linear infinite;
}

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

.cfdb-payment-result__redirect-link {
    color: #1f457e;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 640px) {
    .cfdb-confirmation {
        margin: 1rem 16px;
    }

    .cfdb-confirmation__details {
        grid-template-columns: 1fr;
    }

    .cfdb-confirmation__details dd {
        text-align: left;
        margin-bottom: 8px;
        padding-bottom: 8px;
        border-bottom: 1px solid #f3f4f6;
    }
}
