/* Molly widget and shared chrome helpers */
button.nav-cta,
button.btn-primary {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: 800;
  color: #111111;
}
button.btn-secondary {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  background: transparent;
  padding: 0;
  color: #111111;
}

body.has-molly {
  --molly-clear: calc(52px + 20px + env(safe-area-inset-bottom, 0px));
}
body.has-molly .site-footer {
  padding-bottom: calc(56px + var(--molly-clear));
}

.molly-root {
  position: relative;
  z-index: 60;
  font-family: "Cabinet Grotesk", sans-serif;
  color: #111111;
  -webkit-font-smoothing: antialiased;
}

.molly-launch {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 61;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 18px;
  background: #D0FF00;
  color: #111111;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  font: inherit;
}

.molly-launch-m {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.molly-launch-label {
  font-weight: 800;
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 2px;
}

.molly-launch:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 3px;
}
.molly-root.is-open .molly-launch,
body.molly-open .molly-launch {
  display: none;
}
body.molly-open {
  overflow: hidden;
}

.molly-panel {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 62;
  width: min(400px, calc(100vw - 24px));
  height: min(640px, calc(100vh - 120px));
  background: #ffffff;
  border: 1px solid #E8E8E8;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.14);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.molly-panel.open { display: flex; }

.molly-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid #E8E8E8;
  background: #ffffff;
}

.molly-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 10px;
  background: #D0FF00;
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.04em;
}

.molly-head-text { min-width: 0; flex: 1; }
.molly-head-name {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.molly-head-role {
  margin-top: 2px;
  font-size: 12px;
  color: #5A5A5A;
  letter-spacing: -0.01em;
}

.molly-close {
  border: 0;
  background: transparent;
  color: #111111;
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  letter-spacing: -0.02em;
}

.molly-close:hover { background: #F4F4F2; }

.molly-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #ffffff;
}

.molly-msg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.molly-msg.molly {
  align-self: flex-start;
  background: #F4F4F2;
  color: #111111;
}

.molly-msg.you {
  align-self: flex-end;
  background: #111111;
  color: #ffffff;
}

.molly-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 16px 12px;
}

.molly-chip,
.molly-slot,
.molly-confirm {
  border: 1px solid #E8E8E8;
  background: #ffffff;
  color: #111111;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  text-align: left;
}

.molly-chip:hover,
.molly-slot:hover,
.molly-confirm:hover {
  border-color: #111111;
}

.molly-chip:focus-visible,
.molly-slot:focus-visible,
.molly-confirm:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

.molly-slot.is-picked,
.molly-confirm {
  background: #D0FF00;
  border-color: #D0FF00;
  color: #111111;
}

.molly-day {
  align-self: stretch;
  max-width: 100%;
}

.molly-day-label {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: -0.02em;
  margin: 4px 0 8px;
}

.molly-slot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.molly-form {
  display: grid;
  gap: 8px;
  padding: 0 16px 8px;
}

.molly-form input,
.molly-form textarea,
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #E8E8E8;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: #111111;
  background: #ffffff;
  letter-spacing: -0.01em;
}

.molly-form input:focus,
.molly-form textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #111111;
  outline-offset: 1px;
}

.molly-compose {
  display: flex;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid #E8E8E8;
  background: #ffffff;
  flex-shrink: 0;
}

.molly-compose input {
  flex: 1;
  min-width: 0;
  border: 1px solid #E8E8E8;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: #111111;
}

.molly-compose input:focus {
  outline: 2px solid #111111;
  outline-offset: 1px;
}

.molly-send {
  border: 0;
  border-radius: 12px;
  background: #D0FF00;
  color: #111111;
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  padding: 0 16px;
  cursor: pointer;
  letter-spacing: -0.02em;
}

.molly-send:disabled {
  opacity: 0.5;
  cursor: default;
}

.molly-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 720px) {
  .molly-launch {
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }
  .molly-panel {
    top: var(--molly-vv-top, 0px);
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: var(--molly-vv-height, 100dvh);
    border-radius: 20px 20px 0 0;
    border: 0;
    box-shadow: 0 -12px 40px rgba(17, 17, 17, 0.12);
  }
  .molly-head {
    padding: 10px 8px 10px 16px;
  }
  .molly-compose {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .molly-root.is-keyboard .molly-compose {
    padding-bottom: 12px;
  }
  /* Keep page content clear of the launcher */
  body.has-molly .hero {
    padding-bottom: calc(18px + var(--molly-clear));
  }
  body.has-molly .hero .phone {
    max-width: 300px;
  }
  body.has-molly .contact-grid {
    padding-bottom: calc(40px + var(--molly-clear));
  }
  body.has-molly .contact,
  body.has-molly .band.contact {
    padding-bottom: calc(40px + var(--molly-clear));
  }
}
