/**
 * PayFast for FluentCart — Checkout Styles
 *
 * Styles for the PayFast payment panel rendered inside the FluentCart
 * checkout embed. Scoped to .fct-payfast-* classes to avoid collisions.
 *
 * @package PayFastFluentCart
 * @since   1.0.0
 */

/* ── Info panel wrapper ──────────────────────────────────────────────────── */

.fct-payfast-info {
    padding: 18px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    margin-bottom: 16px;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.fct-payfast-header {
    margin-bottom: 12px;
}

.fct-payfast-subheading {
    margin: 0;
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

/* ── Payment method chips ────────────────────────────────────────────────── */

.fct-payfast-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
    list-style: none;
    padding: 0;
    margin-left: 0;
}

.fct-payfast-method {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.fct-method-name {
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

/* ── Redirect note ───────────────────────────────────────────────────────── */

.fct-payfast-redirect-note {
    margin: 0;
    font-size: 13px;  /* 12px failed WCAG 2 AA contrast at 3.37:1; 13px + #666 = 5.45:1 */
    color: #666;
}

/* ── Sandbox admin banner ────────────────────────────────────────────────── */

.fct-payfast-sandbox-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: #fff8e1;
    border: 1px solid #f5c518;
    border-left: 4px solid #f5c518;
    border-radius: 6px;
    font-size: 13px;
    color: #5a4000;
}

.fct-payfast-sandbox-icon {
    font-size: 16px;
    line-height: 1.3;
    flex-shrink: 0;
}

.fct-payfast-sandbox-banner strong {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
}

.fct-payfast-sandbox-banner p {
    margin: 0;
    font-size: 12px;
    opacity: 0.85;
}

/* ── Error state ─────────────────────────────────────────────────────────── */

.fct-payfast-error {
    color: #dc3545;
    padding: 10px;
    font-size: 13px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .fct-payfast-methods {
        grid-template-columns: repeat(2, 1fr);
    }
}
