/* Liv Geri Bildirim — ayrıntı penceresi.
   Kartın kendisinin stili temadadır (liv-theme/css/global-template.css →
   .feedback-card / .feedback-btn); bu dosya karta DOKUNMAZ. Renkler Liv
   temasıyla uyumlu: birincil #1c92e9 (--liv-primary), başarı #10b981. */

.livh-gbm {
  --livh-gb-birincil: var(--liv-primary, #1c92e9);
  --livh-gb-basari: #10b981;
  --livh-gb-metin: #1f2937;
  --livh-gb-soluk: #64748b;
  --livh-gb-cizgi: #e5e7eb;
  --livh-gb-zemin: #f8fafc;
  --livh-gb-hata: #b91c1c;

  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 32px);
  font-family: inherit;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.livh-gbm[hidden] {
  display: none;
}

.livh-gbm.is-acik {
  opacity: 1;
}

html.livh-gbm-acik {
  overflow: hidden;
}

.livh-gbm__perde {
  position: absolute;
  inset: 0;
  background: rgb(15 23 42 / 50%);
  backdrop-filter: blur(3px);
}

.livh-gbm__kutu {
  position: relative;
  box-sizing: border-box;
  width: min(520px, 100%);
  max-height: calc(100vh - 2 * clamp(16px, 4vw, 32px));
  overflow-y: auto;
  padding: clamp(22px, 3.4vw, 32px);
  color: var(--livh-gb-metin);
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgb(15 23 42 / 25%);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.livh-gbm.is-acik .livh-gbm__kutu {
  transform: none;
}

.livh-gbm__kutu:focus {
  outline: none;
}

.livh-gbm__kapat {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--livh-gb-soluk);
  cursor: pointer;
  background: var(--livh-gb-zemin);
  border: 0;
  border-radius: 50%;
  transition: color 0.2s, background-color 0.2s;
}

.livh-gbm__kapat:hover {
  color: var(--livh-gb-metin);
  background: #eef2f7;
}

.livh-gbm__baslik {
  margin: 0;
  padding-right: 40px;
  font-size: clamp(1.15rem, 2.4vw, 1.375rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--livh-gb-metin);
}

.livh-gbm__alt {
  margin: 6px 0 18px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--livh-gb-soluk);
}

.livh-gbm__form[hidden],
.livh-gbm__bitti[hidden],
.livh-gbm__hata[hidden],
.livh-gbm__etiket[hidden] {
  display: none;
}

.livh-gbm__etiketler {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.livh-gbm__etiket {
  padding: 9px 16px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--livh-gb-soluk);
  cursor: pointer;
  background: #fff;
  border: 2px solid var(--livh-gb-cizgi);
  border-radius: 50px;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.livh-gbm__etiket:hover {
  color: var(--livh-gb-birincil);
  border-color: var(--livh-gb-birincil);
}

.livh-gbm__etiket.is-secili {
  color: #fff;
  background: var(--livh-gb-birincil);
  border-color: var(--livh-gb-birincil);
}

.livh-gbm__not,
.livh-gbm__iletisim input {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--livh-gb-metin);
  background: #fff;
  border: 1px solid var(--livh-gb-cizgi);
  border-radius: 14px;
}

.livh-gbm__not {
  resize: vertical;
  min-height: 84px;
}

.livh-gbm__not:focus,
.livh-gbm__iletisim input:focus {
  border-color: var(--livh-gb-birincil);
  outline: none;
  box-shadow: 0 0 0 3px rgb(28 146 233 / 15%);
}

.livh-gbm__ipucu {
  margin: 14px 0 8px;
  font-size: 0.8125rem;
  color: var(--livh-gb-soluk);
}

.livh-gbm__iletisim {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.livh-gbm__onay {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0 14px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--livh-gb-soluk);
  cursor: pointer;
}

.livh-gbm__onay input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--livh-gb-birincil);
}

.livh-gbm__onay a {
  font-weight: 600;
  color: var(--livh-gb-birincil);
}

.livh-gbm__hata {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--livh-gb-hata);
}

.livh-gbm__gonder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  padding: 0 20px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: var(--livh-gb-birincil);
  border: 0;
  border-radius: 50px;
  transition: filter 0.2s, background-color 0.2s;
}

.livh-gbm__gonder:hover:not(:disabled) {
  filter: brightness(1.08);
}

/* Onay verilmeden gönderilemez — kişisel veri açık rıza ister. */
.livh-gbm__gonder:disabled {
  color: #94a3b8;
  background: #e8edf4;
  cursor: not-allowed;
}

.livh-gbm__bitti {
  margin: 8px 0 0;
  padding: 20px;
  font-weight: 600;
  text-align: center;
  color: var(--livh-gb-basari);
}

.livh-gbm__bitti:focus {
  outline: none;
}

/* Ekran okuyucu metni (temada .screen-reader-text olmayabilir). */
.livh-gbm__sr,
.livh-gbm__bal {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Bal küpü ekranın dışına da itilir (bazı botlar clip'i tanır). */
.livh-gbm__bal {
  left: -9999px;
}

@media (prefers-reduced-motion: reduce) {
  .livh-gbm,
  .livh-gbm__kutu,
  .livh-gbm__etiket,
  .livh-gbm__gonder {
    transition: none;
  }
}

/* Widget: kaydırırken yapışkan. */
.livh-gb-yapiskan {
  position: sticky;
  top: calc(var(--wp-admin--admin-bar--height, 0px) + 96px);
}
