/* OwnHost — KuzeyDC tarzı alt çerez banner + ortada popup */

:root {
    --oh-cookie-accent: #c9954a;
    --oh-cookie-accent-hover: #b8843f;
    --oh-cookie-accent-soft: #fdf6ec;
}

.oh-cookie-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10050;
    padding: 0;
    pointer-events: none;
}

.oh-cookie-bar[hidden] {
    display: none !important;
}

.oh-cookie-bar__panel {
    pointer-events: auto;
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 56px 18px 24px;
    background: #fff;
    border-radius: 0;
    border-top: 1px solid #e8edf2;
    box-shadow: 0 -6px 28px rgba(15, 20, 25, 0.14);
}

.oh-cookie-bar__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #94a3b8;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.oh-cookie-bar__close:hover {
    color: #64748b;
    background: #f1f5f9;
}

.oh-cookie-bar__icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--oh-cookie-accent-soft);
}

.oh-cookie-bar__icon svg {
    width: 36px;
    height: 36px;
}

.oh-cookie-bar__content {
    flex: 1 1 320px;
    min-width: 0;
}

.oh-cookie-bar__title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    color: #1e293b;
}

.oh-cookie-bar__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #64748b;
}

.oh-cookie-bar__text a {
    color: var(--oh-cookie-accent);
    text-decoration: underline;
    font-weight: 600;
}

.oh-cookie-bar__actions {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.oh-cookie-btn {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.oh-cookie-btn--outline {
    background: #fff;
    border-color: var(--oh-cookie-accent);
    color: var(--oh-cookie-accent);
}

.oh-cookie-btn--outline:hover {
    background: var(--oh-cookie-accent-soft);
    border-color: var(--oh-cookie-accent-hover);
    color: var(--oh-cookie-accent-hover);
}

.oh-cookie-btn--primary {
    background: var(--oh-cookie-accent);
    border-color: var(--oh-cookie-accent);
    color: #fff;
}

.oh-cookie-btn--primary:hover {
    background: var(--oh-cookie-accent-hover);
    border-color: var(--oh-cookie-accent-hover);
    color: #fff;
}

.oh-cookie-settings-link {
    color: inherit;
    text-decoration: underline;
}

.oh-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.oh-cookie-modal[hidden] {
    display: none !important;
}

.oh-cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 20, 25, 0.72);
}

.oh-cookie-modal__panel {
    position: relative;
    width: min(520px, 100%);
    max-height: 90vh;
    overflow: auto;
    padding: 24px;
    border-radius: 14px;
    background: #fff;
    color: #1e293b;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.oh-cookie-modal__panel--confirm {
    width: min(440px, 100%);
    text-align: center;
}

.oh-cookie-modal__panel--confirm h3 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 800;
}

.oh-cookie-modal__message {
    margin: 0 0 20px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}

.oh-cookie-modal__intro {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.oh-cookie-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: #f1f5f9;
    cursor: pointer;
}

.oh-cookie-modal__actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.oh-cookie-modal__panel:not(.oh-cookie-modal__panel--confirm) .oh-cookie-modal__actions {
    justify-content: flex-end;
}

.oh-cookie-option {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8edf2;
    text-align: left;
}

.oh-cookie-option:last-of-type {
    border-bottom: 0;
}

.oh-cookie-option__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.oh-cookie-option__badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--oh-cookie-accent-hover);
    background: var(--oh-cookie-accent-soft);
    padding: 4px 8px;
    border-radius: 999px;
}

.oh-cookie-option p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
}

.oh-cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.oh-cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.oh-cookie-toggle__slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 999px;
    transition: background 0.2s ease;
    cursor: pointer;
}

.oh-cookie-toggle__slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.oh-cookie-toggle input:checked + .oh-cookie-toggle__slider {
    background: var(--oh-cookie-accent);
}

.oh-cookie-toggle input:checked + .oh-cookie-toggle__slider::before {
    transform: translateX(20px);
}

body.oh-cookie-open {
    overflow: hidden;
}

@media (max-width: 992px) {
    .oh-cookie-bar__panel {
        flex-wrap: wrap;
        align-items: flex-start;
        padding: 16px 48px 16px 16px;
    }

    .oh-cookie-bar__actions {
        width: 100%;
        justify-content: stretch;
    }

    .oh-cookie-bar__actions .oh-cookie-btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 768px) {
    .oh-cookie-bar__panel {
        flex-direction: column;
        gap: 14px;
        padding: 16px 44px 16px 16px;
    }

    .oh-cookie-bar__actions {
        flex-direction: column;
    }

    .oh-cookie-bar__actions .oh-cookie-btn {
        width: 100%;
    }

    .oh-cookie-modal__actions {
        flex-direction: column;
    }

    .oh-cookie-modal__actions .oh-cookie-btn {
        width: 100%;
    }
}
