.cookie-consent {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2600;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 18px;
}

.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent__panel {
    width: min(1120px, 100%);
    border: 1px solid rgba(21, 18, 14, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(26, 20, 14, 0.12);
    backdrop-filter: blur(12px);
    color: #2b241d;
    pointer-events: auto;
}

.cookie-consent[data-mode="summary"] .cookie-consent__panel {
    padding: 18px 22px;
}

.cookie-consent[data-mode="detailed"] {
    top: 0;
    bottom: 0;
    align-items: center;
    background: rgba(26, 22, 17, 0.28);
}

.cookie-consent[data-mode="detailed"] .cookie-consent__panel {
    width: min(380px, calc(100% - 24px));
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 28px 70px rgba(19, 14, 10, 0.18);
}

.cookie-consent__summary[hidden],
.cookie-consent__details[hidden] {
    display: none !important;
}

.cookie-consent__summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px 28px;
    align-items: center;
}

.cookie-consent__summary-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.cookie-consent__heading {
    margin: 0;
    font-family: "Bodoni Moda", serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #17120e;
}

.cookie-consent__copy {
    margin: 0;
    min-width: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #605548;
    text-wrap: pretty;
}

.cookie-consent__copy a {
    color: #5d4b29;
    text-decoration: none;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    border-bottom: 1px solid rgba(93, 75, 41, 0.24);
}

.cookie-consent__copy a:hover {
    color: #17120e;
    border-bottom-color: rgba(23, 18, 14, 0.26);
}

.cookie-consent__summary-actions,
.cookie-consent__detail-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-consent__button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    font-family: "Bodoni Moda", serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition:
        transform 0.16s ease,
        background 0.16s ease,
        border-color 0.16s ease,
        color 0.16s ease,
        box-shadow 0.16s ease;
}

.cookie-consent__button:hover {
    transform: translateY(-1px);
}

.cookie-consent__button:focus-visible,
.cookie-consent__text-link:focus-visible,
.cookie-consent__footer a:focus-visible {
    outline: 1px solid rgba(184, 157, 95, 0.72);
    outline-offset: 4px;
}

.cookie-consent__button--text {
    border: 0;
    background: transparent;
    color: #50483e;
    padding-inline: 6px;
}

.cookie-consent__button--text:hover {
    background: transparent;
    color: #17120e;
}

.cookie-consent__button--decision {
    border: 1px solid rgba(49, 40, 30, 0.12);
    background: rgba(255, 255, 255, 0.9);
    color: #2c241d;
}

.cookie-consent__button--decision:hover {
    background: rgba(255, 255, 255, 1);
    color: #2c241d;
}

.cookie-consent__button--primary {
    border: 1px solid #a78a44;
    background: #a78a44;
    color: #fffdf7;
    box-shadow: 0 10px 22px rgba(167, 138, 68, 0.18);
}

.cookie-consent__button--primary:hover {
    background: #907639;
    border-color: #907639;
    color: #fffdf7;
}

.cookie-consent__details {
    display: grid;
    gap: 14px;
}

.cookie-consent__details-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.cookie-consent__title {
    margin: 0;
    font-family: "Bodoni Moda", serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #17120e;
}

.cookie-consent__details-copy {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: #66594c;
}

.cookie-consent__option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(49, 40, 30, 0.08);
    background: #f7f4ee;
    cursor: pointer;
}

.cookie-consent__option-copy {
    display: grid;
    gap: 4px;
}

.cookie-consent__option-copy strong {
    font-family: "Bodoni Moda", serif;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #18130f;
}

.cookie-consent__option-copy span {
    font-size: 0.8rem;
    line-height: 1.45;
    color: #625648;
}

.cookie-consent__toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cookie-consent__toggle input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.cookie-consent__toggle-track {
    position: relative;
    width: 48px;
    height: 28px;
    border-radius: 999px;
    background: rgba(96, 84, 71, 0.18);
    border: 1px solid rgba(61, 52, 41, 0.12);
    transition: background 0.18s ease, border-color 0.18s ease;
}

.cookie-consent__toggle-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fffdf7;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16);
    transition: transform 0.18s ease;
}

.cookie-consent__toggle input:checked + .cookie-consent__toggle-track {
    background: #111;
    border-color: #111;
}

.cookie-consent__toggle input:checked + .cookie-consent__toggle-track::after {
    transform: translateX(20px);
}

.cookie-consent__footer {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-consent__footer--details {
    justify-content: flex-start;
    font-size: 0.78rem;
}

.cookie-consent__text-link,
.cookie-consent__footer a {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #6a6154;
    text-decoration: none;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    border-bottom: 1px solid rgba(106, 97, 84, 0.28);
}

.cookie-consent__text-link--quiet {
    color: #7a7064;
    border-bottom-color: rgba(122, 112, 100, 0.22);
}

.cookie-consent__text-link:hover,
.cookie-consent__footer a:hover {
    color: #2b241d;
    border-color: rgba(43, 36, 29, 0.32);
}

@media (max-width: 780px) {
    .cookie-consent {
        padding: 12px;
    }

    .cookie-consent__summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cookie-consent__summary-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .cookie-consent[data-mode="summary"] .cookie-consent__panel,
    .cookie-consent[data-mode="detailed"] .cookie-consent__panel {
        width: 100%;
        padding: 14px;
        border-radius: 14px;
    }

    .cookie-consent__summary {
        grid-template-columns: 1fr;
    }

    .cookie-consent__summary-actions,
    .cookie-consent__detail-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent__button {
        width: 100%;
    }

    .cookie-consent__option {
        grid-template-columns: 1fr;
    }

    .cookie-consent__toggle {
        justify-content: flex-start;
    }

    .cookie-consent__details-header {
        align-items: center;
    }
}
