.boedeker-consent {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    color: #1f2933;
}

.boedeker-consent *,
.boedeker-consent *::before,
.boedeker-consent *::after {
    box-sizing: inherit;
}

.boedeker-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 2px;
    z-index: 100000;
    background: #eee;
    border-top: 2px solid #333333;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.14);
    padding: 16px;
}

.boedeker-consent-banner[hidden] {
    display: none;
}

.boedeker-consent__content {
    max-width: 1100px;
    margin: 0 auto;
}

.boedeker-consent__message p {
    margin: 0 0 10px;
    line-height: 1.45;
    font-size: 15px;
}

.boedeker-consent__links a {
    color: #213f79;
    text-decoration: underline;
}

.boedeker-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

@media (min-width: 768px) {
    .boedeker-consent-banner {
        padding: 10px 20px;
    }

    .boedeker-consent__content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px 20px;
    }

    .boedeker-consent__message {
        flex: 1 1 auto;
        min-width: 0;
    }

    .boedeker-consent__message p {
        margin: 0;
    }

    .boedeker-consent__actions {
        flex: 0 0 auto;
        margin-top: 0;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .boedeker-consent__actions .boedeker-btn {
        white-space: nowrap;
    }
}

.boedeker-btn {
    border: 1px solid #213f79;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.2;
    padding: 10px 14px;
    background: #ffffff;
    color: #213f79;
    min-height: 44px;
}

.boedeker-btn:focus-visible {
    outline: 3px solid #213f79;
    outline-offset: 1px;
}

.boedeker-btn--primary {
    background: #213f79;
    color: #ffffff;
}

.boedeker-btn--secondary {
    background: #ffffff;
    color: #213f79;
}

.boedeker-btn--ghost {
    border-color: #6b7280;
    color: #374151;
}

.boedeker-consent-modal[hidden] {
    display: none;
}

.boedeker-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
}

.boedeker-consent-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.boedeker-consent-modal__panel {
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    width: min(760px, calc(100% - 24px));
    margin: 40px auto;
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    overflow: auto;
    padding: 22px 20px;
    -webkit-overflow-scrolling: touch;
}

.boedeker-consent-modal__panel h2 {
    margin: 0 40px 8px 0;
    font-size: 1.35rem;
    line-height: 1.3;
}

.boedeker-consent-modal__panel > p {
    margin: 0 0 4px;
    line-height: 1.4;
}

.boedeker-consent-modal__close {
    position: absolute;
    right: 8px;
    top: 8px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #374151;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.boedeker-consent-modal__categories {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.boedeker-consent-category {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 12px;
    background: #f9fafb;
}

.boedeker-consent-category__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.boedeker-consent-category__head label {
    font-weight: 700;
    margin: 0;
}

.boedeker-consent-category__description {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.35;
}

.boedeker-consent-category__toggle input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin: 0;
    cursor: pointer;
}

.boedeker-consent__always-on {
    font-size: 12px;
    color: #065f46;
    font-weight: 700;
    white-space: nowrap;
}

.boedeker-consent-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.boedeker-consent--modal-open {
    overflow: hidden;
}

.boedeker-youtube-placeholder {
    border: 1px dashed #9ca3af;
    background: #f3f4f6;
    padding: 16px;
    text-align: center;
    margin: 8px 0;
}

.boedeker-youtube-placeholder__message {
    margin-bottom: 10px;
    line-height: 1.35;
}

@media (max-width: 767px) {
    .boedeker-consent-banner {
        bottom: 0;
        left: 0;
        right: 0;
        padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
        max-height: min(55vh, 55dvh);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .boedeker-consent__message p {
        margin: 0 0 12px;
        font-size: 14px;
    }

    .boedeker-consent__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 0;
    }

    .boedeker-consent__actions .boedeker-btn--primary {
        grid-column: 1 / -1;
    }

    .boedeker-consent__actions .boedeker-btn {
        width: 100%;
        margin: 0;
    }

    .boedeker-consent-modal {
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    .boedeker-consent-modal__panel {
        width: 100%;
        max-width: none;
        margin: 0;
        max-height: min(92vh, 92dvh);
        border-radius: 12px 12px 0 0;
        border-bottom: 0;
        padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    }

    .boedeker-consent-modal__panel h2 {
        font-size: 1.2rem;
        margin-right: 44px;
    }

    .boedeker-consent-category {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "head toggle"
            "desc desc";
        align-items: start;
        gap: 0 12px;
        padding: 12px 14px;
    }

    .boedeker-consent-category__head {
        grid-area: head;
        flex-wrap: wrap;
    }

    .boedeker-consent-category__description {
        grid-area: desc;
        margin: 6px 0 0;
        font-size: 13px;
    }

    .boedeker-consent-category__toggle {
        grid-area: toggle;
        align-self: center;
    }

    .boedeker-consent-category__toggle input[type="checkbox"] {
        width: 24px;
        height: 24px;
    }

    .boedeker-consent-modal__actions {
        flex-direction: column;
        gap: 8px;
    }

    .boedeker-consent-modal__actions .boedeker-btn {
        width: 100%;
    }
}
