.cookie-consent {
    position: fixed;
    z-index: 1200;
    right: max(18px, calc((100vw - 1500px) / 2));
    bottom: 18px;
    left: max(18px, calc((100vw - 1500px) / 2));
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    padding: 20px 22px;
    border: 1px solid rgba(8, 166, 78, .2);
    border-radius: 24px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 24px 70px rgba(8, 38, 24, .2);
    color: #08142a;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

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

.cookie-consent-icon {
    position: relative;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 19px;
    background: linear-gradient(145deg, #08ca61, #078d45);
    box-shadow: 0 12px 26px rgba(5, 164, 75, .22);
}

.cookie-consent-icon::before {
    content: "";
    position: absolute;
    width: 36px;
    height: 36px;
    top: 14px;
    left: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset -7px -5px 0 #d9f8e7;
}

.cookie-consent-icon::after {
    content: "";
    position: absolute;
    width: 17px;
    height: 17px;
    top: 9px;
    right: 8px;
    border-radius: 4px 10px 5px 10px;
    background: #078d45;
    transform: rotate(17deg);
}

.cookie-consent-icon span,
.cookie-consent-icon i,
.cookie-consent-icon b {
    position: absolute;
    z-index: 1;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #07984b;
}

.cookie-consent-icon span { top: 25px; left: 25px; }
.cookie-consent-icon i { top: 38px; left: 34px; }
.cookie-consent-icon b { top: 32px; left: 20px; }

.cookie-consent-copy h2 {
    margin: 0 0 5px;
    color: #071329;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.cookie-consent-copy p {
    max-width: 760px;
    margin: 0;
    color: #586b7d;
    font-size: 13px;
    line-height: 1.55;
}

.cookie-consent-copy a {
    color: #078d45;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-consent-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.cookie-button {
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid #bcd7c8;
    border-radius: 13px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

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

.cookie-button:focus-visible,
.cookie-settings-link:focus-visible {
    outline: 3px solid rgba(7, 175, 81, .25);
    outline-offset: 3px;
}

.cookie-button-primary {
    border-color: #08a950;
    background: linear-gradient(135deg, #079c48, #08c45d);
    box-shadow: 0 10px 24px rgba(5, 162, 74, .22);
    color: #fff;
}

.cookie-button-primary:hover {
    background: linear-gradient(135deg, #078d42, #06b955);
    box-shadow: 0 13px 28px rgba(5, 150, 69, .28);
}

.cookie-button-secondary {
    background: #fff;
    color: #163026;
}

.cookie-button-secondary:hover {
    border-color: #74ba91;
    background: #f2fbf6;
}

.site-footer .cookie-settings-link {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1a2b40;
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: color .18s ease;
}

.site-footer .cookie-settings-link:hover { color: #079b4b; }

@media (max-width: 980px) {
    .cookie-consent {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 16px;
    }
    .cookie-consent-icon { width: 54px; height: 54px; border-radius: 16px; transform: scale(.84); transform-origin: center; }
    .cookie-consent-actions { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    .cookie-consent {
        right: 10px;
        bottom: 10px;
        left: 10px;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px;
        border-radius: 20px;
    }
    .cookie-consent-icon { display: none; }
    .cookie-consent-copy h2 { font-size: 17px; }
    .cookie-consent-copy p { font-size: 12px; }
    .cookie-consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .cookie-button { min-width: 0; min-height: 44px; padding-inline: 10px; white-space: normal; }
}

@media (max-width: 390px) {
    .cookie-consent-actions { grid-template-columns: 1fr; }
    .cookie-button-primary { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-button { transition: none; }
}
