/* === Contenitore principale === */
.wv-agenda-box {
  border: 1px solid #e3e3e3;
  padding: 20px;
  margin-bottom: 30px;
  background: #fff;
  border-radius: 8px;
}

.wv-agenda-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.wv-agenda-form input,
.wv-agenda-form select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* === Layout due colonne === */
.wv-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.wv-col {
  flex: 1 1 300px;
}

/* === Calendario === */
.wv-calendar {
  user-select: none;
  margin-bottom: 10px;
}

.wv-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.wv-cal-header .button {
  padding: 4px 8px;
  font-size: 14px;
}

.wv-cal-title {
  font-weight: 600;
  text-transform: capitalize;
}

/* griglia calendario */
.wv-cal-grid {
  display: flex;
  flex-direction: column;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.wv-cal-row {
  display: flex;
}

.wv-cal-cell {
  flex: 1;
  text-align: center;
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 8px 0;
}

.wv-cal-row:last-child .wv-cal-cell {
  border-bottom: none;
}
.wv-cal-cell:last-child {
  border-right: none;
}

.wv-cal-head .wv-cal-cell {
  background: #f7f7f7;
  font-weight: 600;
  border-bottom: 2px solid #ddd;
}

/* bottoni giorni */
.wv-cal-cell button {
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.wv-cal-cell.wv-disabled button {
  color: #aaa;
  cursor: not-allowed;
}

/* Giorno di oggi (contorno blu) */
.wv-cal-cell.wv-today {
  border: 2px solid #0071a1;
  border-radius: 0%;
  font-weight: bold;
  color: #0071a1;
  background: #fff;
}

/* Giorno selezionato nel calendario (riempito blu) */
.wv-cal-cell.wv-selected {
  background: #0071a1;
  color: #fff;
  border-radius: 0%;
  border: 1px solid #0071a1;
  font-weight: bold;
}

/* se oggi è anche selezionato, prevale blu pieno */
.wv-cal-cell.wv-today.wv-selected {
  background: #0071a1;
  color: #fff;
  border: 2px solid #0071a1;
}

/* === Dettaglio giorno / Slot === */
.wv-day-detail {
  margin-top: 10px;
}

.wv-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* bottone di base slot */
.wv-slot {
  position: relative;
  background: #f1f1f1;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* badge interno tipo “FULL” / “TOLERANCE” */
.wv-slot-note {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
}

/* SLOT DISPONIBILE (verde) */
.wv-slot.wv-available {
  background: #e7f9ec;
  border-color: #9edbaf;
  color: #1b4d2a;
}
.wv-slot.wv-available:hover {
  background: #2f9d50;
  color: #fff;
}

/* SLOT IN TOLLERANZA (arancione) */
.wv-slot.wv-tolerance {
  background: #fff3e0;
  border-color: #ffcc80;
  color: #8a4a00;
}
.wv-slot.wv-tolerance .wv-slot-note {
  background: #ffcc80;
  color: #5d3100;
}
.wv-slot.wv-tolerance:hover {
  background: #ffb74d;
  color: #4a2500;
}

/* SLOT PIENO (rosso, disabilitato) */
.wv-slot.wv-full {
  background: #fde0e0;
  border-color: #f5a3a3;
  color: #8a1b1b;
  cursor: not-allowed;
}
.wv-slot.wv-full .wv-slot-note {
  background: #f5a3a3;
  color: #5a0f0f;
}

/* Slot selezionato dall’utente */
/* Slot selezionato: verde pieno + bordo blu */
.wv-slot.selected {
  background: #2f9d50;      /* verde pieno */
  color: #fff;              /* testo bianco */
  border-color: #2f9d50;
  box-shadow: 0 0 0 2px #2f9d50;  /* contorno blu */
}


/* === Messaggi === */
.wv-agenda-msg .success {
  background: #dff0d8;
  color: #3c763d;
  padding: 8px 10px;
  border-radius: 4px;
  margin-top: 10px;
}

.wv-agenda-msg .error {
  background: #f2dede;
  color: #a94442;
  padding: 8px 10px;
  border-radius: 4px;
  margin-top: 10px;
}

.wv-loading {
  padding: 8px;
  color: #555;
}

.notice {
  color: #777;
  padding: 8px;
}

/* ==== Boarding Pass Style for Store Check-In ==== */
.wv-ticket {
  background: linear-gradient(145deg, #ffffff, #f8f8f8);
  border: 1px solid #ddd;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  padding: 22px 26px;
  max-width: 520px;
  margin: 30px auto;
  font-family: "Helvetica Neue", Arial, sans-serif;
  position: relative;
  overflow: hidden;
}
.wv-ticket::before,
.wv-ticket::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  transform: translateY(-50%);
}
.wv-ticket::before { left: -11px; }
.wv-ticket::after { right: -11px; }

.wv-ticket h3 {
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  color: #111;
  font-size: 16px;
}

.wv-ticket .wv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed #ccc;
  padding: 8px 0;
  font-size: 14px;
}
.wv-ticket .wv-row:first-of-type { border-top: none; }

.wv-ticket .wv-status {
  font-weight: bold;
  text-transform: capitalize;
}
.wv-ticket .wv-status.booked { color: #2e7d32; }
.wv-ticket .wv-status.cancelled { color: #c62828; }
.wv-ticket .wv-status.expired { color: #e65100; }

.wv-ticket .wv-icon {
  font-size: 15px;
  margin-right: 6px;
}

/* ==== Boarding Pass v1 ==== */
.wv-bpass {
  max-width: 560px; margin: 28px auto; border-radius: 28px; overflow: hidden;
  background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.08); border: 1px solid #e9e9e9;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
.wv-bpass__top {
  background:#000; color:#fff; text-align:center; padding:26px 18px;
}
.wv-bpass__brand { font-size:26px; letter-spacing:1.5px; font-weight:700; }
.wv-bpass__subtitle { font-size:13px; opacity:.9; margin-top:6px; letter-spacing:1px; }

.wv-bpass__body { padding:22px 22px 10px; }
.wv-bpass__grid { display:grid; grid-template-columns:1fr 1fr; gap:14px 22px; align-items:end; }
.wv-bpass__label { font-weight:800; letter-spacing:.6px; font-size:12px; color:#1a2b6a; text-transform:uppercase; }
.wv-bpass__value--big { font-size:28px; font-weight:800; color:#4a62ff; line-height:1.1; }

.wv-bpass__name {
  margin:16px 0 10px; padding:14px 16px; border-radius:18px;
  font-weight:700; display:flex; gap:10px; align-items:center;
  background:#eef2ff; color:#1a237e; /* default */
}
.wv-bpass__meta { margin:4px 0; display:grid; grid-template-columns:110px 1fr; gap:6px; font-size:15px; }
.wv-bpass__meta b { font-weight:600; color:#333; }
.wv-bpass__status { font-weight:800; }
.wv-bpass__qr { text-align:center; padding:10px 0 6px; }
.wv-bpass__qr img { width:150px; height:150px; border-radius:8px; border:1px solid #eee; }

.wv-bpass__note { padding:10px 18px 18px; font-size:13px; text-align:center; }
.wv-bpass__foot { background:#000; height:40px; }

/* —— status colors on NAME pill —— */
.wv-bpass.status-booked .wv-bpass__name { background:#fff4e0; color:#7a4100; }   /* arancio chiaro */
.wv-bpass.status-checked-in .wv-bpass__name { background:#e7f8ec; color:#0d5b2a; }/* verde */
.wv-bpass.status-cancelled .wv-bpass__name { background:#ffe6e6; color:#8a1020; } /* rosso */
.wv-bpass.status-expired .wv-bpass__name { background:#f0f0f0; color:#444; }      /* grigio */

/* responsive tweaks */
@media (max-width:480px){
  .wv-bpass__grid { grid-template-columns:1fr 1fr; gap:10px 14px; }
  .wv-bpass__value--big { font-size:22px; }
}
