.cookie-consent {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1000;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    width: min(520px, calc(100vw - 24px));
    padding: 12px;
    color: oklch(0.165 0.018 48);
    background: oklch(0.982 0.011 74 / 0.96);
    border: 1px solid oklch(0.62 0.035 58 / 0.42);
    border-radius: 8px;
    box-shadow: 0 18px 50px oklch(0.22 0.04 48 / 0.18);
}

.cookie-consent p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
}

.cookie-consent__actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cookie-consent__button {
    min-height: 44px;
    padding: 0 14px;
    color: oklch(0.165 0.018 48);
    font: inherit;
    font-weight: 700;
    background: transparent;
    border: 1px solid oklch(0.62 0.035 58 / 0.48);
    border-radius: 8px;
    cursor: pointer;
}

.cookie-consent__button--primary {
    color: oklch(0.982 0.011 74);
    background: oklch(0.165 0.018 48);
    border-color: oklch(0.165 0.018 48);
}

.cookie-consent__button:focus-visible {
    outline: 3px solid rgba(96, 66, 36, 0.35);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .cookie-consent {
        right: 12px;
        bottom: 12px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .cookie-consent__actions {
        justify-content: stretch;
    }

    .cookie-consent__button {
        flex: 1;
    }
}

@media (max-width: 460px) {
    .cookie-consent {
        right: 8px;
        bottom: 8px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        width: calc(100vw - 16px);
        padding: 8px;
    }

    .cookie-consent p {
        font-size: 0.76rem;
        line-height: 1.3;
    }

    .cookie-consent__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(64px, 1fr));
        gap: 6px;
        min-width: 140px;
    }

    .cookie-consent__button {
        min-height: 40px;
        padding: 0 10px;
    }
}
