﻿/* ============================================================
   Swish Payment Modal â€” LSUC Website
   Website colors: green #228B22 / dark-green #155215 / orange #ff8c00
   ============================================================ */

:root {
    --sw-green:      #228B22;
    --sw-dark:       #155215;
    --sw-orange:     #ff8c00;
    --sw-orange-dk:  #e07800;
    --sw-green-lt:   #eaf5ef;
    --sw-orange-lt:  #fff4e0;
}

/* â”€â”€ Overlay â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#swishPaymentOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 40, 15, 0.68);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: swFadeIn 0.3s ease;
}
#swishPaymentOverlay.active { display: flex; }
@keyframes swFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* â”€â”€ Modal card â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.swish-modal {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 28px 70px rgba(0,80,30,0.28), 0 0 0 1px rgba(34,139,34,0.12);
    max-width: 540px;
    width: 100%;
    overflow: hidden;
    animation: swSlideUp 0.38s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
}
@keyframes swSlideUp {
    from { transform: translateY(50px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

/* â”€â”€ Header â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.swish-modal-header {
    background: linear-gradient(135deg, var(--sw-dark) 0%, var(--sw-green) 100%);
    padding: 22px 26px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.swish-modal-header .swish-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}
.swish-brand-icon {
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.18);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #fff;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}
.swish-modal-header h2 { margin:0; font-size:1.12rem; font-weight:700; color:#fff; line-height:1.3; }
.swish-modal-header p  { margin:2px 0 0; font-size:0.76rem; color:rgba(255,255,255,0.76); }
.swish-modal-close {
    background: rgba(255,255,255,0.18); border:none; color:#fff;
    font-size:18px; width:34px; height:34px; border-radius:50%;
    cursor:pointer; display:flex; align-items:center; justify-content:center;
    transition:background 0.2s; flex-shrink:0;
}
.swish-modal-close:hover { background:rgba(255,255,255,0.32); }

/* â”€â”€ Amount banner â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.swish-amount-banner {
    background: linear-gradient(90deg, var(--sw-orange) 0%, var(--sw-orange-dk) 100%);
    padding: 12px 26px;
    display: flex; align-items: center; justify-content: space-between;
}
.swish-amount-banner .label {
    font-size:0.76rem; color:rgba(255,255,255,0.85);
    text-transform:uppercase; letter-spacing:0.07em; font-weight:600;
}
.swish-amount-banner .amount { font-size:1.7rem; font-weight:800; color:#fff; letter-spacing:-0.02em; }
.swish-amount-banner .currency {
    font-size:0.88rem; font-weight:700; color:rgba(255,255,255,0.88);
    margin-right:3px; vertical-align:super; line-height:0;
}

/* â”€â”€ Body â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.swish-modal-body { padding: 22px 26px 18px; }

/* â”€â”€ Tabs â€” 2Ã—2 grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.swish-method-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.swish-tab-btn {
    background: #f4faf6; border: 2px solid #cce4d6;
    border-radius: 12px; padding: 12px 10px 11px;
    cursor: pointer; transition: all 0.22s ease;
    display: flex; align-items: center; gap: 10px; justify-content: flex-start;
}
.swish-tab-btn .tab-icon {
    width:34px; height:34px; border-radius:9px;
    display:flex; align-items:center; justify-content:center;
    font-size:15px; flex-shrink:0; transition:all 0.22s;
    background:rgba(34,139,34,0.12); color:var(--sw-green);
}
.swish-tab-btn .tab-label { font-size:0.8rem; font-weight:700; color:#444; line-height:1.25; text-align:left; }
.swish-tab-btn:hover { border-color:var(--sw-green); background:var(--sw-green-lt); transform:translateY(-1px); box-shadow:0 3px 10px rgba(34,139,34,0.14); }
.swish-tab-btn.active { border-color:var(--sw-orange); background:var(--sw-orange-lt); box-shadow:0 4px 14px rgba(255,140,0,0.20); }
.swish-tab-btn.active .tab-icon { background:linear-gradient(135deg,var(--sw-green),var(--sw-dark)); color:#fff; box-shadow:0 3px 8px rgba(34,139,34,0.30); }
.swish-tab-btn.active .tab-label { color:var(--sw-dark); }

/* â”€â”€ Panels â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.swish-panel { display:none; }
.swish-panel.active { display:block; animation:swPanelIn 0.25s ease; }
@keyframes swPanelIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }

.swish-panel-desc {
    background:var(--sw-green-lt); border:1px solid #aad4bd;
    border-radius:10px; padding:11px 13px; font-size:0.84rem;
    color:#2a4a36; line-height:1.6; margin-bottom:14px;
    display:flex; gap:10px; align-items:flex-start;
}
.swish-panel-desc .info-icon { font-size:14px; color:var(--sw-green); margin-top:2px; flex-shrink:0; }

/* â”€â”€ Form â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.swish-form-group { margin-bottom:13px; }
.swish-form-group label { display:block; font-size:0.76rem; font-weight:700; color:#333; margin-bottom:4px; text-transform:uppercase; letter-spacing:0.04em; }
.swish-form-group input {
    width:100%; padding:11px 13px; border:1.5px solid #bed8c8;
    border-radius:9px; font-size:0.95rem; background:#fafffd;
    color:#111; transition:border-color 0.2s,box-shadow 0.2s; box-sizing:border-box;
}
.swish-form-group input:focus { outline:none; border-color:var(--sw-green); box-shadow:0 0 0 3px rgba(34,139,34,0.13); }
.swish-form-group small { color:#7a8a7a; font-size:0.72rem; margin-top:3px; display:block; }

/* â”€â”€ QR â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.swish-qr-box { text-align:center; padding:12px 0 4px; }
.swish-qr-box img { width:170px; height:170px; border:3px solid var(--sw-orange); border-radius:14px; padding:8px; background:#fff; }
.swish-qr-box p { font-size:0.78rem; color:#6b7280; margin-top:7px; }

/* â”€â”€ Pay button â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.swish-pay-btn {
    display:block; width:100%; padding:13px;
    background:linear-gradient(135deg,var(--sw-green) 0%,var(--sw-dark) 100%);
    color:#fff; border:none; border-radius:11px; font-size:0.95rem; font-weight:700;
    cursor:pointer; transition:opacity 0.2s,transform 0.18s,box-shadow 0.2s;
    box-shadow:0 5px 18px rgba(34,139,34,0.30); margin-top:4px;
}
.swish-pay-btn:hover:not(:disabled) { opacity:0.9; transform:translateY(-2px); box-shadow:0 8px 22px rgba(34,139,34,0.38); }
.swish-pay-btn:disabled { opacity:0.5; cursor:not-allowed; transform:none; }

/* â”€â”€ Status / polling â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.swish-status-screen { display:none; text-align:center; padding:8px 0 16px; }
.swish-status-screen.active { display:block; }
.swish-spinner {
    width:58px; height:58px; border:5px solid #c8e6d4;
    border-top-color:var(--sw-orange);
    border-radius:50%; animation:swSpin 0.85s linear infinite;
    margin:0 auto 16px;
}
@keyframes swSpin { to { transform:rotate(360deg); } }
.swish-status-screen h3 { font-size:0.98rem; font-weight:700; color:var(--sw-dark); margin:0 0 8px; }
.swish-status-screen p  { font-size:0.83rem; color:#555; margin:0 0 13px; line-height:1.6; }
.swish-countdown {
    display:inline-flex; align-items:center; gap:8px;
    background:var(--sw-orange-lt); border:1px solid #f5d08a;
    border-radius:10px; padding:7px 16px; font-size:0.85rem; font-weight:600; color:#6b4700;
}
.swish-countdown .timer-val { font-size:1.1rem; font-weight:800; color:var(--sw-orange-dk); font-variant-numeric:tabular-nums; }

/* â”€â”€ Result â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.swish-result { display:none; text-align:center; padding:12px 0 6px; }
.swish-result.active { display:block; animation:swPanelIn 0.3s ease; }
.swish-result-icon {
    width:72px; height:72px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    margin:0 auto 14px; font-size:34px;
}
.swish-result.success .swish-result-icon { background:var(--sw-green-lt); color:var(--sw-dark); }
.swish-result.failed  .swish-result-icon { background:#fee2e2; color:#991b1b; }
.swish-result h3 { font-size:1.08rem; font-weight:800; margin:0 0 9px; }
.swish-result.success h3 { color:var(--sw-dark); }
.swish-result.failed  h3 { color:#991b1b; }
.swish-result p { font-size:0.84rem; color:#5a6a5a; line-height:1.6; margin:0 0 18px; }
.swish-result-btn {
    display:inline-block; padding:11px 30px; border-radius:10px;
    font-size:0.9rem; font-weight:700; border:none; cursor:pointer;
    text-decoration:none; transition:opacity 0.2s,transform 0.15s;
}
.swish-result-btn:hover { opacity:0.88; transform:translateY(-1px); }
.swish-result.success .swish-result-btn { background:var(--sw-green); color:#fff; }
.swish-result.failed  .swish-result-btn { background:#6b7280; color:#fff; }

/* â”€â”€ Footer â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.swish-modal-footer-note {
    background:var(--sw-green-lt); border-top:1px solid #c4dece;
    padding:10px 26px; display:flex; align-items:center;
    gap:9px; font-size:0.71rem; color:#4a6a54;
}
.swish-modal-footer-note i { color:var(--sw-orange); font-size:12px; }

/* â”€â”€ Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 560px) {
    .swish-modal { border-radius:16px; }
    .swish-modal-header, .swish-amount-banner,
    .swish-modal-body, .swish-modal-footer-note { padding-left:16px; padding-right:16px; }
    .swish-amount-banner .amount { font-size:1.45rem; }
    .swish-tab-btn .tab-label { font-size:0.75rem; }
}


