/* ── Advanced WooCommerce Bookings – Frontend Styles ─────────────────────── */

/* ── Booking form wrapper ─────────────────────────────────────────────────── */
.awb-booking-form {
  font-family: inherit;
  max-width: 480px;
  margin-bottom: 20px;
}

/* ── Calendar navigation ──────────────────────────────────────────────────── */
.awb-calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.awb-calendar-nav button {
  background: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #555;
  transition: background 0.2s;
}
.awb-calendar-nav button:hover { background: #f1f1f1; }
.awb-cal-label {
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  flex: 1;
}

/* ── Calendar grid ────────────────────────────────────────────────────────── */
.awb-calendar-container {
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.awb-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f8f8f8;
  border-bottom: 1px solid #eee;
}
.awb-wd {
  text-align: center;
  padding: 8px 0;
  font-size: 11px;
  font-weight: 600;
  color: #777;
  text-transform: uppercase;
}
.awb-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}
.awb-day {
  text-align: center;
  padding: 10px 4px;
  font-size: 13px;
  border: 1px solid transparent;
  cursor: default;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}
.awb-day--empty { background: transparent; }

.awb-day--available {
  cursor: pointer;
  color: #333;
}
.awb-day--available:hover {
  background: #e8f4fc;
  border-color: #4a90d9;
  border-radius: 50%;
}

.awb-day--unavailable {
  color: #ccc;
  text-decoration: line-through;
}

.awb-day--past { color: #ccc; }

.awb-day--today { font-weight: bold; }

.awb-day--selected {
  background: #4a90d9 !important;
  color: #fff !important;
  border-radius: 50%;
  font-weight: bold;
}

.awb-day--in-range {
  background: #d0e8f8;
  border-radius: 0;
}

/* ── Slots ────────────────────────────────────────────────────────────────── */
.awb-slots-container { margin-top: 16px; }
.awb-slots-container h4 { margin: 0 0 8px; font-size: 14px; }
.awb-slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.awb-slot {
  padding: 7px 12px;
  border: 1px solid #4a90d9;
  border-radius: 4px;
  background: #fff;
  color: #4a90d9;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.awb-slot--available:hover,
.awb-slot--active {
  background: #4a90d9;
  color: #fff;
}
.awb-slot--full {
  border-color: #ccc;
  color: #aaa;
  cursor: not-allowed;
  background: #f8f8f8;
}

/* ── Booking Spotlight ────────────────────────────────────────────────────── */
.awb-spotlight {
  margin-top: 14px;
  padding: 12px 16px;
  background: #f0f8ff;
  border: 1px solid #b8d9f0;
  border-radius: 6px;
}
.awb-spotlight-inner { display: flex; align-items: center; gap: 10px; }
.awb-spotlight-icon { font-size: 22px; }
.awb-spotlight-dates { font-size: 14px; font-weight: 600; color: #333; }
.awb-spotlight-price { font-size: 13px; color: #4a90d9; margin-top: 2px; }

/* ── Persons field ────────────────────────────────────────────────────────── */
.awb-field { margin-top: 14px; }
.awb-field label { display: block; font-size: 13px; margin-bottom: 4px; font-weight: 600; }
.awb-persons-input { width: 80px; padding: 6px; border: 1px solid #ddd; border-radius: 4px; }

/* ── Add-to-cart guard ────────────────────────────────────────────────────── */
.awb-btn-disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: none;
}

/* ── My Bookings – status badges ──────────────────────────────────────────── */
.awb-status-badge { padding: 3px 10px; border-radius: 12px; font-size: 12px; color: #fff; display: inline-block; }
.awb-status-pending   { background: #f0ad4e; }
.awb-status-confirmed { background: #5bc0de; }
.awb-status-complete  { background: #5cb85c; }
.awb-status-cancelled { background: #d9534f; }
.awb-status-in-cart   { background: #aaa; }

/* ── Booking card (grid view) ─────────────────────────────────────────────── */
.awb-booking-card { transition: box-shadow 0.2s; }
.awb-booking-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
