/* ==========================================================================
   MüşteriBulucu.online - Modern KVKK & GDPR Uyumlu Çerez Tercih Modalı
   Sitenin Neumorphic / Glassmorphism Tasarım Diliyle %100 Uyumlu
   ========================================================================== */

#mbo-cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

#mbo-cookie-overlay.mbo-visible {
  opacity: 1;
  visibility: visible;
}

#mbo-cookie-modal {
  background: #ffffff;
  border-radius: 22px;
  max-width: 480px;
  width: 100%;
  padding: 26px 24px 22px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.06);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #1e293b;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

#mbo-cookie-overlay.mbo-visible #mbo-cookie-modal {
  transform: translateY(0) scale(1);
}

.mbo-cm-header {
  text-align: center;
  margin-bottom: 16px;
}

.mbo-cm-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(5, 150, 105, 0.22));
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.mbo-cm-title {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.mbo-cm-desc {
  font-size: 0.86rem;
  line-height: 1.55;
  color: #64748b;
  margin: 0;
}

.mbo-cm-desc a {
  color: #059669;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  transition: color 0.2s;
}

.mbo-cm-desc a:hover {
  color: #047857;
}

/* Kategori Kutusu */
.mbo-cm-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
}

.mbo-cm-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  transition: border-color 0.2s, background-color 0.2s;
}

.mbo-cm-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.mbo-cm-item-info {
  flex: 1;
}

.mbo-cm-item-title {
  font-size: 0.90rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.mbo-cm-badge {
  font-size: 0.70rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.mbo-cm-badge-req {
  background: #e0f2fe;
  color: #0369a1;
}

.mbo-cm-badge-opt {
  background: #fef3c7;
  color: #92400e;
}

.mbo-cm-item-desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #64748b;
  margin: 0;
}

/* Switch Toggle (iOS / Neumorphic Style) */
.mbo-cm-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.mbo-cm-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.25s ease;
  border-radius: 24px;
}

.mbo-cm-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s ease;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mbo-cm-switch input:checked + .mbo-cm-slider {
  background: linear-gradient(135deg, #10b981, #059669);
}

.mbo-cm-switch input:focus + .mbo-cm-slider {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.mbo-cm-switch input:checked + .mbo-cm-slider:before {
  transform: translateX(20px);
}

.mbo-cm-switch input:disabled + .mbo-cm-slider {
  opacity: 0.75;
  cursor: not-allowed;
}

/* Buton Aksiyonları */
.mbo-cm-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

.mbo-cm-btn-row {
  display: flex;
  gap: 8px;
}

.mbo-cm-btn {
  border: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  width: 100%;
}

.mbo-cm-btn-accept {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.mbo-cm-btn-accept:hover {
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
}

.mbo-cm-btn-reject {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.mbo-cm-btn-reject:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.mbo-cm-btn-save {
  background: transparent;
  color: #059669;
  font-size: 0.82rem;
  padding: 6px 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mbo-cm-btn-save:hover {
  color: #047857;
}

/* Yüzen Çerez Ayarı Butonu (Floating Reopen Widget) */
#mbo-cookie-reopen-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 99998;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
  padding: 0;
}

#mbo-cookie-reopen-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
  border-color: #10b981;
}

#mbo-cookie-reopen-btn:active {
  transform: scale(0.95);
}

@media (max-width: 480px) {
  #mbo-cookie-modal {
    padding: 22px 18px 18px;
    border-radius: 18px;
  }
  .mbo-cm-btn-row {
    flex-direction: column;
  }
  #mbo-cookie-reopen-btn {
    bottom: 16px;
    left: 16px;
    width: 38px;
    height: 38px;
    font-size: 17px;
  }
}
