.cookie-consent-shell,
.cookie-preferences {
    position: fixed;
    z-index: var(--kepsas-layer-cookie, 10050);
}

    .cookie-consent-shell[hidden],
    .cookie-preferences[hidden] {
        display: none !important;
    }

.cookie-consent-shell {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0;
    pointer-events: none;
}

.cookie-card {
    width: 100%;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 0;
    background: linear-gradient(135deg, #132033 0%, #17384d 100%);
    box-shadow: 0 -8px 26px rgba(7, 20, 32, 0.16);
    pointer-events: auto;
}

.cookie-card__inner {
    width: calc(100% - 64px);
    max-width: none;
    min-height: 62px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 9px 0;
}

.cookie-card__main {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-card__icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8fd7d7;
    border: 1px solid rgba(143, 215, 215, 0.20);
    border-radius: 9px;
    background: rgba(47, 183, 184, 0.08);
    font-size: 13px;
}

.cookie-card__content {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.cookie-card__heading {
    flex: 0 0 auto;
}

.cookie-eyebrow {
    display: block;
    margin: 0 0 2px;
    color: #72d0d0;
    font-size: 0.55rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.cookie-title {
    margin: 0;
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
}

.cookie-copy {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.4;
}

.cookie-card__actions,
.cookie-preferences__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}

.cookie-card__actions {
    flex: 0 0 auto;
    margin-left: auto;
}

.cookie-btn {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: 0;
    box-shadow: none;
    transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.cookie-card .cookie-btn-primary {
    color: #132033;
    border: 1px solid #ffffff;
    background: #ffffff;
}

    .cookie-card .cookie-btn-primary:hover,
    .cookie-card .cookie-btn-primary:focus-visible {
        color: #132033;
        border-color: #f2f6f8;
        background: #f2f6f8;
        transform: translateY(-1px);
    }

.cookie-card .cookie-btn-light {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.05);
}

    .cookie-card .cookie-btn-light:hover,
    .cookie-card .cookie-btn-light:focus-visible {
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.46);
        background: rgba(255, 255, 255, 0.10);
    }

.cookie-card .cookie-btn-ghost {
    color: rgba(255, 255, 255, 0.66);
    border: 1px solid transparent;
    background: transparent;
}

    .cookie-card .cookie-btn-ghost:hover,
    .cookie-card .cookie-btn-ghost:focus-visible {
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.06);
    }

.cookie-preferences {
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
}

.cookie-preferences__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 17, 27, 0.56);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.cookie-preferences__panel {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    padding: 22px;
    border: 1px solid rgba(20, 32, 51, 0.10);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(7, 20, 32, 0.28);
}

    .cookie-preferences__panel .cookie-eyebrow {
        color: var(--kepsas-teal);
    }

    .cookie-preferences__panel .cookie-title {
        color: var(--kepsas-ink);
        font-size: 1rem;
    }

    .cookie-preferences__panel > .cookie-copy {
        max-width: none;
        color: #647586;
        font-size: 0.76rem;
    }

.cookie-preferences__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.cookie-close {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    padding: 0;
    color: #687a87;
    background: #f3f6f7;
    border: 0;
    border-radius: 9px;
}

    .cookie-close:hover,
    .cookie-close:focus-visible {
        color: var(--kepsas-ink);
        background: #e9eef1;
        outline: none;
    }

.cookie-groups {
    display: grid;
    gap: 9px;
}

.cookie-group {
    overflow: hidden;
    border: 1px solid rgba(20, 32, 51, 0.08);
    border-radius: 10px;
    background: #f8fafb;
}

.cookie-group__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 14px;
}

.cookie-group__toggle {
    min-width: 0;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0;
    color: inherit;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.cookie-group__toggle:focus-visible {
    outline: 3px solid rgba(21, 94, 138, 0.22);
    outline-offset: 4px;
}

.cookie-group__copy {
    display: block;
}

.cookie-group__copy strong {
    display: block;
    margin: 0 0 3px;
    color: var(--kepsas-ink);
    font-size: 0.82rem;
    font-weight: 800;
}

.cookie-group__copy small {
    display: block;
    color: var(--kepsas-green);
    font-size: 0.64rem;
    font-weight: 800;
}

.cookie-group p {
    display: none;
    margin: 0;
    padding: 0 14px 14px;
    color: #596b78;
    font-size: 0.72rem;
    line-height: 1.5;
}

.cookie-group.is-open p {
    display: block;
}

.cookie-group:not(.is-open) .cookie-group__toggle .fa-chevron-up {
    transform: rotate(180deg);
}

.cookie-switch {
    position: relative;
    width: 42px;
    height: 24px;
    flex: 0 0 42px;
}

    .cookie-switch input {
        width: 0;
        height: 0;
        opacity: 0;
    }

    .cookie-switch > span {
        position: absolute;
        inset: 0;
        cursor: pointer;
        border-radius: 999px;
        background: #d4dde3;
        transition: background-color .2s ease;
    }

        .cookie-switch > span::before {
            content: "";
            position: absolute;
            top: 3px;
            left: 3px;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #ffffff;
            box-shadow: 0 2px 6px rgba(20, 32, 51, 0.18);
            transition: transform .2s ease;
        }

    .cookie-switch input:checked + span {
        background: var(--kepsas-teal);
    }

        .cookie-switch input:checked + span::before {
            transform: translateX(18px);
        }

.cookie-preferences__actions {
    margin-top: 18px;
}

    .cookie-preferences__actions .cookie-btn-primary {
        color: #ffffff;
        border: 1px solid var(--kepsas-navy);
        background: var(--kepsas-navy);
    }

    .cookie-preferences__actions .cookie-btn-light {
        color: var(--kepsas-ink);
        border: 1px solid #ccd9e0;
        background: #ffffff;
    }

    .cookie-preferences__actions .cookie-btn-ghost {
        color: #687985;
        border: 1px solid transparent;
        background: #f4f7f8;
    }

.cookie-kvkk-link {
    display: block;
    margin-top: 14px;
    color: var(--kepsas-navy);
    font-size: 0.70rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

    .cookie-kvkk-link:hover,
    .cookie-kvkk-link:focus-visible {
        text-decoration: underline;
    }

@media (max-width: 900px) {
    .cookie-card__inner {
        width: calc(100% - 28px);
        gap: 14px;
    }

    .cookie-card__content {
        display: block;
    }

    .cookie-copy {
        margin-top: 3px;
    }
}

@media (max-width: 700px) {
    .cookie-card__inner {
        width: calc(100% - 24px);
        min-height: auto;
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 10px 0;
    }

    .cookie-card__main {
        width: 100%;
        align-items: flex-start;
    }

    .cookie-card__icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        font-size: 12px;
    }

    .cookie-title {
        font-size: 0.80rem;
    }

    .cookie-copy {
        font-size: 0.64rem;
    }

    .cookie-card__actions {
        width: 100%;
        justify-content: flex-end;
        gap: 5px;
    }

    .cookie-btn {
        min-height: 30px;
        padding: 0 10px;
        font-size: 0.62rem;
    }

    .cookie-preferences {
        padding: 12px;
    }

    .cookie-preferences__panel {
        max-height: calc(100vh - 24px);
        padding: 18px;
    }
}

