.ce-wa-widget {
  height: 0;
}
.ce-wa-launch {
  position: fixed;
  z-index: 90;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 4px 18px rgba(12, 36, 27, .22);
}
.ce-wa-launch:hover { background: #57e68b; }
.ce-wa-launch .ce-wa-icon { width: 34px; height: 34px; }
.ce-wa-icon { display: block; flex: none; }
.ce-wa-dialog:not([open]), .ce-wa-form[hidden], .ce-wa-direct[hidden] { display: none; }
.ce-wa-dialog {
  position: fixed;
  inset: auto max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) auto;
  margin: 0;
  width: min(400px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 36px);
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
}
.ce-wa-dialog::backdrop { background: rgba(12, 36, 27, .5); }
html:has(.ce-wa-dialog[open]) { overflow: hidden; }
.ce-wa-dialog-inner { padding: 24px; }
.ce-wa-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.ce-wa-head h2 {
  margin: 0;
  font: 500 1.9rem/1.1 var(--sans);
  letter-spacing: -.035em;
}
.ce-wa-head em { font-family: var(--serif); font-weight: 400; }
.ce-wa-head h2:focus { outline: none; }
.ce-wa-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin: -7px -7px 0 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.ce-wa-close:hover { background: #e1e7da; }
.ce-wa-contact { width: 100%; }
.ce-wa-form, .ce-wa-person {
  display: grid;
  gap: 18px;
}
.ce-wa-contact .ce-wa-person { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ce-wa-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font: 550 .95rem/1.4 var(--sans);
}
.ce-wa-form :is(input, select, textarea) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #75857a;
  border-radius: 7px;
  color: var(--ink);
  background-color: var(--white);
  font: 400 1rem/1.45 var(--sans);
}
.ce-wa-form select { appearance: auto; background-image: none; padding-inline-end: 8px; }
.ce-wa-contact :is(input, select) {
  height: 48px;
  border-radius: var(--pill);
  padding-inline: 20px;
}
.ce-wa-contact select {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-end: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2312211A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
}
.ce-wa-contact textarea {
  border-radius: 24px;
  padding: 14px 20px;
}
.ce-wa-form textarea { resize: vertical; }
.ce-wa-form textarea::placeholder { color: var(--muted-l); opacity: 1; }
.ce-wa-submit, .ce-wa-direct {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--pill);
  background: var(--cta);
  color: var(--ink);
  font: 600 1rem/1.25 var(--sans);
  cursor: pointer;
}
.ce-wa-submit {
  min-width: 122px;
  background: var(--green-950);
  color: var(--cream);
}
.ce-wa-submit .ce-wa-icon { filter: invert(1); }
.ce-wa-submit:hover { background: var(--green-900); }
.ce-wa-direct:hover { background: var(--cta-hover); }
.ce-wa-note {
  margin: -9px 0 0;
  color: var(--muted-l);
  font: 400 .75rem/1.5 var(--sans);
}
.ce-wa-form :focus-visible, .ce-wa-close:focus-visible, .ce-wa-direct:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
}
.ce-wa-launch:focus-visible { outline: 3px solid white; box-shadow: 0 0 0 6px var(--green-950); }
#escribir { scroll-margin-top: 28px; }
.ce-wa-jump { margin-top: var(--s3); align-self: flex-start; }
@media (max-width: 600px) {
  .ce-wa-launch { width: 54px; height: 54px; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
  .ce-wa-dialog-inner { padding: 20px; }
  .ce-wa-contact .ce-wa-person { grid-template-columns: 1fr; }
  .ce-wa-contact .ce-wa-note { padding-inline-end: 54px; }
  .ce-wa-dialog .ce-wa-form, .ce-wa-dialog .ce-wa-person { gap: 12px; }
  .ce-wa-dialog .ce-wa-submit { width: 100%; }
}
