/* ===== KVKK / Çerez Onay Banner'ı ===== */
.cc-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 720px;
    margin: 0 auto;
    background: #ffffff;
    color: #171717;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
    padding: 24px 28px;
    z-index: 99999;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    transform: translateY(150%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}
.cc-banner.cc-visible {
    transform: translateY(0);
    opacity: 1;
}
.cc-banner h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #010101;
}
.cc-banner p {
    margin: 0 0 16px;
    color: #4a4a4a;
}
.cc-banner a {
    color: #4567ed;
    text-decoration: underline;
}
.cc-banner a:hover { color: #375ae3; }
.cc-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.cc-btn {
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    flex: 1 1 auto;
    min-width: 120px;
    text-align: center;
}
.cc-btn-primary {
    background: #4567ed;
    color: #ffffff;
}
.cc-btn-primary:hover {
    background: #375ae3;
    transform: translateY(-1px);
}
.cc-btn-secondary {
    background: #f4f4f5;
    color: #171717;
    border-color: #e4e4e7;
}
.cc-btn-secondary:hover {
    background: #e4e4e7;
}
.cc-btn-text {
    background: transparent;
    color: #4567ed;
    border-color: transparent;
}
.cc-btn-text:hover {
    background: #f0f4ff;
}

/* ===== Tercihler Modal ===== */
.cc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.cc-modal-overlay.cc-visible { display: flex; }
.cc-modal {
    background: #ffffff;
    border-radius: 14px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    font-family: 'DM Sans', sans-serif;
    color: #171717;
}
.cc-modal h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #010101;
}
.cc-modal > p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 24px;
}
.cc-cat {
    border: 1px solid #e4e4e7;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 12px;
}
.cc-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}
.cc-cat-title {
    font-weight: 600;
    font-size: 15px;
    color: #010101;
}
.cc-cat-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}
.cc-required-label {
    font-size: 12px;
    color: #16a34a;
    font-weight: 600;
    padding: 4px 10px;
    background: #dcfce7;
    border-radius: 999px;
}

/* Toggle switch */
.cc-toggle {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}
.cc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.cc-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #d4d4d8;
    transition: 0.25s;
    border-radius: 999px;
}
.cc-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    transition: 0.25s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.cc-toggle input:checked + .cc-slider {
    background: #4567ed;
}
.cc-toggle input:checked + .cc-slider::before {
    transform: translateX(18px);
}
.cc-toggle input:disabled + .cc-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cc-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* Floating settings button (alt köşede) */
.cc-settings-fab {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    color: #4567ed;
    border: 1px solid #e4e4e7;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s ease;
}
.cc-settings-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.cc-settings-fab.cc-visible { display: flex; }

/* Mobile */
@media (max-width: 600px) {
    .cc-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 20px;
    }
    .cc-banner h3 { font-size: 16px; }
    .cc-banner p { font-size: 13px; }
    .cc-modal { padding: 22px; }
    .cc-btn { min-width: 100%; }
}
