.kfast-bankid-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kfast-bankid-gate {
    margin: 10px 0;
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.kfast-bankid-sign-button:disabled {
    opacity: 0.6;
    cursor: default;
}

.kfast-bankid-signed {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    color: #1a7a3c;
    font-weight: 600;
}

.kfast-bankid-error {
    color: #b3261e;
    margin-top: 8px;
    font-size: 14px;
}

.everest-forms-submit-button.kfast-bankid-hide {
    display: none !important;
}

.kfast-bankid-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.kfast-bankid-overlay[hidden] {
    display: none;
}

.kfast-bankid-modal {
    background: #fff;
    border-radius: 8px;
    max-width: 400px;
    width: calc(100% - 40px);
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.kfast-bankid-modal h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.kfast-bankid-modal p {
    margin: 0 0 16px;
    font-size: 14px;
    color: #444;
}

.kfast-bankid-spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto 16px;
    border: 3px solid #dde3e6;
    border-top-color: #193e4f;
    border-radius: 50%;
    animation: kfast-bankid-spin 0.8s linear infinite;
}

@keyframes kfast-bankid-spin {
    to {
        transform: rotate(360deg);
    }
}

.kfast-bankid-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kfast-bankid-modal-actions button.kfast-bankid-primary {
    background: #193e4f;
    border-color: #193e4f;
    color: #fff;
}

.kfast-bankid-modal-actions button.kfast-bankid-danger {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
}

.kfast-bankid-qr {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.kfast-bankid-qr svg {
    width: 200px;
    height: 200px;
    max-width: 100%;
}

.kfast-bankid-open-app {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 4px;
    background: #193e4f;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.kfast-bankid-open-app:hover,
.kfast-bankid-open-app:focus {
    background: #12303d;
    color: #fff;
}

.kfast-bankid-button {
    background: #193e4f;
    color: #fff;
    border: none;
    padding: 2px 18px 2px 12px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.kfast-bankid-button:hover {
    background: #112c38;
    color: #fff;
    transition: background 0.2s ease, color 0.2s ease;
}

.kfast-bankid-button-cancel {
    padding: 12px;
    margin-top: 16px;
    background: #fff;
    color: #000;
    border: 1px solid #d1d1d1;
}

.kfast-bankid-button-cancel:hover {
    background: #f5f5f5;
    border-color: #c1c1c1;
    color: #000;
}

.kfast-bankid-button-qr {
    padding: 12px;
    margin-top: 16px;
    background: #fff;
    color: #000;
}

.kfast-bankid-button-qr:hover {
    background: #f5f5f5;
    border-color: #c1c1c1;
    color: #000;
}

.kfast-bankid-modal ul {
    margin-bottom: 20px;
}

.kfast-bankid-modal li {
    margin: 0;
    font-size: 14px;
    line-height: 22px;
}

.kfast-bankid-other-device {
    display: none;
}

.kfast-bankid-overlay.kfast-bankid-show-qr .kfast-bankid-other-device {
    display: block;
}