/* Liegt ueber Shop-Chrome, Toasts und Aktions-Widget (fixierte Elemente). */
.cookie-consent {
    position: relative;
    z-index: 12000;
}

.cookie-consent-modal {
    --bs-modal-zindex: 12060;
}

.cookie-consent-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 12001;
    max-width: 1120px;
    margin: 0 auto;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
}

[data-bs-theme="light"] .cookie-consent {
    --bs-body-color: #0f172a;
    --bs-secondary-color: #334155;
    --bs-tertiary-color: #475569;
}

[data-bs-theme="light"] .cookie-consent .text-body-secondary,
[data-bs-theme="light"] .cookie-consent .form-text {
    color: #334155 !important;
}

[data-bs-theme="light"] .cookie-consent .btn-outline-secondary {
    color: #243044;
    border-color: #64748b;
}

[data-bs-theme="light"] .cookie-consent .btn-outline-secondary:hover,
[data-bs-theme="light"] .cookie-consent .btn-outline-secondary:focus-visible {
    color: #ffffff;
    background-color: #334155;
    border-color: #334155;
}

.cookie-consent-banner__content {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.cookie-consent-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    min-width: min(100%, 28rem);
}

.cookie-consent-html > :last-child {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .cookie-consent-banner__content {
        align-items: stretch;
        flex-direction: column;
    }

    .cookie-consent-banner__actions .btn {
        width: 100%;
    }
}
