/* Beksan cookie consent — centered blocking gate + preferences */
.beksan-cc-root {
    --cc-bg: #0b1f33;
    --cc-border: rgba(78, 190, 239, 0.18);
    --cc-text: #f2f8fc;
    --cc-muted: rgba(196, 222, 240, 0.78);
    --cc-accent: #4ebeef;
    --cc-accent-hover: #7ad0f5;
    --cc-btn-secondary-bg: rgba(78, 190, 239, 0.12);
    --cc-btn-secondary-border: rgba(78, 190, 239, 0.35);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

body.beksan-cc-locked {
    overflow: hidden !important;
}

body.beksan-cc-locked .site-head,
body.beksan-cc-locked main,
body.beksan-cc-locked .site-sabit-footer,
body.beksan-cc-locked footer {
    pointer-events: none;
    user-select: none;
}

.beksan-cc-shell[hidden] {
    display: none !important;
}

.beksan-cc-shell:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 3vw, 1.5rem);
}

.beksan-cc-shell__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 15, 24, 0.82);
    backdrop-filter: blur(4px);
}

.beksan-cc-shell--blocking .beksan-cc-shell__backdrop {
    cursor: default;
}

.beksan-cc-shell__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 34rem);
    max-height: min(92vh, 40rem);
    overflow: auto;
    background: var(--cc-bg);
    border: 1px solid var(--cc-border);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    padding: clamp(1.15rem, 4vw, 1.65rem);
}

.beksan-cc-shell__close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    background: transparent;
    color: var(--cc-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    z-index: 2;
}

.beksan-cc-shell__close:hover {
    color: var(--cc-text);
    background: rgba(255, 255, 255, 0.06);
}

.beksan-cc-shell__close[hidden] {
    display: none !important;
}

.beksan-cc-shell__view[hidden] {
    display: none !important;
}

.beksan-cc-shell__title {
    margin: 0 2rem 0.85rem 0;
    font-size: clamp(1.05rem, 2.8vw, 1.2rem);
    font-weight: 600;
    color: var(--cc-text);
    line-height: 1.35;
}

.beksan-cc-shell__text {
    margin: 0 0 1rem;
    font-size: clamp(0.8125rem, 2.2vw, 0.9375rem);
    line-height: 1.6;
    color: var(--cc-muted);
}

.beksan-cc-policy-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.65rem;
    margin: 0 0 1.15rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--cc-border);
    font-size: 0.8125rem;
}

.beksan-cc-policy-links a {
    color: var(--cc-accent);
    text-decoration: none;
    font-weight: 500;
}

.beksan-cc-policy-links a:hover {
    color: var(--cc-accent-hover);
    text-decoration: underline;
}

.beksan-cc-policy-links__sep {
    opacity: 0.45;
    user-select: none;
}

.beksan-cc-shell__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.beksan-cc-shell__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid var(--cc-border);
    padding-top: 1rem;
    margin-top: 0.25rem;
}

.beksan-cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    font-family: inherit;
    flex: 1 1 calc(33.333% - 0.5rem);
    min-width: min(100%, 7.5rem);
}

.beksan-cc-btn:focus-visible {
    outline: 2px solid var(--cc-accent);
    outline-offset: 2px;
}

.beksan-cc-btn--primary {
    background: var(--cc-accent);
    color: #041018;
    border-color: var(--cc-accent);
}

.beksan-cc-btn--primary:hover {
    background: var(--cc-accent-hover);
    border-color: var(--cc-accent-hover);
}

.beksan-cc-btn--secondary {
    background: var(--cc-btn-secondary-bg);
    color: var(--cc-text);
    border-color: var(--cc-btn-secondary-border);
}

.beksan-cc-btn--secondary:hover {
    background: rgba(78, 190, 239, 0.2);
}

.beksan-cc-btn--outline {
    background: transparent;
    color: var(--cc-accent);
    border-color: var(--cc-border);
}

.beksan-cc-btn--outline:hover {
    border-color: var(--cc-accent);
    color: var(--cc-accent-hover);
}

@media (max-width: 520px) {
    .beksan-cc-shell__actions .beksan-cc-btn {
        flex: 1 1 100%;
    }
}

.beksan-cc-cat__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.beksan-cc-cat__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cc-text);
}

.beksan-cc-cat__desc {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--cc-muted);
}

.beksan-cc-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.beksan-cc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.beksan-cc-switch__slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    transition: 0.2s;
}

.beksan-cc-switch__slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}

.beksan-cc-switch input:checked + .beksan-cc-switch__slider {
    background: var(--cc-accent);
}

.beksan-cc-switch input:checked + .beksan-cc-switch__slider:before {
    transform: translateX(20px);
}

.beksan-cc-switch input:disabled + .beksan-cc-switch__slider {
    opacity: 0.65;
    cursor: not-allowed;
}

.site-footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem 0.75rem;
    margin-top: 0.65rem;
    font-size: clamp(0.75rem, 2.2vw, 0.8125rem);
}

.site-footer-legal a,
.site-footer-legal button.site-footer-legal__btn {
    color: var(--accent, #4ebeef);
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.site-footer-legal a:hover,
.site-footer-legal button.site-footer-legal__btn:hover {
    text-decoration: underline;
}

.site-footer-legal__sep {
    opacity: 0.45;
    user-select: none;
}
