/* Taxi To Antalya Cookie Consent — light trust-first theme */

:root {
  --tta-cc-bg: #f7f8fa;
  --tta-cc-fg: #12151a;
  --tta-cc-muted: #5c6570;
  --tta-cc-accent: #c4920f;
  --tta-cc-accent-fg: #1a1408;
  --tta-cc-solid: #12151a;
  --tta-cc-border: rgba(18, 21, 26, 0.14);
  --tta-cc-radius: 2px;
  --tta-cc-shadow: 0 -8px 32px rgba(15, 23, 32, 0.18);
  --tta-cc-font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.tta-cc {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 999999;
  padding: 16px 18px;
  background: var(--tta-cc-bg);
  color: var(--tta-cc-fg);
  font-family: var(--tta-cc-font);
  box-shadow: var(--tta-cc-shadow);
  border-top: 1px solid var(--tta-cc-border);
}

.tta-cc--bottom {
  bottom: 0;
}

.tta-cc--top {
  top: 0;
  border-top: 0;
  border-bottom: 1px solid var(--tta-cc-border);
  box-shadow: 0 8px 32px rgba(15, 23, 32, 0.18);
}

.tta-cc[hidden] {
  display: none !important;
}

.tta-cc__panel {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  justify-content: space-between;
}

.tta-cc__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.tta-cc__message {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--tta-cc-muted);
  max-width: 64ch;
}

.tta-cc__privacy {
  color: var(--tta-cc-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 4px;
}

.tta-cc__privacy:hover,
.tta-cc__privacy:focus-visible {
  color: #a67a0c;
}

.tta-cc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.tta-cc__btn {
  appearance: none;
  border: 1px solid var(--tta-cc-border);
  background: transparent;
  color: var(--tta-cc-fg);
  border-radius: var(--tta-cc-radius);
  padding: 11px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    filter 0.15s ease;
}

.tta-cc__btn:hover,
.tta-cc__btn:focus-visible {
  outline: none;
  background: rgba(18, 21, 26, 0.05);
}

.tta-cc__btn:active {
  transform: translateY(1px);
}

/* Üçüncül: tercihler */
.tta-cc__btn--prefs {
  background: transparent;
  border-color: var(--tta-cc-border);
  color: var(--tta-cc-fg);
}

.tta-cc__btn--prefs:hover,
.tta-cc__btn--prefs:focus-visible {
  border-color: var(--tta-cc-muted);
  background: rgba(18, 21, 26, 0.04);
}

/* İkincil: yalnızca gerekli */
.tta-cc__btn--deny {
  background: transparent;
  border-color: var(--tta-cc-fg);
  color: var(--tta-cc-fg);
}

.tta-cc__btn--deny:hover,
.tta-cc__btn--deny:focus-visible {
  background: var(--tta-cc-fg);
  color: #fff;
  filter: none;
}

/* Birincil: kabul / kaydet */
.tta-cc__btn--accept {
  background: var(--tta-cc-accent);
  border-color: var(--tta-cc-accent);
  color: var(--tta-cc-accent-fg);
}

.tta-cc__btn--accept:hover,
.tta-cc__btn--accept:focus-visible {
  background: #b3840d;
  border-color: #b3840d;
  color: var(--tta-cc-accent-fg);
  filter: none;
}

.tta-cc__btn--save {
  margin-top: 4px;
  justify-self: start;
}

.tta-cc__prefs {
  max-width: 1100px;
  margin: 16px auto 0;
  padding-top: 14px;
  border-top: 1px solid var(--tta-cc-border);
  display: grid;
  gap: 14px;
}

.tta-cc__prefs[hidden] {
  display: none !important;
}

.tta-cc__prefs-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.tta-cc__cat {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 10px 0;
  border-bottom: 1px solid var(--tta-cc-border);
}

.tta-cc__cat--locked {
  cursor: default;
}

.tta-cc__cat-text {
  flex: 1;
  min-width: 0;
}

.tta-cc__cat strong {
  display: block;
  color: var(--tta-cc-fg);
  margin-bottom: 4px;
}

.tta-cc__cat small {
  display: block;
  color: var(--tta-cc-muted);
  line-height: 1.4;
}

.tta-cc__state {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--tta-cc-accent);
  white-space: nowrap;
  padding-top: 2px;
}

/* Aç / kapa switch */
.tta-cc__switch {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  min-width: 72px;
}

.tta-cc__switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.tta-cc__slider {
  width: 44px;
  height: 24px;
  background: #c5cbd3;
  border-radius: 999px;
  position: relative;
  transition: background 0.2s ease;
}

.tta-cc__slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(18, 21, 26, 0.25);
  transition: transform 0.2s ease;
}

.tta-cc__switch input:checked + .tta-cc__slider {
  background: var(--tta-cc-accent);
}

.tta-cc__switch input:checked + .tta-cc__slider::after {
  transform: translateX(20px);
}

.tta-cc__switch input:focus-visible + .tta-cc__slider {
  outline: 2px solid var(--tta-cc-accent);
  outline-offset: 2px;
}

.tta-cc__switch-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--tta-cc-muted);
  text-align: center;
}

@media (max-width: 720px) {
  .tta-cc__panel {
    flex-direction: column;
    align-items: stretch;
  }

  .tta-cc__actions {
    width: 100%;
    flex-direction: column;
  }

  .tta-cc__btn {
    width: 100%;
    text-align: center;
  }

  .tta-cc__cat {
    flex-direction: column;
    gap: 10px;
  }

  .tta-cc__switch {
    align-self: flex-start;
    flex-direction: row;
    min-width: 0;
  }
}
