.wa-enquiry-launcher,
.wa-enquiry {
  --wa-background: #faf9f5;
  --wa-ink: #252c26;
  --wa-edge: max(1rem, env(safe-area-inset-right));
  --wa-bottom: calc(var(--conversion-bar-height, env(safe-area-inset-bottom)) + 1rem);
  box-sizing: border-box;
  font: 400 .875rem/1.45 Inter, Arial, sans-serif;
}

.wa-enquiry-launcher {
  position: fixed;
  z-index: 35;
  right: var(--wa-edge);
  bottom: var(--wa-bottom);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--wa-background);
  border-radius: 50%;
  background: var(--wa-ink);
  color: #fff;
  box-shadow: 0 4px 16px #0003;
  cursor: pointer;
}

.wa-enquiry-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 23px;
  height: 17px;
  border: 1.5px solid currentColor;
  border-radius: 6px;
}

.wa-enquiry-icon::before {
  position: absolute;
  bottom: -4px;
  left: 4px;
  width: 4px;
  height: 4px;
  border-bottom: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  background: var(--wa-ink);
  transform: skewY(-40deg);
  content: "";
}

.wa-enquiry-icon::after {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: -5px 0 currentColor, 5px 0 currentColor;
  content: "";
}

.wa-enquiry {
  position: fixed;
  inset: auto var(--wa-edge) var(--wa-bottom) auto;
  width: min(25rem, calc(100% - var(--wa-edge) - max(1rem, env(safe-area-inset-left))));
  max-height: calc(100dvh - var(--wa-bottom) - 1rem);
  margin: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #c8c4b7;
  background: var(--wa-background);
  color: var(--wa-ink);
  box-shadow: 0 10px 30px #0003;
}

.wa-enquiry::backdrop { background: #18241c55; }

.wa-enquiry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .75rem 1rem .75rem 1.25rem;
  background: var(--wa-ink);
  color: #fff;
}

.wa-enquiry-header h2 {
  margin: 0;
  color: inherit;
  font: 400 1.6rem/1.15 Brigada, Georgia, serif;
}

.wa-enquiry-close {
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: 400 1.6rem/1 Inter, Arial, sans-serif;
  cursor: pointer;
}

.wa-enquiry-form {
  display: grid;
  gap: .875rem;
  padding: 1.25rem;
}

.wa-enquiry-form label { display: grid; gap: .3rem; }

.wa-enquiry-form :is(input, select, textarea) {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: .55rem .6rem;
  border: 1px solid #858c80;
  border-radius: 0;
  background: #fff;
  color: inherit;
  font: 400 1rem/1.35 Inter, Arial, sans-serif;
}

.wa-enquiry-form textarea { resize: vertical; }

.wa-enquiry-form .wa-enquiry-note {
  margin: 0;
  color: inherit;
  font-size: .8rem;
}

.wa-enquiry-note a { color: inherit; text-decoration: underline; }

.wa-enquiry-submit {
  min-height: 44px;
  padding: .65rem 1rem;
  border: 1px solid var(--wa-ink);
  background: var(--wa-ink);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.wa-enquiry-submit:hover { background: #3b473d; }
.wa-enquiry-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wa-enquiry-launcher:focus-visible,
.wa-enquiry-form :focus-visible { outline: 2px solid var(--wa-ink); outline-offset: 2px; }

@media (max-width: 1120px) {
  body:has(.cookie-notice:not([hidden])) .wa-enquiry-launcher { display: none; }
}

@media (max-width: 600px) {
  .wa-enquiry { --wa-bottom: max(1rem, env(safe-area-inset-bottom)); }
}

@media print {
  .wa-enquiry-launcher, .wa-enquiry { display: none; }
}
