/* ============================================================
   Spin Wheel Popup Modal & Price Discount Styling (Modern UI)
   ============================================================ */

.spin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Hind Siliguri', system-ui, sans-serif;
}

.spin-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.spin-modal-shell {
  width: min(460px, 100%);
  max-height: 92vh;
  background: #eefbf6;
  border-radius: 28px;
  border: 2px solid #a7f3d0;
  box-shadow: 0 25px 70px rgba(4, 120, 87, 0.28);
  overflow-y: auto;
  position: relative;
  padding: 24px 20px 20px;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spin-modal-overlay.active .spin-modal-shell {
  transform: scale(1) translateY(0);
}

.spin-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 20px;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  transition: 0.2s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.spin-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
  transform: scale(1.08);
}

/* Modern Outer Wheel Wrap with Gold Metallic Ring */
.spin-wheel-wrap {
  position: relative;
  width: 285px;
  height: 285px;
  margin: 10px auto 18px;
  padding: 7px;
  background: radial-gradient(circle, #fef08a 0%, #d97706 70%, #92400e 100%);
  border-radius: 50%;
  box-shadow: 0 14px 35px rgba(4, 120, 87, 0.35), 0 0 25px rgba(245, 158, 11, 0.4);
}

.spin-pointer {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  width: 32px;
  height: 36px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
}

.spin-wheel-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #047857;
  transition: transform 4.5s cubic-bezier(0.15, 0.9, 0.15, 1);
}

.spin-center-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #fef3c7);
  border: 4px solid #f59e0b;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25), inset 0 2px 4px rgba(255,255,255,0.8);
  display: grid;
  place-items: center;
  z-index: 5;
  pointer-events: none;
}

.spin-center-hub span {
  font-size: 9px;
  font-weight: 900;
  color: #047857;
  text-align: center;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Badge & Headers */
.spin-offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.spin-modal-title {
  font-size: 22px;
  font-weight: 900;
  color: #047857;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.spin-modal-sub {
  font-size: 13.5px;
  color: #64748b;
  margin: 0 0 16px;
}

/* Inputs */
.spin-form-group {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  text-align: left;
}

.spin-field label {
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
  display: block;
  margin-bottom: 4px;
}

.spin-field label span {
  color: #e11d48;
}

.spin-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 14px;
  outline: none;
  transition: 0.2s;
  color: #0b1220;
}

.spin-field input:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.spin-btn {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(5, 150, 105, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.spin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(5, 150, 105, 0.45);
  background: linear-gradient(135deg, #10b981, #059669);
}

.spin-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Winning Result Box */
.spin-result-box {
  background: #ffffff;
  border: 2px solid #34d399;
  border-radius: 20px;
  padding: 18px;
  margin-top: 12px;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.15);
  animation: result-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes result-pop {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

.spin-result-title {
  font-size: 20px;
  font-weight: 900;
  color: #047857;
  margin-bottom: 6px;
}

.spin-result-discount {
  font-size: 24px;
  font-weight: 900;
  color: #e11d48;
  margin: 6px 0;
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

/* Floating Trigger Button (Icon-Only, Small) */
.spin-float-btn {
  position: fixed;
  bottom: 16px;
  right: 14px;
  z-index: 180;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  border: 1.5px solid #fef08a;
  box-shadow: 0 8px 20px rgba(4, 120, 87, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.spin-float-btn:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 12px 25px rgba(4, 120, 87, 0.5);
}

.spin-float-icon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* Struck-through Regular Price styling in order form */
.regular-price-del {
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 600;
  margin-right: 5px;
  font-size: 13px;
}

.discount-tag {
  background: #dcfce7;
  color: #15803d;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid #bbf7d0;
  margin-left: 4px;
}

.free-delivery-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  margin-left: 4px;
  vertical-align: middle;
}

@media (max-width: 680px) {
  .spin-float-btn {
    right: 12px;
    bottom: 140px;
  }
  .spin-wheel-wrap {
    width: 255px;
    height: 255px;
  }
}
