/* Main Widget Styles */
.notabene-donation {
    margin: 0 auto;
}

/* Type Switch Styles */
.notabene-donation-type-switch {
    display: flex;
    gap: 8px;
    justify-content: center;
    background: #E7E7E7;
    padding: 8px;
    border-radius: 100px;
    position: relative;
    width: 300px;
    margin: 0 auto 32px;
}

.notabene-donation-type-switch button {
    position: relative;
    padding: 8px 16px;
    border: none;
    border-radius: 100px;
    background: none;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s ease;
    width: 50%;
    flex: 1 0 140px;

    color: var(--Black, #000);
    text-align: center;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 23px;
    text-align: center;
    text-transform: none;

}

.notabene-donation-type-switch button.active {
    color: #fff;
    z-index: 99;
}

.slider {
    position: absolute;
    left: 8px;
    top: 8px;
    background: #03082B;
    width: calc(50% - 16px);
    height: calc(100% - 16px);
    border-radius: 100px;
    transition: transform 0.3s ease;
    z-index: 1;
}

.slider.right {
    transform: translateX(calc(100% + 16px));
}

/* Donation Options */
.notabene-donation-options {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.notabene-donation-option {
    flex: 1;
    border: 1px solid #E7E7E7;
    border-radius: 16px;
    padding: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #E7E7E7;

}

.notabene-donation-option .custom-amount {
    background-color: #fff;
}

.notabene-donation-option:hover {
    border-color: #03082B;
}

.notabene-donation-option.selected {
    border-color: #03082B;
    background: #03082B;
    color: #fff;
}

.option-amount {
    text-edge: cap;
    font-family: Platform;
    font-size: 67px;
    font-style: normal;
    font-weight: 400;
    line-height: 70px;
    margin-bottom: 16px;
}

.option-description {
    color: var(--Black, #03082B);
    /* Subheadline */
    font-family: Inter;
    font-size: 18.5px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: -0.52px;
    padding-bottom: 64px;
}

.notabene-donation-option.selected .option-description {
    color: #fff;
}

.custom-amount {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 1.1rem;
    margin: 1rem 0;
}

/* Donate Button */
.notabene-donate-button {
    display: block;
    width: 200px;
    margin: 2rem auto;
    padding: 1rem 2rem;
    background: #03082B;
    color: #fff;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.notabene-donate-button:hover, .notabene-donate-button:focus {
    background-color: var(--e-global-color-accent);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 8, 43, 0.59);
    z-index: 1000;
    overflow-y: scroll;
}

.modal-content {
    background: #fff;
    max-width: 590px;
    margin: 4rem auto;
    padding: 25px;
    border-radius: 16px;
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translateX(-50%);
}

.modal-content h3{
    margin-bottom: 32px;
}
.modal-content .row .column{
    margin-bottom: 16px;
}
.modal-content .company-fields {
    margin-top: 32px;
}
.modal-content .row .column.payments-radios {
    margin-top: 32px;
    margin-bottom: 32px;
}
.modal-content .row .column.payments-radios .column {
    margin-bottom: 4px;
}
.modal-content .column.anonymous {
    margin-bottom: 8px;
}

.modal-content .column.check {
    display: flex;
    gap: var(--4-base-unit, 4px);
    align-self: stretch;
    flex-wrap: wrap;
}

.modal-content .column.check label {
    flex: 1;
    min-width: 0;
}

.modal-close {
    position: absolute;
    right: 25px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #E7E7E7;
}

/* Form Fields */
/*.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="number"] {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    background: #F9FAFB;
    margin-top: 8px;
    margin-bottom: 16px;
    font-size: 16px;
}

.modal-content input[type="text"]:focus,
.modal-content input[type="email"]:focus,
.modal-content input[type="number"]:focus {
    outline: none;
    border-color: #03082B;
    box-shadow: 0 0 0 1px #03082B;
}
*/
/* Labels */
.modal-content label {
    display: block;

    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px; /* 125% */
    margin-bottom: 4px;
    color: #111827;
}

.modal-content .check label {
    display: block;
    font-weight: 400;
    line-height: 23px; /* 125% */
    margin-bottom: 0px;
}

/* Checkboxes and Radio buttons */
.modal-content input[type="checkbox"],
.modal-content input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid #03082B;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    top: 1px;
}

.modal-content input[type="radio"] {
    border-radius: 50%;
}

.modal-content input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 7px;
    width: 6px;
    height: 11px;
    border: solid #03082B;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-4px, -3px);
}

.modal-content input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #03082B;
}



/* Field Grouping */
.field-group {
    margin-bottom: 16px;
}

.field-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.field-row > div {
    flex: 1;
}

.rules {
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    margin: 1rem 0;
}
.rules a{
    text-decoration: underline;
}

.success.button {
    display: flex;
    width: 100%;
    padding: var(--16-base-unit, 16px) var(--32-base-unit, 32px);
    justify-content: center;
    align-items: center;
    gap: var(--4-base-unit, 4px);
    flex-shrink: 0;

    border-radius: var(--32-base-unit, 32px);
    border: 0;
    color: #fff;
    background: var(--CTA, #03082B);
    font-family: Inter;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0.65px;
    text-transform: uppercase;

    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 16px;

}

.success.button:hover, .success.button:focus {
    background-color: var(--e-global-color-accent);
}

.error-message {
    width: 100%;
    color: red;
    font-size: 12px;
    margin-top: 4px;
}

input.error {
    border-color: red;
}

@media (max-width: 640px) {
    .notabene-donation-options {
        flex-direction: column;
    }
    .modal-content {
        padding: 16px;
        width: calc(100% - 32px);
        margin: 16px 0;
        top: 0;
        transform: translateX(-50%);
    }
    .modal-content:after {
        content: "";
        display: block;
        position: absolute;
        bottom: -16px;
        width: 16px;
        height: 1px;
    }
    .modal-close {
        width: 30px;
        height: 30px;
        right: 16px;
    }
    .modal-close svg{
        width: 20px;
        height: 20px;
    }
    .option-amount {
        font-size: 32px;
        line-height: 39px;
        margin-bottom: 16px;
    }

    .option-description {
        font-family: Inter;
        font-size: 18px;
        font-style: normal;
        font-weight: 400;
        line-height: 24px; /* 133.333% */
        letter-spacing: -0.18px;
    }
    .notabene-donation-option {
        border: 2px solid #E7E7E7;
    }
    .custom-amount {
        margin: 64px 0 0;
    }
}