/* SMS consent on the public quote phone step. */
#quote-form #phone-tab .quote-sms-preference {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 22px 0 0;
  padding: clamp(14px, 4vw, 22px);
  border: 1px solid #cbd8d4;
  border-radius: 10px;
  background: #fff;
  color: #202e43;
  font: 400 15px/1.55 "Entry Inter", Arial, sans-serif;
  text-align: left;
  overflow-wrap: anywhere;
}

#quote-form #phone-tab .quote-sms-heading {
  margin: 0 0 8px;
  padding: 0;
  color: #202e43;
  font: 700 19px/1.35 "Entry Manrope", Arial, sans-serif;
  text-align: left;
}

#quote-form #phone-tab .quote-sms-consent {
  margin: 0 0 14px;
  color: #465469;
  font: inherit;
  text-align: left;
}

#quote-form #phone-tab .quote-sms-switch {
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-width: 0;
  min-height: 52px;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--sms-idle-border, #a8b8b4);
  border-radius: 8px;
  background: var(--sms-idle-bg, #f3f6f5);
  color: #26384d;
  font: 650 14px/1.4 "Entry Inter", Arial, sans-serif;
  cursor: pointer;
}

#quote-form #phone-tab .quote-sms-checkbox {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

#quote-form #phone-tab .quote-sms-track {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  flex: 0 0 46px;
  height: 25px;
  padding: 3px;
  border: 1px solid #65798b;
  border-radius: 999px;
  background: #eef2f4;
}

#quote-form #phone-tab .quote-sms-track::before {
  content: "";
  flex: 0 0 17px;
  height: 17px;
  border-radius: 50%;
  background: #526378;
}

#quote-form #phone-tab .quote-sms-switch:hover {
  border-color: var(--sms-accent, #12676c);
}

#quote-form #phone-tab .quote-sms-switch:has(:focus-visible) {
  outline: 3px solid var(--sms-focus, #147b80);
  outline-offset: 3px;
}

#quote-form #phone-tab .quote-sms-switch:has(:checked) {
  border-color: var(--sms-accent, #12676c);
  background: var(--sms-selected-bg, #eaf4f0);
  color: var(--sms-selected-text, #104c50);
}

#quote-form #phone-tab .quote-sms-checkbox:checked + .quote-sms-track {
  justify-content: flex-end;
  border-color: var(--sms-accent, #12676c);
  background: var(--sms-accent, #12676c);
}

#quote-form #phone-tab .quote-sms-checkbox:checked + .quote-sms-track::before {
  background: #fff;
}

#quote-form #phone-tab .quote-sms-on,
#quote-form #phone-tab .quote-sms-checkbox:checked ~ .quote-sms-off {
  display: none;
}

#quote-form #phone-tab .quote-sms-checkbox:checked ~ .quote-sms-on {
  display: block;
}

#quote-form #phone-tab .quote-sms-terms {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid #dce4df;
  color: #465469;
  font: 400 13px/1.6 "Entry Inter", Arial, sans-serif;
  text-align: left;
}

#quote-form #phone-tab .quote-sms-preference--original {
  --sms-accent: #5146a3;
  --sms-focus: #5b50bf;
  --sms-selected-bg: #ece9fc;
  --sms-selected-text: #3c327c;
  --sms-idle-bg: #faf9ff;
  --sms-idle-border: #aaa2cc;
  background: #f5f2ff;
  border-color: #d2c9ed;
  border-radius: 14px;
  font-family: Inter, system-ui, sans-serif;
}

#quote-form #phone-tab .quote-sms-preference--original :is(.quote-sms-heading, .quote-sms-switch, .quote-sms-terms) {
  font-family: inherit;
}

#quote-form #phone-tab .quote-sms-preference--original .quote-sms-heading {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: #302755;
}

#quote-form #phone-tab .quote-sms-preference--original .quote-sms-terms {
  border-top-color: #d9d1ed;
}
