/* ============================================================
   ROSSA — Date/Time picker modal + WhatsApp floating bubble
   ============================================================ */

/* ─────────────────────────────────────────────────
   PICKER MODAL — full-screen overlay
   ───────────────────────────────────────────────── */

.picker {
  position: fixed; inset: 0;
  z-index: 100;
  background: var(--paper);
  display: none;
  flex-direction: column;
  opacity: 0;
  transition: opacity .2s ease;
}
.picker.is-open { display: flex; opacity: 1; }
body.is-picker-open { overflow: hidden; }

.picker__head {
  background: var(--ink);
  color: var(--paper);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--ink-line);
}
.picker__head .brand { height: auto; }
.picker__head .rossa-mark { width: 120px; }
.picker__head .stepper {
  display: inline-flex; align-items: center; gap: 16px;
  justify-self: end;
}
.picker__head .step-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--f-ui);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .04em;
  color: rgba(246,243,238,.5);
  background: transparent;
  border: 1px solid rgba(255,255,255,.16);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.picker__head .step-pill.is-on { color: var(--paper); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); }
.picker__head .step-pill[disabled] { opacity: .5; cursor: not-allowed; }
.picker__head .step-pill__num {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  color: var(--rossa-bright);
}
.picker__head .step-sep { color: rgba(255,255,255,.3); font-size: 14px; }
.picker__head .close {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: var(--paper);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.picker__head .close:hover { background: rgba(255,255,255,.08); border-color: var(--paper); }

.picker__title-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  padding: 32px var(--gutter) 28px;
  border-bottom: 1px solid var(--paper-line);
  background: var(--paper);
}
.picker__title-bar h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -.01em;
  margin: 0;
  line-height: 1;
}
.picker__title-bar h2 em { font-style: italic; color: var(--rossa); font-weight: 500; }
.picker__title-bar .sub {
  font-family: var(--f-ui);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: .04em;
  margin-top: 6px;
}
.picker__title-bar .change-date {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-ui);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ink);
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--paper-warm);
  transition: background .2s;
}
.picker__title-bar .change-date:hover { background: #ede7da; color: var(--rossa); }

.picker__body {
  flex: 1;
  overflow-y: auto;
  padding: 40px var(--gutter) 64px;
}

/* ── Calendar (3 months) ─────────────────────────── */

.cal {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
}
.cal__nav-prev,
.cal__nav-next {
  position: absolute; top: 12px;
  width: 44px; height: 44px;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  display: grid; place-items: center;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.cal__nav-prev { left: 0; }
.cal__nav-next { right: 0; }
.cal__nav-prev:hover,
.cal__nav-next:hover { border-color: var(--rossa); color: var(--rossa); }
.cal__nav-prev:disabled { opacity: .4; cursor: not-allowed; }

.cal__months {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  padding: 0 64px;
}
.cal__month {
  display: flex; flex-direction: column; align-items: stretch;
}
.cal__month h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  text-align: center;
  margin: 0 0 20px;
  letter-spacing: -.005em;
}
.cal__dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 12px;
}
.cal__dow span { padding: 6px 0; }
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal__day {
  aspect-ratio: 1/1;
  display: grid; place-items: center;
  font-family: var(--f-ui);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background .15s, color .15s;
  border: 1px solid transparent;
}
.cal__day:hover { background: var(--paper-warm); }
.cal__day.is-empty { visibility: hidden; cursor: default; }
.cal__day.is-past { color: var(--paper-line); cursor: not-allowed; }
.cal__day.is-past:hover { background: transparent; }
.cal__day.is-today { border-color: var(--paper-line); }
.cal__day.is-selected { background: var(--rossa); color: #fff; }
.cal__day.is-selected:hover { background: var(--rossa-deep); }
.cal__day.is-in-range { background: var(--rossa-tint); color: var(--rossa-deep); border-radius: 0; }

@media (max-width: 1024px) {
  .cal__months { grid-template-columns: 1fr; gap: 40px; padding: 0; }
  .cal__nav-prev, .cal__nav-next { position: static; }
  .cal__nav-wrap { display: flex; justify-content: space-between; margin-bottom: 24px; }
}

/* ── Time picker ─────────────────────────── */

.timepick {
  max-width: 760px;
  margin: 0 auto;
}
.timepick__hours {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: var(--paper-warm);
  border-radius: 999px;
  font-family: var(--f-ui);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  margin: 0 auto 36px;
  justify-self: center;
}
.timepick__hours .icon { color: var(--rossa); }

.timepick__group { margin-bottom: 36px; }
.timepick__group h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 16px;
  letter-spacing: -.005em;
}
.timepick__group h3 em { font-style: italic; color: var(--rossa); }

.timepick__slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.timepick__slot {
  padding: 14px 18px;
  background: var(--paper-warm);
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--f-ui);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  text-align: center;
}
.timepick__slot:hover { background: #fff; border-color: var(--ink); }
.timepick__slot.is-selected { background: var(--rossa); color: #fff; border-color: var(--rossa); }

@media (max-width: 720px) {
  .timepick__slots { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .timepick__slots { grid-template-columns: repeat(2, 1fr); }
}

.timepick__center { display: flex; justify-content: center; }

/* ─────────────────────────────────────────────────
   WHATSAPP FLOATING BUBBLE
   ───────────────────────────────────────────────── */

.wa-bubble {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px 14px 16px;
  background: #25D366;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 12px 32px -6px rgba(37, 211, 102, .55), 0 4px 12px rgba(0,0,0,.18);
  transition: transform .3s ease, box-shadow .2s, background .2s, opacity .3s ease;
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .02em;
}
.wa-bubble--hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) !important;
}
.wa-bubble:hover {
  transform: translateY(-2px);
  background: #1ebd5b;
  box-shadow: 0 16px 36px -6px rgba(37, 211, 102, .7), 0 6px 16px rgba(0,0,0,.22);
}
.wa-bubble__icon {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  display: grid; place-items: center;
}
.wa-bubble__label { display: flex; flex-direction: column; line-height: 1.1; }
.wa-bubble__label small {
  font-weight: 400;
  font-size: 11px;
  opacity: .85;
  letter-spacing: .04em;
}

@media (max-width: 720px) {
  .wa-bubble { right: 16px; bottom: 16px; padding: 12px; }
  .wa-bubble__label { display: none; }
  .wa-bubble__icon { width: 32px; height: 32px; }
}
