/* Vaccination tiles (step 1) */
.pb-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1rem 0;
}
.pb-tile {
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #fff;
}
.pb-tile__title {
  margin: 0;
}
.pb-tile__meta {
  display: flex;
  gap: 1rem;
  font-weight: 600;
  margin: 0;
}
.pb-tile__details summary {
  cursor: pointer;
  color: #0b7d6e;
}
.pb-tile__book {
  margin-top: auto;
  align-self: flex-start;
}

/* Week grid slot picker (step 2) */
.pb-week {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 1.25rem 0;
}
.pb-week__nav {
  padding-top: 0.4rem;
}
.pb-week__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: #e6f5f2;
  color: #0b7d6e;
  font-size: 1.5rem;
  line-height: 1;
  text-decoration: none;
}
.pb-week__arrow:hover {
  background: #cdeae4;
}
.pb-week__arrow.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}
.pb-week__grid {
  display: grid;
  grid-template-columns: repeat(var(--pb-days, 7), minmax(84px, 1fr));
  gap: 0.5rem;
  flex: 1;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.pb-week__col.is-today .pb-week__head {
  color: #0b7d6e;
  font-weight: 700;
}
.pb-week__head {
  text-align: center;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.pb-week__weekday {
  display: block;
  font-weight: 600;
}
.pb-week__date {
  display: block;
  font-size: 0.85rem;
  color: #666;
}
.pb-week__slots {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}
.pb-pill {
  display: block;
  text-align: center;
  padding: 0.5rem 0;
  border-radius: 999px;
  background: #e6f5f2;
  color: #0b7d6e;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.pb-pill:hover {
  background: #0b7d6e;
  color: #fff;
}
.pb-week__empty {
  text-align: center;
  color: #b5b5b5;
  padding-top: 0.5rem;
}
@media (max-width: 720px) {
  .pb-week__grid {
    grid-template-columns: repeat(var(--pb-days, 7), minmax(76px, 1fr));
  }
}

.pb-picker.is-loading .pb-week__grid {
  opacity: 0.45;
  transition: opacity 0.15s;
  pointer-events: none;
}

/* Staff calendar */
.pb-legend {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.pb-legend__item { display: inline-flex; align-items: center; gap: 0.4rem; }
.pb-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  display: inline-block;
}
.pb-dot.is-free, .pb-cal.is-free { background: #e3f4e6; border: 1px solid #79c78a; }
.pb-dot.is-new, .pb-cal.is-new { background: #fdf0d3; border: 1px solid #e6bb54; }
.pb-dot.is-confirmed, .pb-cal.is-confirmed { background: #d9efec; border: 1px solid #0b7d6e; }
.pb-dot.is-blocked, .pb-cal.is-blocked { background: #ececec; border: 1px solid #b9b9b9; color: #888; }
.pb-cal {
  display: block;
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  text-align: center;
  text-decoration: none;
  color: #1d1d1d;
  line-height: 1.3;
}
.pb-cal.is-past { opacity: 0.45; }
a.pb-cal:hover { filter: brightness(0.95); }
.pb-cal__time { display: block; font-weight: 700; }
.pb-cal__name {
  display: block;
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tile pop-up triggers */
.pb-tile__more {
  background: none;
  border: none;
  padding: 0;
  color: #0b7d6e;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  align-self: flex-start;
}
.pb-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  margin-left: 0.35rem;
  border-radius: 50%;
  border: 1px solid #0b7d6e;
  background: #e6f5f2;
  color: #0b7d6e;
  font-size: 0.8rem;
  font-style: italic;
  font-weight: 700;
  font-family: Georgia, serif;
  cursor: pointer;
  vertical-align: text-bottom;
}
.pb-info-btn:hover { background: #0b7d6e; color: #fff; }

/* Pop-up dialogs */
.pb-dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: 560px;
  width: calc(100% - 2rem);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.pb-dialog::backdrop {
  background: rgba(15, 25, 23, 0.55);
  backdrop-filter: blur(2px);
}
.pb-dialog[open] {
  animation: pb-dialog-in 0.18s ease-out;
}
@keyframes pb-dialog-in {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.pb-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e2e2;
  background: #f7fbfa;
  border-radius: 12px 12px 0 0;
}
.pb-dialog__head h3 { margin: 0; font-size: 1.1rem; }
.pb-dialog__close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: #888;
  cursor: pointer;
  padding: 0 0.25rem;
}
.pb-dialog__close:hover { color: #1d1d1d; }
.pb-dialog__body { padding: 1.25rem; }
.pb-dialog__price { font-weight: 700; font-size: 1.15rem; margin-top: 0; }

/* Tile layout per design: title / more-link / short+schedule / price / button */
.pb-tile { gap: 0.6rem; }
.pb-tile__short { margin: 0; }
.pb-tile__pricing { margin: 0; display: flex; align-items: center; gap: 0.4rem; }
.pb-tile__pricing strong { font-weight: 700; }
.pb-info-btn {
  background: transparent;
  border: 1.5px solid #0b7d6e;
}

.pb-card__location { color: #667; font-size: 0.9rem; margin-top: -0.5rem; }

.pb-dot.is-completed, .pb-cal.is-completed { background: #e9e7f8; border: 1px solid #7b6fc9; }

.pb-dot.is-archived, .pb-cal.is-archived { background: #f0f0f0; border: 1px dashed #a9b8b5; color: #789; }

.pb-thankyou__steps { max-width: 640px; padding-left: 1.4rem; }
.pb-thankyou__steps li { margin-bottom: 0.9rem; line-height: 1.55; }
.pb-thankyou__steps em { color: #a33; font-style: normal; font-weight: 600; }
