/* ═══════ MOZinONE Reservas — estilos frontend ═══════ */

/* ── Botão flutuante adaptável (canto inferior direito) ── */
.mozres-fab {
  position: fixed !important;
  bottom: 24px; right: 24px;
  z-index: 99980;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #1A112C;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 22px;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(26,17,44,0.35);
  transition: all .25s;
}
.mozres-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(26,17,44,0.45); background: #E4385C; }

/* ── Overlay do modal ── */
.mozres-overlay {
  display: none;
  position: fixed !important;
  inset: 0;
  z-index: 99991;
  background: rgba(26,17,44,0.6);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.mozres-overlay.open { display: flex; }

.mozres-widget {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  width: 100%;
  max-width: 480px;
  margin: auto;
}
.mozres-widget * { box-sizing: border-box; }

.mozres-card {
  position: relative;
  background: #fff;
  border: none;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.mozres-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border: none; border-radius: 50%;
  background: #F4F4F6; color: #666;
  font-size: 14px; cursor: pointer;
  transition: all .2s;
}
.mozres-close:hover { background: #E4385C; color: #fff; }
.mozres-biz { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #E4385C; margin-bottom: 3px; }
.mozres-head { display: flex; align-items: center; gap: 15px; margin-bottom: 24px; padding-right: 30px; }
.mozres-head-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  background: linear-gradient(135deg, #E4385C, #ff6b88);
  color: #fff;
  border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(228,56,92,0.28);
}
.mozres-head-icon svg { width: 26px; height: 26px; }
.mozres-title { font-size: 21px; font-weight: 900; color: #1A112C; letter-spacing: -0.4px; margin: 0; line-height: 1.15; }
.mozres-sub   { font-size: 13px; color: #999; margin: 3px 0 0; line-height: 1.4; }
.mozres-fab-icon { display: inline-flex; }
.mozres-fab-icon svg { width: 17px; height: 17px; }

.mozres-deposit-note {
  background: rgba(250,199,117,0.14); border: 1px solid rgba(196,126,0,0.2);
  border-radius: 10px; padding: 10px 14px; font-size: 13px; color: #8a5a00; margin-bottom: 16px;
}

.mozres-row { margin-bottom: 14px; }
.mozres-row label { display: block; font-size: 13px; font-weight: 600; color: #333; margin-bottom: 6px; }
.mozres-row input, .mozres-row select, .mozres-row textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid #E6E6E6; border-radius: 10px;
  font-size: 14px; font-family: inherit; color: #1A112C; background: #fff;
  transition: border-color .2s;
}
.mozres-row input:focus, .mozres-row select:focus, .mozres-row textarea:focus {
  outline: none; border-color: #E4385C;
}
.mozres-row select:disabled { background: #F8F8F7; color: #999; cursor: not-allowed; }
.mozres-slots-hint { font-size: 12px; color: #E4385C; margin: 6px 0 0; }

.mozres-submit {
  width: 100%; padding: 14px; margin-top: 8px;
  background: #E4385C; color: #fff; border: none; border-radius: 12px;
  font-size: 15px; font-weight: 800; font-family: inherit; cursor: pointer;
  transition: all .25s;
}
.mozres-submit:hover:not(:disabled) { background: #c62a48; transform: translateY(-1px); }
.mozres-submit:disabled { opacity: .6; cursor: not-allowed; }

.mozres-msg { margin-top: 16px; font-size: 14px; line-height: 1.6; text-align: center; }
.mozres-msg.mozres-ok  { color: #1D9E75; font-weight: 600; padding: 16px; background: rgba(29,158,117,0.08); border-radius: 12px; }
.mozres-msg.mozres-err { color: #E4385C; font-weight: 600; }
.mozres-ref { display: inline-block; margin-top: 6px; font-size: 12px; color: #546E5A; letter-spacing: .5px; }
.mozres-wa-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  background: #25D366; color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: 12px; font-weight: 800; font-size: 14px;
  transition: all .2s;
}
.mozres-wa-btn:hover { background: #1da851; transform: translateY(-1px); color: #fff; }
.mozres-msg.mozres-pay { color: #1A112C; padding: 18px; background: rgba(55,138,221,0.08); border-radius: 12px; line-height: 1.6; }
.mozres-spinner {
  width: 28px; height: 28px; margin: 14px auto 0;
  border: 3px solid rgba(55,138,221,0.25); border-top-color: #378ADD;
  border-radius: 50%; animation: mozresSpin 0.8s linear infinite;
}
@keyframes mozresSpin { to { transform: rotate(360deg); } }

/* ═══════ Painel da empresa ═══════ */
.mozres-panel {
  font-family: 'Plus Jakarta Sans', sans-serif;
  max-width: 860px;
  margin: 0 auto;
  padding: 8px 16px 40px;
}
.mozres-panel-head h2 { font-size: 28px; font-weight: 900; color: #1A112C; letter-spacing: -0.8px; margin: 0; }
.mozres-panel-head p { font-size: 14px; color: #999; margin: 4px 0 20px; }

/* Estatísticas rápidas */
.mozres-panel-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}
.mozres-stat {
  background: #fff;
  border: 2px solid #ECECEC;
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(26,17,44,0.04);
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
}
.mozres-stat:hover { border-color: #d5d5d5; transform: translateY(-1px); }
.mozres-stat-active { border-color: #1A112C !important; box-shadow: 0 6px 18px rgba(26,17,44,0.12); }
.mozres-stat-num { display: block; font-size: 30px; font-weight: 900; color: #1A112C; line-height: 1; }
.mozres-stat-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #999; margin-top: 8px; }

/* Pesquisa */
.mozres-search {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #E6E6E6;
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: #1A112C;
  margin-bottom: 16px;
  transition: border-color .2s;
}
.mozres-search:focus { outline: none; border-color: #E4385C; box-shadow: 0 0 0 4px rgba(228,56,92,0.08); }
.mozres-empty-filter {
  text-align: center; color: #999; font-size: 14px;
  padding: 40px 20px; background: #fff; border: 1px dashed #DDD; border-radius: 14px;
}

.mozres-panel-flash { background: rgba(29,158,117,0.1); color: #1D9E75; font-weight: 700; padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; }
.mozres-panel-login, .mozres-panel-empty {
  background: #fff; border: 1px dashed #DDD; border-radius: 16px; padding: 48px 32px;
  text-align: center; color: #999; font-size: 14px; font-family: 'Plus Jakarta Sans', sans-serif;
}
/* lista com scroll próprio — a página não cresce sem controlo, mesmo com 1000 reservas */
.mozres-panel-list {
  display: flex; flex-direction: column; gap: 14px;
  max-height: 65vh;
  overflow-y: auto;
  padding: 4px 6px 4px 2px;
  -webkit-overflow-scrolling: touch;
}
.mozres-panel-list::-webkit-scrollbar { width: 8px; }
.mozres-panel-list::-webkit-scrollbar-thumb { background: #d8d8d8; border-radius: 8px; }
.mozres-panel-list::-webkit-scrollbar-track { background: transparent; }

/* Cartão de reserva */
.mozres-booking {
  background: #fff;
  border: 1px solid #ECECEC;
  border-radius: 16px;
  padding: 22px 24px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  box-shadow: 0 2px 12px rgba(26,17,44,0.04);
  border-left: 4px solid #F9A825;   /* pendente por defeito */
  transition: box-shadow .2s;
}
.mozres-booking:hover { box-shadow: 0 8px 24px rgba(26,17,44,0.08); }
.mozres-booking:has(.mozres-st-confirmed) { border-left-color: #1D9E75; }
.mozres-booking:has(.mozres-st-cancelled) { border-left-color: #E4385C; }
.mozres-booking:has(.mozres-st-completed) { border-left-color: #546E5A; }

.mozres-booking-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mozres-booking-ref {
  font-size: 11px; font-weight: 800; color: #888; letter-spacing: 1px;
  background: #F4F4F6; padding: 3px 10px; border-radius: 6px;
}
.mozres-booking-status { font-size: 10.5px; font-weight: 800; padding: 4px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: .8px; }
.mozres-booking-biz { font-size: 17px; font-weight: 800; color: #1A112C; letter-spacing: -0.3px; }
.mozres-booking-when { font-size: 14px; font-weight: 700; color: #1A112C; margin-top: 6px; }
.mozres-booking-cust, .mozres-booking-svc, .mozres-booking-notes {
  font-size: 13px; color: #666; margin-top: 4px;
}
.mozres-booking-cust a { color: #1D9E75; text-decoration: none; font-weight: 700; }
.mozres-booking-cust a:hover { text-decoration: underline; }

/* Botões de ação — sólidos, texto branco, sempre legíveis */
.mozres-booking-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; justify-content: center; min-width: 130px; }
.mozres-booking-actions form { margin: 0 !important; }
.mozres-booking-actions button {
  width: 100%;
  padding: 10px 18px !important;
  background: var(--mozres-btn, #999) !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  color: #fff !important;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.mozres-booking-actions button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.mozres-act-done { font-size: 13px; font-weight: 800; text-align: center; padding: 8px 6px; }

@media (max-width: 600px) {
  .mozres-card { padding: 20px; }
  .mozres-booking { flex-direction: column; }
  .mozres-booking-actions { flex-direction: row; flex-wrap: wrap; }
  .mozres-booking-actions button { width: auto; }
}

/* ═══════ v1.4.0 — Picker estilo app (Reservar) + ecrã de sucesso ═══════ */
.mozres-widget { max-width: 540px; }
.mozres-card { display: flex; flex-direction: column; padding: 0 !important; overflow: hidden !important; }
.mozres-sheethead { position: relative; padding: 22px 24px 6px; flex: 0 0 auto; }
.mozres-sheethead .mozres-close { top: 18px; right: 18px; }
.mozres-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: #E4385C; }
.mozres-h1 { font-size: 22px; font-weight: 900; color: #1A112C; letter-spacing: -0.5px; margin: 3px 40px 0 0; line-height: 1.15; }
.mozres-h1-sub { font-size: 13px; color: #8A8FA6; font-weight: 600; margin-top: 4px; }
/* O <form> TEM de ser coluna flex com min-height:0, senão o .mozres-sheetbody
   (flex:1 1 auto; overflow:auto) não recebe altura limitada e não cria zona de
   scroll -> ao carregar as horas o conteúdo passa dos 94vh, o cartão corta e o
   scroll "congela" (não se chega ao nome/telefone). min-height:0 anula o
   min-height:auto que impede um item flex de encolher abaixo do conteúdo. */
.mozres-form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.mozres-sheetbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 24px 18px; -webkit-overflow-scrolling: touch; }
.mozres-sheetfoot { flex: 0 0 auto; position: sticky; bottom: 0; z-index: 2; padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid #ECEDF3; background: #fff; }
.mozres-sheetfoot .mozres-submit { margin-top: 0; height: 54px; border-radius: 16px; }

/* IMPORTANTE: minmax(0,1fr) + min-width:0 impedem as colunas de esticar ao
   min-content (o tema Wilcity inflaria os chips e a grelha transbordava o cartao). */
.mozres-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 24px; }
.mozres-col { min-width: 0; }
@media (min-width: 560px) { .mozres-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.mozres-sect { font-size: 12px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; color: #a2a7bd; margin: 16px 2px 9px; }

/* Reset contra os estilos globais de button/input do tema */
.mozres-dchip, .mozres-tchip, .mozres-stepper button, .mozres-ok-home {
  -webkit-appearance: none; appearance: none; box-shadow: none !important;
  min-height: 0 !important; line-height: 1.15; text-transform: none; letter-spacing: normal;
}

/* Data — chips deslizantes */
.mozres-datescroll { display: flex; gap: 8px; overflow-x: auto; min-width: 0; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.mozres-datescroll::-webkit-scrollbar { height: 0; }
.mozres-dchip { flex: 0 0 auto; width: 64px; background: #fff; border: 1.5px solid #ECEDF3; border-radius: 14px; padding: 8px 0; text-align: center; cursor: pointer; font-family: inherit; }
.mozres-dchip small { display: block; font-size: 10.5px; font-weight: 700; color: #8A8FA6; text-transform: uppercase; letter-spacing: 0.4px; margin: 0 0 1px; }
.mozres-dchip b { display: block; font-size: 18px; font-weight: 800; color: #1A112C; line-height: 1.05; }
.mozres-dchip.on { background: #1E1A4D; border-color: #1E1A4D; }
.mozres-dchip.on b { color: #fff; }
.mozres-dchip.on small { color: #c7c9e6; }
.mozres-dchip-cal { display: grid; place-items: center; position: relative; color: #8A8FA6; }
.mozres-dchip-cal input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Hora — grelha de chips */
.mozres-slotgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; min-width: 0; }
@media (min-width: 560px) { .mozres-slotgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mozres-tchip { min-width: 0; background: #fff; border: 1.5px solid #ECEDF3; border-radius: 11px; padding: 11px 2px; text-align: center; font-size: 13.5px; font-weight: 800; color: #1A112C; cursor: pointer; font-family: inherit; }
.mozres-tchip:hover { border-color: #d5d8e6; }
.mozres-tchip.on { background: #E4385C; border-color: #E4385C; color: #fff; }
.mozres-slot-msg { grid-column: 1 / -1; font-size: 12.5px; color: #8A8FA6; font-weight: 600; padding: 6px 2px; }

/* Pessoas — stepper */
.mozres-stepper { display: inline-flex; align-items: center; gap: 14px; background: #fff; border: 1.5px solid #ECEDF3; border-radius: 14px; padding: 8px 14px; }
.mozres-stepper button { width: 36px; height: 36px; border-radius: 10px; border: 0; background: #EEF0F6; color: #1E1A4D; font-size: 20px; font-weight: 800; cursor: pointer; line-height: 1; display: grid; place-items: center; }
.mozres-stepper button:hover { background: #e2e5ef; }
.mozres-stepper input { width: 38px !important; border: 0 !important; padding: 0 !important; text-align: center; font-size: 19px; font-weight: 800; color: #1A112C; background: transparent; -moz-appearance: textfield; }
.mozres-stepper input::-webkit-outer-spin-button, .mozres-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mozres-stepper-lbl { font-size: 12px; color: #8A8FA6; font-weight: 700; }

/* Ecrã de sucesso (Reserva confirmada) */
.mozres-success { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 34px 28px; }
.mozres-ok-ring { width: 92px; height: 92px; border-radius: 50%; background: rgba(29,158,117,0.12); display: grid; place-items: center; margin-bottom: 20px; }
.mozres-ok-disc { width: 62px; height: 62px; border-radius: 50%; background: #1D9E75; display: grid; place-items: center; color: #fff; }
.mozres-ok-h { font-size: 23px; font-weight: 900; color: #1A112C; letter-spacing: -0.4px; margin: 0; }
.mozres-ok-s { font-size: 13.5px; color: #8A8FA6; font-weight: 600; margin: 8px 0 24px; line-height: 1.5; }
.mozres-rcard { width: 100%; background: #fff; border: 1px solid #ECEDF3; border-radius: 16px; padding: 2px 18px; text-align: left; box-shadow: 0 14px 30px -20px rgba(30,26,77,0.4); }
.mozres-rrow { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #ECEDF3; font-size: 13.5px; }
.mozres-rrow:last-child { border-bottom: 0; }
.mozres-rrow .k { color: #8A8FA6; font-weight: 700; flex: 0 0 auto; }
.mozres-rrow .v { font-weight: 800; color: #1A112C; text-align: right; }
.mozres-rrow .v.paid { color: #1D9E75; }
.mozres-ok-actions { width: 100%; margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.mozres-ok-wa { height: 52px; border: 0; border-radius: 15px; background: #25D366; color: #fff; font-size: 14.5px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; }
.mozres-ok-wa:hover { background: #1da851; color: #fff; }
.mozres-ok-home { height: 48px; border: 0; border-radius: 13px; background: transparent; color: #1E1A4D; font-size: 14px; font-weight: 800; cursor: pointer; }

/* Telemóvel: modal vira sheet que sobe de baixo, coluna única */
@media (max-width: 600px) {
  .mozres-overlay { align-items: flex-end; padding: 0; }
  .mozres-widget { max-width: 100%; margin: 0; }
  .mozres-card { border-radius: 22px 22px 0 0; max-height: 94vh; width: 100%; }
  .mozres-cols { grid-template-columns: minmax(0, 1fr); }
  .mozres-slotgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── Ecrã de sucesso: botão primário "Ver a minha reserva" (mockup A) ── */
.mozres-ok-view { height: 52px; border: 0; border-radius: 15px; background: #E4385C; color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; box-shadow: 0 14px 28px -14px rgba(228,56,92,.8); }
.mozres-ok-view:active { transform: scale(.98); }

/* ── Histórico "As minhas reservas" (guardado no telemóvel, sem login) ── */
.mozres-hist-overlay { position: fixed; inset: 0; z-index: 100002; background: rgba(14,10,36,.5); display: none; align-items: center; justify-content: center; padding: 20px; }
.mozres-hist-overlay.open { display: flex; }
.mozres-hist-card { background: #F4F5FA; border-radius: 20px; width: 100%; max-width: 460px; max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; font-family: 'Plus Jakarta Sans',-apple-system,Segoe UI,Roboto,sans-serif; box-shadow: 0 30px 60px -20px rgba(14,10,36,.6); }
.mozres-hist-head { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #fff; border-bottom: 1px solid #ECEDF3; }
.mozres-hist-back { width: 38px; height: 38px; border: 0; border-radius: 11px; background: #F1F2F7; color: #1E1A4D; font-size: 16px; font-weight: 800; cursor: pointer; }
.mozres-hist-title { margin: 0; font-size: 17px; font-weight: 800; color: #1E1A4D; }
.mozres-hist-list { flex: 1 1 auto; padding: 14px 16px 18px; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 11px; }
.mozres-hist-empty { text-align: center; color: #8A8FA6; font-size: 14px; font-weight: 600; padding: 30px 10px; }
.mozres-hcard { background: #fff; border-radius: 15px; padding: 14px 16px; box-shadow: 0 12px 26px -20px rgba(30,26,77,.4); }
.mozres-hcard-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mozres-hcard-biz { font-size: 15.5px; font-weight: 800; color: #1E1A4D; }
.mozres-hstatus { font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.mozres-hcard-when { font-size: 13.5px; font-weight: 700; color: #1E1A4D; margin-top: 6px; }
.mozres-hcard-meta { font-size: 12.5px; font-weight: 600; color: #8A8FA6; margin-top: 3px; }
.mozres-hcard-wa { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 800; color: #1D9E75; text-decoration: none; }
@media (max-width: 600px) {
  .mozres-hist-overlay { padding: 0; align-items: stretch; justify-content: stretch; }
  .mozres-hist-card { max-width: none; max-height: none; height: 100%; border-radius: 0; }
}

/* ── Página "As minhas reservas" (shortcode [mozinone_minhas_reservas]) ── */
.mozres-mine { font-family: 'Plus Jakarta Sans',-apple-system,Segoe UI,Roboto,sans-serif; max-width: 560px; margin: 0 auto; padding: 8px 4px 32px; }
.mozres-mine-list { display: flex; flex-direction: column; gap: 11px; }
.mozres-mine-empty { text-align: center; color: #8A8FA6; font-size: 14px; font-weight: 600; padding: 40px 16px; }
.mozres-mine-login { display: inline-block; margin-top: 14px; background: #E4385C; color: #fff; text-decoration: none; padding: 12px 26px; border-radius: 13px; font-weight: 800; font-size: 14px; }
