/* A useful plan on the left. A little imagination on the right. */
body.saywell-editorial #main > #pricing.live-planner {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: clamp(20px, 3svh, 40px);
  padding-bottom: clamp(20px, 3svh, 40px);
  overflow: hidden;
}
.live-planner .lp-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex: 0 0 auto; margin-bottom: 23px; }
.saywell-editorial .live-planner .lp-heading h2 { margin: 0; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.12; letter-spacing: -.045em; }
.live-planner .lp-heading > p { margin: 0 0 3px; max-width: 270px; font-size: 13px; line-height: 1.7; color: #5F6B68; }
.lp-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); flex: 1 1 0; min-height: 0; border: 1px solid #D3D8CD; border-radius: 5px; overflow: hidden; background: #FFFDFA; }
.lp-options { min-width: 0; min-height: 0; display: flex; flex-direction: column; border-right: 1px solid #D3D8CD; }
#live-planner-form { min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #B2BFB5 transparent; padding: 22px 25px 16px; scroll-padding-block: 20px; }
.lp-type-options { border: 0; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lp-type-options legend { padding: 0; margin-bottom: 12px; font-size: 12px; font-weight: 600; color: #243331; }
.lp-type-option { min-height: 70px; display: flex; align-items: center; gap: 11px; padding: 13px 14px; border: 1px solid #D4DAD1; border-radius: 3px; cursor: pointer; background: #FFFDFA; transition: background .15s ease, border-color .15s ease; }
.lp-type-option:hover { border-color: #849B8D; }
.lp-type-option:has(input:checked) { border-color: #164E4B; background: #E9EEE5; box-shadow: inset 0 0 0 1px #164E4B; }
.lp-type-option input { width: 15px; height: 15px; margin: 0; accent-color: #164E4B; flex: 0 0 auto; }
.lp-type-option strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.4; color: #164E4B; }
.lp-type-option small { display: block; margin-top: 4px; font-size: 10px; color: #5F6B68; line-height: 1.5; }
.lp-scope-note { margin: 0 0 17px; color: #5F6B68; font-size: 11px; line-height: 1.7; }
.lp-field { display: block; font-size: 11px; font-weight: 500; color: #243331; margin: 0 0 16px; }
.lp-field > span { display: block; margin-bottom: 7px; }
.lp-field :is(select, textarea) { box-sizing: border-box; display: block; width: 100%; min-height: 43px; border: 1px solid #BDC8BE; border-radius: 3px; background: #FFFDFA; color: #243331; padding: 10px 12px; font: 400 12px/1.5 var(--sans); }
.lp-field textarea { min-height: 88px; resize: vertical; }
.lp-field small { display: block; font-weight: 400; color: #5F6B68; font-size: 10px; line-height: 1.6; margin-top: 7px; }
.lp-scope-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 15px; }
.lp-scope-fields > [data-lp-when] { grid-column: 1 / -1; }
.lp-scope-fields > .lp-platform { grid-column: 1 / -1; }
.lp-extra-group { border-top: 1px solid #DBDFD5; }
.lp-extra-group:last-of-type { border-bottom: 1px solid #DBDFD5; }
.lp-extra-group > summary { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 48px; gap: 16px; padding: 10px 22px 10px 0; list-style: none; cursor: pointer; color: #164E4B; font-size: 12px; font-weight: 500; line-height: 1.5; }
.lp-extra-group > summary::-webkit-details-marker { display: none; }
.lp-extra-group > summary::after { content: '+'; position: absolute; right: 0; font-size: 19px; font-weight: 400; color: #A84A33; }
.lp-extra-group[open] > summary::after { content: '−'; }
.lp-extra-group > summary > small { color: #6A756E; font-size: 10px; font-weight: 400; margin-left: auto; }
.lp-extra-body { padding: 0 0 13px; }
.lp-extra-body > p { font-size: 10px; line-height: 1.65; color: #5F6B68; margin: 10px 0 0; }
.lp-check { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; cursor: pointer; border-bottom: 1px solid #E5E7DF; }
.lp-check:last-child { border-bottom: 0; }
.lp-check input { width: 15px; height: 15px; accent-color: #164E4B; margin: 2px 0 0; flex: 0 0 auto; }
.lp-check > span { flex: 1; min-width: 0; }
.lp-check strong { display: block; color: #243331; font-size: 11px; font-weight: 500; line-height: 1.5; }
.lp-check small { display: block; font-size: 10px; line-height: 1.65; color: #5F6B68; margin-top: 3px; }
.lp-check em { display: block; color: #A84A33; font-size: 10px; font-style: normal; line-height: 1.6; margin-top: 4px; }
.lp-check:has(input:disabled) { cursor: default; }
.lp-check:has(input:disabled) em { color: #164E4B; }
.lp-extra-body .lp-field { margin-top: 13px; }
.lp-options-footer { flex: 0 0 auto; border-top: 1px solid #D3D8CD; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 25px; }
.lp-options-footer :is(a, button) { border: 0; background: transparent; font: 400 10px/1.6 var(--sans); color: #164E4B; padding: 3px 0; min-height: 26px; text-decoration: underline; text-underline-offset: 3px; }
.lp-options-footer button { color: #5F6B68; }
.lp-preview { min-width: 0; min-height: 0; padding: 18px 23px; background: #EDF0E7; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #B2BFB5 transparent; scroll-padding-block: 20px; }
.lp-preview > * { flex-shrink: 0; }
.lp-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lp-preview-heading > div > p { margin: 0 0 4px; color: #164E4B; font-size: 11px; font-weight: 500; }
.lp-preview-heading > div > span { display: block; font-size: 9px; color: #667269; }
.lp-device-toggle { display: flex; align-items: center; gap: 2px; border: 1px solid #C6D0C3; border-radius: 4px; padding: 3px; }
.lp-device-toggle button { display: grid; place-items: center; min-height: 29px; min-width: 44px; padding: 5px 9px; background: transparent; border: 0; border-radius: 2px; color: #57685D; font: 400 10px/1.5 var(--sans); }
.lp-device-toggle button[aria-pressed="true"] { background: #164E4B; color: #FAF7F2; }
.lp-demo-window { height: clamp(180px, 27svh, 270px); width: 100%; min-height: 180px; overflow: hidden; border-radius: 4px; background: #DDE3D6; }
#lp-demo { height: 100%; min-height: 0; overflow-y: auto; scrollbar-width: thin; scroll-behavior: smooth; }
.lp-summary { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 20px; padding-top: 1px; }
.lp-summary .lp-price-label { margin: 0 0 3px; font-size: 9px; color: #5F6B68; line-height: 1.6; }
.lp-price-value { display: block; font: 500 clamp(24px, 2.5vw, 34px)/1.2 var(--display); letter-spacing: -.045em; color: #164E4B; overflow-wrap: anywhere; }
.lp-summary .lp-delivery { border-left: 1px solid #CAD2C3; padding-left: 20px; }
.lp-summary .lp-delivery > span { display: block; margin-bottom: 7px; font-size: 9px; color: #5F6B68; }
.lp-summary .lp-delivery > strong { display: block; font-size: 13px; color: #243331; font-weight: 500; line-height: 1.4; }
.lp-monthly { grid-column: 1 / -1; color: #5F6B68; font-size: 10px; line-height: 1.6; margin: 6px 0 0; }
.lp-preview-actions { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
body[data-site="saywell"] .lp-preview-actions .button { min-height: 42px; padding: 10px 15px; font-size: 11px; justify-content: space-between; }
body[data-site="saywell"] .lp-preview-actions .text-link { font-size: 10px; min-height: 24px; white-space: nowrap; }
.lp-breakdown { border-top: 1px solid #CAD2C3; }
.lp-breakdown > summary { color: #164E4B; font-size: 10px; line-height: 1.7; cursor: pointer; padding: 11px 0 2px; }
.lp-breakdown ul { list-style: none; margin: 8px 0 12px; padding: 0; }
.lp-breakdown li { display: flex; gap: 15px; justify-content: space-between; font-size: 10px; line-height: 1.7; padding: 8px 0; border-bottom: 1px solid #D9DFD2; }
.lp-breakdown li strong { font-weight: 500; white-space: nowrap; }
.lp-disclaimer { color: #69736A; font-size: 9px; line-height: 1.7; margin: 0; }
.lp-notes { margin: 7px 0 0; padding: 0; font-size: 10px; color: #5F6B68; line-height: 1.7; }
.lp-notes p { margin: 0 0 7px; }
.lp-notes ul { padding-left: 16px; }
.lp-included { font-size: 9px; color: #5F6B68; line-height: 1.7; margin: 7px 0 0; }
.lp-mobile-jump { display: none; }
.live-planner :is(button, summary, input, select, textarea, a):focus-visible { outline: 2px solid #A84A33; outline-offset: 3px; }
.lp-noscript { padding: 12px 0; font-size: 13px; line-height: 1.8; }
@media (max-width: 1100px) {
  #live-planner-form { padding: 18px; }
  .lp-type-option { padding: 12px 10px; gap: 8px; }
  .lp-type-option strong { font-size: 12px; }
  .lp-type-option small { font-size: 9px; }
  .lp-preview { padding: 18px; }
  .lp-options-footer { padding-inline: 18px; }
  .lp-preview-actions { grid-template-columns: 1fr; gap: 6px; }
  .lp-preview-actions .text-link { justify-self: start; }
}
@media (max-width: 850px) {
  body.saywell-editorial #main > #pricing.live-planner { overflow-y: auto; }
  .live-planner .lp-heading { display: block; margin-bottom: 22px; }
  .saywell-editorial .live-planner .lp-heading h2 { font-size: 35px; }
  .live-planner .lp-heading > p { max-width: 100%; margin: 12px 0 0; font-size: 12px; }
  .lp-layout { flex: 0 0 auto; display: grid; grid-template-columns: 1fr; overflow: visible; order: 2; }
  .lp-options { border-right: 0; border-bottom: 1px solid #D3D8CD; }
  #live-planner-form { overflow: visible; flex: 0 0 auto; padding: 20px; }
  .lp-type-options { gap: 10px; }
  .lp-type-option { padding: 13px 12px; min-height: 72px; }
  .lp-type-option strong { font-size: 13px; }
  .lp-type-option small { font-size: 10px; }
  .lp-preview { overflow: visible; padding: 20px; }
  .lp-demo-window { height: 260px; }
  .lp-preview-actions { grid-template-columns: 1fr auto; }
  .lp-price-value { font-size: 31px; }
  .lp-preview-actions .text-link { justify-self: end; }
  .lp-mobile-jump { position: sticky; top: 0; order: 1; margin: 0 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 15px; background: #164E4B; color: #FAF7F2; padding: 13px 18px; font-size: 11px; z-index: 3; border-radius: 4px; }
  .lp-mobile-jump > a { color: #FAF7F2; text-decoration: underline; text-underline-offset: 4px; }
  .lp-mobile-jump strong { font-size: 13px; font-weight: 500; }
}
@media (max-width: 480px) {
  .saywell-editorial .live-planner .lp-heading h2 { font-size: 31px; }
  #live-planner-form { padding: 17px; }
  .lp-type-option { padding: 12px 10px; gap: 8px; }
  .lp-type-option small { font-size: 9px; }
  .lp-type-option strong { font-size: 12px; }
  .lp-preview { padding: 17px; }
  .lp-preview-actions { grid-template-columns: 1fr; gap: 9px; }
  .lp-preview-actions .text-link { justify-self: start; }
  .lp-summary { column-gap: 12px; }
  .lp-summary .lp-delivery { padding-left: 12px; }
  .lp-price-value { font-size: 27px; }
  .lp-preview-heading { gap: 10px; }
}
/* Keep touch controls comfortable, and avoid automatic form zoom on iPhones. */
@media (max-width: 850px) {
  .lp-field :is(select, textarea) { font-size: 16px; }
  .lp-device-toggle button { min-width: 48px; min-height: 44px; font-size: 12px; }
  .lp-options-footer :is(a, button) { min-height: 44px; font-size: 11px; }
  body[data-site="saywell"] .lp-preview-actions :is(.button, .text-link) { min-height: 44px; }
  .lp-mobile-jump > a { display: inline-flex; align-items: center; min-height: 44px; }
  .lp-mobile-jump { padding-block: 6px; }
  .lp-check strong { font-size: 13px; }
  .lp-check :is(small, em), .lp-field small { font-size: 11px; }
  .lp-extra-group > summary { font-size: 13px; }
}
@media (min-width: 851px) and (max-height: 700px) {
  body.saywell-editorial #main > #pricing.live-planner { padding-block: 16px; }
  .live-planner .lp-heading { margin-bottom: 15px; }
  .saywell-editorial .live-planner .lp-heading h2 { font-size: 32px; }
  .lp-preview { padding-block: 14px; gap: 9px; }
  .lp-demo-window { height: 180px; }
}
@media (prefers-reduced-motion: reduce) { #lp-demo { scroll-behavior: auto; } }
@media (min-width: 1101px) and (min-height: 850px) {
  .lp-demo-window { height: clamp(270px, calc(100svh - 570px), 500px); }
}
