@charset "UTF-8";

:root {
  /* Mantém a apresentação clara, incluindo quando o site anfitrião usa tema escuro. */
  color-scheme: only light;
  --widget-primary: #7cb342;
  --widget-accent: #a5d06b;

  --widget-bg: #ffffff;
  --widget-card-bg: #ffffff;
  --widget-card-bg-soft: #fbfcfa;
  --widget-text: #1c1c1c;
  --widget-muted: #77808a;
  --widget-border: #d9dfd4;
  --widget-selected: #f1d7a7;
  /* Mesma escala de ocupação usada na oficina e na área de cliente. */
  --widget-unavailable: #f8fafc;
  --widget-unavailable-text: #cbd5e1;
  --widget-available: rgba(16, 185, 129, 0.12);
  --widget-available-border: rgba(5, 150, 105, 0.55);
  --widget-available-text: #047857;
  --widget-limited: rgba(245, 158, 11, 0.14);
  --widget-limited-border: rgba(217, 119, 6, 0.6);
  --widget-limited-text: #92400e;
  --widget-busy: rgba(239, 68, 68, 0.14);
  --widget-busy-border: rgba(220, 38, 38, 0.6);
  --widget-busy-text: #b91c1c;

  --widget-shadow: 0 4px 18px -4px color-mix(in srgb, var(--widget-primary) 24%, transparent), 0 2px 6px rgba(18, 24, 18, 0.05);
  --widget-shadow-soft: 0 6px 18px rgba(18, 24, 18, 0.08);
  --widget-shadow-hover: 0 14px 30px rgba(18, 24, 18, 0.14);

  --widget-radius-xl: 22px;
  --widget-radius-lg: 16px;
  --widget-radius-md: 12px;
  --widget-radius-sm: 8px;
  --widget-shell-padding: 24px;
  --widget-frame-height: 860px;
  --widget-frame-radius: 18px;

  --widget-skeleton-base: #ecefe9;
  --widget-skeleton-shine: #f6f8f4;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  min-width: 0;
  background: transparent !important;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--widget-text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.widget-modal-open,
body.widget-modal-open {
  overflow: hidden !important;
  touch-action: none;
}

/* =========================
   BASE / EMBED
========================= */
.booking-widget {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  background: transparent;
}

.widget-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  /* Reserva espaço para a sombra dentro do iframe, sem a cortar nas margens. */
  padding: var(--widget-shell-padding);
  background: transparent;
}

.widget-header {
  display: none;
}

.widget-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--widget-card-bg);
  border-radius: var(--widget-radius-xl);
  min-height: 0;
  box-shadow: var(--widget-shadow);
  border: 1px solid var(--widget-border);
  border-color: color-mix(in srgb, var(--widget-primary) 16%, #e5e9e2);
  padding: 32px;
  position: relative;
  overflow: visible;
}

.widget-loading {
  padding: 60px 16px;
  text-align: center;
  color: var(--widget-muted);
}

.step {
  display: none;
}

.step.active {
  display: block;
  width: 100%;
  min-width: 0;
  animation: widgetFadeUp .28s ease;
}

@keyframes widgetFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   INTRO
========================= */
.intro {
  text-align: center;
  padding: 56px 20px 28px;
  max-width: 760px;
  margin: 0 auto;
}

.intro h2,
.section-title {
  color: var(--widget-primary);
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 22px;
  letter-spacing: -0.02em;
}

.intro-headline {
  color: var(--widget-muted);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .12em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.intro p {
  max-width: 620px;
  margin: 0 auto 26px;
  font-size: 22px;
  line-height: 1.6;
  color: var(--widget-text);
}

.intro .btn {
  min-width: 360px;
  height: 56px;
  font-size: 17px;
}

/* =========================
   BOTÕES
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
  max-width: 100%;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--widget-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s ease, opacity .2s ease, filter .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 16px rgba(124, 179, 66, 0.24);
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.btn:active {
  transform: translateY(0);
}

.btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: var(--widget-muted);
  min-width: auto;
  text-transform: uppercase;
  font-weight: 800;
  box-shadow: none;
}

.btn-secondary:hover {
  filter: none;
}

.btn-arrow-right::after {
  content: "\203A";
  font-size: 28px;
  line-height: 1;
  margin-top: -2px;
}

.btn-arrow-left::before {
  content: "\2039";
  font-size: 28px;
  line-height: 1;
  margin-top: -2px;
}

/* =========================
   LAYOUT WRAPS
========================= */
.services-wrap,
.calendar-wrap {
  max-width: 1040px;
  margin: 0 auto;
}

.services-wrap {
  position: relative;
  padding-bottom: 24px;
}

.widget-estab-block {
  position: relative;
  margin-bottom: 18px;
}

.widget-estab-label {
  display: block;
  margin-bottom: 7px;
}

.widget-estab-select {
  width: 100%;
}

.booking-widget .select2-container {
  display: block;
  width: 100% !important;
}

.booking-widget .select2-container--default .select2-selection--single {
  height: 46px;
  border: 1px solid var(--widget-border);
  border-radius: var(--widget-radius-sm);
  background: var(--widget-card-bg-soft);
  outline: none;
  transition: box-shadow .18s ease, filter .18s ease;
}

.booking-widget .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0 42px 0 14px;
  color: var(--widget-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 44px;
}

.booking-widget .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--widget-muted);
}

.booking-widget .select2-container--default .select2-selection--single .select2-selection__arrow {
  width: 38px;
  height: 44px;
}

.booking-widget .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--widget-text) transparent transparent transparent;
}

.booking-widget .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent var(--widget-text) transparent;
}

.booking-widget .select2-container--default.select2-container--focus .select2-selection--single,
.booking-widget .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--widget-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--widget-primary) 22%, transparent);
}

.booking-widget .select2-dropdown {
  overflow: hidden;
  border: 1px solid var(--widget-primary);
  border-radius: var(--widget-radius-sm);
  background: var(--widget-primary);
  color: #fff;
  box-shadow: var(--widget-shadow-soft);
}

.booking-widget .select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid var(--widget-border);
  border-radius: 7px;
  background: var(--widget-card-bg-soft);
  color: var(--widget-text);
  outline: none;
}

.booking-widget .select2-container--default .select2-results > .select2-results__options,
.booking-widget .select2-container--default .select2-results__option[aria-selected] {
  background: var(--widget-primary);
  color: #fff;
}

.booking-widget .select2-container--default .select2-results__option[aria-selected=true] {
  background: color-mix(in srgb, var(--widget-primary) 82%, #000);
  color: #fff;
  font-weight: 700;
}

.booking-widget .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: color-mix(in srgb, var(--widget-primary) 84%, #000);
  color: #fff;
}

/* =========================
   SEARCH
========================= */
.search-box {
  width: 100%;
  height: 46px;
  border: 1px solid var(--widget-border);
  border-radius: var(--widget-radius-sm);
  padding: 0 14px;
  font-size: 15px;
  margin-bottom: 10px;
  background: var(--widget-card-bg-soft);
  color: var(--widget-text);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.search-box:focus {
  border-color: rgba(124, 179, 66, 0.55);
  box-shadow: 0 0 0 4px rgba(124, 179, 66, 0.12);
}

/* =========================
   SERVIÇOS
========================= */
.service-list {
  max-height: 490px;
  overflow: auto;
  padding-right: 8px;
  padding-bottom: 0;
  scroll-behavior: smooth;
}

.service-list::-webkit-scrollbar {
  width: 10px;
}

.service-list::-webkit-scrollbar-thumb {
  background: rgba(127, 136, 127, 0.35);
  border-radius: 999px;
}

.service-item {
  border: 1px solid var(--widget-border);
  border-radius: var(--widget-radius-md);
  padding: 14px;
  margin-bottom: 10px;
  background: var(--widget-card-bg);
  box-shadow: var(--widget-shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.service-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--widget-shadow-hover);
}

.service-item.selected {
  background: var(--widget-selected);
  border-color: rgba(124, 179, 66, 0.28);
}

.service-topline {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
}

.service-content {
  flex: 1;
  min-width: 0;
}

.service-tag {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--widget-muted);
  border: 1px solid var(--widget-border);
  background: rgba(127, 136, 127, 0.08);
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 700;
}

.service-name {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  line-height: 1.25;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.service-meta {
  width: 170px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
}

.service-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  height: 40px;
  border-radius: 10px;
  background: var(--widget-primary);
  color: #fff;
  font-weight: 800;
  margin-bottom: 0;
  padding: 0 14px;
  box-shadow: 0 6px 16px rgba(124, 179, 66, 0.22);
}

.service-action {
  background: transparent;
  border: 0;
  color: var(--widget-primary);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  text-align: right;
}

.service-action:hover {
  text-decoration: underline;
}

.service-selected-inline {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.service-selected-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(124, 179, 66, 0.14);
  color: var(--widget-primary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.service-action-edit {
  background: transparent;
  color: var(--widget-primary);
  border: 1px solid var(--widget-border);
  min-height: 36px;
  padding: 0 14px;
  box-shadow: none;
}

.service-action-edit:hover {
  border-color: var(--widget-primary);
}

/* =========================
   RESUMO SOBREPOSTO
========================= */
.services-summary-row {
  position: static;
  width: 100%;
  margin: 14px 0 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 30;
}

.selection-mini {
  position: relative;
  width: min(460px, 100%);
  max-width: 460px;
  margin: 0;
  background: #fff;
  border: 1px solid var(--widget-border);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .16);
  z-index: 31;
  overflow: hidden;
  /* O painel opaco não precisa de filtros nem de uma camada transformada. */
  pointer-events: auto;
}

.selection-mini.hidden {
  display: none;
}

.selection-mini button,
.selection-mini input {
  font-family: inherit;
}

.selection-mini.collapsed .selection-expanded,
.selection-mini:not(.collapsed) .selection-collapsed {
  display: none;
}

.selection-collapsed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  max-height: 120px;
  background: transparent;
}

.selection-expanded {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 12px 18px 16px;
  /* Cresce com os serviços; apenas a lista encolhe quando atinge o limite. */
  height: auto;
  max-height: min(520px, calc(100vh - 48px), calc(var(--widget-screen-height, 100vh) - 48px));
  max-height: min(520px, calc(100dvh - 48px), calc(var(--widget-screen-height, 100dvh) - 48px));
  overflow: hidden;
  background: #fff;
}

.selection-items-scroll {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 12px;
  scrollbar-gutter: stable;
}

.selection-footer-fixed {
  flex: 0 0 auto;
  position: relative;
  z-index: 3;
  background: #fff;
  border-top: 1px solid var(--widget-border);
  box-shadow: 0 -10px 18px rgba(255, 255, 255, 0.96);
  padding-top: 12px;
}

.selection-collapsed-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--widget-text);
  font-weight: 700;
}

.selection-collapsed-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.selection-handle {
  width: 58px;
  height: 8px;
  border-radius: 999px;
  background: rgba(130, 130, 130, 0.68);
  cursor: pointer;
}

.selection-mini-toggle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: var(--widget-primary);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .16);
  flex: 0 0 auto;
}

.selection-expanded .selection-handle-wrap {
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  margin-bottom: 14px;
}

.selection-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  padding: 10px 0;
}

.selection-line+.selection-line {
  border-top: 1px solid var(--widget-border);
}

.selection-line-detailed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--widget-border);
  background: #fff;
  position: relative;
  z-index: 1;
}

.selection-line-detailed:last-of-type {
  border-bottom: 0;
}

.selection-line-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 16px;
  width: 100%;
}

.selection-line-name {
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--widget-text);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.selection-line-price {
  min-width: 88px;
  text-align: right;
  font-size: 16px;
  font-weight: 800;
  color: var(--widget-text);
  white-space: nowrap;
  justify-self: end;
}

.selection-line-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.selection-total {
  margin: 0;
  padding: 0 0 12px;
  background: #fff;
  border-top: 0;
  box-shadow: none;
}

.selection-footer-fixed>.btn {
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
}

.selection-expanded::after {
  content: none;
}

.selection-mini .btn {
  min-width: 220px;
  height: 46px;
  display: flex;
  box-shadow: 0 8px 18px rgba(124, 179, 66, 0.24);
}

/* =========================
   QTD / REMOVER
========================= */
.qty-control-mini {
  display: inline-flex;
  align-items: center;
  height: 38px;
  border: 1px solid var(--widget-border);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  flex: 0 0 auto;
}

.qty-btn {
  width: 36px;
  height: 38px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: var(--widget-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.qty-btn:hover {
  background: rgba(124, 179, 66, 0.10);
  color: var(--widget-primary);
}

.qty-input {
  width: 40px;
  height: 38px;
  border: 0;
  border-left: 1px solid var(--widget-border);
  border-right: 1px solid var(--widget-border);
  border-radius: 0;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--widget-text);
  background: transparent;
  padding: 0;
  outline: none;
  appearance: textfield;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.selection-remove {
  width: 38px;
  height: 38px;
  border: 1px solid var(--widget-border);
  background: #fff;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  flex: 0 0 auto;
}

.selection-remove svg {
  width: 16px;
  height: 16px;
  fill: #8b9597;
  transition: fill 0.2s ease;
}

.selection-remove:hover {
  border-color: #d9534f;
  background: #fff5f5;
}

.selection-remove:hover svg {
  fill: #d9534f;
}

/* =========================
   FOOTER NAV
========================= */
.footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--widget-border);
  margin-top: 0;
  padding-top: 18px;
}

.services-summary-row+.footer-nav {
  margin-top: 0;
}

/* =========================
   CALENDÁRIO ANTIGO
========================= */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-dayname {
  text-align: center;
  font-weight: 800;
  padding: 8px 0 4px;
  color: var(--widget-text);
  font-size: 13px;
}

.day-card {
  min-height: 120px;
  border: 1px solid var(--widget-border);
  border-radius: 14px;
  background: var(--widget-card-bg);
  padding: 10px 8px;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: var(--widget-shadow-soft);
}

.day-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--widget-shadow-hover);
}

.day-card.unavailable,
.day-card.closed {
  background: var(--widget-unavailable);
  color: var(--widget-unavailable-text);
}

.day-card.available {
  background: var(--widget-available);
  border-color: var(--widget-available-border);
  color: var(--widget-available-text);
}

.day-card.limited {
  background: var(--widget-limited);
  border-color: var(--widget-limited-border);
  color: var(--widget-limited-text);
}

.day-card.busy {
  background: var(--widget-busy);
  border-color: var(--widget-busy-border);
  color: var(--widget-busy-text);
}

.day-card.selected {
  outline: 2px solid var(--widget-primary);
}

.day-weekday {
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: inherit;
  opacity: .9;
  display: none;
}

.day-number {
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 12px;
}

.day-state {
  text-align: center;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
}

/* =========================
   CALENDÁRIO MENSAL
========================= */
.calendar-month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.calendar-month-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--widget-text);
  text-align: center;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.calendar-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--widget-border);
  background: var(--widget-card-bg-soft);
  color: var(--widget-text);
  font-size: 26px;
  font-weight: 700;
  cursor: pointer;
}

.calendar-nav-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.calendar-month-wrap {
  border: 1px solid var(--widget-border);
  border-radius: 14px;
  padding: 14px;
  background: var(--widget-card-bg);
}

.calendar-month-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.calendar-month-weekday {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--widget-muted);
}

.calendar-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-month-empty {
  min-height: 72px;
}

.calendar-month-cell {
  min-height: 72px;
  border-radius: 999px;
  border: 1px solid var(--widget-border);
  background: var(--widget-card-bg-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.calendar-month-cell-empty {
  opacity: .55;
}

.calendar-month-daynum {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.calendar-month-state {
  margin-top: 6px;
  font-size: 12px;
  text-align: center;
  line-height: 1.2;
}

/* =========================
   MODAL
========================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .34);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 99999;
}

.modal-overlay.show {
  display: flex;
}

.modal-overlay-global {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 99999;
}

.modal-box {
  width: min(560px, 100%);
  background: var(--widget-card-bg);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
  padding: 20px 20px 18px;
  border: 1px solid var(--widget-border);
  margin: 0 auto;
}

.modal-overlay-global .modal-box {
  display: flex;
  flex-direction: column;
  width: min(520px, 100%);
  max-height: min(calc(100vh - 32px), calc(var(--widget-screen-height, 100vh) - 32px));
  max-height: min(calc(100dvh - 32px), calc(var(--widget-screen-height, 100dvh) - 32px));
  overflow: hidden;
  margin: 0;
}

.modal-box h3 {
  flex: 0 0 auto;
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.modal-note {
  min-height: 0;
  overflow-y: auto;
  background: color-mix(in srgb, var(--widget-primary) 10%, var(--widget-card-bg));
  border: 1px solid color-mix(in srgb, var(--widget-primary) 28%, var(--widget-border));
  color: var(--widget-text);
  border-radius: 12px;
  padding: 16px;
  line-height: 1.55;
}

.modal-actions {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.confirmation-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

.confirmation-dialog {
  position: relative;
  z-index: 1;
  width: min(590px, 100%) !important;
  padding: 28px 28px 24px;
  overflow: visible !important;
}

.confirmation-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--widget-muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.confirmation-close:hover {
  background: color-mix(in srgb, var(--widget-primary) 10%, transparent);
  color: var(--widget-primary);
}

.confirmation-head {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: start;
  padding-right: 28px;
}

.confirmation-head h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
}

.confirmation-head p {
  margin: 0;
  color: var(--widget-muted);
  font-size: 15px;
  line-height: 1.5;
}

.confirmation-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--widget-primary) 14%, white);
  color: var(--widget-primary);
  font-size: 25px;
}

.confirmation-code-inputs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  max-width: 430px;
  margin: 26px auto 14px;
}

.confirmation-code-inputs input {
  width: 100%;
  min-width: 0;
  height: 58px;
  padding: 0;
  border: 1px solid var(--widget-border);
  border-radius: 10px;
  background: var(--widget-card-bg);
  color: var(--widget-text);
  font: inherit;
  font-size: 25px;
  font-weight: 800;
  text-align: center;
  outline: 0;
}

.confirmation-code-inputs input:focus {
  border-color: var(--widget-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--widget-primary) 18%, transparent);
}

.confirmation-feedback {
  min-height: 20px;
  margin: 0 0 10px;
  color: var(--widget-muted);
  font-size: 14px;
  text-align: center;
}

.confirmation-feedback.is-error {
  color: #b42318;
}

.confirmation-feedback.is-success {
  color: var(--widget-primary);
}

.confirmation-resend {
  display: block;
  margin: 0 auto;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  color: var(--widget-muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.confirmation-resend span {
  color: var(--widget-primary);
  font-weight: 800;
}

.confirmation-resend em {
  font-style: normal;
}

.confirmation-resend:disabled {
  cursor: default;
  opacity: .65;
}

.confirmation-actions {
  justify-content: flex-end;
}

/* =========================
   FORM
========================= */
.form-grid {
  width: min(540px, 100%);
  margin: 0 auto;
}

.brand-top {
  text-align: center;
  margin-bottom: 24px;
}

.brand-top img {
  max-height: 48px;
  max-width: 180px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--widget-muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.form-input,
.form-textarea {
  width: 100%;
  height: 46px;
  border: 1px solid var(--widget-border);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 16px;
  background: var(--widget-card-bg-soft);
  color: var(--widget-text);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.form-input:focus,
.form-textarea:focus {
  border-color: rgba(124, 179, 66, 0.55);
  box-shadow: 0 0 0 4px rgba(124, 179, 66, 0.12);
}

.form-textarea {
  min-height: 100px;
  padding: 12px 14px;
  resize: vertical;
}

.form-field-phone .iti {
  width: 100%;
  min-width: 0;
  --iti-border-color: var(--widget-border);
  --iti-hover-color: #eef3e8;
  --iti-spacer-horizontal: 12px;
}

.form-field-phone .iti input.form-input {
  width: 100%;
  min-width: 0;
  border-radius: 999px;
}

.form-field-phone .iti__country-container {
  padding: 1px;
}

.form-field-phone .iti__selected-country {
  border-radius: 999px 0 0 999px;
}

.form-field-phone .iti__selected-country-primary {
  border-radius: 999px 0 0 999px;
  padding-left: 14px;
}

.form-field-phone .iti__selected-dial-code {
  font-size: 14px;
  color: var(--widget-text);
}

.form-field-phone .iti__dropdown-content {
  z-index: 30;
  border-radius: 12px;
  background: #fff;
  color: var(--widget-text);
  box-shadow: var(--widget-shadow-soft);
}

.form-field-phone .iti__search-input {
  padding: 12px;
  font: inherit;
  font-size: 16px;
  border-bottom: 1px solid var(--widget-border);
  border-radius: 12px 12px 0 0;
}

.form-field-phone .iti__country-list {
  max-height: 220px;
  max-height: min(220px, 40vh);
  overflow-x: hidden;
  white-space: normal;
  overscroll-behavior: contain;
}

.form-field-phone .iti__country { padding: 10px 12px; }
.form-field-phone .iti__country-name { min-width: 0; }

.form-note {
  color: var(--widget-muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 10px 0 18px;
}

.form-note > span {
  display: block;
}

.form-note-links {
  align-items: center;
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.form-note-links > span {
  display: inline;
}

.form-note a {
  color: var(--widget-primary);
  font-weight: 700;
}

.widget-honeypot {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* =========================
   SUCCESS / HELPERS
========================= */
.success-box {
  max-width: 760px;
  margin: 50px auto;
  text-align: center;
  animation: widgetFadeUp .28s ease;
}

.success-box h2 {
  color: var(--widget-primary);
  font-size: 28px;
  margin-bottom: 12px;
}

.success-booking-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: min(420px, 100%);
  margin: 26px auto 0;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--widget-primary) 30%, var(--widget-border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--widget-primary) 9%, var(--widget-card-bg));
}

.success-booking-code span,
.success-booking-code small {
  color: var(--widget-muted);
}

.success-booking-code strong {
  color: var(--widget-primary);
  font-size: 30px;
  letter-spacing: .08em;
}

.muted {
  color: var(--widget-muted);
}

.error-box {
  background: rgba(255, 99, 99, 0.08);
  border: 1px solid rgba(242, 110, 110, 0.22);
  color: #b44343;
  padding: 12px 14px;
  border-radius: 12px;
  margin: 0 0 18px;
  width: 100%;
}

.widget-card > .error-box {
  max-width: 1040px;
  margin: 0 auto 18px;
}

/* =========================
   SKELETON LOADING
========================= */
.skeleton-screen {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: widgetFadeUp .2s ease;
}

.skeleton-title,
.skeleton-input,
.skeleton-card,
.skeleton-line,
.skeleton-button,
.skeleton-calendar-head,
.skeleton-day {
  position: relative;
  overflow: hidden;
  background: var(--widget-skeleton-base);
}

.skeleton-title::after,
.skeleton-input::after,
.skeleton-card::after,
.skeleton-line::after,
.skeleton-button::after,
.skeleton-calendar-head::after,
.skeleton-day::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, .18) 50%,
      transparent 100%);
  animation: widgetShimmer 1.35s infinite;
}

@keyframes widgetShimmer {
  100% {
    transform: translateX(100%);
  }
}

.skeleton-title {
  width: 280px;
  height: 28px;
  border-radius: 10px;
  margin-bottom: 6px;
}

.skeleton-input {
  width: 100%;
  height: 46px;
  border-radius: 12px;
}

.skeleton-card {
  border-radius: 16px;
  padding: 16px;
  height: 96px;
}

.skeleton-line {
  height: 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.skeleton-line.short {
  width: 32%;
}

.skeleton-line.medium {
  width: 58%;
}

.skeleton-line.long {
  width: 78%;
}

.skeleton-button {
  width: 180px;
  height: 46px;
  border-radius: 999px;
}

.skeleton-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.skeleton-calendar-head {
  height: 18px;
  border-radius: 999px;
}

.skeleton-day {
  min-height: 110px;
  border-radius: 14px;
}

/* =========================
   TABLET / MOBILE
========================= */
@media (max-width: 900px) {
  :root {
    --widget-shell-padding: 18px;
  }

  .widget-shell {
    padding: var(--widget-shell-padding);
  }

  .widget-card {
    padding: 20px 14px 20px;
    border-radius: var(--widget-radius-lg);
    min-height: 0;
  }

  .intro {
    padding: 34px 14px 24px;
    max-width: 100%;
  }

  .intro h2,
  .section-title {
    font-size: 28px;
    line-height: 1.2;
  }

  .intro p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 100%;
  }

  .intro .btn {
    width: 100%;
    min-width: 0;
    height: 52px;
    font-size: 15px;
  }

  .search-box,
  .form-input,
  .form-textarea {
    height: 50px;
    font-size: 16px;
  }

  .service-list {
    max-height: clamp(300px, 55vw, 520px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: 4px;
    padding-bottom: 0;
  }

  .service-item {
    padding: 14px;
    border-radius: 14px;
    margin-bottom: 10px;
  }

  .service-topline {
    flex-direction: column;
    gap: 12px;
  }

  .service-name {
    font-size: 16px;
    line-height: 1.3;
  }

  .service-meta {
    width: 100%;
    min-width: 0;
    align-items: flex-start;
    gap: 8px;
  }

  .service-price {
    min-width: 88px;
    height: 38px;
    font-size: 14px;
    padding: 0 12px;
  }

  .service-action,
  .service-selected-badge,
  .service-action-edit {
    font-size: 12px;
  }

  .service-action {
    min-height: 44px;
    padding: 0 10px;
  }

  .service-selected-inline {
    width: 100%;
    align-items: flex-start;
  }

  .services-summary-row {
    left: 50%;
    right: auto;
    bottom: 78px;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    justify-content: center;
    margin: 0;
  }

  .selection-mini {
    width: min(360px, calc(100vw - 28px));
    max-width: 360px;
    border-radius: 16px;
  }

  .selection-collapsed {
    padding: 14px 14px;
  }

  .selection-collapsed-left {
    font-size: 15px;
  }

  .selection-collapsed-center {
    justify-content: center;
  }

  .selection-mini-toggle {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }

  .selection-expanded {
    padding: 10px 14px 14px;
    overflow: hidden;
  }

  .selection-line-detailed {
    padding: 12px 0;
    gap: 8px;
  }

  .selection-line-name {
    font-size: 14px;
  }

  .selection-line-price {
    min-width: 78px;
    font-size: 14px;
    text-align: right;
  }

  .selection-footer-fixed>.btn {
    width: 100%;
    max-width: none;
  }

  .qty-control-mini {
    height: 40px;
  }

  .qty-btn {
    width: 38px;
    height: 40px;
    font-size: 18px;
  }

  .qty-input {
    width: 42px;
    height: 40px;
  }

  .selection-remove {
    width: 40px;
    height: 40px;
  }

  .selection-mini .btn {
    width: 100%;
    min-width: 0;
    height: 44px;
    font-size: 14px;
  }

  .footer-nav {
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }

  .footer-nav .btn {
    min-width: 0;
    height: 44px;
    font-size: 13px;
    padding: 0 16px;
  }

  .footer-nav .btn-secondary {
    width: auto;
    flex: 0 0 auto;
    padding: 0;
  }

  .footer-nav .btn-arrow-right {
    min-width: 140px;
    margin-left: auto;
  }

  .calendar-wrap {
    max-width: 100%;
    margin: 0;
  }

  .calendar-dayname {
    display: none;
  }

  .calendar-grid,
  .skeleton-calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .day-card {
    min-height: 98px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .day-weekday {
    display: block;
  }

  .day-number {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
  }

  .day-state {
    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
  }

  .calendar-month-head {
    gap: 10px;
    margin-bottom: 12px;
  }

  .calendar-month-title {
    font-size: 20px;
    line-height: 1.1;
  }

  .calendar-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 22px;
    flex: 0 0 40px;
  }

  .calendar-month-wrap {
    padding: 10px;
    border-radius: 12px;
  }

  .calendar-month-weekday {
    font-size: 11px;
  }

  .calendar-month-grid {
    gap: 4px;
  }

  .calendar-month-cell {
    min-height: 68px;
    padding: 6px 4px;
    border-radius: 18px;
  }

  .calendar-month-empty {
    min-height: 68px;
  }

  .calendar-month-daynum {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 0;
  }

  .calendar-month-state {
    display: none !important;
  }

  .form-grid {
    width: 100%;
    max-width: 100%;
  }

  .brand-top img {
    max-height: 56px;
    max-width: 220px;
  }

  .form-field label {
    font-size: 12px;
    letter-spacing: 1.2px;
  }

  .form-note {
    font-size: 13px;
    line-height: 1.6;
  }
}

/* =========================
   MOBILE SMALL
========================= */
@media (max-width: 520px) {
  :root {
    --widget-shell-padding: 12px;
  }

  .widget-shell {
    padding: var(--widget-shell-padding);
  }

  .widget-card {
    padding: 18px 12px 18px;
    min-height: 0;
  }

  .calendar-month-wrap {
    padding: 8px;
  }

  .calendar-month-grid,
  .calendar-month-weekdays {
    gap: 5px;
  }

  .calendar-month-cell,
  .calendar-month-empty {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .calendar-month-cell {
    padding: 2px;
    border-radius: 999px;
  }

  .intro {
    padding: 28px 12px 18px;
  }

  .intro h2,
  .section-title {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .intro p {
    font-size: 19px;
    line-height: 1.6;
    margin-bottom: 22px;
  }

  .intro .btn {
    width: 100%;
    min-width: 0;
    height: 52px;
    font-size: 15px;
  }

  .search-box,
  .form-input,
  .form-textarea {
    height: 48px;
    font-size: 16px;
  }

  .form-textarea {
    min-height: 110px;
    padding: 12px 14px;
  }

  .service-item {
    padding: 12px;
    margin-bottom: 8px;
  }

  .service-list {
    max-height: clamp(330px, 85vw, 380px);
  }

  .service-name {
    font-size: 15px;
  }

  .service-price {
    min-width: 84px;
    height: 36px;
    font-size: 13px;
  }

  .services-summary-row {
    bottom: 72px;
    width: calc(100% - 16px);
  }

  .selection-mini {
    width: min(320px, calc(100vw - 24px));
    max-width: 320px;
    border-radius: 14px;
  }

  .selection-collapsed {
    padding: 12px 12px;
  }

  .selection-collapsed-left {
    font-size: 14px;
  }

  .selection-expanded {
    padding: 10px 12px 12px;
    overflow: hidden;
  }

  .selection-line-detailed {
    padding: 10px 0;
    gap: 8px;
  }

  .selection-line-main {
    gap: 8px;
  }

  .selection-line-name {
    font-size: 13px;
  }

  .selection-line-price {
    min-width: 74px;
    font-size: 13px;
    text-align: right;
  }

  .selection-line-actions {
    gap: 6px;
  }

  .selection-footer-fixed>.btn {
    width: 100%;
    max-width: none;
  }

  .qty-control-mini {
    height: 38px;
  }

  .qty-btn {
    width: 36px;
    height: 38px;
    font-size: 17px;
  }

  .qty-input {
    width: 40px;
    height: 38px;
  }

  .selection-remove {
    width: 38px;
    height: 38px;
  }

  .selection-mini .btn {
    height: 42px;
    font-size: 13px;
  }

  .footer-nav {
    gap: 8px;
  }

  .services-wrap > .footer-nav {
    margin-top: 30px;
  }

  .footer-nav .btn-secondary {
    font-size: 11px;
    padding: 0;
  }

  .footer-nav .btn-arrow-right {
    min-width: 132px;
    height: 42px;
    font-size: 12px;
    padding: 0 14px;
  }

  .calendar-month-title {
    font-size: 17px;
  }

  .calendar-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 20px;
    flex: 0 0 36px;
  }

  .calendar-month-wrap {
    padding: 8px;
    border-radius: 12px;
  }

  .calendar-month-weekday {
    font-size: 10px;
  }

  .calendar-month-grid {
    gap: 4px;
  }

  .calendar-month-cell {
    min-height: 58px;
    border-radius: 16px;
    padding: 6px 4px;
  }

  .calendar-month-empty {
    min-height: 58px;
  }

  .calendar-month-daynum {
    font-size: 16px;
  }

  .modal-overlay {
    padding: 12px;
  }

  .modal-overlay-global {
    padding: 12px;
  }

  .modal-overlay-global .modal-box,
  .modal-box {
    width: 100%;
    max-height: min(calc(100vh - 24px), calc(var(--widget-screen-height, 100vh) - 24px));
    max-height: min(calc(100dvh - 24px), calc(var(--widget-screen-height, 100dvh) - 24px));
    padding: 18px 16px 16px;
  }

  .modal-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .modal-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .confirmation-dialog {
    padding: 22px 16px 16px !important;
  }

  .confirmation-head {
    grid-template-columns: 44px 1fr;
    gap: 12px;
    padding-right: 20px;
  }

  .confirmation-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 21px;
  }

  .confirmation-head h3 {
    font-size: 20px;
  }

  .confirmation-code-inputs {
    gap: 6px;
    margin-top: 20px;
  }

  .confirmation-code-inputs input {
    height: 50px;
    border-radius: 8px;
    font-size: 21px;
  }

  .brand-top {
    margin-bottom: 18px;
  }

  .brand-top img {
    max-height: 52px;
    max-width: 180px;
  }

  .form-field {
    margin-bottom: 14px;
  }

  .form-field label {
    font-size: 11px;
  }

  .form-note {
    font-size: 12px;
  }

  .skeleton-title {
    width: 190px;
    height: 24px;
  }
}

.modal-overlay-widget {
  display: none !important;
}

.modal-overlay-global {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, .34) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  z-index: 99999 !important;
}

@media (max-width: 520px) {
  .modal-overlay-global {
    padding: 12px;
  }
}

@media (max-width: 900px) {
  .services-wrap {
    padding-bottom: 24px;
  }

  .services-summary-row {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    margin: 14px 0 10px;
    display: block;
    pointer-events: auto;
  }

  .selection-mini {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .footer-nav {
    position: relative;
    z-index: 1;
    margin-top: 10px;
  }
}

@media (max-width: 360px) {
  :root {
    --widget-shell-padding: 4px;
  }

  .widget-shell {
    padding: var(--widget-shell-padding);
  }

  .widget-card {
    padding-right: max(6px, env(safe-area-inset-right));
    padding-left: max(6px, env(safe-area-inset-left));
  }

  .intro {
    padding-right: 8px;
    padding-left: 8px;
  }

  .calendar-month-head {
    gap: 4px;
    margin-bottom: 10px;
  }

  .calendar-month-title {
    font-size: 16px;
  }

  .calendar-nav-btn {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 19px;
  }

  .calendar-month-wrap {
    padding: 6px 4px;
  }

  .section-title,
  .intro h2 {
    font-size: 25px;
  }

  .calendar-month-grid,
  .calendar-month-weekdays {
    gap: 2px;
  }

  .calendar-month-cell {
    min-height: 0;
    padding: 1px;
  }

  .calendar-month-empty {
    min-height: 0;
  }

  .calendar-month-daynum {
    font-size: 14px;
  }

  .calendar-month-weekday {
    font-size: 9px;
  }

  .footer-nav .btn-arrow-right {
    min-width: 118px;
    padding: 0 10px;
  }

  .selection-expanded {
    padding-right: 10px;
    padding-left: 10px;
  }
}

@media (hover: none) {
  .btn:hover,
  .service-item:hover,
  .day-card:hover {
    transform: none;
  }
}

.services-wrap.summary-open {
  /* A animação com transform não pode criar um viewport para o modal fixo. */
  animation: none;
}

.services-wrap.summary-open .services-summary-row {
  position: fixed;
  inset: 0;
  width: 100%;
  margin: 0;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 24, 20, .42);
  /* Uma única camada de escurecimento evita filtros sobrepostos no iframe. */
  z-index: 99990;
  pointer-events: auto;
}

.services-wrap.summary-open .selection-mini {
  width: min(460px, 100%);
  max-width: 460px;
  margin: 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
  overscroll-behavior: contain;
}

/*
 * O catálogo usa a altura visível comunicada pelo site anfitrião. Assim, o
 * cartão acompanha ecrãs pequenos, mas fica limitado no desktop para não se
 * tornar excessivamente alto. Só a lista de serviços passa a ter scroll.
 * Os restantes passos continuam a crescer apenas o necessário ao conteúdo.
 */
body.widget-embed-body,
.booking-widget-embed,
.widget-shell-embed {
  min-height: 0;
}

.widget-card-embed {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: var(--widget-frame-radius);
}

.widget-card-embed[data-step="services"] {
  height: max(0px, calc(var(--widget-frame-height) - (2 * var(--widget-shell-padding))));
}

.widget-card-embed > .step.active {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.widget-card-embed[data-step="services"] > .services-wrap {
  flex: 1 1 auto;
  width: 100%;
}

.widget-card-embed[data-step="services"] .service-list {
  flex: 1 1 0;
  min-height: 120px;
  max-height: none;
}

.widget-card-embed .form-grid {
  display: flex;
  flex-direction: column;
}

.widget-card-embed .step.active > .footer-nav {
  flex: 0 0 auto;
  margin-top: 24px;
}

.widget-card-embed .step.services-wrap > .footer-nav {
  margin-top: 10px;
}

.widget-card-embed .form-grid > .footer-nav {
  flex: 0 0 auto;
  margin-top: 0;
}

.widget-card-embed .intro > .btn {
  align-self: center;
  /* Segue o texto; uma margem automática afastava-o quando o viewport aumentava. */
  margin-top: 0;
}
