:root {
  --primary: rgb(47, 143, 78);
  --sold: #f56c6c;
  --available-bg: #e2f3e5;
  --selected-bg: #74c282;
}

* {
  box-sizing: border-box;
}

/* ================= MODAL ================= */

/* Modal Overlay */
.juice-modal {
  display: none;                /* show using JS */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: flex;                /* REQUIRED for centering */
  justify-content: center;
  align-items: center;
}

/* Modal Box */
.juice-modal-content {
  background: #fff;
  width: 95%;
  max-width: 480px;
  height: 90vh;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

/* Close Button */
.juice-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 26px;
  cursor: pointer;
  z-index: 10;
}

/* iframe inside modal */
.juice-modal iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ================= BOOKING CARD ================= */

.booking-card {
  width: 100%;
  max-width: 450px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.header {
  background: var(--primary);
  color: #fff;
  padding: 14px;
  font-weight: bold;
  text-align: center;
}

.inputs {
  display: flex;
  gap: 10px;
  padding: 15px;
}

.inputs div {
  flex: 1;
}

.inputs label {
  font-size: 12px;
  color: #666;
}

.inputs input {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
}

/* ================= CALENDAR ================= */

#calendarWrapper {
  display: none;
  padding: 15px;
  border-top: 1px solid #eee;
}

.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: bold;
}

.cal-header button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}

.day {
  font-size: 11px;
  color: #999;
  font-weight: bold;
}

.date {
  position: relative;
  height: 60px;
  padding-top: 4px;
  cursor: pointer;
  border-radius: 6px;
  transition: 0.2s ease;
}

/* Calendar States */
.available {
  background: var(--available-bg);
}

.date.selected {
  background: var(--selected-bg);
}

.sold {
  background: var(--sold);
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Glass Icon */
.glass-icon {
  display: block;
  margin: 0px auto 0;
  width: 24px;
  height: 32px;
}

/* ================= QUANTITY SECTION ================= */

#qtySection {
  display: none;
  padding: 15px;
  background: #fff9e6;
}

#qtySection input {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: 2px solid var(--primary);
  border-radius: 6px;
}

#qtySection button {
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}
