@charset "utf-8";
/* ============================================================
   WRAPPER
============================================================ */

.bd-swish-wrapper {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
}


/* ============================================================
   FORM-RADER & LABELS
============================================================ */

.bd-row {
    margin-bottom: 18px;
    position: relative; /* behövs för absolut positionerade fel */
}

.bd-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}


/* ============================================================
   INPUTS
============================================================ */

.bd-row input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
    transition: all 0.15s ease;
}

.bd-row input:focus::placeholder {
    color: transparent;
}

.bd-row input:focus {
    border-color: #4a7bd0;
    box-shadow: 0 0 0 3px rgba(74,123,208,0.15);
    outline: none;
}


/* ============================================================
   RADIO-GRUPPER
============================================================ */

.bd-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.bd-radio-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #fff;
}

.bd-radio-group input[type="radio"] {
    transform: scale(1.2);
}

.bd-radio-group label:hover {
    border-color: #4a7bd0;
    background: #f3f7ff;
}


/* ============================================================
   FELHANTERING (HE-metoden)
============================================================ */

.bd-has-error {
    border-color: #d9534f !important;
    background: #fff3f3 !important;
    box-shadow: 0 0 0 3px rgba(217,83,79,0.15);
}

.bd-label-error {
    color: #b33636 !important;
}

/* Inline-alert i samma wrapper → inga hopp */
.bd-inline-error {
    background: #fff7f7;
    border: 1px solid #e5bcbc; /* tunn, lugn ram */
    color: #b33636;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

/* ============================================================
   SUBMIT-KNAPP
============================================================ */

.bd-submit {
    width: 100%;
    padding: 14px;
    background: #4a7bd0;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.bd-submit:hover {
    background: #3b6abc;
}


/* ============================================================
   MODAL: OVERLAY & BOX
============================================================ */

.bd-swish-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.bd-swish-modal-content {
    background: #fff;
    padding: 28px 24px;
    border-radius: 14px;
    width: 92%;
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    animation: bdFadeIn 0.25s ease;
    text-align: center;
}


/* ============================================================
   MODAL: KNAPPAR
============================================================ */

.bd-swish-btn-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.bd-swish-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: 0.15s ease;
}

#bd-swish-confirm {
    background: #e6145c;
    color: #fff;
    margin-right: 8px;
}

#bd-swish-confirm:hover {
    background: #c81252;
}

#bd-swish-cancel {
    background: #e5e5e5;
    color: #333;
}

#bd-swish-cancel:hover {
    background: #d5d5d5;
}


/* ============================================================
   MODAL: ANIMATION
============================================================ */

@keyframes bdFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   MODAL: SAMMANFATTNING
============================================================ */

.bd-swish-summary {
    margin: 20px 0;
    text-align: left;
    font-size: 15px;
    line-height: 1.4;
    background: #f7f7f7;
    padding: 15px 18px;
    border-radius: 10px;
}

.bd-swish-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.bd-swish-summary-row:last-child {
    margin-bottom: 0;
}

.bd-swish-summary-label {
    font-weight: 600;
    color: #333;
}

.bd-swish-summary-value {
    color: #555;
    text-align: right;
    max-width: 55%;
}


/* ============================================================
   RESPONSIVITET
============================================================ */

@media (max-width: 480px) {
    .bd-swish-summary-row {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 10px;
    }

    .bd-swish-summary-label {
        margin-bottom: 2px;
    }

    .bd-swish-summary-value {
        max-width: 100%;
        text-align: left;
    }
}
