/* VIP Booking Badge - SVG Icon with Small Badge */
.vip-booking-badge-container {
  display: inline-block;
  position: relative;
  cursor: pointer;
  vertical-align: middle;
}

.vip-booking-badge-container.has-bookings {
  animation: tada 5s ease-in-out infinite;
  box-shadow: 0 0 12px -2px var(--ast-global-color-0);
}

.vip-booking-badge-icon {
  height: 30px;
  width: auto;
  display: block;
}

.vip-booking-badge-icon rect:first-child {
  fill: var(--ast-global-color-0);
}

.vip-booking-badge-small {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.vip-booking-badge-small.pending {
  background: #6c757d;
}

.vip-booking-badge-small.confirmed {
  background: #4caf50;
}

/* Login button - minimal styling, theme handles colors/effects */
.vip-booking-login-btn {
  padding: 8px 16px;
  font-weight: 600;
  white-space: nowrap;
}

/* Gift icon styles */
.gift-icon {
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
  font-size: 30px;
  margin-right: 10px;
  animation: tada 5s ease-in-out infinite;
}

/* Shared Discount Code Card */
.discount-code-card-user {
  background: linear-gradient(135deg, #004c0f 0%, #18910b 100%);
  border-radius: 1em;
  padding: 25px;
  box-shadow: 0 0 12px -6px var(--ast-global-color-0);
  cursor: pointer;
  transition: all 0.3s;
}

.discount-code-card-user:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px -12px var(--ast-global-color-0);
}

.discount-code-card-user-header {
  margin-bottom: 8px;
  color: #ddd;
  font-weight: 600;
}

.discount-code-card-user-code {
  text-align: center;
  font-size: 42px;
  font-weight: 700;
  color: #ffc400;
  letter-spacing: 0.1em;
  font-family: monospace;
  margin-bottom: 10px;
}

.discount-code-card-user-info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: #ddd;
  font-size: 18px;
  justify-content: space-evenly;
}

.discount-code-card-user-hint {
  margin-top: 15px;
  font-size: 15px;
  color: #ddd;
  text-align: center;
  font-style: italic;
}

/* Discount Code Popup Modal */
.discount-code-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000c;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.discount-code-modal-content {
  position: relative;
  max-width: 500px;
  width: 90%;
  animation: slideDown 0.3s ease-out;
}

.discount-code-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  padding: 5px 10px;
  line-height: 1;
  transition: all 0.2s;
  z-index: 1;
}

.discount-code-modal-close:hover {
  background: none;
  transform: scale(1.1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.2);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tada animation - shared by badge and gift icon */
@keyframes tada {
  0%,
  27%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  3% {
    transform: scale(0.9) rotate(-3deg);
  }
  6%,
  12%,
  18%,
  24% {
    transform: scale(1.1) rotate(3deg);
  }
  9%,
  15%,
  21% {
    transform: scale(1.1) rotate(-3deg);
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .vip-booking-login-btn {
    padding: 6px 8px;
    font-size: 14px;
  }

  .discount-code-card-user {
    padding: 20px;
  }

  .discount-code-card-user-code {
    font-size: 28px;
  }

  .discount-code-card-user-info {
    font-size: 13px;
    gap: 15px;
  }

  .discount-code-card-user-hint {
    font-size: 12px;
  }
}
