.th-consent-banner[hidden],
.th-consent-modal[hidden],
.th-consent-preference-button[hidden],
.th-consent-youtube-placeholder[hidden] { display: none !important; }

.th-consent-banner,
.th-consent-modal,
.th-consent-preference-button,
.th-consent-youtube-wrap { box-sizing: border-box; }

.th-consent-banner {
  position: fixed;
  z-index: 2147483000;
  right: 18px;
  bottom: 18px;
  left: 18px;
  max-width: 1120px;
  margin: 0 auto;
  color: #0f172a;
  font-family: inherit;
}

.th-consent-banner-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid #d8e1ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(15, 23, 42, .22);
}

.th-consent-copy h2 {
  margin: 0 0 7px;
  color: #061b46;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 900;
}

.th-consent-copy p {
  margin: 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.55;
}

.th-consent-copy a {
  color: #0b5ed7;
  font-weight: 700;
  text-underline-offset: 2px;
}

.th-consent-actions,
.th-consent-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.th-consent-actions { justify-content: flex-end; }

.th-consent-button {
  min-height: 42px;
  padding: 10px 15px;
  border: 2px solid #061b46;
  border-radius: 10px;
  background: #fff;
  color: #061b46;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 850;
  cursor: pointer;
}

.th-consent-button:hover,
.th-consent-button:focus-visible {
  background: #eef4fb;
  outline: 3px solid rgba(11, 94, 215, .2);
  outline-offset: 2px;
}

.th-consent-button.is-primary {
  border-color: #0b5ed7;
  background: #0b5ed7;
  color: #fff;
}

.th-consent-button.is-primary:hover,
.th-consent-button.is-primary:focus-visible { background: #084ba9; }

.th-consent-modal {
  position: fixed;
  z-index: 2147483001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.th-consent-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 23, .58);
}

.th-consent-modal-card {
  position: relative;
  width: min(100%, 620px);
  max-height: min(88vh, 760px);
  overflow-y: auto;
  padding: 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 75px rgba(0, 0, 0, .32);
}

.th-consent-modal-card > h2 {
  margin: 0 0 16px;
  color: #061b46;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 950;
}

.th-consent-preference-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid #e5eaf1;
}

.th-consent-preference-row strong { color: #0f172a; font-size: 15px; }
.th-consent-preference-row p { margin: 4px 0 0; color: #475569; font-size: 13px; line-height: 1.5; }

.th-consent-switch { position: relative; display: inline-flex; align-items: center; }
.th-consent-switch input { position: absolute; opacity: 0; pointer-events: none; }
.th-consent-switch span {
  position: relative;
  display: block;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #94a3b8;
  cursor: pointer;
  transition: background .18s ease;
}
.th-consent-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .22);
  transition: transform .18s ease;
}
.th-consent-switch input:checked + span { background: #0b5ed7; }
.th-consent-switch input:checked + span::after { transform: translateX(20px); }
.th-consent-switch input:disabled + span { background: #0b5ed7; opacity: .72; cursor: not-allowed; }

.th-consent-modal-actions {
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid #e5eaf1;
}

.th-consent-preference-button {
  position: fixed;
  z-index: 2147482998;
  left: 14px;
  bottom: 14px;
  padding: 8px 11px;
  border: 1px solid #c8d5e6;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  box-shadow: 0 5px 18px rgba(15, 23, 42, .13);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.th-consent-youtube-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.th-consent-youtube-frame {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  border: 0 !important;
}

.th-consent-youtube-placeholder {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 24px;
  background: radial-gradient(circle at 20% 15%, rgba(37, 99, 235, .32), transparent 36%), linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  text-align: center;
}

.th-consent-youtube-placeholder p {
  margin: 0;
  color: #fff !important;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 750;
}

.th-consent-youtube-placeholder button {
  justify-self: center;
  padding: 9px 13px;
  border: 2px solid #fff;
  border-radius: 9px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

@media (max-width: 820px) {
  .th-consent-banner { right: 8px; bottom: 8px; left: 8px; }
  .th-consent-banner-inner { grid-template-columns: 1fr; gap: 15px; padding: 17px; }
  .th-consent-actions { display: grid; grid-template-columns: 1fr; }
  .th-consent-button { width: 100%; }
  .th-consent-modal-card { padding: 19px 16px; border-radius: 17px; }
  .th-consent-modal-actions { display: grid; grid-template-columns: 1fr; }
}


/* v1.0.2 — Kompakt ilk izin bannerı */
.th-consent-banner {
  right: 18px !important;
  bottom: 18px !important;
  left: auto !important;
  width: min(92vw, 560px) !important;
  max-width: 560px !important;
  margin: 0 !important;
}

.th-consent-banner-inner {
  display: block !important;
  padding: 15px 16px 14px !important;
  border-radius: 14px !important;
  box-shadow: 0 14px 38px rgba(15, 23, 42, .20) !important;
}

.th-consent-copy h2 {
  margin: 0 0 5px !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
}

.th-consent-copy p {
  margin: 0 !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
}

.th-consent-actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
  gap: 7px !important;
  margin-top: 11px !important;
}

.th-consent-actions .th-consent-button {
  width: auto !important;
  min-height: 35px !important;
  padding: 7px 11px !important;
  border-width: 1px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

@media (max-width: 820px) {
  .th-consent-banner {
    right: 8px !important;
    bottom: 8px !important;
    left: 8px !important;
    width: auto !important;
    max-width: none !important;
  }

  .th-consent-banner-inner {
    padding: 13px 13px 12px !important;
    border-radius: 12px !important;
  }

  .th-consent-copy h2 {
    font-size: 15px !important;
  }

  .th-consent-copy p {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  .th-consent-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin-top: 10px !important;
  }

  .th-consent-actions .th-consent-button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 34px !important;
    padding: 7px 5px !important;
    font-size: 11px !important;
    white-space: normal !important;
  }
}

@media (max-width: 430px) {
  .th-consent-actions {
    grid-template-columns: 1fr 1fr !important;
  }

  .th-consent-actions .th-consent-button:last-child {
    grid-column: 1 / -1 !important;
  }
}
