/* =============================================
   Kargo / Ödeme Metodu Kart Tasarımı
   Sadece .j3-method-option class'ına uygulanır

   Renk varyantları:
     .j3-method-option--purple  (varsayılan)
     .j3-method-option--blue
     .j3-method-option--orange
     .j3-method-option--yellow
     .j3-method-option--gray
   ============================================= */

.j3-method-option {
  display: flex;
  align-items: center;
  padding-top: 18px !important;
  padding-bottom: 18px !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
  margin-bottom: 6px !important;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  background: #fff;
  user-select: none;
}

.j3-method-option:hover {
  border-color: #bbb;
  background: #fafafa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.j3-method-option:has(input[type="radio"]:checked) {
  border-color: #7b5fe8;
  background: #f8f5ff;
  box-shadow: 0 2px 10px rgba(123, 95, 232, 0.15);
}

/* Radio inputu gizle */
.j3-method-option input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none;
}

/* Label tüm alanı kaplar */
.j3-method-option label {
  cursor: pointer;
  font-size: 14px;
  color: #444;
  font-weight: 500;
  transition: color 0.2s ease;
  line-height: 1.4;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
}

.j3-method-option:has(input[type="radio"]:checked) label {
  color: #5a3ec8;
  font-weight: 600;
}

/* ── Purple (varsayılan) ── */
.j3-method-option--purple:has(input[type="radio"]:checked) {
  border-color: #7b5fe8;
  background: #f8f5ff;
  box-shadow: 0 2px 10px rgba(123, 95, 232, 0.15);
}
.j3-method-option--purple:has(input[type="radio"]:checked) label { color: #5a3ec8; }

/* ── Blue ── */
.j3-method-option--blue:has(input[type="radio"]:checked) {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.15);
}
.j3-method-option--blue:has(input[type="radio"]:checked) label { color: #1d4ed8; }

/* ── Orange ── */
.j3-method-option--orange:has(input[type="radio"]:checked) {
  border-color: #f97316;
  background: #fff8f3;
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.15);
}
.j3-method-option--orange:has(input[type="radio"]:checked) label { color: #c2490d; }

/* ── Yellow ── */
.j3-method-option--yellow:has(input[type="radio"]:checked) {
  border-color: #d97706;
  background: #fffbeb;
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.15);
}
.j3-method-option--yellow:has(input[type="radio"]:checked) label { color: #b45309; }

/* ── Fill: container class — children fill equally, stay side by side ── */
.j3-methods-fill {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
}
.j3-methods-fill .j3-method-option {
  flex: 1;
  min-width: 0;
}

/* ── Gray ── */
.j3-method-option--gray:has(input[type="radio"]:checked) {
  border-color: #6b7280;
  background: #f9fafb;
  box-shadow: 0 2px 10px rgba(107, 114, 128, 0.15);
}
.j3-method-option--gray:has(input[type="radio"]:checked) label { color: #374151; }

/* ── Red (pasif / kullanılamaz) ── */
.j3-method-option--red {
  border-color: #fca5a5 !important;
  background: #fff5f5 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: none;
  opacity: 0.85;
}

.j3-method-disabled {
  flex-direction: column;
  align-items: flex-start !important;
  gap: 2px;
}

.j3-method-disabled-name {
  font-size: 14px;
  font-weight: 600;
  color: #dc2626;
}

.j3-method-disabled-msg {
  display: block;
  font-size: 12px;
  color: #888;
  margin-top: 3px;
  font-weight: 400;
}

.j3-addr-tabs {
  display: flex;
  gap: 4px;
  background: #f1f2f6;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 16px;
  border: 1px solid #e6e7ec;
}

.j3-addr-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #5a6473;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
}

.j3-addr-tab:hover:not(.active) {
  color: #1f2937;
  background: rgba(255, 255, 255, 0.55);
}

.j3-addr-tab.active {
  background: #fff;
  color: #5a3ec8;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(90, 62, 200, 0.12), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.j3-addr-tab:focus {
  outline: none;
}

.j3-addr-tab .j3-addr-tab-ico {
  font-size: 14px;
  opacity: 0.85;
}

.j3-addr-tab.active .j3-addr-tab-ico {
  opacity: 1;
}

@media (max-width: 480px) {
  .j3-addr-tab {
    padding: 9px 10px;
    font-size: 13px;
  }
}

.j3-addr-tab .j3-addr-tab-ico svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* ── Radio-driven tab (wraps a hidden radio in a <label>) ── */
.j3-login-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 14px;
  background: #cff4fc;
  color: #055160;
  border: 1px solid #9eeaf9;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  line-height: 1.35;
}

.j3-login-hint:hover {
  background: #b6effb;
  border-color: #6edff6;
  box-shadow: 0 2px 6px rgba(5, 81, 96, 0.08);
}

.j3-login-hint i {
  font-size: 16px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .j3-login-hint {
    padding: 10px 12px;
    font-size: 13px;
  }
}

.j3-addr-tab--radio {
  margin: 0;
  font-weight: 500;
}
.j3-addr-tab--radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* ── Orange variant ── */
.j3-addr-tabs--orange .j3-addr-tab:hover:not(.active):not(:has(input[type="radio"]:checked)) {
  color: #b45309;
  background: rgba(255, 255, 255, 0.6);
}
.j3-addr-tabs--orange .j3-addr-tab.active,
.j3-addr-tabs--orange .j3-addr-tab--radio:has(input[type="radio"]:checked) {
  background: #fff;
  color: #c2490d;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.18), 0 1px 2px rgba(0, 0, 0, 0.04);
}
.j3-addr-tabs--orange .j3-addr-tab.active .j3-addr-tab-ico,
.j3-addr-tabs--orange .j3-addr-tab--radio:has(input[type="radio"]:checked) .j3-addr-tab-ico {
  opacity: 1;
}

.j3-fatura-ayni-card {
  background: #f07820;
  border: none;
  border-radius: 6px;
  padding: 12px 16px;
  color: #fff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.j3-fatura-ayni-card:hover {
  background: #e56c12;
}

.j3-fatura-ayni-card label {
  cursor: pointer;
  margin: 0;
  width: 100%;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.j3-fatura-ayni-card input[type="checkbox"] {
  accent-color: #fff;
  cursor: pointer;
  width: 17px;
  height: 17px;
  margin: 0;
  flex-shrink: 0;
}

.j3-seg-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  width: 100%;
  background: #eef2f7;
  border: 1px solid #dbe2ec;
  border-radius: 8px;
  padding: 3px;
  margin-top: 10px;
  margin-bottom: 14px;
}

.j3-seg-tab {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  line-height: 1.3;
  white-space: nowrap;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.j3-seg-tab > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.j3-seg-tab input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.j3-seg-tab:hover {
  background: rgba(13, 110, 253, 0.08);
  color: #0d6efd;
}

.j3-seg-tab:has(input[type="radio"]:checked) {
  background: #0d6efd;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(13, 110, 253, 0.35);
}

.j3-seg-tab:has(input[type="radio"]:checked):hover {
  background: #0b5ed7;
  color: #fff;
}

@media (min-width: 992px) {
  .side-column {
    align-self: flex-start;
  }
}
