#cookieman-modal,
#cookieman-modal :where(.modal-content, .modal-body, .accordion-body, .table, p, li, td, th, label) {
    color: var(--kunde-text-dark);
}

#cookieman-modal :where(.modal-title, .accordion-button) {
    color: var(--kunde-text-dark);
}

#cookieman-modal a {
    color: var(--ikaro-blue-light);
}

#cookieman-modal a:hover,
#cookieman-modal a:focus {
    color: #000f1f;
}

@media (max-width: 950px) and (max-height: 520px) {
    #cookieman-modal.modal.fade.show {
        align-items: stretch;
    }

    #cookieman-modal .modal-dialog {
        display: flex;
        width: calc(100% - 1rem);
        max-width: none;
        max-height: calc(100vh - 1rem);
        max-height: calc(100dvh - 1rem);
        margin: 0.5rem;
    }

    #cookieman-modal .modal-content {
        max-height: calc(100vh - 1rem);
        max-height: calc(100dvh - 1rem);
        overflow: hidden;
    }

    #cookieman-modal .modal-header,
    #cookieman-modal .modal-footer {
        flex: 0 0 auto;
        background-color: var(--cookiemanneutral);
    }

    #cookieman-modal .modal-body {
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    #cookieman-modal .modal-footer {
        border-top: 1px solid rgba(18, 41, 53, 0.15);
        padding-top: 0.5rem;
    }
}
