:root {
    --v2-cookie-navy: var(--v2-color-navy, #16213e);
    --v2-cookie-orange: var(--v2-color-orange, #ff6b00);
}

[data-v2-cookie-consent-root] [hidden] { display: none !important; }

.v2-cookie {
    position: fixed;
    right: 16px;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    left: 16px;
    z-index: 100;
    width: min(940px, calc(100% - 32px));
    margin: auto;
    padding: 16px;
    border: 1px solid rgba(22, 33, 62, .14);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(22, 33, 62, .2);
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
}

.v2-cookie__main { display: flex; min-width: 0; align-items: flex-start; gap: 13px; }
.v2-cookie__icon {
    position: relative;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--v2-cookie-orange);
    box-shadow: inset -4px -4px 0 rgba(22, 33, 62, .12);
}
.v2-cookie__icon::after {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    content: "";
}
.v2-cookie__icon i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--v2-cookie-navy); }
.v2-cookie__icon i:nth-child(1) { top: 9px; left: 10px; }
.v2-cookie__icon i:nth-child(2) { top: 19px; left: 18px; }
.v2-cookie__icon i:nth-child(3) { top: 23px; left: 8px; }
.v2-cookie h2 { margin: 0 0 5px; color: var(--v2-cookie-navy); font-size: 18px; line-height: 1.25; }
.v2-cookie p { margin: 0; color: #4b5565; font-size: 14px; line-height: 1.45; }
.v2-cookie a { color: var(--v2-cookie-navy); font-weight: 800; text-underline-offset: 3px; }
.v2-cookie__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.v2-cookie__actions button {
    min-height: 44px;
    min-width: 0;
    padding: 9px 8px;
    border: 2px solid var(--v2-cookie-navy);
    border-radius: 10px;
    background: #fff;
    color: var(--v2-cookie-navy);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}
.v2-cookie__actions button:nth-child(2) { background: #eef1f5; }
.v2-cookie__actions button:nth-child(3) { border-color: var(--v2-cookie-orange); background: var(--v2-cookie-orange); }
.v2-cookie__preferences { display: grid; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #dce1ea; }
.v2-cookie__preferences label { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 9px 10px; border-radius: 10px; background: #f6f7f9; }
.v2-cookie__preferences span { display: grid; gap: 2px; }
.v2-cookie__preferences b { color: var(--v2-cookie-navy); font-size: 14px; }
.v2-cookie__preferences small { color: #667085; font-size: 12px; }
.v2-cookie__preferences input { width: 20px; height: 20px; accent-color: var(--v2-cookie-orange); }
.v2-cookie__preferences em { grid-column: 2; color: #667085; font-size: 11px; font-style: normal; }
.v2-cookie-settings {
    display: none;
    margin-left: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.site-footer__bottom .v2-cookie-settings { display: inline; }
.site-footer__bottom .v2-cookie-settings[hidden] { display: none; }
.v2-cookie button:focus-visible,
.v2-cookie a:focus-visible,
.v2-cookie-settings:focus-visible { outline: 3px solid rgba(255, 107, 0, .35); outline-offset: 2px; }

body:has([data-cookie-banner]:not([hidden]))
.v2-bana-sor.is-intro .v2-bana-sor__fab {
    animation-name: v2-bana-sor-intro-cookie-safe;
}
@keyframes v2-bana-sor-intro-cookie-safe {
    0% { transform: scale(.72); }
    18%, 78% { width: 148px; border-radius: 28px; transform: scale(1.08); }
    100% { width: 56px; border-radius: 50%; transform: scale(1); }
}

@media (min-width: 760px) {
    .v2-cookie { display: grid; grid-template-columns: minmax(0, 1fr) 390px; align-items: center; gap: 12px 24px; }
    .v2-cookie__actions { margin-top: 0; }
    .v2-cookie__preferences { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
    .v2-cookie { right: 10px; bottom: calc(82px + env(safe-area-inset-bottom, 0px)); left: 10px; width: calc(100% - 20px); max-height: calc(100dvh - 100px); padding: 14px 12px; overflow-y: auto; border-radius: 14px; }
    .v2-cookie__main { gap: 10px; }
    .v2-cookie__icon { flex-basis: 30px; width: 30px; height: 30px; }
    .v2-cookie h2 { font-size: 17px; }
    .v2-cookie p { font-size: 13px; }
    .v2-cookie__actions button { padding-inline: 5px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    .v2-cookie *, .v2-cookie-settings { scroll-behavior: auto !important; transition: none !important; }
}
