/* Journal 3 Quick Checkout Auto Coupon & Voucher Selector Styles */
.journal3-autocoupon-container {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 14px;
  margin-top: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  font-family: inherit;
  clear: both;
}

.j3-coupon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.j3-coupon-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.j3-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.j3-coupon-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.j3-coupon-subtitle {
  margin: 1px 0 0;
  font-size: 11.5px;
  color: #64748b;
}

.j3-active-badge {
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid #bbf7d0;
}

/* Voucher Cards List */
.j3-voucher-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

/* Modern Perforated Ticket Card */
.j3-voucher-card {
  position: relative;
  display: flex;
  align-items: center;
  background: #fafafa;
  border: 1.5px dashed #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
}

.j3-voucher-card:hover {
  border-color: #3b82f6;
  background: #f8fafc;
  transform: translateY(-1px);
}

.j3-voucher-card.is-active {
  border-color: #10b981;
  border-style: solid;
  background: #f0fdf4;
}

.j3-voucher-card.is-locked {
  opacity: 0.65;
}

/* Semi-circular Ticket Notches */
.j3-notch {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 50%;
  z-index: 2;
}
.notch-left { left: -7px; }
.notch-right { right: -7px; }

/* Left Column */
.j3-voucher-left {
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 85px;
  background: #f1f5f9;
  text-align: center;
}

.j3-icon-badge {
  color: #2563eb;
  margin-bottom: 2px;
}

.j3-voucher-value {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.j3-type-label {
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
}

/* Middle Column */
.j3-voucher-middle {
  flex: 1;
  padding: 8px 10px;
}

.j3-voucher-name {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}

.j3-voucher-terms {
  font-size: 10.5px;
  color: #64748b;
}

.j3-timer-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  color: #ea580c;
  background: #fff7ed;
  padding: 2px 5px;
  border-radius: 4px;
  margin-top: 4px;
  font-weight: 600;
}

.j3-progress-wrap {
  margin-top: 5px;
  background: #e2e8f0;
  border-radius: 3px;
  height: 4px;
  position: relative;
}
.j3-progress-bar {
  background: #3b82f6;
  height: 100%;
  border-radius: 3px;
}
.j3-progress-hint {
  font-size: 9px;
  color: #94a3b8;
  display: block;
  margin-top: 1px;
}

/* Right Column */
.j3-voucher-right {
  padding: 8px 10px;
}

.j3-btn-apply {
  background: #f25c05; /* Matches Zoraya orange button */
  color: #ffffff;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.j3-btn-apply:hover {
  background: #d94e00;
}

.j3-btn-applied {
  background: #10b981;
  color: #ffffff;
  border: none;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.j3-btn-locked {
  background: #e2e8f0;
  color: #94a3b8;
  border: none;
  font-size: 10.5px;
  padding: 5px 8px;
  border-radius: 5px;
  cursor: not-allowed;
}
