.cookie-consent {
    position: fixed;
    inset: auto 0 calc(12px + env(safe-area-inset-bottom)) 0;
    /* Keep both choices clickable above the Symfony debug toolbar in development. */
    z-index: 100001;
    box-sizing: border-box;
    width: min(1120px, calc(100% - 24px));
    max-height: 80dvh;
    margin-inline: auto;
    overflow: auto;
    padding: clamp(14px, 2.5vw, 24px);
    border: 1px solid #ffdcc7;
    border-radius: 20px;
    background: #fff;
    color: #191c23;
    box-shadow: 0 12px 40px rgb(25 28 35 / 16%), 0 2px 8px rgb(25 28 35 / 6%);
}

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

.cookie-consent__icon {
    display: grid;
    place-items: center;
    align-self: start;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff0e6;
    color: #b74400;
}

.cookie-consent__icon svg {
    width: 22px;
    height: 22px;
}

.cookie-consent h2 {
    margin-bottom: 4px;
    font: 1.25rem/1.2 'FredokaSemiBold', 'Open Sans', sans-serif;
}

.cookie-consent p {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.5;
}

.cookie-consent a {
    font-size: 0.875rem;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.cookie-consent a {
    display: inline-block;
    margin-top: 4px;
    color: #a63d00;
    font-weight: 600;
}

.cookie-consent a:hover {
    color: #783000;
}

.cookie-settings {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 14px;
    color: #ff5c00;
    cursor: pointer;
}

.cookie-settings svg {
    width: 1.25em;
    height: 1.25em;
}

.cookie-settings:hover {
    color: #ffad68;
}

.cookie-settings[hidden],
.cookie-policy-settings[hidden] {
    display: none;
}

.cookie-consent [role="alert"] {
    margin-top: 6px;
    color: #a82323;
}

.cookie-consent__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.cookie-consent__actions button {
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #e4a079;
    border-radius: 10px;
    background: #fff5ef;
    color: #873400;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
}

.cookie-consent__actions button:hover:not(:disabled) {
    border-color: #c85410;
    background: #ffe8d9;
}

.cookie-consent__actions button:disabled {
    opacity: 0.65;
}

.cookie-consent :focus-visible {
    outline: 2px solid #ad4200;
    outline-offset: 3px;
}

.cookie-settings:focus-visible {
    outline: 2px solid #ffad68;
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .cookie-consent__inner {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
    }

    .cookie-consent__actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .cookie-consent__icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .cookie-consent__icon svg {
        width: 20px;
        height: 20px;
    }
}
