/* Scade WhatsApp Enquiry v1.0.3
   Everything is scoped under .sce so the shop theme can't restyle it, and it can't restyle the shop. */

.sce {
  --sce-ink: #171412;
  --sce-ink-soft: #3b3530;
  --sce-muted: #6d665f;
  --sce-line: #e2dcd4;
  --sce-line-strong: #b8afa5;
  --sce-paper: #ffffff;
  --sce-wash: #f4f1ed;
  --sce-accent: #c1181f;
  --sce-accent-hover: #9c1218;
  --sce-error: #c1181f;
  --sce-bubble: #dcf5d0;
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  color: var(--sce-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.45;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.sce *, .sce *::before, .sce *::after { box-sizing: border-box; }
.sce [hidden] { display: none !important; }

/* Reset theme styles on our own controls */
.sce .sce-chip, .sce .sce-opt, .sce .sce-btn, .sce .sce-back, .sce .sce-link,
.sce .sce-input, .sce .sce-close {
  all: unset;
  box-sizing: border-box;
}

/* Card */
.sce .sce-card {
  position: relative;
  background: var(--sce-paper);
  border: 1px solid var(--sce-line);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(23, 20, 18, .05), 0 22px 44px -24px rgba(23, 20, 18, .32);
  overflow: hidden;
}
.sce .sce-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 12px;
}
.sce .sce-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--sce-ink);
}
.sce .sce-mark::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--sce-accent);
}
.sce .sce-count {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sce-muted);
  font-variant-numeric: tabular-nums;
}
.sce .sce-bar {
  height: 3px;
  margin: 0 22px;
  border-radius: 3px;
  background: var(--sce-wash);
  overflow: hidden;
}
.sce .sce-fill {
  display: block;
  height: 100%;
  width: 20%;
  border-radius: inherit;
  background: var(--sce-accent);
  transition: width .4s cubic-bezier(.2, .75, .25, 1);
}
.sce .sce-body {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 24px 22px 22px;
}
.sce .sce-step {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Question */
.sce .sce-q {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
  text-transform: none;
  text-wrap: balance;
  color: var(--sce-ink);
}
.sce .sce-q:focus { outline: none; }
.sce .sce-hint {
  margin: 8px 0 0;
  padding: 0;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--sce-muted);
}

/* Multi-select chips */
.sce .sce-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.sce .sce-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 16px 9px 11px;
  border: 1.5px solid var(--sce-line);
  border-radius: 999px;
  background: var(--sce-paper);
  color: var(--sce-ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.sce .sce-chip:active { transform: scale(.97); }
.sce .sce-chip[aria-pressed="true"] {
  background: var(--sce-ink);
  border-color: var(--sce-ink);
  color: #fff;
}
.sce .sce-tick {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid #cfc6bc;
  border-radius: 50%;
  transition: background-color .15s, border-color .15s;
}
.sce .sce-tick .sce-ico {
  width: 12px;
  height: 12px;
  stroke-width: 3.2;
  opacity: 0;
  transform: scale(.5);
  transition: opacity .15s, transform .15s;
}
.sce .sce-chip[aria-pressed="true"] .sce-tick {
  background: var(--sce-accent);
  border-color: var(--sce-accent);
  color: #fff;
}
.sce .sce-chip[aria-pressed="true"] .sce-tick .sce-ico { opacity: 1; transform: none; }

/* Single-select rows */
.sce .sce-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}
.sce .sce-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 12px 16px 12px 18px;
  border: 1.5px solid var(--sce-line);
  border-radius: 14px;
  background: var(--sce-paper);
  color: var(--sce-ink);
  text-align: left;
  cursor: pointer;
  user-select: none;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.sce .sce-opt:active { transform: scale(.99); }
.sce .sce-opt[aria-pressed="true"] {
  background: var(--sce-ink);
  border-color: var(--sce-ink);
  color: #fff;
}
.sce .sce-opt-text { display: flex; flex-direction: column; gap: 3px; }
.sce .sce-opt-label { font-size: 16px; font-weight: 600; line-height: 1.25; }
.sce .sce-opt-note { font-size: 13.5px; line-height: 1.3; color: var(--sce-muted); }
.sce .sce-opt[aria-pressed="true"] .sce-opt-note { color: rgba(255, 255, 255, .72); }
.sce .sce-opt .sce-ico { color: #b3aaa0; transition: transform .2s, color .15s; }
.sce .sce-opt[aria-pressed="true"] .sce-ico { color: #fff; }

/* Hover only on devices with a real pointer, so a tap doesn't leave the next step's option looking pressed */
@media (hover: hover) {
  .sce .sce-chip:hover, .sce .sce-opt:hover { border-color: var(--sce-line-strong); }
  .sce .sce-chip[aria-pressed="true"]:hover, .sce .sce-opt[aria-pressed="true"]:hover { border-color: var(--sce-ink); }
  .sce .sce-opt:hover .sce-ico { color: var(--sce-ink); transform: translateX(2px); }
  .sce .sce-opt[aria-pressed="true"]:hover .sce-ico { color: #fff; }
}

/* Footer row and buttons */
.sce .sce-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}
.sce .sce-status {
  font-size: 13.5px;
  color: var(--sce-muted);
  font-variant-numeric: tabular-nums;
}
.sce .sce-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--sce-accent);
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, transform .1s, opacity .15s;
}
.sce .sce-btn:hover, .sce .sce-btn:focus { color: #fff; }
.sce .sce-btn:hover { background: var(--sce-accent-hover); }
.sce .sce-btn:active { transform: scale(.98); }
.sce .sce-btn:disabled, .sce .sce-btn:disabled:hover {
  opacity: .32;
  background: var(--sce-accent);
  color: #fff;
  cursor: not-allowed;
  transform: none;
}
.sce .sce-send { flex: 1; }
.sce .sce-ghost, .sce .sce-ghost:hover, .sce .sce-ghost:focus {
  background: transparent;
  color: var(--sce-ink);
  box-shadow: inset 0 0 0 1.5px var(--sce-line);
}
.sce .sce-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--sce-line-strong); }
.sce .sce-wide { width: 100%; }
.sce .sce-back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding: 0 10px 0 0;
  color: var(--sce-muted);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.sce .sce-back:hover { color: var(--sce-ink); }
.sce .sce-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--sce-ink);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--sce-line-strong);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  cursor: pointer;
}
.sce .sce-link:hover { text-decoration-color: var(--sce-accent); }
.sce .sce-add { align-self: flex-start; margin-top: 8px; text-decoration: none; color: var(--sce-ink-soft); }

.sce .sce-chip:focus-visible, .sce .sce-opt:focus-visible, .sce .sce-btn:focus-visible,
.sce .sce-back:focus-visible, .sce .sce-link:focus-visible, .sce .sce-close:focus-visible,
.sce .sce-dl a:focus-visible {
  outline: 2.5px solid var(--sce-accent);
  outline-offset: 3px;
}

/* Name, note and date */
.sce .sce-field { margin-top: 20px; }
.sce .sce-input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1.5px solid var(--sce-line);
  border-radius: 12px;
  background: #fff;
  color: var(--sce-ink);
  font-size: 16px;
  line-height: 1.4;
  cursor: text;
  transition: border-color .15s, box-shadow .15s;
}
.sce .sce-input::placeholder { color: #a8a097; opacity: 1; }
.sce .sce-input:focus { border-color: var(--sce-ink); box-shadow: 0 0 0 4px rgba(193, 24, 31, .12); }
.sce .sce-input[aria-invalid="true"] { border-color: var(--sce-error); }
.sce .sce-date-field { margin-top: 14px; }
.sce .sce-date { text-align: left; }
.sce .sce-date::-webkit-date-and-time-value { text-align: left; }
.sce .sce-date::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
.sce .sce-textarea {
  min-height: 84px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  resize: vertical;
}
.sce .sce-label {
  display: block;
  margin: 12px 0 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sce-ink-soft);
}
.sce .sce-error {
  margin: 8px 0 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--sce-error);
}

/* WhatsApp preview */
.sce .sce-preview {
  margin-top: 16px;
  padding: 12px 12px 14px;
  border-radius: 14px;
  background: var(--sce-wash);
}
.sce .sce-preview-label {
  margin: 0 0 8px 2px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sce-muted);
}
.sce .sce-bubble {
  position: relative;
  margin-left: 22px;
  padding: 9px 12px 22px;
  border-radius: 12px 12px 4px 12px;
  background: var(--sce-bubble);
  color: #1c2918;
  font-size: 13.5px;
  line-height: 1.42;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .06);
}
.sce .sce-time {
  position: absolute;
  right: 10px;
  bottom: 5px;
  font-size: 11px;
  color: rgba(28, 41, 24, .55);
  font-variant-numeric: tabular-nums;
}
.sce .sce-small {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--sce-muted);
  text-align: center;
}

/* Thank-you */
.sce .sce-done { display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.sce .sce-done-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--sce-accent);
  color: #fff;
}
.sce .sce-done-badge .sce-ico { width: 24px; height: 24px; stroke-width: 2.6; }
.sce .sce-text {
  max-width: 40ch;
  margin: 10px 0 0;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--sce-ink-soft);
}
.sce .sce-done .sce-btn { margin-top: 24px; }
.sce .sce-row { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 8px; }
.sce .sce-done .sce-small { margin-top: auto; padding-top: 18px; text-align: left; }

/* Showroom details card: [scade_contact_details] */
.sce.sce-details-wrap { margin-top: 16px; }
.sce .sce-details {
  padding: 22px 22px 8px;
  background: var(--sce-paper);
  border: 1px solid var(--sce-line);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(23, 20, 18, .05);
}
.sce .sce-details-title {
  margin: 0 0 6px;
  padding: 0;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.015em;
  text-transform: none;
  color: var(--sce-ink);
}
.sce .sce-dl { margin: 0; padding: 0; }
.sce .sce-dl-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--sce-line);
}
.sce .sce-dl-row:first-child { border-top: 0; }
.sce .sce-dl dt {
  margin: 0;
  padding: 1px 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--sce-muted);
  text-transform: none;
  letter-spacing: 0;
}
.sce .sce-dl dd {
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--sce-ink);
}
.sce .sce-dl a, .sce .sce-dl a:visited {
  color: var(--sce-ink);
  text-decoration: underline;
  text-decoration-color: var(--sce-line-strong);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.sce .sce-dl a:hover { color: var(--sce-ink); text-decoration-color: var(--sce-ink); }
.sce .sce-dl .sce-dlink { display: inline-block; margin-top: 6px; font-weight: 600; }

/* Icons */
.sce .sce-ico, .sce-fab .sce-ico {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Step motion */
@keyframes sce-in-fwd { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes sce-in-back { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: none; } }
.sce .sce-step[data-dir="1"] { animation: sce-in-fwd .32s cubic-bezier(.2, .75, .25, 1) both; }
.sce .sce-step[data-dir="-1"] { animation: sce-in-back .32s cubic-bezier(.2, .75, .25, 1) both; }

/* Pop-up */
dialog.sce-dialog {
  width: min(520px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100% - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  overflow: auto;
}
dialog.sce-dialog::backdrop { background: rgba(23, 20, 18, .55); }
.sce.sce-in-dialog { max-width: none; }
.sce-in-dialog .sce-head { padding-right: 60px; }
.sce .sce-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--sce-muted);
  cursor: pointer;
}
.sce .sce-close:hover { color: var(--sce-ink); background: var(--sce-wash); }

/* Floating button and [scade_enquiry_button] */
.sce-fab.sce-fab, a.sce-open-btn.sce-open-btn {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: #c1181f;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, transform .1s;
}
.sce-fab.sce-fab {
  position: fixed;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 9990;
  box-shadow: 0 12px 28px -10px rgba(23, 20, 18, .5);
}
.sce-fab.sce-fab:hover, a.sce-open-btn.sce-open-btn:hover { background: #9c1218; color: #fff; }
.sce-fab.sce-fab:focus-visible, a.sce-open-btn.sce-open-btn:focus-visible { outline: 2.5px solid #171412; outline-offset: 3px; }

/* Shown if the script hasn't loaded yet */
.sce .sce-fallback { margin: 0; padding: 18px 0; text-align: center; color: #6d665f; }

@media (max-width: 400px) {
  .sce .sce-head { padding: 16px 18px 10px; }
  .sce .sce-bar { margin: 0 18px; }
  .sce .sce-body { padding: 20px 18px 18px; min-height: 440px; }
  .sce .sce-q { font-size: 24px; }
  .sce .sce-chip { font-size: 14.5px; padding-right: 14px; }
  .sce .sce-details { padding: 20px 18px 6px; }
}

/* Phones: stack each label above its value */
@media (max-width: 480px) {
  .sce .sce-dl-row { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .sce .sce-step { animation: none !important; }
  .sce .sce-fill, .sce .sce-chip, .sce .sce-opt, .sce .sce-btn, .sce .sce-tick .sce-ico { transition: none !important; }
}
