body:has(.dtsv) { background: #fff !important; }

.dtsv {
  --ink: #213661;
  --text: #182841;
  --muted: #4b5c74;
  --line: #dce5ef;
  --field-line: #b7c5d8;
  --surface: #f5f8fc;
  --teal: #0ecfb6;
  --focus: #007365;
  --selected: #eaf8f5;
  --panel-radius: 20px;
  --control-radius: 11px;
  --panel-padding: clamp(14px, 1.65vw, 23px);
  --shadow: 0 2px 6px #20376207, 0 12px 32px #20376209;
  --edge: clamp(14px, 2.45vw, 36px);
  --header: 115px;

  width: min(100%, 1510px);
  margin: auto;
  padding: clamp(22px, 3.2vw, 44px) var(--edge) 64px;
  color: var(--text);
  background: #fff;
  font: 400 15px / 1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dtsv, .dtsv *, .dtsv *::before, .dtsv *::after { box-sizing: border-box; }
.dtsv [hidden] { display: none !important; }

.dtsv :is(a, button, input, textarea, summary, select):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.dtsv a { color: var(--ink); text-underline-offset: 3px; }
.dtsv button { font: inherit; cursor: pointer; }
.dtsv button:disabled { cursor: wait; opacity: .65; }
.dtsv :is(h1, h2, p, dl, dd) { margin: 0; }

.dtsv h1 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(31px, 3.5vw, 55px);
  font-weight: 780;
  line-height: 1.03;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.dtsv h2 {
  color: var(--ink);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.028em;
}

.dtsv-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px 26px;
  margin-bottom: clamp(22px, 3vw, 38px);
}

.dtsv-native-intro { flex: 1; min-width: 0; }
.dtsv-intro > .brxe-shortcode { flex: 0 1 auto; width: fit-content; max-width: 100%; }

.dtsv-intro :is(p, .brxe-text-basic) {
  max-width: 69ch;
  color: var(--muted);
  font-size: clamp(14px, 1.3vw, 17px);
}

.dtsv-material-links { display: flex; justify-content: end; }
.dtsv-material-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 690;
  text-decoration: none;
}

.dtsv-material-links a span { color: var(--focus); font-size: 16px; }
.dtsv-columns {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(0, 1.34fr) minmax(244px, .78fr);
  gap: clamp(16px, 2.1vw, 30px);
  align-items: start;
}
.dtsv-gallery, .dtsv-form, .dtsv-quote, .dtsv-columns > * { min-width: 0; }

.dtsv-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--panel-radius);
  background: #e8efef;
  touch-action: pan-y;
}

.dtsv-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.dtsv-photo button { border: 0; background: #fff; color: var(--ink); }
.dtsv-expand { display: block; width: 100%; padding: 0; text-align: left; }

.dtsv-expand span, .dtsv-photo-enlarge, .dtsv-prev, .dtsv-next {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 14px #18284138;
}

.dtsv-photo :is(.dtsv-photo-enlarge, .dtsv-prev, .dtsv-next):focus-visible { outline-offset: -4px; }
.dtsv-expand span, .dtsv-photo-enlarge { right: 12px; bottom: 12px; font-size: 20px; }
.dtsv-prev, .dtsv-next { top: 50%; transform: translateY(-50%); font-size: 23px !important; }
.dtsv-prev { left: 10px; }
.dtsv-next { right: 10px; }

.dtsv-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(6px, .8vw, 10px);
  margin: 12px 0 9px;
}

.dtsv-thumbs button {
  display: block;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.dtsv-thumbs button[aria-pressed=true] {
  border-color: var(--focus);
  box-shadow: inset 0 0 0 1px var(--focus);
}

.dtsv-thumbs img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.dtsv .dtsv-caption { color: var(--muted); font-size: 13px; }

.dtsv-benefits {
  display: grid;
  gap: 7px;
  margin: 15px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.dtsv-benefits li { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.dtsv-benefits li::before { content: "✓"; color: var(--focus); font-weight: 800; }

.dtsv dialog {
  max-width: min(100%, 92dvh);
  max-height: 92dvh;
  padding: 12px;
  border: 0;
  border-radius: var(--panel-radius);
  background: #fff;
}
.dtsv dialog::backdrop { background: #14213bc7; }
.dtsv dialog img { display: block; max-height: 82dvh; width: 100%; height: auto; object-fit: contain; }
.dtsv-close {
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 0 4px auto;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 24px !important;
}

.dtsv-form fieldset {
  display: flow-root;
  min-width: 0;
  margin: 0 0 15px;
  padding: var(--panel-padding);
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.dtsv-form legend {
  float: left;
  width: 100%;
  margin: 0 0 13px;
  padding: 0;
  color: var(--ink);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.dtsv-form legend + * { clear: both; }
.dtsv-form label { min-width: 0; color: var(--ink); font-size: 13px; font-weight: 650; }

.dtsv-form :is(input:not([type=radio],[type=checkbox],[type=file]), select, textarea) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 5px 0 0;
  padding: 9px 11px;
  border: 1px solid var(--field-line);
  border-radius: var(--control-radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 560;
  line-height: 1.35;
}

.dtsv-form :is(input, select, textarea):focus-visible { background: #fff; outline-width: 2px; outline-offset: 1px; }
.dtsv-form :is(input, textarea)::placeholder { color: var(--muted); opacity: 1; }
.dtsv-form textarea { min-height: 82px; resize: vertical; }
.dtsv input[type=checkbox] { accent-color: var(--focus); }

.dtsv-measures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.dtsv-measures label span { display: block; position: relative; }
.dtsv-measures label small {
  position: absolute;
  inset-inline-end: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 11px;
  pointer-events: none;
}
.dtsv-measures input[inputmode=decimal] { padding-inline-end: 28px !important; }
.dtsv-measures input { font-variant-numeric: tabular-nums; }

.dtsv .dtsv-note { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.dtsv button.dtsv-reset {
  min-height: 32px;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dtsv-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 9px;
  background: var(--surface);
  cursor: pointer;
}

.dtsv-option:has(input:checked) {
  border-color: var(--focus);
  background: var(--selected);
  box-shadow: inset 0 0 0 1px var(--focus);
}

.dtsv-option:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.dtsv-option input[type=radio] { flex: none; width: 15px; height: 15px; margin: 0; accent-color: var(--focus); }

.dtsv-cuts, .dtsv-laminates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dtsv-cut {
  flex-direction: column;
  align-items: start;
  gap: 0;
  min-height: 124px;
  padding: 7px;
  line-height: 1.23;
}

.dtsv-cut input[type=radio] { position: absolute; z-index: 1; top: 10px; inset-inline-start: 10px; }
.dtsv-cut-image {
  display: block;
  overflow: hidden;
  width: 100%;
  margin-bottom: 7px;
  border-radius: 8px;
  background: #fff;
}

.dtsv-cut-image img { display: block; width: 100%; height: auto; aspect-ratio: 1.27; object-fit: contain; }
.dtsv-option-name { font-weight: 750; overflow-wrap: anywhere; }
.dtsv-cut small { margin: 3px 0 7px; color: var(--muted); font-size: 11px; }
.dtsv-cut strong { margin-top: auto; color: #155e54; font-size: 12px; }
.dtsv-laminates .dtsv-option { min-height: 45px; gap: 6px; line-height: 1.25; }
.dtsv-laminates .dtsv-option > span { min-width: 0; overflow-wrap: anywhere; }

.dtsv-tiers { display: grid; gap: 7px; }
.dtsv-tiers .dtsv-option { min-height: 48px; }
.dtsv-tiers small { display: block; color: var(--muted); font-weight: 500; }
.dtsv-tiers strong {
  margin-inline-start: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e5ecf5;
  color: var(--ink);
  font-size: 11px;
  white-space: nowrap;
}
.dtsv-tiers .dtsv-option:has(input:checked) strong { background: #d7eee8; color: #13564b; }

.dtsv-inline, .dtsv-design-count { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dtsv-inline { justify-content: start; margin-top: 8px; }
.dtsv-inline select { max-width: 220px; }
.dtsv-design-count { margin-bottom: 10px; }
.dtsv-design-count input { max-width: 82px; margin-top: 0 !important; }

.dtsv-design {
  display: grid;
  grid-template-columns: minmax(56px, 76px) minmax(0, 1fr);
  align-items: start;
  gap: 7px 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.dtsv-design + .dtsv-design { margin-top: 8px; }
.dtsv-design-title { grid-column: 1 / -1; color: var(--ink); font-size: 14px; font-weight: 750; }
.dtsv-design-units { display: block; }
.dtsv-form .dtsv-design [data-design-qty] { background: #fff; }

.dtsv-design [data-file-choose] {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 5px;
  min-width: 0;
  padding: 7px;
  border: 1px dashed #9baec5;
  border-radius: 11px;
  background: #fff;
}

.dtsv-design [data-file-choose]:has(button:not([hidden])) {
  border-color: var(--focus);
  border-style: solid;
  background: var(--selected);
}

.dtsv-design .dtsv-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
}

.dtsv-design .dtsv-file-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.dtsv-file-trigger::before {
  content: "";
  flex: 0 0 14px;
  height: 14px;
  background: var(--focus);
  clip-path: polygon(50% 0, 82% 34%, 72% 45%, 57% 29%, 57% 69%, 43% 69%, 43% 29%, 28% 45%, 18% 34%, 50% 0, 50% 85%, 100% 85%, 100% 100%, 0 100%, 0 85%, 50% 85%);
}

.dtsv-file-input:focus-visible + .dtsv-file-trigger { outline: 3px solid var(--focus); outline-offset: 2px; }
.dtsv-file-name { max-width: 100%; min-width: 0; color: var(--muted); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.dtsv-design button { padding: 2px 0; border: 0; background: none; color: var(--ink); font-size: 12px; text-decoration: underline; }

.dtsv-form fieldset > label:has(input[type=url], textarea) { display: block; margin-top: 12px; }

.dtsv-quote, .dtsv-quote-column {
  position: sticky;
  top: min(var(--header), calc(100dvh - var(--quote-height, 0px) - 12px));
}

.dtsv-quote {
  padding: clamp(15px, 1.7vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background:
    linear-gradient(var(--teal), var(--teal)) clamp(15px, 1.7vw, 24px) 0 / 44px 3px no-repeat,
    linear-gradient(180deg, #eef4fc, #fff 190px);
  box-shadow: 0 3px 9px #2037620a, 0 15px 42px #20376210;
}

.dtsv-quote-column .dtsv-quote { position: static; }
.dtsv .dtsv-quote-material { margin-top: 4px; color: var(--muted); font-size: 13px; }

.dtsv-price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin: 12px 0 5px;
}

.dtsv-price-line strong {
  color: var(--ink);
  font-size: clamp(31px, 3.4vw, 47px);
  font-weight: 790;
  line-height: 1;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.dtsv-price-line [data-tax] {
  padding: 2px 7px;
  border-radius: 999px;
  background: #e0e9f5;
  color: var(--ink);
  font-size: 11px;
  font-weight: 680;
}

.dtsv-effective { color: var(--ink); font-size: 13px; font-weight: 700; }
.dtsv-quote [data-effective-help] { margin-top: 3px; }

.dtsv-tax-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-top: 11px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: #edf2f8;
}

.dtsv-tax-switch button {
  min-height: 34px;
  padding: 5px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--ink);
  font-size: 12px;
  font-weight: 690;
  text-align: center;
}

.dtsv-tax-switch button[aria-pressed=true] {
  background: #fff;
  box-shadow: 0 1px 5px #20376226;
}

.dtsv dl.dtsv-summary { margin: 10px 0; font-size: 12px; }
.dtsv-summary div, .dtsv-breakdown dl div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 10px;
  padding: 4px 0;
  border-bottom: 1px solid #e8eef5;
}

.dtsv-summary dt, .dtsv-breakdown dt { color: var(--muted); }
.dtsv-summary dd, .dtsv-breakdown dd { color: var(--text); font-weight: 680; text-align: right; overflow-wrap: anywhere; }

.dtsv-breakdown {
  margin: 0 0 12px;
  padding: 8px 9px;
  border-radius: 9px;
  background: var(--surface);
  font-size: 12px;
}
.dtsv-breakdown summary, .dtsv-info summary { color: var(--ink); font-weight: 710; cursor: pointer; }
.dtsv-breakdown[open] dl { margin-top: 5px; }

.dtsv button.dtsv-primary, .dtsv button.dtsv-secondary {
  display: block;
  width: 100%;
  min-height: 45px;
  padding: 9px 8px;
  border: 1px solid var(--ink);
  border-radius: var(--control-radius);
  font-size: 13px !important;
  font-weight: 740 !important;
  line-height: 1.25;
  text-align: center;
}

.dtsv button.dtsv-primary { background: var(--ink); color: #fff; box-shadow: 0 4px 10px #20376224; }
.dtsv button.dtsv-secondary { margin-top: 6px; border-color: var(--field-line); background: #fff; color: var(--ink); }

.dtsv .dtsv-status:not(:empty), .dtsv .dtsv-error { margin: 6px 0; color: #87341f; font-size: 13px; }
.dtsv-quote [data-retry] { min-height: 38px; margin: 0 0 7px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 12px; }
.dtsv .dtsv-shipping { line-height: 1.4; text-align: center; }

.dtsv-info { max-width: 910px; margin-top: clamp(30px, 5vw, 60px); }
.dtsv-info h2 { margin-bottom: 10px; }
.dtsv-info .dtsv-local-copy { margin: 13px 0; }
.dtsv-airfree-guide {
  margin: 16px 0;
  padding: 16px 18px;
  border: 1px solid #cfe7e1;
  border-radius: 14px;
  background: var(--selected);
}

.dtsv-airfree-guide h3 { margin: 0 0 6px; color: var(--ink); font-size: 18px; letter-spacing: -.02em; }
.dtsv-airfree-guide ol { margin: 8px 0 0; padding-inline-start: 21px; }
.dtsv-info .dtsv-mobile-help { display: none; }
.dtsv-info details { margin: 7px 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; }
.dtsv-info details[open] { background: var(--surface); }
.dtsv-info details p { margin: 7px 0 0; color: var(--muted); }
.dtsv-rates { width: min(100%, 520px); margin: 12px 0; border-collapse: collapse; font-size: 13px; }
.dtsv-rates :is(th, td) { padding: 7px; border-bottom: 1px solid var(--line); text-align: left; }
.dtsv-rates thead { background: #e7eef7; color: var(--ink); }

.dtsv-mobile { display: none; }

@media (hover: hover) {
  .dtsv :is(.dtsv-option, .dtsv-material-links a, .dtsv-file-trigger, .dtsv-primary, .dtsv-secondary) {
    transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
  }
  .dtsv-option:hover, .dtsv-material-links a:hover, .dtsv-file-trigger:hover { border-color: var(--focus); }
  .dtsv button.dtsv-primary:hover:not(:disabled) { background: #172a50; }
  .dtsv button.dtsv-secondary:hover:not(:disabled) { background: var(--surface); }
}

@media (prefers-reduced-motion: reduce) {
  .dtsv :is(.dtsv-option, .dtsv-material-links a, .dtsv-file-trigger, .dtsv-primary, .dtsv-secondary) { transition: none; }
}

@media (max-width: 1090px) and (min-width: 901px) {
  .dtsv-columns {
    grid-template-columns: minmax(190px, .8fr) minmax(310px, 1.24fr) minmax(218px, .8fr);
    gap: 13px;
  }
}

@media (max-width: 900px) {
  .dtsv { padding-bottom: calc(101px + env(safe-area-inset-bottom)); }
  .dtsv-columns { grid-template-columns: minmax(0, .82fr) minmax(0, 1.1fr); gap: 18px; }
  .dtsv-quote, .dtsv-quote-column { grid-column: 2; position: static; }
  .dtsv-intro { align-items: start; }

  .dtsv-mobile {
    position: fixed;
    inset: auto 0 var(--dtsv-cookie-height, 0px);
    z-index: 970;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px max(16px, env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 -7px 24px #20376219;
  }

  .dtsv-mobile > div { min-width: 0; }
  .dtsv-mobile strong {
    display: block;
    color: var(--ink);
    font-size: clamp(21px, 6vw, 27px);
    line-height: 1.05;
    letter-spacing: -.035em;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
  }
  .dtsv-mobile [data-tax] { padding: 2px 0; border: 0; background: none; color: var(--muted); font-size: 12px; text-decoration: underline; }
  .dtsv-mobile [data-effective] { display: block; color: var(--muted); font-size: 11px; }
  .dtsv .dtsv-mobile button.dtsv-primary { width: auto; max-width: 53%; padding-inline: 13px; }
  html body:has(.dtsv[data-vinyl]) .joinchat { display: none !important; }

  .dtsv-info .dtsv-mobile-help {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 10px 0;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    font-weight: 650;
  }
}

@media (max-width: 620px) {
  .dtsv { padding-top: 18px; }
  .dtsv-intro { display: block; margin-bottom: 16px; }
  .dtsv-material-links { justify-content: start; margin-top: 9px; }
  .dtsv-material-links a { min-height: 38px; padding: 5px 10px; }
  .dtsv-columns { display: block; }
  .dtsv-gallery { margin-bottom: 17px; }
  .dtsv-photo img { aspect-ratio: 1.68; object-position: center; }
  .dtsv-thumbs { max-width: 292px; margin: 8px 0 6px; }
  .dtsv-benefits { display: none; }
  .dtsv-laminates .dtsv-option { display: grid; justify-items: center; align-content: center; min-height: 57px; padding: 7px 5px; text-align: center; }
  .dtsv-price-line strong { font-size: 40px; }
  .dtsv-tax-switch button { min-height: 44px; }
  .dtsv-quote { scroll-margin-top: 96px; }
}

@media (max-width: 400px) {
  .dtsv-cuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dtsv-design { grid-template-columns: minmax(54px, 64px) minmax(0, 1fr); gap: 7px 9px; }
}
