:root {
    --kc-orange: #EB6727;
    --kc-orange-dark: #d95618;
    --kc-green: #7BBA47;
    --kc-text: #191919;
    --kc-muted: #686868;
    --kc-border: #e5e5e5;
    --kc-soft: #f6f6f4;
    --kc-white: #ffffff;
}

#kc-root [hidden] {
    display: none !important;
}

body.kc-modal-open {
    overflow: hidden;
}

.kc-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Ana izin bandı */
.kc-banner {
    position: fixed;
    z-index: 2147483000;
    right: 20px;
    bottom: 18px;
    left: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    width: auto;
    max-width: 1160px;
    margin: 0 auto;
    padding: 16px 18px 15px 22px;
    overflow: hidden;
    color: var(--kc-text);
    background: var(--kc-white);
    border: 1px solid var(--kc-border);
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
    font-family: Volte-Regular, Arial, sans-serif;
}

.kc-banner::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    content: "";
    background: var(--kc-orange);
}

[dir="rtl"] .kc-banner {
    padding-right: 22px;
    padding-left: 18px;
}

[dir="rtl"] .kc-banner::before {
    right: 0;
    left: auto;
}

.kc-banner h2,
.kc-modal h2,
.kc-category h3 {
    margin: 0;
    color: var(--kc-text);
    font-family: Volte-Semibold, Arial, sans-serif;
}

.kc-banner h2 {
    margin-bottom: 3px;
    color: var(--kc-orange);
    font-size: 16px;
    line-height: 1.25;
}

.kc-banner p {
    max-width: 720px;
    margin: 0 0 3px;
    color: var(--kc-muted);
    font-size: 12px;
    line-height: 1.42;
}

.kc-policy-link,
.kc-modal-links a {
    color: var(--kc-text);
    font-family: Volte-Medium, Arial, sans-serif;
    font-size: 11px;
    line-height: 1.3;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.kc-policy-link:hover,
.kc-modal-links a:hover {
    color: var(--kc-orange);
}

.kc-banner-actions {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 7px;
    align-items: center;
}

.kc-button {
    min-height: 38px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 0;
    font-family: Volte-Semibold, Arial, sans-serif;
    font-size: 11px;
    line-height: 1.15;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.kc-button:focus-visible,
.kc-close:focus-visible,
.kc-footer-settings:focus-visible,
.kc-switch input:focus-visible + span {
    outline: 3px solid rgba(235, 103, 39, 0.3);
    outline-offset: 2px;
}

.kc-button-primary {
    color: var(--kc-white);
    background: var(--kc-orange);
    border-color: var(--kc-orange);
}

.kc-button-primary:hover {
    color: var(--kc-white);
    background: var(--kc-orange-dark);
    border-color: var(--kc-orange-dark);
}

.kc-button-outline {
    color: var(--kc-text);
    background: var(--kc-white);
    border-color: #cfcfcf;
}

.kc-button-outline:hover {
    color: var(--kc-orange);
    border-color: var(--kc-orange);
}

.kc-button-plain {
    min-height: auto;
    padding: 8px 5px;
    color: var(--kc-text);
    background: transparent;
    border-color: transparent;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.kc-button-plain:hover {
    color: var(--kc-orange);
    background: transparent;
}

/* Tercih ayrıntıları */
.kc-overlay {
    position: fixed;
    z-index: 2147483001;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.58);
}

.kc-modal {
    position: relative;
    width: min(590px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: 24px;
    color: var(--kc-text);
    background: var(--kc-white);
    border-top: 5px solid var(--kc-orange);
    border-radius: 0;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    font-family: Volte-Regular, Arial, sans-serif;
}

.kc-modal h2 {
    padding-right: 40px;
    margin-bottom: 5px;
    color: var(--kc-orange);
    font-size: 21px;
    line-height: 1.25;
}

[dir="rtl"] .kc-modal h2 {
    padding-right: 0;
    padding-left: 40px;
}

.kc-modal-intro {
    margin: 0 0 15px;
    color: var(--kc-muted);
    font-size: 13px;
    line-height: 1.45;
}

.kc-close {
    position: absolute;
    top: 13px;
    right: 13px;
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    color: var(--kc-text);
    background: var(--kc-soft);
    border: 1px solid var(--kc-border);
    border-radius: 0;
    font-family: Arial, sans-serif;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.kc-close:hover {
    color: var(--kc-white);
    background: var(--kc-orange);
    border-color: var(--kc-orange);
}

[dir="rtl"] .kc-close {
    right: auto;
    left: 13px;
}

.kc-category {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid var(--kc-border);
}

.kc-category h3 {
    margin-bottom: 3px;
    font-size: 14px;
    line-height: 1.3;
}

.kc-category p {
    margin: 0;
    color: var(--kc-muted);
    font-size: 12px;
    line-height: 1.42;
}

.kc-switch {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    width: 44px;
    height: 24px;
    margin: 0;
}

.kc-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.kc-switch span {
    position: absolute;
    inset: 0;
    background: #b8b8b8;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.18s ease;
}

.kc-switch span::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    content: "";
    background: var(--kc-white);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
    transition: transform 0.18s ease;
}

.kc-switch input:checked + span {
    background: var(--kc-green);
}

.kc-switch input:checked + span::after {
    transform: translateX(20px);
}

[dir="rtl"] .kc-switch span::after {
    right: 3px;
    left: auto;
}

[dir="rtl"] .kc-switch input:checked + span::after {
    transform: translateX(-20px);
}

.kc-switch-disabled span {
    cursor: not-allowed;
    opacity: 0.65;
}

.kc-modal-links {
    margin-top: 2px;
}

.kc-modal-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-top: 18px;
}

.kc-footer-settings {
    display: inline;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.kc-footer-settings:hover {
    color: var(--kc-orange);
}

.kc-footer-settings-floating {
    position: fixed;
    z-index: 2147482999;
    bottom: 16px;
    left: 16px;
    display: block;
    padding: 8px 11px;
    color: var(--kc-white);
    background: var(--kc-orange);
    border-radius: 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
    text-decoration: none;
}

@media (max-width: 900px) {
    .kc-banner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 16px;
    }

    .kc-banner-actions {
        grid-template-columns: repeat(2, minmax(105px, 1fr));
    }

    .kc-banner-actions .kc-button-plain {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .kc-banner {
        right: 8px;
        bottom: 8px;
        left: 8px;
        grid-template-columns: 1fr;
        gap: 9px;
        padding: 12px 12px 11px 16px;
        box-shadow: 0 7px 22px rgba(0, 0, 0, 0.16);
    }

    .kc-banner::before {
        width: 4px;
    }

    [dir="rtl"] .kc-banner {
        padding-right: 16px;
        padding-left: 12px;
    }

    .kc-banner h2 {
        margin-bottom: 2px;
        font-size: 14px;
    }

    .kc-banner p {
        margin-bottom: 2px;
        font-size: 11px;
        line-height: 1.36;
    }

    .kc-policy-link {
        font-size: 10px;
    }

    .kc-banner-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .kc-banner-actions .kc-button {
        min-height: 36px;
        padding: 8px 6px;
        font-size: 10px;
    }

    .kc-banner-actions .kc-button-plain {
        grid-column: 1 / -1;
        min-height: 24px;
        padding: 3px 5px 0;
    }

    .kc-overlay {
        align-items: end;
        padding: 0;
    }

    .kc-modal {
        width: 100%;
        max-height: 88vh;
        padding: 19px 15px 15px;
        border-top-width: 4px;
    }

    .kc-modal h2 {
        font-size: 18px;
    }

    .kc-modal-intro {
        margin-bottom: 12px;
        font-size: 12px;
    }

    .kc-category {
        gap: 12px;
        padding: 11px 0;
    }

    .kc-category h3 {
        font-size: 13px;
    }

    .kc-category p {
        font-size: 11px;
        line-height: 1.35;
    }

    .kc-modal-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        margin-top: 14px;
    }

    .kc-modal-actions .kc-button:first-child {
        grid-column: 1 / -1;
    }

    .kc-modal-actions .kc-button {
        min-height: 36px;
        padding: 8px 6px;
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    .kc-banner-actions .kc-button {
        font-size: 9.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kc-button,
    .kc-switch span,
    .kc-switch span::after {
        transition: none;
    }
}