/* =============================================
   Tiryandafil Otel – Çerez Onay Bandı
   ============================================= */

/* ---------- Banner ana kapsayıcı ---------- */
#cookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #fff;
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.13);
    transform: translateY(110%);
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 3px solid #8B6914;
    font-family: inherit;
}

#cookieBanner.cb-show {
    transform: translateY(0);
}

/* ---------- İç kapsayıcı ---------- */
.cb-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 24px;
}

/* ---------- Üst satır: ikon + başlık + kapat ---------- */
.cb-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.cb-icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}

.cb-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2d2d2d;
    flex: 1;
    margin: 0;
}

/* ---------- Kısa açıklama ---------- */
.cb-desc {
    color: #555;
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 14px;
}

.cb-desc a {
    color: #8B6914;
    text-decoration: underline;
}

/* ---------- "Detayları Göster" toggle ---------- */
.cb-toggle-details {
    background: none;
    border: none;
    color: #8B6914;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.2s;
}

.cb-toggle-details:hover { opacity: 0.75; }

.cb-toggle-details .cb-arrow {
    display: inline-block;
    transition: transform 0.3s;
    font-size: 0.7rem;
}

.cb-toggle-details.open .cb-arrow {
    transform: rotate(180deg);
}

/* ---------- Detay paneli ---------- */
.cb-details {
    display: none;
    border-top: 1px solid #eee;
    margin-top: 14px;
    padding-top: 14px;
}

.cb-details.cb-open {
    display: block;
}

/* ---------- Tekil çerez satırı ---------- */
.cb-cookie-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f2f2f2;
}

.cb-cookie-row:last-child {
    border-bottom: none;
}

.cb-cookie-info {
    flex: 1;
}

.cb-cookie-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2d2d2d;
    margin: 0 0 4px;
}

.cb-cookie-text {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* ---------- Toggle switch ---------- */
.cb-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

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

.cb-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 34px;
    transition: background 0.25s;
}

.cb-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.cb-switch input:checked + .cb-slider {
    background: #8B6914;
}

.cb-switch input:checked + .cb-slider::before {
    transform: translateX(18px);
}

.cb-switch input:disabled + .cb-slider {
    background: #8B6914;
    cursor: not-allowed;
    opacity: 0.75;
}

/* ---------- Butonlar ---------- */
.cb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    align-items: center;
}

.cb-btn {
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
    white-space: nowrap;
}

.cb-btn:hover { opacity: 0.88; }

/* Tümünü Kabul Et */
.cb-btn-accept-all {
    background: #8B6914;
    color: #fff;
    border-color: #8B6914;
}

/* Sadece Zorunlu */
.cb-btn-accept-min {
    background: #fff;
    color: #8B6914;
    border-color: #8B6914;
}

/* Tercihleri Kaydet (detay açıkken görünür) */
.cb-btn-save {
    background: #fff;
    color: #555;
    border-color: #ccc;
    display: none;
}

.cb-btn-save.cb-visible {
    display: inline-block;
}

/* ---------- Responsive ---------- */
@media (max-width: 576px) {
    .cb-inner {
        padding: 16px;
    }

    .cb-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cb-btn {
        text-align: center;
        width: 100%;
    }
}
