/*
 * Atılgan Otomotiv - çerez bandı
 * Sitenin kendi çerez onay bandı (bkz. assets/js/cerez-bandi.js). Görünüm, WordPress sürümündeki
 * bantla aynıdır: sol altta kutu, "Özelleştir" penceresi, onaydan sonra köşede tercih düğmesi.
 */

/* ---------- Bildirim kutusu ---------- */
.cb-banner {
  position: fixed;
  bottom: 20px;
  left: 15px;
  width: 25%;
  box-sizing: border-box;
  z-index: 99999;
  display: none;
}
.cb-banner.is-open { display: block; }

.cb-inner {
  color: #000;
  background-color: #fff;
  border: 1px solid #abb8c3;
  padding: 15px;
  border-radius: 4px;
  box-shadow: 1px 3px 10px rgba(0, 0, 0, 0.2);
}

#cb-title {
  font-weight: 601;
  margin: 0;
  padding-left: 5px;
  color: #000;
}

.cb-notice-wrap {
  font-size: initial;
  padding: 0 6px;
}

#cb-notice { color: #000; }

.cb-buttons {
  align-content: center;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

/* ---------- Butonlar ---------- */
button.cb-btn {
  background-color: transparent;
  border: 1px solid gray;
  color: #1863dc;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  margin: 2px 5px;
  cursor: pointer;
  flex: auto;
  text-wrap: auto;
}
button.cb-btn:hover { opacity: 0.8; }
button.cb-btn.cb-light { color: #000; background-color: #fff; }
button.cb-btn.cb-primary { color: #fff; background-color: #1863dc; }

/* ---------- Tercihler penceresi ---------- */
.cb-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}
.cb-overlay.is-open { display: block; }

.cb-modal {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 10%;
  left: 22%;
  max-width: 60vw;
  max-height: 80vh;
  background-color: #fff;
  border: 1px solid #000;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 999999;
}
.cb-modal.is-open { display: flex; }

.cb-modal label,
.cb-modal input {
  padding: 5px;
  margin-right: 5px;
  font-size: 15px;
}
.cb-modal label { font-weight: 501; }

.cb-modal-head {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  border-bottom: 1px solid #ccc;
}

.cb-modal-title {
  font-size: 20px;
  font-weight: 801;
  margin: 9px;
  color: #000;
}

.cb-close {
  background: none;
  border: none;
  align-self: baseline;
  color: gray;
  cursor: pointer;
  padding: 0;
}

.cb-modal-body {
  padding: 0 15px;
  height: calc(100% - 6%);
  overflow: auto;
  scrollbar-width: thin;
  color: #000;
}

.cb-pref-details { padding: 0 10px; }

.cb-pref-text {
  overflow: auto;
  font-size: 15px;
  height: auto;
  padding: 10px 0;
}

.cb-type {
  padding: 10px;
  border-top: 1px solid #ccc;
}

.cb-type-head {
  display: flex;
  justify-content: space-between;
}
.cb-type-head > span > label { cursor: pointer; }

.cb-expand {
  cursor: pointer;
  font-size: 18px;
  font-family: initial;
}

.cb-always {
  display: inline;
  color: #1863dc;
}

.cb-desc {
  padding: 5px 4rem 5px 20px;
  font-size: 15px;
}

.cb-cookie-list {
  display: none;
  padding: 1px;
  border-radius: 10px;
  margin: 0 4rem 0 20px;
  font-size: 1rem;
  text-align: center;
}
.cb-cookie-list.is-open { display: block; }

.cb-modal-footer {
  padding: 15px;
  border-top: 1px solid #ccc;
}

/* ---------- Açma/kapama düğmesi ---------- */
.cb-toggle {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 11px;
}
.cb-toggle input { display: none; }

.cb-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 21px;
  width: 34px;
  background-color: #808080;
  transition: 0.4s;
  border-radius: 34px;
}
.cb-slider:before {
  position: absolute;
  content: "";
  height: 15px;
  width: 15px;
  left: 3.2px;
  bottom: 3.2px;
  background-color: #fff;
  transition: 0.2s;
  border-radius: 50%;
}
input:checked + .cb-slider { background-color: #3582c4; }
input:checked + .cb-slider:before { transform: translateX(13px); }

/* ---------- Onaydan sonra köşedeki tercih düğmesi ---------- */
button.cb-reconsent {
  display: none;
  position: fixed;
  bottom: 15px;
  left: 15px;
  background-color: #374fd4;
  height: 50px;
  width: 50px;
  border-radius: 50%;
  cursor: pointer;
  border: 0;
  z-index: 99999;
  padding: 5px;
  box-shadow: -4px 5px 10px rgba(0, 0, 0, 0.4);
}
button.cb-reconsent.is-open { display: block; }
button.cb-reconsent svg { display: block; width: 40px; height: 40px; }

/* ---------- Ekran boyutları ---------- */
@media (max-width: 767px) {
  .cb-banner { width: 90%; }
  .cb-modal { top: 10%; left: 5%; max-width: 90vw; }
  .cb-expand { font-size: 14px; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .cb-banner { width: 45%; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .cb-banner { width: 35%; }
}
@media (min-width: 1200px) and (max-width: 1360px) {
  .cb-banner { width: 30%; }
}
@media (max-width: 480px) {
  .cb-inner .cb-btn { width: 100%; margin: 5px 0; }
  .cb-modal-footer { padding: 8px; }
}
