/* ═══════════════════════════════════════════
   CALLYSTA CHECKOUT v2 — checkout.css
   ═══════════════════════════════════════════ */

/* ── LAYOUT ── */
#cly-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
}
@media (max-width: 860px) {
  #cly-wrap { grid-template-columns: 1fr; }
  .cly-right { order: -1; }
}

/* ── BOX ── */
.cly-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  overflow: hidden;
}
.cly-box-light { background: #f8fafc; box-shadow: none; border-color: #e9eef5; }
.cly-box-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 1px solid #f1f5f9;
  background: #fafbfd;
}
.cly-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.cly-box-body { padding: 20px; }
.cly-p0 { padding: 0; }

/* ── GRID ── */
.cly-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.cly-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 540px) {
  .cly-grid2, .cly-grid3 { grid-template-columns: 1fr; }
}

/* ── FIELDS ── */
.cly-f { margin-bottom: 14px; }
.cly-fw { grid-column: 1/-1; }
.cly-f label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.cly-f label b, .cly-req { color: #ef4444; font-style: normal; }
.cly-opt { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 11px; color: #94a3b8; }
.cly-f input,
.cly-f select,
.cly-f textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  color: #1e293b;
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
  box-sizing: border-box;
  outline: none;
  font-family: inherit;
  -webkit-appearance: none;
}
.cly-f input:focus,
.cly-f select:focus,
.cly-f textarea:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26,115,232,.13);
}
.cly-f textarea { resize: vertical; min-height: 72px; }
.cly-f input.err { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.1); }

/* ── GİRİŞ HİNT ── */
.cly-login-hint {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 16px;
  padding: 10px 14px;
  background: #eff6ff;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
}
.cly-login-hint a { color: #1a73e8; font-weight: 600; text-decoration: none; }

/* ── ÖDEME YÖNTEMLERİ ── */
.cly-method {
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background .15s;
}
.cly-method:last-child { border-bottom: none; }
.cly-method.active { background: #f0f7ff; }
.cly-method-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
}
.cly-method-icon { font-size: 22px; flex-shrink: 0; }
.cly-method-head > div strong { display: block; font-size: 14px; color: #0f172a; }
.cly-method-head > div small { font-size: 12px; color: #64748b; }
.cly-radio {
  width: 20px; height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s;
}
.cly-radio.checked { border-color: #1a73e8; }
.cly-radio-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: transparent;
  transition: background .15s;
}
.cly-radio.checked .cly-radio-dot { background: #1a73e8; }
.cly-card-chips { display: flex; gap: 5px; margin-left: auto; flex-shrink: 0; }
.cly-chip {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .3px;
}
.cly-chip.visa  { background: #1a1f71; color: #fff; }
.cly-chip.mc    { background: #eb001b; color: #fff; }
.cly-chip.troy  { background: #003087; color: #fff; }

/* ── METHOD BODY ── */
.cly-method-body { padding: 0 20px 20px; }
.cly-bank-table {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}
.cly-bank-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}
.cly-bank-row:last-child { border-bottom: none; }
.cly-bank-row > span { color: #64748b; min-width: 100px; font-size: 12px; font-weight: 600; }
.cly-bank-row > strong { color: #0f172a; flex: 1; }
.cly-iban-wrap { display: flex; align-items: center; gap: 10px; flex: 1; flex-wrap: wrap; }
.cly-iban-no { font-family: monospace; font-size: 14px; color: #0f172a; letter-spacing: .5px; }
.cly-copy {
  background: #1a73e8; color: #fff;
  border: none; border-radius: 6px;
  padding: 5px 10px; font-size: 11px;
  font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: background .2s;
}
.cly-copy:hover { background: #1557b0; }
.cly-warn-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #92400e;
  line-height: 1.5;
}

/* ── KREDİ KARTI ── */
.cly-cc-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
}
.cly-cc-wrap { position: relative; }
.cly-cc-wrap input { padding-right: 44px; letter-spacing: 1px; font-family: monospace; font-size: 15px; }
#cc-brand { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 20px; }
.cly-ssl-row {
  text-align: center;
  font-size: 12px;
  color: #10b981;
  font-weight: 600;
  margin-top: 12px;
  padding: 8px;
  background: #f0fdf4;
  border-radius: 8px;
  border: 1px solid #bbf7d0;
}

/* ── CHECKBOX ── */
.cly-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #374151;
  line-height: 1.55;
  margin-bottom: 10px;
}
.cly-check-row:last-child { margin-bottom: 0; }
.cly-check-row input[type=checkbox] {
  width: 17px; height: 17px;
  accent-color: #1a73e8;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.cly-check-row a { color: #1a73e8; text-decoration: none; font-weight: 600; }
.cly-check-row a:hover { text-decoration: underline; }

/* ── NOTICE ── */
.cly-notice {
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}
.cly-notice-err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* ══════════════════════════════
   SAĞ ÖZET PANEL
══════════════════════════════ */
.cly-summary {
  position: sticky;
  top: 72px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  overflow: hidden;
}
.cly-sum-head {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  background: #fafbfd;
  border-bottom: 1px solid #f1f5f9;
}
.cly-sum-items { padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.cly-sum-item { display: flex; align-items: center; gap: 12px; }
.cly-sum-img-wrap { position: relative; flex-shrink: 0; }
.cly-sum-img-wrap img {
  width: 54px; height: 54px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  display: block;
}
.cly-sum-qty {
  position: absolute;
  top: -6px; right: -6px;
  background: #1a73e8;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.cly-sum-item-info { flex: 1; min-width: 0; }
.cly-sum-item-name { font-size: 13px; font-weight: 600; color: #0f172a; line-height: 1.3; }
.cly-sum-item-sku  { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.cly-sum-item-price { font-size: 13px; font-weight: 700; color: #1a73e8; white-space: nowrap; }
.cly-divider { border: none; border-top: 1px solid #f1f5f9; margin: 0 20px; }
.cly-sum-totals { padding: 14px 20px; display: flex; flex-direction: column; gap: 9px; }
.cly-sum-row { display: flex; justify-content: space-between; font-size: 13px; color: #374151; }
.cly-free { color: #10b981; font-weight: 700; }
.cly-kargo-hint {
  font-size: 12px;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  padding: 8px 11px;
  margin-top: 4px;
}
.cly-sum-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.cly-grand { font-size: 22px; font-weight: 800; color: #0f172a; }

/* ── HATA ── */
#cly-err {
  margin: 10px 20px 0;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 600;
}

/* ── BUTON ── */
#cly-btn {
  display: block;
  width: calc(100% - 40px);
  margin: 14px 20px;
  padding: 15px;
  background: linear-gradient(135deg, #1a73e8, #1557b0);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  letter-spacing: .2px;
}
#cly-btn:hover { opacity: .92; }
#cly-btn:active { transform: scale(.99); }
#cly-btn:disabled { background: #94a3b8; cursor: not-allowed; }

/* ── GÜVEN ── */
.cly-trust {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 0 20px 16px;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

/* ── BOŞ SEPET ── */
.cly-empty {
  text-align: center;
  padding: 60px 20px;
  max-width: 400px;
  margin: 0 auto;
}
.cly-empty-icon { font-size: 60px; margin-bottom: 16px; }
.cly-empty h2 { font-size: 22px; color: #0f172a; margin-bottom: 8px; }
.cly-empty p { color: #64748b; margin-bottom: 24px; }
.cly-btn-blue {
  display: inline-block;
  padding: 12px 28px;
  background: #1a73e8;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: background .2s;
}
.cly-btn-blue:hover { background: #1557b0; }

/* ══════════════════════════════
   TEŞEKKÜR SAYFASI
══════════════════════════════ */
.cly-ty-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 60px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.cly-ty-hero {
  border-radius: 20px;
  padding: 36px 32px;
  text-align: center;
  margin-bottom: 24px;
  color: #fff;
}
.cly-ty-green { background: linear-gradient(135deg, #059669, #10b981); }
.cly-ty-blue  { background: linear-gradient(135deg, #1a73e8, #0ea5e9); }
.cly-ty-icon  { font-size: 52px; margin-bottom: 12px; }
.cly-ty-hero h1 { font-size: 26px; font-weight: 800; margin: 0 0 8px; }
.cly-ty-hero p  { margin: 4px 0; opacity: .9; font-size: 15px; }
.cly-ty-body { display: flex; flex-direction: column; gap: 20px; }
.cly-ty-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.cly-ty-section h3 {
  margin: 0;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 1px solid #f1f5f9;
  background: #fafbfd;
}
.cly-ty-info-box {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid;
}
.cly-ty-amber     { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.cly-ty-green-box { background: #f0fdf4; border-color: #bbf7d0; color: #065f46; }
.cly-ty-info-icon { font-size: 28px; flex-shrink: 0; }
.cly-ty-info-box strong { display: block; font-size: 15px; margin-bottom: 6px; }
.cly-ty-info-box p { font-size: 13px; margin: 0 0 12px; }
.cly-ty-bank {
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 12px;
}
.cly-ty-bank-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid #fef3c7;
  font-size: 13px;
}
.cly-ty-bank-row:last-child { border-bottom: none; }
.cly-ty-bank-row > span { color: #92400e; min-width: 100px; font-size: 12px; font-weight: 600; }
.cly-ty-bank-row > strong, .cly-ty-bank-row > div { color: #0f172a; flex: 1; }
.cly-ty-bank-row > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cly-ty-copy {
  background: #f59e0b; color: #fff;
  border: none; border-radius: 6px;
  padding: 4px 10px; font-size: 11px;
  font-weight: 600; cursor: pointer;
  transition: background .2s;
}
.cly-ty-copy:hover { background: #d97706; }
.cly-ty-items { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.cly-ty-item { display: flex; align-items: center; gap: 12px; }
.cly-ty-item img {
  width: 52px; height: 52px;
  object-fit: cover; border-radius: 8px;
  border: 1px solid #e2e8f0; flex-shrink: 0;
}
.cly-ty-item-info { flex: 1; }
.cly-ty-item-name { font-size: 13px; font-weight: 600; color: #0f172a; }
.cly-ty-item-qty  { font-size: 12px; color: #64748b; margin-top: 2px; }
.cly-ty-item-price{ font-size: 13px; font-weight: 700; color: #1a73e8; white-space: nowrap; }
.cly-ty-totals { padding: 12px 20px; border-top: 1px solid #f1f5f9; display: flex; flex-direction: column; gap: 8px; }
.cly-ty-trow { display: flex; justify-content: space-between; font-size: 13px; color: #374151; }
.cly-ty-grand { font-size: 16px; font-weight: 800; color: #0f172a; border-top: 1px solid #e2e8f0; padding-top: 8px; margin-top: 4px; }
.cly-ty-addr {
  padding: 16px 20px;
  font-size: 13px;
  color: #374151;
  line-height: 1.8;
}
.cly-ty-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.cly-ty-btn-pri {
  display: inline-block;
  padding: 13px 24px;
  background: #1a73e8;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: background .2s;
}
.cly-ty-btn-pri:hover { background: #1557b0; color: #fff; }
.cly-ty-btn-sec {
  display: inline-block;
  padding: 13px 24px;
  background: #fff;
  color: #374151;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: border-color .2s;
}
.cly-ty-btn-sec:hover { border-color: #94a3b8; color: #374151; }

/* ── TEŞVİK BANNER'LARI ── */
.cly-incentives {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}
.cly-incentives { display:flex; flex-direction:column; gap:8px; margin-bottom:20px; }
.cly-incentive {
  display:flex; align-items:center; gap:12px;
  padding:12px 16px; border-radius:10px; font-size:13px;
}
.cly-incentive > span { font-size:20px; flex-shrink:0; }
.cly-incentive > div { flex:1; }
.cly-incentive strong { display:block; font-size:13px; margin-bottom:2px; }
.cly-incentive small { font-size:12px; opacity:.8; }
.cly-incentive small a { text-decoration:underline; }

.cly-incentive-warn  { background:#fffbeb; border:1px solid #fcd34d; color:#92400e; }
.cly-incentive-warn a { color:#b45309; }
.cly-incentive-dark  { background:#0f172a; border:1px solid #1e293b; color:#fff; }
.cly-incentive-dark small { color:rgba(255,255,255,.6); }
.cly-incentive-green { background:#f0fdf4; border:1px solid #86efac; color:#166534; }
.cly-incentive-success { background:#f0fdf4; border:1px solid #4ade80; color:#15803d; }

.cly-coupon-badge {
  display:flex; align-items:center; gap:8px; flex-shrink:0;
}
.cly-coupon-badge span {
  font-family:monospace; font-size:14px; font-weight:800;
  letter-spacing:2px; color:#fff; background:rgba(255,255,255,.15);
  padding:4px 10px; border-radius:6px;
}
.cly-coupon-badge button {
  background:#3b82f6; color:#fff; border:none; border-radius:6px;
  padding:6px 12px; font-size:12px; font-weight:700; cursor:pointer;
  white-space:nowrap;
}
.cly-coupon-badge button:hover { background:#2563eb; }

/* İndirim satırı */
.cly-discount-row { color:#16a34a !important; font-weight:600; }

/* Login box */
.cly-login-box { border:1px solid #e2e8f0 !important; }
.cly-login-teaser {
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
}
.cly-login-teaser strong { display:block; font-size:13px; }
.cly-login-teaser small { font-size:12px; color:#64748b; }
.cly-btn-login {
  margin-left:auto; background:#0f172a; color:#fff;
  padding:8px 16px; border-radius:8px; font-size:13px;
  font-weight:600; text-decoration:none; white-space:nowrap;
}
.cly-btn-login:hover { background:#1e293b; color:#fff; }
