/* Vipps MobilePay Login - Stylesheet */

/* ── Admin panel ─────────────────────────────────────────────────── */

.vipps-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.vipps-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.vipps-stat-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px 20px;
    text-align: center;
}

.vipps-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #FF5B24;
    line-height: 1.2;
}

.vipps-stat-label {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* ── Admin portal config table ───────────────────────────────────── */

.vipps-portal-table thead th {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    color: #888;
    font-weight: 600;
    border-bottom: 2px solid #e8e8e8;
}

.vipps-portal-table code {
    font-size: 12px;
    word-break: break-all;
}

.vipps-settings-box {
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-left: 3px solid #FF5B24;
    border-radius: 4px;
    padding: 12px 16px;
}

.vipps-settings-box-title {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555;
    margin-bottom: 10px;
}

.vipps-setting-key {
    width: 220px;
    color: #555;
    font-weight: 600;
}

.vipps-settings-box .table {
    background: transparent;
    margin-top: 4px;
}

.vipps-settings-box .table > tbody > tr > td {
    border-top-color: #e8e8e8;
    padding: 6px 8px;
}

.vipps-settings-box .table > tbody > tr:first-child > td {
    border-top: none;
}

/* ── Admin users table ───────────────────────────────────────────── */

.vipps-users-table thead th {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: #888;
    font-weight: 600;
}

/* ── Client area ─────────────────────────────────────────────────── */

.vipps-client-wrap {
    padding: 10px 0;
}

.vipps-back-link {
    color: #888;
    font-size: 13px;
    text-decoration: none;
}
.vipps-back-link:hover { color: #555; text-decoration: none; }
.vipps-back-link .fa { font-size: 11px; margin-right: 3px; }

.vipps-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.vipps-card-connected {
    background: #fff8f5;
    border-color: #ffd5c3;
    border-left: 4px solid #FF5B24;
}

.vipps-card-error {
    background: #fff8f8;
    border-color: #fad0d0;
    border-left: 4px solid #e74c3c;
}

.vipps-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.vipps-card-title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

.vipps-notice {
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
}
.vipps-notice-success {
    background: #f0faf4;
    border: 1px solid #b8e6c8;
    color: #2d7a4a;
}
.vipps-notice-info {
    background: #f0f6ff;
    border: 1px solid #bdd4f5;
    color: #2a5298;
}

.vipps-info-list { margin: 0 0 4px; }

.vipps-info-row {
    display: flex;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #f0ece8;
    font-size: 14px;
}
.vipps-info-row:last-child { border-bottom: none; }

.vipps-info-label {
    color: #888;
    min-width: 140px;
    flex-shrink: 0;
}
.vipps-info-value { color: #333; font-weight: 500; }

.vipps-intro { color: #555; margin-bottom: 12px; }

.vipps-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}
.vipps-features li {
    padding: 6px 0;
    font-size: 14px;
    color: #444;
}
.vipps-features li::before {
    content: "✓";
    color: var(--vipps-check, #FF5B24);
    font-weight: 700;
    margin-right: 8px;
}

.vipps-support { font-size: 13px; color: #888; margin-bottom: 20px; }

.vipps-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #FF5B24;
    color: #fff;
    border-radius: 24px;
    padding: 11px 24px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    transition: opacity 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.vipps-btn:hover {
    opacity: 0.88;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

.vipps-btn-secondary {
    display: inline-block;
    border-radius: 24px;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    background: #f0f0f0;
    border: 1px solid #ddd;
    text-decoration: none;
    transition: background 0.15s ease;
}
.vipps-btn-secondary:hover {
    background: #e4e4e4;
    color: #333;
    text-decoration: none;
}

.vipps-btn-disconnect {
    display: inline-block;
    border-radius: 24px;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #c0392b;
    background: #fff;
    border: 1.5px solid #e74c3c;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.vipps-btn-disconnect:hover {
    background: #e74c3c;
    color: #fff;
}

.vipps-error-title {
    font-size: 16px;
    font-weight: 700;
    color: #c0392b;
    margin: 0 0 10px;
}
.vipps-error-message { color: #555; margin-bottom: 8px; }

/* ── Login button injected via hook ──────────────────────────────── */

.btn-vipps-login {
    transition: opacity 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.btn-vipps-login:hover {
    opacity: 0.88;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

/* Wrapper div inserted before the login/register button */
[data-vipps-injected] .btn-vipps-login,
div[style*="marginBottom"] > .btn-vipps-login {
    margin-bottom: 4px;
}
