/* Odeme penceresi (dialog) ve odeme sonuc sayfasi. Renkler style.css degiskenlerinden gelir. */

[hidden] { display: none !important; }

/* <button class="btn"> varsayilan tarayici arka planini almasin (style.css yalnizca <a> icin yazilmis).
   :where() ozgullugu sifirdir; .btn--primary vb. kurallar aynen gecerli kalir. */
:where(button.btn) { background: transparent; font-family: inherit; cursor: pointer; }

/* Paket kartindaki ikincil "ODEME YAP" dugmesi (yalnizca sunucu hazirsa gorunur) */
.plan__pay {
  width: 100%;
  margin-top: 10px;
  min-height: 46px;
  font-size: 0.8125rem;
}
.plan__pay:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---------- Dialog ---------- */
.checkout {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  margin: auto;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  color-scheme: dark;
}
.checkout[open] { display: flex; flex-direction: column; }
.checkout::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(4px); }
.checkout--wide { width: min(640px, calc(100vw - 32px)); }

.checkout__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}
.checkout__title { font-size: 1.125rem; font-weight: 800; letter-spacing: 0.02em; }
.checkout__summary { margin-top: 4px; font-size: 0.9375rem; color: var(--muted); }
.checkout__summary strong { color: var(--accent); font-weight: 600; }
.checkout__close {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.checkout__close:hover { border-color: var(--accent); color: var(--accent); }

.checkout__body { padding: 20px 24px 24px; overflow-y: auto; }
.checkout__body .form { gap: 16px; }
.checkout__note { font-size: 0.8125rem; color: var(--muted); }

.checkout__frame {
  display: block;
  width: 100%;
  height: min(70dvh, 680px);
  border: 0;
  background: #fff; /* PayTR sayfasi acik temalidir */
}

/* ---------- Sonuc sayfasi ---------- */
.result-page { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: var(--bg); color-scheme: dark; }
.result { max-width: 460px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.result__title { font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 800; letter-spacing: -0.01em; }
.result.is-ok .result__title { color: var(--accent); }
.result.is-fail .result__title { color: #ff8a8a; }
.result.is-wait .result__title { color: var(--text); }
.result__text { color: var(--muted); line-height: 1.6; }
.result__meta {
  width: 100%;
  margin: 0;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.result__meta dt { color: var(--muted); font-size: 0.8125rem; }
.result__meta dd { margin: 0; font-weight: 600; word-break: break-all; }
