/* === Şablon seti upsell kartı (Sıcak Turuncu/Amber Vurgular + Canlı Hareket) === */
.upsell-card {
  position: relative;
  margin-top: 14px;
  padding: 16px 14px 16px;
  border-radius: 16px;
  border: 2px solid #f97316;
  background: linear-gradient(180deg, #fffbf5 0%, #fff1e6 100%);
  text-align: center;
  box-shadow: 0 6px 22px rgba(249, 115, 22, 0.16);
  transition: all .25s ease;
  animation: cardSoftGlow 3.5s ease-in-out infinite;
}

@keyframes cardSoftGlow {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.16);
    border-color: #fb923c;
  }
  50% {
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.3);
    border-color: #ea580c;
  }
}

.upsell-top-stat {
  display: inline-block;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 8px;
  letter-spacing: .2px;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.35);
  animation: statPulse 2.4s ease-in-out infinite;
}

@keyframes statPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 3px 10px rgba(234, 88, 12, 0.35);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 5px 16px rgba(234, 88, 12, 0.55);
  }
}

.upsell-title {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
  color: #9a3412;
  text-align: center;
  margin: 0 auto 4px;
}

.upsell-sub {
  font-size: 12.5px;
  color: #78350f;
  text-align: center;
  line-height: 1.35;
  margin: 0 auto 8px;
}

.upsell-list {
  list-style: none;
  padding: 0;
  margin: 8px auto 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: center;
  font-size: 13px;
  color: #431407;
  font-weight: 600;
}

.upsell-price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 6px 0 10px;
}
.upsell-old {
  text-decoration: line-through;
  color: #78716c;
  font-weight: 700;
  font-size: 14px;
}
.upsell-new {
  font-size: 25px;
  font-weight: 900;
  color: #ea580c;
}
.upsell-off {
  background: #16a34a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}

/* Evet İstiyorum / Hayır İstemiyorum Buton Grubu */
.upsell-choice-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}

.upsell-choice-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 10px;
  border-radius: 14px;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
  transition: all .2s ease;
  color: #334155;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.upsell-choice-btn:hover {
  border-color: #f97316;
  transform: translateY(-1px);
}
.upsell-choice-btn .choice-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  background: #f1f5f9;
  color: #64748b;
  transition: all .2s;
}
.upsell-choice-btn .choice-text {
  font-size: 13.5px;
  line-height: 1.25;
  text-align: center;
}
.upsell-choice-btn .choice-text small {
  display: block;
  font-size: 12px;
  color: #ea580c;
  font-weight: 800;
  margin-top: 3px;
}

/* --- SEÇİM EFEKTİ (YEŞİLE DÖNÜŞ & BELİRGİN SEÇİLİ EFEKTİ) --- */
.upsell-choice-btn.active {
  animation: selectPop 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes selectPop {
  0% { transform: scale(0.95); }
  60% { transform: scale(1.05); }
  100% { transform: scale(1.02); }
}

/* Evet Butonu Seçildiğinde: Çok Canlı Yeşil, Vurgulu ve Parıltılı */
.upsell-choice-btn.btn-yes.active {
  border-color: #15803d;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.45);
  transform: scale(1.03);
}
.upsell-choice-btn.btn-yes.active .choice-text {
  color: #ffffff;
}
.upsell-choice-btn.btn-yes.active .choice-text small {
  color: #dcfce7;
  font-weight: 900;
}
.upsell-choice-btn.btn-yes.active .choice-check {
  background: #ffffff;
  color: #16a34a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Hayır Butonu Seçildiğinde: Net Yeşil Onay Çerçevesi ve Yumuşak Yeşil/Nötr Seçili Vurgusu */
.upsell-choice-btn.btn-no.active {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #15803d;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.2);
  transform: scale(1.02);
}
.upsell-choice-btn.btn-no.active .choice-text {
  color: #15803d;
  font-weight: 700;
}
.upsell-choice-btn.btn-no.active .choice-check {
  background: #16a34a;
  color: #ffffff;
}

/* Kartın kendisi 'Evet' seçildiğinde yeşil vurgulu parıltı */
.upsell-card.added {
  border-color: #16a34a;
  background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
  box-shadow: 0 10px 30px rgba(22, 163, 74, 0.25);
}

/* Hata Titreşimi ve Zorunlu Uyarı (Seçim yapılmadan tıklandığında) */
.upsell-card.error-shake {
  animation: errorShake 0.6s ease-in-out !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.25), 0 8px 25px rgba(239, 68, 68, 0.3) !important;
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  15%, 45%, 75% { transform: translateX(-8px); }
  30%, 60%, 90% { transform: translateX(8px); }
}

.upsell-required-notice {
  display: none;
  background: #fef2f2;
  border: 1.5px solid #ef4444;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  margin-top: 12px;
  text-align: center;
  line-height: 1.35;
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.15);
}
.upsell-required-notice.visible {
  display: block;
  animation: noticePop .25s ease-out;
}
@keyframes noticePop {
  0% { transform: translateY(-4px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Sipariş Onay Pop-up (Açık, Soft, Sade ve Okunaklı Tasarım) */
.confirm-modal {
  position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, 0.6); padding: 16px; backdrop-filter: blur(8px);
}
.confirm-modal.open { display: flex; }
.confirm-modal__box {
  width: 100%; max-width: 430px; max-height: 92vh; overflow-y: auto;
  background: #ffffff; border-radius: 20px; padding: 22px 20px; text-align: left;
  position: relative; box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
  animation: popIn .22s ease-out; border: 1px solid #f1f5f9;
}
.confirm-modal__close {
  position: absolute; top: 16px; right: 16px; width: 30px; height: 30px;
  background: #f1f5f9; border: 0; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 14px; color: #64748b;
  cursor: pointer; transition: all .15s;
}
.confirm-modal__close:hover { background: #e2e8f0; color: #0f172a; }

.confirm-modal__header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.confirm-modal__icon {
  width: 42px; height: 42px; border-radius: 12px; background: #ecfdf5;
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.confirm-modal__title {
  font-size: 18px; font-weight: 800; color: #0f172a; margin: 0; line-height: 1.25;
}
.confirm-modal__subtitle {
  font-size: 12.5px; color: #64748b; margin: 2px 0 0; line-height: 1.35;
}

/* Seçilen Ürün Kartı */
.confirm-card {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 12px 14px; margin-bottom: 12px;
}
.confirm-item-main {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.confirm-item-info { display: flex; flex-direction: column; gap: 3px; }
.confirm-product-title { font-size: 14.5px; font-weight: 800; color: #0f172a; }
.confirm-item-gift { font-size: 12px; color: #15803d; font-weight: 600; }
.confirm-item-badge {
  background: #dcfce7; color: #166534; font-size: 11px; font-weight: 700;
  padding: 4px 8px; border-radius: 6px; white-space: nowrap; flex-shrink: 0;
}

/* 50 Beceri Şablonu Hatırlatma Kartı */
.confirm-addon-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fffbeb; border: 1.5px dashed #f59e0b; border-radius: 14px;
  padding: 12px 14px; margin-bottom: 14px; transition: all .2s;
}
.confirm-addon-card.added {
  background: #f0fdf4; border-style: solid; border-color: #22c55e;
}
.confirm-addon-content { display: flex; flex-direction: column; gap: 2px; }
.confirm-addon-tag {
  display: inline-block; width: fit-content; background: #ea580c; color: #fff;
  font-size: 9.5px; font-weight: 800; padding: 2px 6px; border-radius: 4px;
}
.confirm-addon-card.added .confirm-addon-tag { background: #16a34a; }
.confirm-addon-title { font-size: 13px; font-weight: 800; color: #78350f; }
.confirm-addon-card.added .confirm-addon-title { color: #14532d; }
.confirm-addon-desc { font-size: 11.5px; color: #92400e; line-height: 1.3; }
.confirm-addon-card.added .confirm-addon-desc { color: #166534; }
.confirm-addon-btn {
  background: #f59e0b; color: #ffffff; border: 0; border-radius: 10px;
  padding: 9px 12px; font-size: 12px; font-weight: 800; cursor: pointer;
  white-space: nowrap; flex-shrink: 0; transition: all .15s;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}
.confirm-addon-card.added .confirm-addon-btn {
  background: #16a34a; box-shadow: none;
}

/* Alıcı & Adres Bilgileri */
.confirm-details-card {
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 12px 14px; margin-bottom: 14px; display: grid; gap: 8px;
}
.confirm-detail-row {
  display: flex; gap: 8px; font-size: 13px; line-height: 1.4;
}
.c-label { color: #64748b; font-weight: 600; width: 62px; flex-shrink: 0; }
.c-val { color: #1e293b; font-weight: 700; word-break: break-word; }

/* Fiyat Toplamı */
.confirm-price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 4px 14px; border-top: 1px solid #e2e8f0;
}
.c-total-label { font-size: 13.5px; font-weight: 700; color: #64748b; }
.c-total-val { font-size: 24px; font-weight: 900; color: #0f172a; }

/* Onay Butonu */
.confirm-action-btn {
  width: 100%; border: 0; cursor: pointer; padding: 15px; border-radius: 12px;
  font-size: 16px; font-weight: 800; color: #ffffff;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35); transition: transform .15s;
}
.confirm-action-btn:active { transform: scale(.98); }
.confirm-guarantee-note {
  text-align: center; font-size: 11.5px; color: #64748b; font-weight: 600; margin-top: 9px;
}

.alt-strip { width: 100%; border-radius: 12px; margin: 16px 0 8px; display: block; }
