/* ==========================================================================
   MINIMAL STREETWEAR ORDER RECEIPT / SUCCESS SLIP (Customized from Reference)
   High-Contrast Ticket with Confetti Icon, Perforated Notches & Scalloped Barcode Bottom
   ========================================================================== */

.success-receipt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(9, 13, 22, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;
}

.success-receipt-overlay.active {
  display: flex;
}

.success-receipt-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;
  animation: receipt-drop-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes receipt-drop-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* The Ticket Container */
.success-ticket-card {
  width: 100%;
  background: #ffffff;
  color: #0f172a;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.05);
  position: relative;
  font-family: var(--font-body);
  overflow: hidden;
}

/* Top Celebration Header */
.success-ticket-header {
  padding: 2.25rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.success-confetti-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 0.85rem;
  animation: pop-bounce 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pop-bounce {
  0% { transform: scale(0.5) rotate(-15deg); opacity: 0; }
  60% { transform: scale(1.15) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.success-ticket-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.03em;
  margin-bottom: 0.3rem;
}

.success-ticket-sub {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
  max-width: 260px;
}

/* Perforation Notches Row (Left + Right Half Circles with Dashed Line) */
.ticket-perforation-row {
  position: relative;
  width: 100%;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.ticket-notch-left,
.ticket-notch-right {
  position: absolute;
  width: 22px;
  height: 22px;
  background: #090d16; /* Seamlessly matches dark backdrop overlay */
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

.ticket-notch-left {
  left: -11px;
}

.ticket-notch-right {
  right: -11px;
}

.ticket-dashed-line {
  width: calc(100% - 32px);
  border-top: 1.8px dashed #cbd5e1;
}

/* Middle Receipt Information Section */
.success-ticket-body {
  padding: 1.15rem 1.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ticket-data-row-dual {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.ticket-field-col {
  display: flex;
  flex-direction: column;
}

.ticket-field-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.ticket-field-val {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
}

.ticket-field-val.amount {
  font-size: 1.35rem;
  color: #0f172a;
  text-align: right;
}

/* Payment Method Pill (Inspired by Reference) */
.ticket-payment-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ticket-payment-icon-wrap {
  width: 32px;
  height: 22px;
  background: #0f172a;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 800;
  flex-shrink: 0;
}

.ticket-payment-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ticket-payment-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: #0f172a;
}

.ticket-payment-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #64748b;
}

/* Bottom Barcode Section */
.success-ticket-bottom {
  padding: 0.6rem 1.65rem 1.65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
}

.ticket-barcode-svg {
  width: 100%;
  max-width: 240px;
  height: 48px;
  color: #1e293b;
}

.ticket-barcode-digits {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 240px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.2em;
  margin-top: 0.35rem;
}

/* Scalloped Bottom Edge (Wavy Perforated Ticket Teeth) */
.ticket-scalloped-bottom {
  width: 100%;
  height: 12px;
  background: radial-gradient(circle at 10px 0, transparent 8px, #ffffff 9px);
  background-size: 20px 12px;
  margin-top: -1px;
}

/* Receipt Action Buttons */
.success-receipt-actions {
  width: 100%;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.btn-receipt-whatsapp-track {
  width: 100%;
  padding: 0.95rem;
  background: #25d366;
  color: #032d12;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-pill);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
}

.btn-receipt-whatsapp-track:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}

.btn-receipt-done {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-family: var(--font-pill);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-receipt-done:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 480px) {
  .success-receipt-wrapper {
    max-width: 340px;
  }
  .success-ticket-header {
    padding: 1.75rem 1.25rem 1rem;
  }
  .success-ticket-body {
    padding: 1rem 1.25rem 0.65rem;
  }
  .success-ticket-bottom {
    padding: 0.4rem 1.25rem 1.25rem;
  }
  .success-ticket-title {
    font-size: 1.4rem;
  }
}
