.cookie-panel {
    position: fixed;
    z-index: 10;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: min(460px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--cream);
    color: var(--navy);
    box-shadow: 0 8px 28px rgba(11, 42, 87, .25);
}
.cookie-panel h2 {
    margin: 0 0 8px;
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: normal;
}
.cookie-panel p {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.45;
}
.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cookie-panel button {
    min-height: 44px;
    padding: 8px 11px;
    border: 1px solid var(--navy);
    border-radius: 8px;
    background: var(--white);
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.cookie-panel button:hover {
    background: var(--navy);
    color: var(--white);
}
.cookie-panel button:focus-visible,
.cookie-panel input:focus-visible,
.cookie-footer-settings:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
.cookie-options {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.cookie-options label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 6px 0;
    font-size: 15px;
    line-height: 1.4;
}
.cookie-options input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    accent-color: var(--navy);
}
.cookie-options button {
    margin-top: 10px;
}
.cookie-footer-settings {
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}
@media (max-width: 520px) {
    .cookie-panel { padding: 15px; }
    .cookie-actions > button:nth-child(-n+2) { flex: 1 1 138px; }
    .cookie-actions > button:last-child { flex: 1 1 100%; }
}
