/**
 * Tüm temalarda aynı çerez onay tasarımı – sayfanın en altında, sabit.
 * KVKK/GDPR uyumlu tek görünüm.
 */

/* Bar: sayfanın en altında, tam genişlik, en önde (z-index yüksek) */
.cookie-consent-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #0f172a;
  color: #f1f5f9;
  padding: 1rem 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  visibility: hidden;
  pointer-events: none;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

html.cookie-consent-anim .cookie-consent-bar {
  transition: transform 0.3s ease, visibility 0.3s ease;
}

.cookie-consent-bar.cookie-consent-visible {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.cookie-consent-bar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-consent-bar .cookie-consent-message {
  flex: 1;
  min-width: 200px;
  margin: 0;
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.55;
  color: #f8fafc;
}

.cookie-consent-policy-link {
  color: #93c5fd;
  text-decoration: underline;
  font-weight: 500;
}

.cookie-consent-policy-link:hover {
  color: #bfdbfe;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.cookie-consent-btn {
  display: inline-block;
  padding: 0.625rem 1.125rem;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
}

.cookie-consent-btn-accept {
  background: #2563eb;
  color: #fff;
}

.cookie-consent-btn-accept:hover {
  background: #1d4ed8;
  color: #fff;
}

.cookie-consent-btn-reject {
  background: transparent;
  color: #f1f5f9;
  border: 1px solid rgba(241, 245, 249, 0.5);
}

.cookie-consent-btn-reject:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #f1f5f9;
  color: #fff;
}

.cookie-consent-btn-link {
  color: #f1f5f9;
  font-size: 16px;
  text-decoration: none;
  padding: 0.5rem 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
}

.cookie-consent-btn-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Panel: tercihleri özelleştir */
.cookie-consent-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100000;
  background: #1e293b;
  color: #f8fafc;
  padding: 1.5rem 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(100%);
  visibility: hidden;
  pointer-events: none;
  max-height: 85vh;
  overflow-y: auto;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

html.cookie-consent-anim .cookie-consent-panel {
  transition: transform 0.3s ease, visibility 0.3s ease;
}

.cookie-consent-panel.cookie-consent-visible {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.cookie-consent-panel-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.cookie-consent-panel-title {
  margin: 0 0 1.25rem;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.cookie-consent-categories .cookie-consent-category {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cookie-consent-categories .cookie-consent-category:last-child {
  border-bottom: 0;
}

.cookie-consent-category-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.cookie-consent-category-row strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.cookie-consent-panel .cookie-consent-category-desc {
  margin: 6px 0 0;
  margin-bottom: 0;
  font-size: 16px;
  color: #e2e8f0;
  line-height: 1.55;
}

.cookie-consent-checkbox {
  -webkit-appearance: checkbox !important;
  appearance: checkbox !important;
  position: static !important;
  opacity: 1 !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px;
  min-height: 22px;
  margin: 0.15rem 0 0 !important;
  padding: 0 !important;
  flex-shrink: 0;
  accent-color: #2563eb;
  cursor: pointer;
  background: #fff !important;
  border: 2px solid #94a3b8 !important;
  border-radius: 4px;
  vertical-align: top;
}

.cookie-consent-checkbox:checked {
  border-color: #2563eb !important;
}

.cookie-consent-checkbox:disabled {
  cursor: default;
  opacity: 0.9 !important;
  background: #e2e8f0 !important;
  border-color: #64748b !important;
}

.cookie-consent-checkbox:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.cookie-consent-panel .cookie-consent-panel-hint {
  margin: 1.25rem 0 0;
  margin-bottom: 0;
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.55;
}

.cookie-consent-panel-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.cookie-consent-panel-actions .cookie-consent-btn {
  padding: 0.7rem 1.35rem;
  font-size: 16px;
}

.cookie-consent-panel-actions #cookie-consent-accept-all-panel {
  margin-left: auto;
}
