.modal-backdrop.show {
    opacity: 0.6;
}

#cookieman-modal .cookieman-dialog {
    max-width: min(100% - 1.5rem, 1140px);
}

#cookieman-modal .modal-content {
    border: 0;
    border-top: 6px solid #AB0054;
    border-radius: 0.5rem;
    box-shadow: 0 1rem 3rem rgba(49, 53, 29, 0.18);
}

#cookieman-modal .modal-header,
#cookieman-modal .modal-body,
#cookieman-modal .modal-footer {
    padding-left: clamp(1.25rem, 2vw, 2rem);
    padding-right: clamp(1.25rem, 2vw, 2rem);
}

#cookieman-modal .modal-header {
    padding-top: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 0;
}

#cookieman-modal .modal-title {
    color: #AB0054;
    font-weight: 700;
}

#cookieman-modal .modal-body {
    padding-top: 0;
    padding-bottom: 1rem;
}

#cookieman-modal .cookieman-intro,
#cookieman-modal .cookieman-group-description,
#cookieman-modal .table {
    font-size: 1rem;
}

#cookieman-modal a {
    color: #AB0054;
}

#cookieman-modal .cookieman-settings-toggle {
    margin-bottom: 1rem;
    border-color: #AB0054;
    color: #AB0054;
}

#cookieman-modal .cookieman-settings-toggle:hover,
#cookieman-modal .cookieman-settings-toggle:focus {
    background-color: #AB0054;
    border-color: #AB0054;
    color: #fff;
}

#cookieman-modal .accordion-item {
    border: 1px solid rgba(49, 53, 29, 0.12);
    border-radius: 0.5rem;
    overflow: hidden;
}

#cookieman-modal .accordion-item + .accordion-item {
    margin-top: 0.75rem;
}

#cookieman-modal .accordion-button {
    font-weight: 700;
    color: #31351D;
    background-color: #fff;
    box-shadow: none;
}

#cookieman-modal .accordion-button:not(.collapsed) {
    color: #31351D;
    background-color: #D8DDBC;
}

#cookieman-modal .cookieman-consent-toggle {
    background: #f7f7f2;
    border: 1px solid rgba(49, 53, 29, 0.08);
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    margin-bottom: 1rem;
}

#cookieman-modal .form-check-input:checked {
    background-color: #AB0054;
    border-color: #AB0054;
}

#cookieman-modal .cookieman-table thead th {
    color: #31351D;
    font-size: 0.95rem;
}

#cookieman-modal .modal-footer {
    border-top: 0;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding-top: 0;
    padding-bottom: 1.5rem;
}

#cookieman-modal .btn-primary {
    background-color: #AB0054;
    border-color: #AB0054;
}

#cookieman-modal .btn-primary:hover,
#cookieman-modal .btn-primary:focus {
    background-color: #8d0045;
    border-color: #8d0045;
}

#cookieman-modal .btn-outline-primary {
    color: #AB0054;
    border-color: #AB0054;
}

#cookieman-modal .btn-outline-primary:hover,
#cookieman-modal .btn-outline-primary:focus {
    color: #fff;
    background-color: #AB0054;
    border-color: #AB0054;
}

.footer-meta-actions {
    margin-top: 0.75rem;
}

.footer-meta-button {
    appearance: none;
    background: none;
    border: 0;
    color: #AB0054;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.footer-meta-button:hover,
.footer-meta-button:focus {
    color: #8d0045;
}

@media (max-width: 767.98px) {
    #cookieman-modal .modal-footer {
        flex-direction: column-reverse;
    }

    #cookieman-modal .modal-footer .btn {
        width: 100%;
    }
}
