/**
 * Success Page Styles
 *
 * @package Stripe_Checkout_Pages
 */

.scp-success-page {
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 4rem;
    background: #fff;
    border-radius: 12px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Icons */
.scp-success-icon,
.scp-error-icon,
.scp-info-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.scp-success-icon svg {
    color: #22c55e;
    animation: scp-checkmark 0.6s ease-in-out;
}

.scp-error-icon svg {
    color: #ef4444;
}

.scp-info-icon svg {
    color: #3b82f6;
}

@keyframes scp-checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Titles */
.scp-success-title,
.scp-error-title,
.scp-info-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #1f2937;
}

.scp-success-message,
.scp-error-message,
.scp-info-message {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 24px;
    line-height: 1.5;
}

.scp-confirmation-note {
    font-size: 14px;
    color: #4b5563;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 1rem !important;
    margin-bottom: 24px;
}

.scp-extra-note {
    font-size: 14px;
    color: #4b5563;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 1rem !important;
    margin-bottom: 24px;
}

/* Order Details */
.scp-order-details {
    text-align: left;
    background: #f9fafb;
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
}

.scp-order-details h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.scp-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.scp-detail-row:last-child {
    border-bottom: none;
}

.scp-detail-label {
    font-size: 14px;
    color: #6b7280;
    flex-shrink: 0;
}

.scp-detail-value {
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
    text-align: right;
    word-break: break-all;
    margin-left: 16px;
}

.scp-detail-amount .scp-detail-value {
    font-size: 18px;
    font-weight: 600;
    color: #059669;
}

/* Billing Address */
.scp-billing-address {
    text-align: left;
    background: #f9fafb;
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
}

.scp-billing-address h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 12px;
}

.scp-billing-address address {
    font-style: normal;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}

/* Action Buttons */
.scp-success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.scp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.scp-btn-primary {
    background: #fed130;
    color: #333;
}

.scp-btn-primary:hover {
    background: #e5bc2b;
    color: #333;
}

.scp-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.scp-btn-secondary:hover {
    background: #e5e7eb;
    color: #1f2937;
}

/* Error Page Specific */
.scp-error-page .scp-error-icon {
    animation: scp-shake 0.5s ease-in-out;
}

@keyframes scp-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Themes */
.scp-theme-dark {
    background: #1f2937;
    color: #f9fafb;
}

.scp-theme-dark .scp-success-title,
.scp-theme-dark .scp-error-title,
.scp-theme-dark .scp-info-title {
    color: #f9fafb;
}

.scp-theme-dark .scp-success-message,
.scp-theme-dark .scp-error-message,
.scp-theme-dark .scp-info-message {
    color: #9ca3af;
}

.scp-theme-dark .scp-order-details,
.scp-theme-dark .scp-billing-address {
    background: #374151;
}

.scp-theme-dark .scp-order-details h2,
.scp-theme-dark .scp-billing-address h2,
.scp-theme-dark .scp-detail-value {
    color: #f9fafb;
}

.scp-theme-dark .scp-detail-row {
    border-color: #4b5563;
}

.scp-theme-dark .scp-confirmation-note {
    background: #064e3b;
    border-color: #065f46;
    color: #d1fae5;
}

.scp-theme-dark .scp-btn-secondary {
    background: #374151;
    color: #f9fafb;
}

.scp-theme-dark .scp-btn-secondary:hover {
    background: #4b5563;
}

/* Minimal Theme */
.scp-theme-minimal {
    box-shadow: none;
    border: 1px solid #e5e7eb;
}

.scp-theme-minimal .scp-success-icon,
.scp-theme-minimal .scp-error-icon,
.scp-theme-minimal .scp-info-icon {
    width: 60px;
    height: 60px;
}

/* Responsive */
@media (max-width: 640px) {
    .scp-success-page {
        margin: 0;
        margin-bottom: 4rem;
    }

    .scp-success-icon,
    .scp-error-icon,
    .scp-info-icon {
        width: 60px;
        height: 60px;
    }

    .scp-success-title,
    .scp-error-title,
    .scp-info-title {
        font-size: 24px;
    }

    .scp-detail-row {
        flex-direction: column;
        gap: 4px;
    }

    .scp-detail-value {
        text-align: left;
        margin-left: 0;
    }

    .scp-success-actions {
        flex-direction: column;
    }

    .scp-btn {
        width: 100%;
    }
}
