/* ============================================================
   SCHEDULING LINKS — autoagendamento público da agenda
   ------------------------------------------------------------
   Design Minimalista ("Menos é mais"):
   O modal abre compacto, limpo e direto, focado 100% no
   compartilhamento (Copiar link, WhatsApp e Visualizar).
   As configurações detalhadas de horários e regras abrem
   apenas sob demanda com 1 clique ("Ajustar regras").
   Liquid Glass, sem cara de IA, sem transforms em botões.
   ============================================================ */

/* --- Botão no hero da agenda: mesma formatação do agenda-back-button --- */
#agenda-view #agenda-share-link-button {
  margin: 0;
}

#agenda-view #agenda-share-link-button svg {
  fill: none;
  stroke: currentColor;
  width: 16px;
  height: 16px;
  color: var(--brand-deep);
}

/* --- Janela Modal: compacta, elegante e contida --- */
.sched-links-modal-window {
  width: min(540px, 94vw);
  max-height: 90vh;
  overflow: hidden;
  border-radius: 26px;
  padding: 22px 24px 20px !important;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 185, 129, 0.35) transparent;
  transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.sched-links-modal-window.is-settings-open {
  width: min(940px, 96vw) !important;
  max-height: 92vh !important;
  height: min(690px, 92vh) !important;
  padding: 0 !important;
  border-radius: 28px !important;
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.04) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.sched-links-modal-window.is-settings-open .nutrie-share-orb-1,
.sched-links-modal-window.is-settings-open .nutrie-share-orb-2 {
  display: none !important;
}

.sched-links-modal-window::-webkit-scrollbar {
  width: 6px;
}

.sched-links-modal-window::-webkit-scrollbar-track {
  background: transparent;
  margin: 16px 0;
}

.sched-links-modal-window::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.35);
  border-radius: 999px;
}

.sched-links-modal-window::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 185, 129, 0.6);
}

.sched-links-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}

/* --- Corpo Minimalista --- */
.sched-clean-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- Barra de Link Ultra-Limpa --- */
.sched-clean-link-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.sched-clean-link-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.sched-clean-link-icon {
  color: #059669;
  flex-shrink: 0;
}

.sched-clean-url {
  border: none !important;
  background: transparent !important;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12.5px;
  color: #334155;
  width: 100%;
  outline: none !important;
  cursor: text;
  box-shadow: none !important;
  padding: 0 !important;
  height: 24px !important;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.sched-clean-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  border: none;
  background: #10b981;
  color: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.sched-clean-copy-btn:hover {
  background: #059669;
}

.sched-clean-copy-btn.is-copied {
  background: #059669;
}

/* --- Cards de Ação: WhatsApp & Visualizar lado a lado --- */
.sched-clean-actions-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 10px;
}

.sched-clean-action-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.sched-clean-wa-card {
  background: rgba(240, 253, 244, 0.9);
  border: 1px solid rgba(34, 197, 94, 0.35);
  text-align: left;
}

.sched-clean-wa-card:hover {
  background: rgba(220, 252, 231, 0.95);
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: 0 4px 12px -2px rgba(34, 197, 94, 0.18);
}

.sched-clean-preview-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.10);
  text-align: left;
}

.sched-clean-preview-card:hover {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.22);
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.06);
}

.sched-clean-action-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #22c55e;
  color: #ffffff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.sched-clean-action-icon-wrap.is-secondary {
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
}

.sched-clean-action-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.sched-clean-action-copy strong {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sched-clean-wa-card .sched-clean-action-copy strong {
  color: #14532d;
}

.sched-clean-action-copy span {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sched-clean-wa-card .sched-clean-action-copy span {
  color: #166534;
}

/* --- Linha de Resumo das Regras em 1 Linha Limpa --- */
.sched-clean-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.sched-clean-summary-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sched-summary-chip {
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.05);
}

.sched-summary-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.sched-summary-status.is-active {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.3);
}

.sched-summary-status.is-paused {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.3);
}

.sched-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.sched-summary-status.is-active .sched-status-dot {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.sched-summary-status.is-paused .sched-status-dot {
  background: #f59e0b;
}

.sched-clean-adjust-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.sched-clean-adjust-btn:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.45);
}

/* --- Painel de Ajustes (Design 2 Colunas — Conforme Imagem) --- */
#sched-panel-settings {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  min-height: 580px;
  flex: 1;
  overflow: hidden;
  box-sizing: border-box;
}

#sched-panel-settings.hidden {
  display: none !important;
}

/* --- Coluna Esquerda: Contexto & Resumo (Mint Pastel) --- */
.sched-settings-sidebar {
  flex: 0 0 310px;
  width: 310px;
  background: #eefaf4;
  border-right: 1px solid #e2e8f0;
  padding: 22px 20px 18px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  scrollbar-width: none;
}

.sched-settings-sidebar::-webkit-scrollbar {
  display: none;
}

.sched-sidebar-header {
  display: flex;
  flex-direction: column;
}

.sched-sidebar-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #d4f3e6;
  color: #00a86b;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0, 168, 107, 0.08);
}

.sched-sidebar-title {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 4px 0;
  letter-spacing: -0.015em;
}

.sched-sidebar-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  margin: 0 0 14px 0;
}

/* Card Resumo da Configuração */
.sched-sidebar-summary-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  padding: 13px 14px;
  box-shadow: 0 4px 14px -3px rgba(15, 23, 42, 0.04);
}

.sched-sidebar-summary-title {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px 0;
  letter-spacing: -0.005em;
}

.sched-sidebar-items {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sched-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sched-sidebar-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eafaf1;
  color: #00a86b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sched-sidebar-item-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.sched-sidebar-item-text strong {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.sched-sidebar-item-text span {
  font-size: 10.5px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.2;
}

/* Ilustração e Slogan */
.sched-sidebar-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 8px;
}

.sched-sidebar-illus-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 4px;
}

.sched-sidebar-illus-svg {
  max-width: 170px;
  height: auto;
  display: block;
}

.sched-sidebar-slogan {
  font-size: 11px;
  font-weight: 500;
  color: #475569;
  line-height: 1.4;
  text-align: left;
  width: 100%;
  margin: 0;
}

/* --- Coluna Direita: Formulário & Ações (Branco Puro) --- */
.sched-settings-main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  background: #ffffff;
  padding: 20px 26px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 185, 129, 0.3) transparent;
}

.sched-settings-main::-webkit-scrollbar {
  width: 6px;
}
.sched-settings-main::-webkit-scrollbar-track {
  background: transparent;
}
.sched-settings-main::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.3);
  border-radius: 999px;
}

.sched-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sched-settings-title {
  font-size: 21px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.015em;
  margin: 0;
}

.sched-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f1f5f9;
  border: none;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.sched-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.sched-settings-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.sched-field-group {
  display: flex;
  flex-direction: column;
}

.sched-field-label {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}

.sched-input-text {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  font-size: 13px;
  color: #0f172a;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sched-input-text:focus {
  border-color: #00a86b;
  box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.12);
}

/* Duração da Sessão (Segmented Chips) */
.sched-duration-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.sched-duration-chips button {
  height: 36px;
  padding: 0 4px;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sched-duration-chips button:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.sched-duration-chips button.is-active {
  background: #00a86b !important;
  color: #ffffff !important;
  border-color: #00a86b !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(0, 168, 107, 0.25) !important;
}

/* Card: Disponibilidade Semanal (SEM BARRA VERTICAL VERDE) */
.sched-card-availability {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* Garantir explicitamente que NÃO haja barra vertical verde */
  border-left: 1px solid #e2e8f0 !important;
}

.sched-card-availability-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.sched-card-icon-wrap {
  color: #00a86b;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.sched-card-header-titles {
  display: flex;
  flex-direction: column;
}

.sched-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
}

.sched-card-subtitle {
  font-size: 11px;
  color: #64748b;
  margin: 1px 0 0 0;
  line-height: 1.25;
}

/* Dias da Semana */
.sched-weekdays-bar {
  display: flex;
  gap: 5px;
}

.sched-weekdays-bar button {
  height: 33px;
  flex: 1;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #94a3b8;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sched-weekdays-bar button:hover {
  background: #f8fafc;
  color: #475569;
  border-color: #cbd5e1;
}

.sched-weekdays-bar button.is-active {
  background: #eafaf1;
  border: 1.5px solid #00a86b;
  color: #00a86b;
  font-weight: 700;
}

/* Faixa de Horário */
.sched-timerange-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sched-time-input-wrap {
  position: relative;
  width: 115px;
}

.sched-time-input-wrap input {
  width: 100%;
  height: 35px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 0 28px 0 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sched-time-input-wrap input:focus {
  border-color: #00a86b;
  box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.12);
}

.sched-time-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.sched-timerange-connector {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sched-timerange-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: #e2e8f0;
  z-index: 0;
}

.sched-timerange-badge {
  position: relative;
  z-index: 1;
  background: #00a86b;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

/* Indicador de Status (Feedback) */
.sched-availability-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 500;
  color: #334155;
}

.sched-status-check-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #00a86b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Linha Dupla: Local e Tipos Aceitos */
.sched-settings-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sched-select-wrapper {
  position: relative;
}

.sched-select-compact {
  width: 100%;
  height: 36px;
  padding: 0 30px 0 10px;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  outline: none;
  appearance: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.sched-select-compact:focus {
  border-color: #00a86b;
}

.sched-select-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.sched-types-bar {
  display: flex;
  gap: 8px;
}

.sched-types-bar button {
  height: 36px;
  flex: 1;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sched-types-bar button:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.sched-types-bar button.is-active {
  background: #eafaf1;
  border: 1.5px solid #00a86b;
  color: #00a86b;
  font-weight: 700;
}

/* Rodapé de Ações */
.sched-settings-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.sched-btn-cancel {
  height: 38px;
  padding: 0 18px;
  border-radius: 9px;
  border: none;
  background: #f1f5f9;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.sched-btn-cancel:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.sched-btn-save {
  height: 38px;
  padding: 0 22px;
  border-radius: 9px;
  border: none;
  background: #00a86b;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 168, 107, 0.25);
  transition: background 0.15s ease;
}

.sched-btn-save:hover {
  background: #00965e;
}

/* ============================================================
   Indisponibilidades v20 — lista + forms rápidos dentro do link
   ============================================================ */

.sched-blocks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 4px;
}

.sched-blocks-empty {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

.sched-block-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}

.sched-block-row.is-legacy {
  background: #fffbeb;
  border-color: #fde68a;
}

.sched-block-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sched-block-row-main strong {
  font-size: 12.5px;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sched-block-row-main span {
  font-size: 11.5px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sched-block-row-btn {
  flex-shrink: 0;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.sched-block-row-btn:hover {
  border-color: #fca5a5;
  color: #dc2626;
}

.sched-blocks-preview {
  margin: 10px 0 2px;
  font-size: 12px;
  font-weight: 600;
  color: #047857;
}

.sched-blocks-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.sched-btn-ghost {
  flex: 1;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 9px;
  border: 1px dashed #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.sched-btn-ghost:hover {
  border-color: #00a86b;
  color: #00a86b;
  background: #f0fdf6;
}

.sched-block-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sched-block-allday-row {
  margin-top: -4px;
}

.sched-check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.sched-check-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #00a86b;
  cursor: pointer;
}

.sched-check-field {
  justify-content: flex-end;
}

.sched-block-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.sched-weekdays-bar-small button {
  height: 30px !important;
  font-size: 11px !important;
}

/* Responsividade Mobile / Telas pequenas */
@media (max-width: 768px) {
  .sched-links-modal-window.is-settings-open {
    width: 95vw !important;
    max-height: 94vh !important;
    overflow-y: auto !important;
  }
  #sched-panel-settings {
    flex-direction: column !important;
    height: auto !important;
  }
  .sched-settings-sidebar {
    width: 100% !important;
    flex: none !important;
    border-right: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 20px !important;
  }
  .sched-settings-main {
    padding: 20px !important;
  }
  .sched-sidebar-bottom {
    display: none !important;
  }
}

/* ============================================================
   PÁGINA PÚBLICA /agendar — Clean Mobile-First Funnel
   Zero bordas externas, 100% flat clean, fluido e contínuo
   ============================================================ */

html.public-patient-mode,
html.public-patient-mode body,
body.public-patient-mode {
  background: #ffffff !important;
  color: #1e293b;
  font-family: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Trebuchet MS", sans-serif;
  margin: 0;
  padding: 0;
}

/* Desativa absolutamente qualquer orbe ou canvas na página pública */
html.public-patient-mode body::before,
html.public-patient-mode body::after,
body.public-patient-mode::before,
body.public-patient-mode::after,
.public-q-aurora-canvas,
.public-q-orb {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

html.public-patient-mode body > *:not(#public-scheduling-modal):not(#public-questionnaire-modal),
body.public-patient-mode > *:not(#public-scheduling-modal):not(#public-questionnaire-modal) {
  display: none !important;
}

/* Overlay / Container da Página */
html.public-patient-mode #public-scheduling-modal.modal-overlay,
body.public-patient-mode #public-scheduling-modal.modal-overlay {
  position: static;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: max(16px, env(safe-area-inset-top)) 16px max(40px, env(safe-area-inset-bottom));
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Container Principal — Completamente sem borda superior, laterais ou inferior */
.sched-public-window {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background: #ffffff !important;
  border-radius: 0 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 8px 0 32px;
  box-sizing: border-box;
  position: relative;
}

/* Top Bar: Logo Nutrie */
.sched-top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 22px;
}

.sched-top-logo {
  height: 42px;
  width: auto;
  display: block;
}

/* Stepper (1 Dia — 2 Horário — 3 Dados) */
.sched-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
  margin-bottom: 20px;
}

.sched-step {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sched-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 750;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #64748b;
  transition: all 0.2s ease;
}

.sched-step-name {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  transition: color 0.2s ease;
}

.sched-step.is-active .sched-step-num,
.sched-step.is-done .sched-step-num {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.sched-step.is-active .sched-step-name {
  color: #047857;
  font-weight: 750;
}

.sched-step.is-done .sched-step-name {
  color: #0f172a;
}

.sched-step-divider {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 8px;
  border-radius: 1px;
  transition: background 0.2s ease;
}

.sched-step-divider.is-done {
  background: #10b981;
}

/* Hero: Informações da Consulta */
.sched-hero-block {
  margin-bottom: 16px;
}

.sched-hero-title {
  font-family: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Trebuchet MS", sans-serif;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: #0f172a;
  margin: 0 0 3px;
}

.sched-hero-desc {
  font-family: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Trebuchet MS", sans-serif;
  font-size: 13px;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

/* Card do Nutricionista */
.sched-pro-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.sched-pro-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.sched-pro-info {
  display: flex;
  flex-direction: column;
}

.sched-pro-name {
  font-family: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Trebuchet MS", sans-serif;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.25;
}

.sched-pro-sub {
  font-family: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Trebuchet MS", sans-serif;
  font-size: 11.5px;
  color: #64748b;
  margin-top: 1px;
}

/* Seções de Fluxo */
.sched-main-flow {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sched-flow-section {
  display: flex;
  flex-direction: column;
}

.sched-flow-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.sched-heading-icon {
  color: #10b981;
  flex-shrink: 0;
}

.sched-flow-heading h2 {
  font-family: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Trebuchet MS", sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
}

.sched-flow-hint {
  font-size: 12px;
  color: #64748b;
  margin: -3px 0 10px;
}

/* 1. Escolha o dia — Carrossel Horizontal com cards */
.sched-dates-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 185, 129, 0.3) transparent;
}

.sched-dates-track::-webkit-scrollbar {
  height: 4px;
}

.sched-dates-track::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.3);
  border-radius: 999px;
}

.sched-date-card {
  flex: 0 0 auto;
  width: 84px;
  height: 56px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  scroll-snap-align: start;
  padding: 0 4px;
  box-sizing: border-box;
}

.sched-date-card:hover {
  border-color: #10b981;
  background: #f0fdf4;
}

.sched-date-weekday {
  font-size: 10.5px;
  font-weight: 600;
  color: #64748b;
  text-transform: capitalize;
}

.sched-date-day {
  font-size: 13.5px;
  font-weight: 750;
  color: #0f172a;
  margin-top: 1px;
}

/* Card Selecionado (exatamente igual à imagem: fundo verde-menta claro, borda verde, texto verde) */
.sched-date-card.is-active {
  background: #ecfdf5 !important;
  border: 1.5px solid #10b981 !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.12) !important;
}

.sched-date-card.is-active .sched-date-weekday {
  color: #047857 !important;
  font-weight: 700 !important;
}

.sched-date-card.is-active .sched-date-day {
  color: #047857 !important;
  font-weight: 800 !important;
}

/* 2. Escolha o horário — Grade de Chips */
.sched-slots-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
}

.sched-slot-btn {
  height: 42px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 13.5px;
  font-weight: 650;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  display: grid;
  place-items: center;
}

.sched-slot-btn:hover {
  border-color: #10b981;
  color: #047857;
  background: #f0fdf4;
}

.sched-slot-btn.is-active {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
  font-weight: 750 !important;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35) !important;
}

/* 3. Seus dados — Formulário */
.sched-form-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sched-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sched-field label {
  font-size: 12px;
  font-weight: 650;
  color: #334155;
}

.sched-req {
  color: #ef4444;
  font-weight: 700;
}

.sched-opt {
  color: #94a3b8;
  font-weight: 400;
}

.sched-field input {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 0 14px;
  font-size: 14.5px;
  color: #0f172a;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sched-field input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Resumo & Botão CTA */
.sched-submit-block {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sched-summary-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f0fdf4;
  border: 1px solid #d1fae5;
  font-size: 12px;
  color: #047857;
  text-align: center;
}

.sched-cta-btn {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  background: #10b981;
  color: #ffffff;
  font-size: 15px;
  font-weight: 750;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.sched-cta-btn:hover {
  background: #059669;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

/* Sucesso & Expiração */
.public-q-success-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 20px;
  text-align: center;
}

.public-q-success-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.2);
}

.public-q-success-card h2 {
  font-family: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Trebuchet MS", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #0f172a;
  margin: 0 0 6px;
}

.public-q-success-card p {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
}

.public-q-success-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  margin: 20px auto;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.public-q-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.public-q-summary-label {
  color: #64748b;
  font-weight: 500;
}

.public-q-summary-row strong {
  color: #0f172a;
  font-weight: 700;
}

.public-sched-success-actions {
  display: flex;
  justify-content: center;
  margin: 8px auto 14px;
  max-width: 400px;
}

.public-sched-gcal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid #10b981;
  color: #059669;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
  transition: all 0.16s ease;
}

.public-sched-gcal-btn:hover {
  background: #f0fdf4;
  color: #047857;
}

.public-q-success-note {
  font-size: 12px !important;
  color: #94a3b8 !important;
  margin-top: 12px !important;
}

.sched-public-empty {
  font-size: 13px;
  color: #64748b;
  padding: 12px 0;
  margin: 0;
}

