/* =========================================================
   BONUSBOX GRID
   ========================================================= */

.bonus-box-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

.bonus-section {
    width: calc((100% - 20px) / 3);
    flex: 0 0 calc((100% - 20px) / 3);
    box-sizing: border-box;
    overflow: hidden;
    padding: 20px;
    border-radius: 12px;
    background-color: #5a0093;
    color: #ffffff;
    font-family: "Avenir Next", sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   BOVENSTE RIJ: TEKST EN LOGO
   ========================================================= */

.text-logo-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 10px;
}

.text-wrapper {
    flex: 0 0 55%;
    max-width: 55%;
    box-sizing: border-box;
}

.logo-wrapper {
    display: flex;
    flex: 0 0 45%;
    justify-content: flex-end;
    align-items: flex-start;
    max-width: 45%;
    box-sizing: border-box;
    padding-right: 10px;
    padding-left: 10px;
}

.logo-wrapper a {
    display: block;
    width: 100%;
}

.logo-wrapper img {
    display: block;
    width: 100%;
    max-height: 100px;
    object-fit: contain;
}

/* =========================================================
   BONUS TEKST
   ========================================================= */

.bonus-section .bonus-title {
    margin-bottom: 18px;
    font-size: 18px !important;
    font-weight: 700;
    line-height: 1.25;
}

/*
 * Het veld:
 * "Tekst zonder storting (met ** voor highlight)"
 */
.bonus-section .deposit-text {
    margin-bottom: 10px;
    font-size: 18px !important;
    line-height: 23px;
}

.bonus-section .deposit-text .highlight {
    color: #ffea00;
    font-size: inherit !important;
    font-weight: 700;
}

.bonus-section .bonus-subtitle {
    display: block;
    width: 100%;
    margin: 0;
    padding-bottom: 10px;
    font-size: 11px;
    line-height: 1.3;
    font-style: italic;
}

/*
 * Horizontale scheidingslijn volledig verwijderen.
 */
.bonus-subtitle-line {
    display: none !important;
}

/* =========================================================
   DROPDOWN DETAILS
   ========================================================= */

.bonus-info-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-top: 8px;
    margin-bottom: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffea00;
    font-family: "Avenir Next", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
}

.toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.bonus-info-toggle.open .toggle-icon {
    transform: rotate(180deg);
}

.bonus-info {
    display: block;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 20px;
}

/*
 * Wordt door script.js gebruikt.
 * Werkt zowel op mobiel als op desktop met filters.
 */
.bonus-info.mobile-collapsed {
    display: none !important;
}

.bonus-info.mobile-expanded {
    display: block !important;
}

.bonus-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

.bonus-line:last-child {
    margin-bottom: 0;
}

.bonus-line img {
    width: 15px;
    height: 13px;
    flex-shrink: 0;
}

.bonus-line span {
    display: inline-block;
    font-size: 15px;
}

.bonus-info .highlight {
    color: #ffea00;
    font-weight: 700;
}

/* =========================================================
   CTA-KNOP EN AANTAL PERSONEN
   ========================================================= */

.custom-button-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 60px;
}

.custom-button-container {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.bonus-section .custom-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 150px;
    min-height: 42px;
    box-sizing: border-box;
    padding: 8px 14px;
    border-radius: 50px;
    background-color: #ffea00;
    color: #000000 !important;
    font-family: "Organetto", "Avenir Next", sans-serif;
    font-size: 18px !important;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.bonus-section .custom-button:hover,
.bonus-section .custom-button:focus {
    background-color: #fff200;
    color: #000000 !important;
    text-decoration: none;
}

.additional-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
    font-size: 10px;
    line-height: 1;
    text-align: left;
    white-space: nowrap;
}

.additional-text .line1 {
    font-weight: 700;
}

.additional-text .line2 {
    margin-top: 2px;
}

.disclaimer {
    margin-top: 15px;
    color: #dddddd;
    font-size: 8px;
    line-height: 1.2;
    text-align: center;
}

/* =========================================================
   FILTERKNOPPEN
   ========================================================= */

.bonus-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
}

.bonus-filter-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0;
    padding: 10px 18px;
    border: 1px solid #5d249e;
    border-radius: 999px;
    background-color: #f3ebf9;
    color: #42156f;
    font-family: "Avenir Next", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.bonus-filter-button:hover {
    border-color: #5d249e;
    background-color: #e7d6f4;
    color: #42156f;
    transform: translateY(-1px);
}

.bonus-filter-button.is-active,
.bonus-filter-button.is-active:hover {
    border-color: #5d249e;
    background-color: #5d249e;
    color: #ffffff;
}

.bonus-filter-button:focus-visible {
    outline: 3px solid rgba(93, 36, 158, 0.25);
    outline-offset: 2px;
}

.bonus-section[hidden] {
    display: none !important;
}

.bonus-filter-empty {
    margin: 20px 0 0;
    padding: 16px 18px;
    border: 1px solid #ddcaed;
    border-radius: 10px;
    background-color: #f3ebf9;
    color: #42156f;
    font-weight: 700;
    text-align: center;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {
    .bonus-section {
        width: calc(50% - 5px);
        flex: 0 0 calc(50% - 5px);
    }
}

/* =========================================================
   MOBIEL
   ========================================================= */

@media (max-width: 768px) {
    .bonus-section {
        width: 100%;
        flex: 0 0 100%;
        overflow: hidden;
    }

    .text-logo-row {
        align-items: flex-start;
    }

    .logo-wrapper {
        box-sizing: border-box;
    }

    .logo-wrapper img {
        display: block;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
        object-fit: contain;
    }

    /*
     * Op mobiel altijd dropdown.
     */
    .bonus-info-toggle {
        display: flex;
    }

    .bonus-info {
        display: none;
    }

    .bonus-info.mobile-expanded {
        display: block !important;
    }

    .custom-button-wrapper {
        min-height: 60px;
    }

    .bonus-section .custom-button {
        min-width: 0;
        font-size: 18px !important;
    }

    .bonus-filter-bar {
        flex-wrap: nowrap;
        width: 100%;
        margin-bottom: 18px;
        padding-bottom: 7px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .bonus-filter-button {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 9px 16px;
        font-size: 13px;
    }
}