/* Çerez onayı — ortada modal + tercih merkezi */
.px-cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.px-cookie-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.px-cookie-overlay[hidden] {
  display: none !important;
}

/* —— İlk onay paneli —— */
.px-cookie-intro {
  width: min(720px, 100%);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.px-cookie-intro__main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
}

.px-cookie-intro__left {
  padding: 1.5rem 1.6rem;
}

.px-cookie-intro__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.01em;
}

.px-cookie-intro__text {
  margin: 0.65rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #64748b;
}

.px-cookie-intro__right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.5rem 1.4rem;
  border-left: 1px solid #e8ecf1;
  min-width: 15.5rem;
}

.px-cookie-intro__row {
  display: flex;
  gap: 0.5rem;
}

.px-cookie-intro__footer {
  background: #eef1f4;
  padding: 0.7rem 1.5rem;
}

.px-cookie-intro__footer a {
  font-size: 0.8125rem;
  color: #64748b;
  text-decoration: none;
}

.px-cookie-intro__footer a:hover {
  color: #0f172a;
  text-decoration: underline;
}

/* —— Tercih merkezi —— */
.px-cookie-prefs {
  width: min(640px, 100%);
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.px-cookie-prefs[hidden] {
  display: none !important;
}

.px-cookie-prefs__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem 0.85rem;
  flex-shrink: 0;
}

.px-cookie-prefs__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
}

.px-cookie-prefs__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 8px;
  background: #eef1f4;
  color: #475569;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}

.px-cookie-prefs__close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.px-cookie-prefs__body {
  padding: 0 1.35rem 1rem;
  overflow-y: auto;
  flex: 1 1 auto;
}

.px-cookie-prefs__lead-title {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
}

.px-cookie-prefs__lead {
  margin: 0.4rem 0 1rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #64748b;
}

.px-cookie-acc {
  margin-bottom: 0.55rem;
  border-radius: 10px;
  background: #f1f4f7;
  overflow: hidden;
}

.px-cookie-acc__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
}

.px-cookie-acc__chev {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: #64748b;
  transition: transform 0.18s ease;
}

.px-cookie-acc.is-open .px-cookie-acc__chev {
  transform: rotate(180deg);
}

.px-cookie-acc__label {
  flex: 1 1 auto;
}

.px-cookie-acc__panel {
  display: none;
  padding: 0 1rem 1rem 2.5rem;
}

.px-cookie-acc.is-open .px-cookie-acc__panel {
  display: block;
}

.px-cookie-acc__desc {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #64748b;
}

.px-cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  color: #475569;
}

.px-cookie-table th,
.px-cookie-table td {
  padding: 0.4rem 0.5rem 0.4rem 0;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

.px-cookie-table th {
  font-weight: 700;
  color: #334155;
}

.px-cookie-table code {
  font-size: 0.72rem;
}

/* Toggle */
.px-cookie-toggle {
  position: relative;
  flex-shrink: 0;
  width: 2.6rem;
  height: 1.45rem;
  border-radius: 999px;
  border: 0;
  background: #94a3b8;
  cursor: pointer;
  padding: 0;
  transition: background 0.18s ease;
}

.px-cookie-toggle::after {
  content: "";
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
  transition: transform 0.18s ease;
}

.px-cookie-toggle.is-on {
  background: #64748b;
}

.px-cookie-toggle.is-on::after {
  transform: translateX(1.15rem);
}

.px-cookie-toggle[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  background: #94a3b8;
  pointer-events: none;
}

.px-cookie-toggle[aria-disabled="true"].is-on::after {
  transform: translateX(1.15rem);
}

.px-cookie-info {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

.px-cookie-info__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
}

.px-cookie-info__text {
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #64748b;
}

.px-cookie-info__text a {
  color: #1e293b;
  font-weight: 700;
  text-decoration: underline;
}

.px-cookie-prefs__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.35rem 1.15rem;
  border-top: 1px solid #eef1f4;
  flex-shrink: 0;
}

.px-cookie-prefs__foot-left {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1 1 auto;
}

.px-cookie-prefs__foot-right {
  margin-left: auto;
}

/* Butonlar */
.px-cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.px-cookie-btn--dark {
  background: #2d3436;
  color: #fff;
}

.px-cookie-btn--dark:hover {
  background: #1e2426;
}

.px-cookie-btn--muted {
  background: #eef1f4;
  color: #334155;
}

.px-cookie-btn--muted:hover {
  background: #e2e8f0;
}

.px-cookie-btn--ghost {
  background: #f4f6f8;
  color: #334155;
}

.px-cookie-btn--ghost:hover {
  background: #e8ecf0;
}

.px-cookie-intro__row .px-cookie-btn {
  flex: 1 1 0;
}

.px-cookie-intro__right > .px-cookie-btn {
  width: 100%;
}

/* —— KVKK metin paneli (aynı overlay içinde) —— */
.px-cookie-kvkk {
  width: min(640px, 100%);
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.px-cookie-kvkk[hidden] {
  display: none !important;
}

.px-cookie-kvkk__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem 0.85rem;
  flex-shrink: 0;
  border-bottom: 1px solid #eef1f4;
}

.px-cookie-kvkk__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
}

.px-cookie-kvkk__body {
  padding: 1rem 1.35rem 1.25rem;
  overflow-y: auto;
  flex: 1 1 auto;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #475569;
}

.px-cookie-kvkk__meta {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.px-cookie-kvkk__body section {
  margin-bottom: 1rem;
}

.px-cookie-kvkk__body h3 {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.px-cookie-kvkk__body p {
  margin: 0;
}

.px-cookie-kvkk__foot {
  padding: 0.85rem 1.35rem 1.1rem;
  border-top: 1px solid #eef1f4;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .px-cookie-intro__main {
    grid-template-columns: 1fr;
  }

  .px-cookie-intro__right {
    border-left: 0;
    border-top: 1px solid #e8ecf1;
    min-width: 0;
    padding-top: 1rem;
  }

  .px-cookie-prefs__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .px-cookie-prefs__foot-right {
    margin-left: 0;
  }

  .px-cookie-prefs__foot .px-cookie-btn {
    width: 100%;
  }

  .px-cookie-acc__panel {
    padding-left: 1rem;
  }

  .px-cookie-table {
    display: block;
    overflow-x: auto;
  }
}
