.cookie-preferences-panel {
    background: rgba(28, 17, 22, 0.42);
    bottom: 0;
    display: grid;
    left: 0;
    padding: 1rem;
    place-items: end center;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 10000;
}

.cookie-preferences-panel.is-hidden,
.cookie-settings-trigger.is-hidden {
    display: none;
}

.cookie-preferences-card {
    align-items: center;
    background: #fffdfd;
    border: 1px solid rgba(130, 10, 51, 0.16);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(54, 12, 28, 0.24);
    color: #2d2025;
    display: grid;
    gap: 1rem;
    grid-template-columns: auto minmax(240px, 1fr) auto;
    max-width: 980px;
    padding: 1.1rem 1.2rem;
    position: relative;
    width: calc(100% - 2rem);
}

.cookie-preferences-mark {
    align-items: center;
    background: #820a33;
    border-radius: 14px;
    color: white;
    display: flex;
    font-size: 0.82rem;
    font-weight: 800;
    height: 48px;
    justify-content: center;
    letter-spacing: 0.08em;
    width: 48px;
}

.cookie-preferences-content h2 {
    color: #820a33;
    font-size: 1.05rem;
    margin: 0 0 0.25rem;
}

.cookie-preferences-content p {
    color: #493a40;
    font-size: 0.92rem;
    line-height: 1.45;
    margin: 0;
}

.cookie-preferences-content a {
    color: #820a33;
    display: inline-block;
    font-size: 0.84rem;
    font-weight: 650;
    margin-top: 0.35rem;
}

.cookie-preferences-actions {
    display: flex;
    gap: 0.65rem;
}

.cookie-button {
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    min-height: 42px;
    padding: 0.65rem 0.9rem;
    white-space: nowrap;
}

.cookie-button-primary {
    background: #820a33;
    border: 1px solid #820a33;
    color: white;
}

.cookie-button-secondary {
    background: white;
    border: 1px solid #bda8b0;
    color: #5c3645;
}

.cookie-button:hover,
.cookie-button:focus-visible,
.cookie-settings-trigger:hover,
.cookie-settings-trigger:focus-visible {
    box-shadow: 0 0 0 3px rgba(130, 10, 51, 0.16);
    outline: none;
}

.cookie-close {
    background: transparent;
    border: 0;
    color: #6f5660;
    cursor: pointer;
    font-size: 1.4rem;
    position: absolute;
    right: 0.45rem;
    top: 0.2rem;
}

.cookie-settings-trigger {
    background: #fff;
    border: 1px solid #d7c5cc;
    border-radius: 999px;
    bottom: 0.8rem;
    box-shadow: 0 4px 16px rgba(54, 12, 28, 0.12);
    color: #820a33;
    cursor: pointer;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.48rem 0.72rem;
    position: fixed;
    right: 0.8rem;
    z-index: 9998;
}

@media (max-width: 760px) {
    .cookie-preferences-card {
        align-items: start;
        grid-template-columns: auto 1fr;
    }

    .cookie-preferences-actions {
        grid-column: 1 / -1;
        width: 100%;
    }

    .cookie-button {
        flex: 1;
        white-space: normal;
    }
}

@media (max-width: 440px) {
    .cookie-preferences-panel { padding: 0.5rem; }
    .cookie-preferences-card { border-radius: 14px; padding: 1rem; width: calc(100% - 1rem); }
    .cookie-preferences-mark { display: none; }
    .cookie-preferences-card { grid-template-columns: 1fr; }
    .cookie-preferences-actions { flex-direction: column-reverse; grid-column: 1; }
}
