/**
 * WCP SSO Modal — Styles
 * Issue #3998: Login SSO Modal — WordPress <-> VBS JWT Bridge
 *
 * @author Olivier RAVEAU - Oliv.Ai
 * @date 2026-03-04
 */

/* ── Backdrop ── */
.wcp-sso-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    animation: wcpFadeIn 0.2s ease;
}

/* ── Modal Card ── */
.wcp-sso-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 580px;
    width: 92%;
    padding: 24px 28px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: wcpSlideIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

/* ── Close Button ── */
.wcp-sso-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}
.wcp-sso-close:hover {
    color: #333;
    background: #f0f0f0;
}

/* ── Title ── */
.wcp-sso-title {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 600;
    color: #1c1c1c;
}
.wcp-sso-title i {
    color: #e8572a;
    margin-right: 6px;
}

/* ── Tabs ── */
.wcp-sso-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
    border-bottom: 2px solid #eee;
    padding-bottom: 0;
}
.wcp-sso-tab {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.wcp-sso-tab:hover {
    color: #333;
}
.wcp-sso-tab.active {
    color: #e8572a;
    border-bottom-color: #e8572a;
}

/* ── Form Labels & Inputs ── */
.wcp-sso-label {
    display: block;
    margin-bottom: 10px;
}
.wcp-sso-label span {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
}
.wcp-sso-label span i {
    width: 16px;
    text-align: center;
    margin-right: 4px;
    color: #999;
}
.wcp-sso-label input {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    background: #fafafa;
    transition: all 0.2s;
    box-sizing: border-box;
}
.wcp-sso-label input:focus {
    outline: none;
    border-color: #e8572a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(232, 87, 42, 0.1);
}
.wcp-sso-label input.wcp-input-error,
.wcp-sso-label select.wcp-input-error,
.wcp-sso-label textarea.wcp-input-error {
    border-color: #dc3545;
    background: #fff5f5;
}

/* ── Accept Terms checkbox (Issue #5269) ── */
.wcp-sso-terms {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 12px 0;
    font-size: 0.85rem;
    color: #495057;
    cursor: pointer;
}
.wcp-sso-terms input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    margin: 3px 0 0 !important;
    cursor: pointer;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    accent-color: #e8572a; /* Issue #5779: Termont brand red — match login tab */
}
.wcp-sso-terms a {
    color: #e8572a;
    text-decoration: underline;
}
.wcp-sso-terms .wcp-required {
    color: #dc3545;
    font-weight: 600;
}
.wcp-sso-terms input.wcp-input-error {
    outline: 2px solid #dc3545;
}

/* ── Row (side-by-side fields) ── */
.wcp-sso-row {
    display: flex;
    gap: 12px;
}
.wcp-sso-half {
    flex: 1;
}
.wcp-sso-third {
    flex: 1;
    min-width: 0;
}

/* ── Primary Button ── */
.wcp-btn-primary {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: #e8572a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}
.wcp-btn-primary:hover {
    background: #d04a22;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 87, 42, 0.3);
}
.wcp-btn-primary:active {
    transform: translateY(0);
}
.wcp-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.wcp-btn-primary i {
    margin-right: 6px;
}

/* ── SSO Gate Card (Issue #5089 — DRY shared component) ── */
.wcp-sso-gate {
    margin-bottom: 24px;
}
.wcp-sso-gate-card {
    text-align: center;
    padding: 48px 24px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    max-width: 480px;
    margin: 0 auto;
}
.wcp-sso-gate-icon {
    font-size: 48px;
    color: #e8572a;
    margin-bottom: 16px;
    display: block;
}
.wcp-sso-gate-card p {
    color: #555;
    font-size: 15px;
    margin-bottom: 20px;
}
.wcp-sso-gate-card .wcp-btn-primary {
    display: inline-block;
    width: auto;
    padding: 12px 32px;
}

/* ── SSO Gate Inline Variant (Issue #5096 — container inquiry) ── */
.wcp-sso-gate--inline .wcp-sso-gate-card {
    text-align: left;
    padding: 20px 24px;
    max-width: none;
    margin: 0;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}
.wcp-sso-gate-inline-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.wcp-sso-gate-inline-left {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
    min-width: 0;
}
.wcp-sso-gate--inline .wcp-sso-gate-icon {
    font-size: 28px;
    margin-bottom: 0;
    flex-shrink: 0;
    margin-top: 2px;
}
.wcp-sso-gate-inline-text {
    flex: 1;
    min-width: 0;
}
.wcp-sso-gate-inline-text .wcp-sso-gate-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px 0;
}
.wcp-sso-gate-features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.wcp-sso-gate-features li {
    font-size: 12.5px;
    color: #666;
    padding: 2px 0;
}
.wcp-sso-gate-features li i {
    color: #22c55e;
    margin-right: 6px;
    font-size: 11px;
}
.wcp-sso-gate-inline-row > .wcp-btn-primary {
    flex-shrink: 0;
    padding: 10px 24px;
    font-size: 14px;
    white-space: nowrap;
}
@media (max-width: 576px) {
    .wcp-sso-gate-inline-row {
        flex-direction: column;
        align-items: stretch;
    }
    .wcp-sso-gate-inline-row > .wcp-btn-primary {
        width: 100%;
        text-align: center;
    }
}

/* ── SSO Gate Connected State (Issue #5099) ── */
.wcp-sso-gate--connected .wcp-sso-gate-card {
    text-align: left;
    padding: 16px 20px;
    max-width: none;
    margin: 0;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    background: linear-gradient(135deg, #e8f5e9 0%, #fff 100%);
}
.wcp-sso-gate-connected-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.wcp-sso-gate-connected-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.wcp-sso-gate-connected-icon {
    font-size: 24px;
    color: #4caf50;
    flex-shrink: 0;
    margin-top: 2px;
}
.wcp-sso-gate-connected-text {
    flex: 1;
    min-width: 0;
}
.wcp-sso-gate-connected-name {
    font-size: 14px;
    font-weight: 600;
    color: #2e7d32;
    margin: 0 0 2px 0;
}
.wcp-sso-gate-connected-email {
    font-size: 12.5px;
    color: #666;
    margin: 0 0 2px 0;
}
.wcp-sso-gate-connected-org {
    font-size: 12.5px;
    color: #555;
    margin: 0;
}
.wcp-sso-gate-connected-btn {
    flex-shrink: 0;
    padding: 8px 20px;
    font-size: 13px;
    white-space: nowrap;
    text-decoration: none;
    background: #4caf50;
    border-color: #4caf50;
}
.wcp-sso-gate-connected-btn:hover {
    background: #43a047;
    border-color: #43a047;
}
/* Issue #5097-6e: Actions group (VBS btn + logout) */
.wcp-sso-gate-connected-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.wcp-sso-gate-connected-logout {
    background: none;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 7px 10px;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    transition: all .2s;
    line-height: 1;
}
.wcp-sso-gate-connected-logout:hover {
    color: #e53935;
    border-color: #e53935;
    background: #fbe9e7;
}
/* Issue #5097-6e: Motivational message */
.wcp-sso-gate-connected-message {
    margin-top: 10px;
    padding: 8px 12px;
    background: #f1f8e9;
    border-radius: 6px;
    font-size: 12.5px;
    color: #558b2f;
    line-height: 1.5;
    border-left: 3px solid #8bc34a;
}
@media (max-width: 576px) {
    .wcp-sso-gate-connected-row {
        flex-direction: column;
        align-items: stretch;
    }
    .wcp-sso-gate-connected-actions {
        justify-content: stretch;
    }
    .wcp-sso-gate-connected-btn {
        flex: 1;
        text-align: center;
    }
}

/* ── Divider ── */
.wcp-sso-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}
.wcp-sso-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #eee;
}
.wcp-sso-divider span {
    background: #fff;
    padding: 0 12px;
    position: relative;
    color: #aaa;
    font-size: 13px;
}

/* ── Alt Link ── */
.wcp-sso-alt-link {
    text-align: center;
    font-size: 13px;
}
.wcp-sso-alt-link a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}
.wcp-sso-alt-link a:hover {
    color: #e8572a;
}

/* ── Info Text ── */
.wcp-sso-info {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.45;
}

/* ── Remember Me checkbox — Issue #4847 ── */
.wcp-sso-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 8px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
}
.wcp-sso-remember input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    margin: 0 !important;
    cursor: pointer;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    vertical-align: middle;
    accent-color: #e8572a;
}

/* ── Warning Info Block — Issue #4847 ── */
.wcp-sso-info--warning {
    font-size: 11px;
    color: #856404;
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    padding: 6px 10px;
    border-radius: 4px;
    line-height: 1.45;
    margin-bottom: 12px;
}
.wcp-sso-info--warning i {
    color: #e0a800;
    margin-right: 3px;
}

/* ── Clickable tab link inside text ── */
.wcp-sso-tab-link {
    color: #e8572a;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 500;
}
.wcp-sso-tab-link:hover {
    color: #d04a22;
}

/* ── Request Invite textarea — Issue #4847 ── */
.wcp-sso-label textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    background: #fafafa;
    transition: all 0.2s;
    box-sizing: border-box;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}
.wcp-sso-label textarea:focus {
    outline: none;
    border-color: #e8572a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(232, 87, 42, 0.1);
}
.wcp-sso-label select {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    background: #fafafa;
    box-sizing: border-box;
}

/* ── Info Note (Register guidance) — Issue #4841 ── */
.wcp-sso-info--note {
    font-size: 12px;
    color: #777;
    background: #f8f9fa;
    border-left: 3px solid #e8572a;
    padding: 8px 12px;
    border-radius: 4px;
    line-height: 1.5;
}
.wcp-sso-info--note i {
    color: #e8572a;
    margin-right: 4px;
}

/* ── Password Strength Meter — Issue #4841 ── */
.wcp-password-strength {
    margin-bottom: 16px;
}
.wcp-strength-bar {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}
.wcp-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width 0.3s, background 0.3s;
}
.wcp-str-weak { background: #dc3545; }
.wcp-str-medium { background: #fd7e14; }
.wcp-str-strong { background: #198754; }
.wcp-strength-rules {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}
.wcp-strength-rules li {
    font-size: 11px;
    color: #999;
    transition: color 0.2s;
}
.wcp-strength-rules li i {
    width: 12px;
    text-align: center;
    margin-right: 3px;
}
.wcp-rule-pass { color: #198754 !important; }
.wcp-rule-pass i { color: #198754; }
.wcp-rule-fail { color: #dc3545 !important; }
.wcp-rule-fail i { color: #dc3545; }

/* ── Messages ── */
.wcp-sso-message {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 16px;
    line-height: 1.4;
}
.wcp-msg-error {
    background: #fef2f2;
    color: #dc3545;
    border: 1px solid #f5c6cb;
}
.wcp-msg-success {
    background: #f0fdf4;
    color: #198754;
    border: 1px solid #a3cfbb;
}
.wcp-msg-info {
    background: #eff6ff;
    color: #0d6efd;
    border: 1px solid #b6d4fe;
}

/* ── Field-level Errors ── */
.wcp-field-error {
    display: block;
    color: #dc3545 !important;
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
}

/* ── VBS Connected Badge ── */
.dms-vbs-connected {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #333;
}
.dms-vbs-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #2e7d32;
    color: #fff;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    animation: wcpPulse 2s ease-in-out 1;
}
.dms-vbs-badge i {
    font-size: 10px;
}
/* ── VBS Connected Tooltip ── */
.dms-vbs-connected {
    position: relative;
    padding-bottom: 14px;
    margin-bottom: -14px;
}
.dms-vbs-tip {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #1b73c1;
    color: #fff;
    padding: 0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    min-width: 520px;
    max-width: 640px;
    z-index: 1080;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    white-space: normal;
    margin-top: 0;
    max-height: 80vh;
    overflow-y: auto;
}
/* Invisible bridge: extends hover zone above tooltip to overlap parent padding */
.dms-vbs-tip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 20px;
}
.dms-vbs-tip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 24px;
    border: 6px solid transparent;
    border-bottom-color: #1b73c1;
    z-index: 1;
}
.dms-vbs-connected:hover .dms-vbs-tip {
    display: block;
}
.dms-vbs-tip-content {
    display: block;
    padding: 0;
}
.dms-vbs-tip-content .dms-vbs-tip-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
}
.dms-vbs-tip-content .dms-vbs-tip-row i {
    width: 16px;
    text-align: center;
    opacity: 0.7;
    margin-top: 2px;
    flex-shrink: 0;
}
.dms-vbs-tip-content .dms-vbs-tip-row strong {
    font-weight: 600;
}
.dms-vbs-tip-footer {
    display: block;
    padding: 8px 16px;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
}
.dms-vbs-disconnect-link {
    color: rgba(255,255,255,0.5) !important;
    font-size: 12px;
    text-decoration: none !important;
    transition: color 0.2s;
}
.dms-vbs-disconnect-link:hover {
    color: #ef9a9a !important;
    text-decoration: underline !important;
}
.dms-vbs-tip-loading {
    opacity: 0.7;
    font-size: 12px;
}

/* ── VBS Tooltip Sections ── */
.dms-vbs-section {
    padding: 10px 16px;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.dms-vbs-section:first-child {
    border-top: none;
    padding-top: 14px;
}
.dms-vbs-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.6;
}
.dms-vbs-section-title a {
    color: #90caf9 !important;
    font-size: 11px;
    text-decoration: none !important;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}
.dms-vbs-section-title a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

/* ── Counter Pill Grid ── */
.dms-vbs-counters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.dms-vbs-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 6px 8px;
    min-width: 54px;
    text-decoration: none !important;
    color: #fff !important;
    transition: background 0.2s;
    cursor: pointer;
}
.dms-vbs-counter:hover {
    background: rgba(255,255,255,0.22);
}
.dms-vbs-counter-num {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}
.dms-vbs-counter-label {
    font-size: 10px;
    opacity: 0.65;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.dms-vbs-counter-icon {
    font-size: 12px;
    opacity: 0.5;
    margin-bottom: 2px;
}

/* ── Wallet in Tooltip ── */
.dms-vbs-wallet-balance {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}
.dms-vbs-wallet-txn {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    padding: 2px 0;
    opacity: 0.8;
}
.dms-vbs-wallet-txn-amount {
    font-weight: 600;
}
.dms-vbs-wallet-txn-amount.positive { color: #81c784; }
.dms-vbs-wallet-txn-amount.negative { color: #ef9a9a; }

/* ── Deep Link Arrow ── */
.dms-vbs-deep-link {
    color: #90caf9 !important;
    text-decoration: none !important;
    font-size: 12px;
    transition: color 0.2s;
}
.dms-vbs-deep-link:hover {
    color: #fff !important;
    text-decoration: underline !important;
}
.dms-vbs-deep-link::after {
    content: ' \2197';
    font-size: 10px;
}

/* ── VBS Action Buttons (before disconnect) ── */
.dms-vbs-actions {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.dms-vbs-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}
.dms-vbs-action-btn i {
    font-size: 13px;
}
.dms-vbs-action-btn--primary {
    background: #e8572a;
    color: #fff !important;
}
.dms-vbs-action-btn--primary:hover {
    background: #d04a22;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(232,87,42,0.4);
}
.dms-vbs-action-btn--secondary {
    background: rgba(255,255,255,0.15);
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.25);
}
.dms-vbs-action-btn--secondary:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-1px);
}

/* ── Issue #5804: Compact icon-only buttons for WP connected badge ── */
.dms-wp-icon-btn {
    color: #e7e7e7 !important;
    font-size: 15px;
    padding: 4px;
    opacity: 0.8;
    transition: opacity 0.2s, color 0.2s;
    text-decoration: none !important;
}
.dms-wp-icon-btn:hover {
    color: #fff !important;
    opacity: 1;
}

/* ── SSO Button in Header (Issue #4521: match other header links) ── */
.dms-auth-link--sso {
    color: #e7e7e7 !important;
    font-weight: 400;
}
.dms-auth-link--sso i {
    margin-right: 3px;
}
.dms-auth-link--sso:hover {
    color: #ffffff !important;
}

/* ── Shake Animation ── */
.wcp-shake {
    animation: wcpShake 0.5s ease;
}

/* ── Body lock ── */
body.wcp-modal-open {
    overflow: hidden;
}

/* ── Animations ── */
@keyframes wcpFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes wcpSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes wcpShake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-8px); }
    40%      { transform: translateX(8px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}
@keyframes wcpPulse {
    0%   { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.4); }
    70%  { box-shadow: 0 0 0 8px rgba(46, 125, 50, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0); }
}

/* ── Mobile Responsive ── */
@media (max-width: 480px) {
    .wcp-sso-modal {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        padding: 24px 20px;
    }
    .wcp-sso-row {
        flex-direction: column;
        gap: 0;
    }
    .wcp-sso-tabs {
        overflow-x: auto;
    }
    .wcp-sso-tab {
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 13px;
    }
    .wcp-btn-primary {
        padding: 14px 20px;
        font-size: 16px;
    }
    .wcp-sso-label input {
        padding: 12px 14px;
        font-size: 16px; /* Prevent iOS zoom */
    }
}
