.bms-cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.10);
    color: #333333;
    font-size: 14px;
    line-height: 1.55;
}

.bms-cookie-consent__inner {
    max-width: 1170px;
    margin: 0 auto;
    padding: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.bms-cookie-consent__content {
    flex: 1 1 auto;
    max-width: 680px;
}

.bms-cookie-consent__content strong {
    display: block;
    margin-bottom: 5px;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
}

.bms-cookie-consent__content p {
    margin: 0;
}

.bms-cookie-consent__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

.bms-cookie-btn {
    min-height: 40px;
    padding: 9px 16px;
    border-radius: 2px;
    border: 1px solid #d1d5db;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.bms-cookie-btn--primary {
    background: #4f86f7;
    border-color: #4f86f7;
    color: #ffffff;
}

.bms-cookie-btn--primary:hover,
.bms-cookie-btn--primary:focus {
    background: #3f76e7;
    border-color: #3f76e7;
    color: #ffffff;
}

.bms-cookie-btn--secondary {
    background: #ffffff;
    border-color: #cfd4dc;
    color: #333333;
}

.bms-cookie-btn--secondary:hover,
.bms-cookie-btn--secondary:focus {
    background: #f7f8fa;
    border-color: #aeb5bf;
    color: #222222;
}

@media (max-width: 900px) {
    .bms-cookie-consent__inner {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .bms-cookie-consent__content {
        max-width: none;
    }

    .bms-cookie-consent__actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .bms-cookie-consent {
        font-size: 13px;
    }

    .bms-cookie-consent__inner {
        padding: 16px 15px;
        gap: 14px;
    }

    .bms-cookie-consent__content strong {
        font-size: 15px;
    }

    .bms-cookie-consent__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .bms-cookie-btn {
        width: 100%;
        min-height: 42px;
    }
}

.bms-cookie-consent a {
    color: #4f86f7;
    text-decoration: none;
}

.bms-cookie-consent a:hover,
.bms-cookie-consent a:focus {
    text-decoration: underline;
}

/* =========================================================
   BemedicalSafe - Cookievoorkeuren
   ========================================================= */

.bms-cookie-preferences {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    font-family: inherit;
    color: #333333;
}

.bms-cookie-preferences.is-open {
    display: block;
}

.bms-cookie-preferences__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 35, 65, 0.55);
}

.bms-cookie-preferences__dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 40px);
    max-width: 620px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.bms-cookie-preferences__header {
    position: relative;
    padding: 24px 56px 18px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.bms-cookie-preferences__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #4f86f7;
    font-size: 13px;
    font-weight: 600;
}

.bms-cookie-preferences__header h2 {
    margin: 0;
    color: #1f2937;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

.bms-cookie-preferences__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 2px;
    background: #ffffff;
    color: #333333;
    font-size: 22px;
    line-height: 34px;
    text-align: center;
    cursor: pointer;
}

.bms-cookie-preferences__intro {
    padding: 20px 24px 10px;
}

.bms-cookie-preferences__intro p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.bms-cookie-preferences__options {
    padding: 0 24px 20px;
}

.bms-cookie-preferences__option {
    padding: 18px 0;
    border-bottom: 1px solid #e5e7eb;
}

.bms-cookie-preferences__option:last-child {
    border-bottom: 0;
}

.bms-cookie-preferences__option-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 6px;
}

.bms-cookie-preferences__option-title strong {
    color: #1f2937;
    font-size: 15px;
    font-weight: 600;
}

.bms-cookie-preferences__option p {
    margin: 0;
    color: #555555;
    font-size: 13px;
    line-height: 1.55;
}

.bms-cookie-preferences__required {
    color: #4f86f7;
    font-size: 13px;
    font-weight: 600;
}

.bms-cookie-preferences__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 24px;
    border-top: 1px solid #e5e7eb;
    background: #f8f9fb;
}

.bms-cookie-preferences__save,
.bms-cookie-preferences__necessary {
    min-height: 40px;
    padding: 9px 18px;
    border-radius: 2px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.bms-cookie-preferences__save {
    border: 1px solid #4f86f7;
    background: #4f86f7;
    color: #ffffff;
}

.bms-cookie-preferences__save:hover,
.bms-cookie-preferences__save:focus {
    border-color: #3f76e7;
    background: #3f76e7;
}

.bms-cookie-preferences__necessary {
    border: 1px solid #cfd4dc;
    background: #ffffff;
    color: #333333;
}

.bms-cookie-preferences__link {
    padding: 0 24px 22px;
}

.bms-cookie-preferences__link a {
    color: #4f86f7;
    text-decoration: none;
}

.bms-cookie-preferences__link a:hover,
.bms-cookie-preferences__link a:focus {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .bms-cookie-preferences__dialog {
        width: calc(100% - 24px);
        max-height: calc(100vh - 24px);
    }

    .bms-cookie-preferences__header {
        padding: 20px 52px 16px 18px;
    }

    .bms-cookie-preferences__intro {
        padding: 18px 18px 8px;
    }

    .bms-cookie-preferences__options {
        padding: 0 18px 16px;
    }

    .bms-cookie-preferences__footer {
        flex-direction: column;
        padding: 16px 18px;
    }

    .bms-cookie-preferences__save,
    .bms-cookie-preferences__necessary {
        width: 100%;
        min-height: 42px;
    }

    .bms-cookie-preferences__link {
        padding: 0 18px 18px;
    }
}

/* Cookiecategorieen */

.bms-cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid #e5e7eb;
}

.bms-cookie-option:last-child {
    border-bottom: 0;
}

.bms-cookie-option__text {
    flex: 1 1 auto;
}

.bms-cookie-option__text strong {
    display: block;
    margin-bottom: 5px;
    color: #1f2937;
    font-size: 15px;
    font-weight: 600;
}

.bms-cookie-option__text p {
    margin: 0;
    color: #555555;
    font-size: 13px;
    line-height: 1.55;
}

.bms-cookie-option__status {
    flex: 0 0 auto;
    color: #4f86f7;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* BemedicalSafe schakelaar */

.bms-cookie-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    cursor: pointer;
}

.bms-cookie-switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.bms-cookie-switch__slider {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    border-radius: 12px;
    background: #cfd4dc;
    transition: background-color .2s ease;
}

.bms-cookie-switch__slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.20);
    transition: transform .2s ease;
}

.bms-cookie-switch input:checked + .bms-cookie-switch__slider {
    background: #4f86f7;
}

.bms-cookie-switch input:checked + .bms-cookie-switch__slider::before {
    transform: translateX(22px);
}

.bms-cookie-switch input:focus + .bms-cookie-switch__slider {
    box-shadow: 0 0 0 3px rgba(79, 134, 247, 0.20);
}

.bms-cookie-switch__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (max-width: 600px) {
    .bms-cookie-option {
        align-items: flex-start;
        gap: 14px;
    }

    .bms-cookie-option__status {
        white-space: normal;
        text-align: right;
    }
}



