/**
 * EEZY Checkout Pages — Success, Cancel, Pricing Table
 *
 * WCAG 2.1 AA compliant — 4.5:1 minimum contrast
 *
 * @package EEZY_Commerce_Suite
 * @subpackage Checkout
 * @since 1.2.0
 */

/* ── Shared Result Page ────────────────────── */
.eezy-checkout-result {
    max-width: 640px;
    margin: 2rem auto;
    padding: 2.5rem 2rem;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
    line-height: 1.6;
}

.eezy-checkout-result__icon {
    margin-bottom: 1.5rem;
}

.eezy-checkout-result h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.eezy-checkout-result p {
    color: #475569;
    margin: 0 0 1rem;
}

.eezy-checkout-result__detail {
    font-size: 1rem;
}

.eezy-checkout-result__summary {
    text-align: left;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.eezy-checkout-result__summary h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.eezy-checkout-result__table {
    width: 100%;
    border-collapse: collapse;
}

.eezy-checkout-result__table th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    padding: 0.5rem 0;
    border-bottom: 2px solid #e2e8f0;
}

.eezy-checkout-result__table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}

.eezy-checkout-result__table td:last-child {
    text-align: right;
    font-weight: 600;
}

.eezy-checkout-result__next-steps {
    text-align: left;
    margin: 1.5rem 0;
}

.eezy-checkout-result__next-steps h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.eezy-checkout-result__next-steps ol {
    padding-left: 1.5rem;
    margin: 0;
}

.eezy-checkout-result__next-steps li {
    margin-bottom: 0.5rem;
    color: #475569;
}

.eezy-checkout-result__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ── Shared Buttons ────────────────────────── */
.eezy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.15s, transform 0.1s;
}

.eezy-btn:active { transform: scale(0.98); }

.eezy-btn--primary {
    background: #2563eb;
    color: #fff;
}

.eezy-btn--primary:hover {
    background: #1d4ed8;
    color: #fff;
}

.eezy-btn--secondary {
    background: #f1f5f9;
    color: #1a1a2e;
}

.eezy-btn--secondary:hover {
    background: #e2e8f0;
}

.eezy-btn:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* ── Pricing Table ─────────────────────────── */
.eezy-pricing {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.eezy-pricing__grid {
    display: grid;
    gap: 1.5rem;
    align-items: stretch;
}

.eezy-pricing__grid--2col { grid-template-columns: repeat(2, 1fr); }
.eezy-pricing__grid--3col { grid-template-columns: repeat(3, 1fr); }
.eezy-pricing__grid--4col { grid-template-columns: repeat(4, 1fr); }

.eezy-pricing__card {
    position: relative;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}

.eezy-pricing__card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.eezy-pricing__card--featured {
    border-color: #2563eb;
    border-width: 2px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
}

.eezy-pricing__badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    white-space: nowrap;
}

.eezy-pricing__plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.25rem;
}

.eezy-pricing__description {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0 0 1.25rem;
}

.eezy-pricing__price {
    margin-bottom: 1.5rem;
}

.eezy-pricing__amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1;
}

.eezy-pricing__period {
    font-size: 1rem;
    color: #64748b;
    font-weight: 400;
}

.eezy-pricing__features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex-grow: 1;
}

.eezy-pricing__features li {
    padding: 0.375rem 0 0.375rem 1.5rem;
    position: relative;
    font-size: 0.875rem;
    color: #475569;
}

.eezy-pricing__features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 700;
}

.eezy-pricing__card .eezy-pricing-cta {
    width: 100%;
    margin-top: auto;
}

.eezy-btn--featured {
    background: #2563eb;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 768px) {
    .eezy-pricing__grid--3col,
    .eezy-pricing__grid--4col {
        grid-template-columns: 1fr;
    }
    .eezy-pricing__grid--2col {
        grid-template-columns: 1fr;
    }
    .eezy-checkout-result {
        padding: 1.5rem 1rem;
    }
    .eezy-checkout-result__actions {
        flex-direction: column;
    }
}
