/* Shared visual contract for the existing Importer sheet controllers. */
:root {
  --tm-sheet-radius: 20px;
  --tm-sheet-padding: 16px;
  --tm-sheet-max-height: 86dvh;
  --tm-sheet-grab-width: 40px;
  --tm-sheet-grab-height: 4px;
  --tm-sheet-footer-inset: calc(12px + env(safe-area-inset-bottom, 0px));
  --tm-sheet-cta: #FF5400;
  --tm-sheet-cta-ink: #fff;
}

.sheet,
#dossier-root .bottom-sheet,
.tm-alert-form-sheet {
  box-sizing: border-box;
  border-radius: var(--tm-sheet-radius) var(--tm-sheet-radius) 0 0;
  max-height: var(--tm-sheet-max-height);
  font-family: "Manrope", system-ui, sans-serif;
}

.sheet .grab,
#dossier-root .drag-handle,
.tm-alert-form-handle {
  flex: none;
  width: var(--tm-sheet-grab-width);
  height: var(--tm-sheet-grab-height);
  border-radius: 99px;
  margin: 10px auto 8px;
  background: #d7d7d7;
}

.sheet .sh {
  padding: 8px var(--tm-sheet-padding) 12px;
}

.sheet .sh h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.sheet .sp {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sheet .sf {
  flex: none;
  padding: 12px var(--tm-sheet-padding) var(--tm-sheet-footer-inset);
}

.sheet .cta,
.sheet .tm-btn-primary,
#dossier-root .btn-primary {
  min-height: 48px;
  border-radius: 12px;
  background: var(--tm-sheet-cta);
  color: var(--tm-sheet-cta-ink);
  font-weight: 800;
}

.sheet button:focus-visible,
#dossier-root button:focus-visible {
  outline: 2px solid var(--tm-sheet-cta);
  outline-offset: 3px;
}

/* Alert form: one spacing layer, rather than padding on both sheet and panels. */
.sheet.tm-alert-form-sheet {
  padding: 0;
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  color: #0b0f14;
}
.sheet.tm-alert-form-sheet .grab {
  width: 56px;
  height: 5px;
  margin: 13px auto 10px;
}
.sheet.tm-alert-form-sheet .sh {
  display: block;
  padding: 12px 22px 0;
}
.sheet.tm-alert-form-sheet .sh h3 {
  width: auto;
  max-width: none;
  margin: 0;
  font-size: clamp(22px, 6.65vw, 28px);
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 800;
}
.sheet.tm-alert-form-sheet .sh .tm-close-white {
  position: absolute;
  top: 6px;
  inset-inline-end: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}
.sheet.tm-alert-form-sheet .sp { padding: 8px 22px 0; }
.sheet.tm-alert-form-sheet .tm-alert-form-subtitle {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.4;
  color: #80838a;
}
.sheet.tm-alert-form-sheet .tm-alert-input-group { margin-bottom: 18px; }
.sheet.tm-alert-form-sheet .tm-alert-label {
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
.sheet.tm-alert-form-sheet .tm-alert-input-wrap { min-height: 46px; padding: 10px 13px; }
.sheet.tm-alert-form-sheet .tm-alert-input {
  min-width: 0;
  padding: 0;
  font: 800 20px/1.25 "Manrope", sans-serif;
}
.sheet.tm-alert-form-sheet .tm-alert-countries { gap: 9px; }
.sheet.tm-alert-form-sheet .tm-alert-country {
  min-width: 53px;
  min-height: 36px;
  padding: 8px 14px;
  font: 600 14px/1.2 "Manrope", sans-serif;
}
.sheet.tm-alert-form-sheet .tm-alert-freqs { gap: 9px; }
.sheet.tm-alert-form-sheet .tm-alert-freq {
  flex: 1;
  min-height: 36px;
  padding: 8px 9px;
  font: 600 clamp(11px, 3.15vw, 13px)/1.25 "Manrope", sans-serif;
}
.sheet.tm-alert-form-sheet .tm-alert-freq:first-child { flex: 1.5; }
.sheet.tm-alert-form-sheet .tm-alert-whatsapp { padding: 12px; margin: 0 0 14px; border-radius: 12px; gap: 12px; }
.sheet.tm-alert-form-sheet .tm-alert-wa-icon { flex-shrink: 0; }
.sheet.tm-alert-form-sheet .sf { padding: 0 20px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 0; }
.sheet.tm-alert-form-sheet .sf .tm-btn-primary { min-height: 48px; padding: 13px 12px; font-size: 17px; line-height: 1.3; }
.sheet.tm-alert-form-sheet .sf p { margin: 10px 0 0 !important; font-size: 11px !important; line-height: 1.45; }

@media (max-width: 350px) {
  .sheet.tm-alert-form-sheet .sh { padding-inline: 16px; }
  .sheet.tm-alert-form-sheet .sp { padding-inline: 16px; }
  .sheet.tm-alert-form-sheet .tm-alert-countries { gap: 7px; }
  .sheet.tm-alert-form-sheet .tm-alert-country { min-width: 48px; padding-inline: 10px; }
}

@media (min-width: 768px) {
  .sheet,
  #dossier-root .bottom-sheet,
  .tm-alert-form-sheet {
    border-radius: var(--tm-sheet-radius);
    max-height: min(86dvh, calc(100dvh - 64px));
  }
}