.quooker-streamline-page {
  --qs-navy: #102d55;
  --qs-navy-deep: #09233c;
  --qs-red: #e22135;
  --qs-ink: #25364d;
  --qs-muted: #6f7c8c;
  --qs-line: #dce3eb;
  --qs-soft: #f6f8fb;
  --qs-green: #2a7433;
  --qs-gold: #b9860b;
  --qs-shadow: 0 12px 32px rgba(16, 45, 85, 0.12);
  color: var(--qs-ink);
  container: qs-page / inline-size;
  font-family: Arial, "Helvetica Neue", "PingFang HK", "Microsoft JhengHei", sans-serif;
  min-width: 0;
}

.quooker-streamline-page *,
.quooker-streamline-page *::before,
.quooker-streamline-page *::after {
  box-sizing: border-box;
}

body.qs-streamline-active #easychat-floating-button {
  bottom: 86px !important;
}

.qs-preview-notice {
  align-items: center;
  background: #fff8e8;
  border: 1px solid #efcd78;
  border-radius: 9px;
  color: #72530b;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  margin: 0 0 18px;
  padding: 10px 13px;
}

.qs-product-form {
  margin: 0;
}

.qs-product-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
}

.qs-media-panel {
  align-self: start;
  background: #fff;
  border: 1px solid var(--qs-line);
  border-radius: 14px;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.qs-assurance-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  left: 14px;
  position: absolute;
  top: 14px;
  z-index: 2;
}

.qs-badge {
  border-radius: 5px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 5px;
  line-height: 1;
  padding: 7px 9px;
}

.qs-badge--blue {
  background: #edf6ff;
  color: #2476aa;
}

.qs-badge--green {
  background: #eafaf3;
  color: #168658;
}

.qs-image-stage {
  align-items: center;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  min-height: 320px;
  padding: 58px 28px 28px;
}

.qs-image-stage img {
  display: block;
  height: auto;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: opacity 160ms ease, transform 220ms ease;
}

.qs-main-image-link {
  align-items: center;
  cursor: zoom-in;
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.qs-main-image-link:focus-visible {
  outline: 2px solid var(--qs-green);
  outline-offset: 4px;
}

.qs-image-stage img.is-changing {
  opacity: 0.35;
  transform: scale(0.985);
}

.qs-image-gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 14px 14px;
  scrollbar-width: thin;
}

.qs-image-gallery[hidden] {
  display: none !important;
}

.qs-gallery-thumb {
  align-items: center;
  background: #fff;
  border: 1px solid var(--qs-line);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex: 0 0 66px;
  height: 66px;
  justify-content: center;
  padding: 5px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.qs-gallery-thumb:hover {
  border-color: #9eacbd;
}

.qs-gallery-thumb.is-active,
.qs-gallery-thumb:focus-visible {
  border-color: var(--qs-green);
  box-shadow: 0 0 0 2px rgba(42, 116, 51, 0.12);
  outline: none;
}

.qs-gallery-thumb img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.qs-configurator-panel {
  min-width: 0;
}

.qs-product-heading {
  border-bottom: 1px solid var(--qs-line);
  margin-bottom: 20px;
  padding-bottom: 18px;
}

.qs-product-heading h1 {
  color: var(--qs-navy);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.17;
  margin: 0 0 7px;
}

.qs-title-brand {
  color: #4c6f91;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.qs-title-brand:hover,
.qs-title-brand:focus {
  color: #12649d;
}

.qs-variant-row {
  align-items: center;
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
  min-width: 0;
  white-space: nowrap;
}

.qs-variant-meta {
  color: var(--qs-muted);
  flex: 0 1 auto;
  font-size: 14px;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qs-social-proof {
  align-items: center;
  color: #7a8592;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 7px 12px;
  margin-bottom: 14px;
}

.qs-stars {
  color: #f4a420;
  letter-spacing: 1px;
}

.qs-points {
  background: #fff4dc;
  border-radius: 4px;
  color: #b66b00;
  flex: 0 0 auto;
  font-weight: 700;
  padding: 3px 6px;
}

.qs-price-block {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 11px;
}

.qs-price-kicker {
  background: #ffeaeb;
  border-radius: 4px;
  color: var(--qs-red);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 7px;
}

.qs-price-current {
  color: var(--qs-gold);
  font-size: 30px;
  letter-spacing: -0.025em;
  line-height: 1;
}

.qs-price-old {
  color: #9aa3ae;
  font-size: 14px;
  text-decoration: line-through;
}

.qs-configuration-error {
  background: #fff0f1;
  border: 1px solid #f0a6ae;
  border-radius: 9px;
  color: #9e1725;
  font-weight: 700;
  margin-bottom: 18px;
  padding: 12px 14px;
}

.qs-option-stack {
  display: grid;
  gap: 24px;
}

.qs-option-group {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.qs-option-heading {
  align-items: center;
  color: var(--qs-navy);
  display: flex;
  font-size: 18px;
  font-weight: 800;
  gap: 9px;
  margin: 0;
  padding: 0;
  width: 100%;
}

.qs-option-heading small {
  color: #9aa3ae;
  font-size: 12px;
  font-weight: 500;
}

.qs-step-number {
  align-items: center;
  background: var(--qs-navy);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 25px;
  font-size: 13px;
  height: 25px;
  justify-content: center;
}

.qs-option-help {
  color: var(--qs-muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 6px 0 9px 34px;
}

.qs-option-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 10px;
}

.qs-option-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--qs-line);
  border-radius: 11px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  min-height: 58px;
  min-width: 0;
  padding: 10px 12px;
  position: relative;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

/* Journal2's legacy `.oc2 fieldset label` rule floats every label at 25%. */
.quooker-streamline-page fieldset label.qs-option-card {
  display: flex;
  float: none;
  padding: 10px 12px;
  width: 100%;
}

.qs-option-card:hover {
  border-color: #9eacbd;
}

.qs-option-card.is-selected,
.qs-option-card:has(input:checked) {
  background: #f9fbf9;
  border-color: var(--qs-green);
  box-shadow: 0 0 0 1px rgba(42, 116, 51, 0.06);
}

.qs-option-card.is-unavailable,
.qs-option-card[hidden] {
  display: none !important;
}

.qs-option-card input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.qs-option-card:focus-within {
  box-shadow: 0 0 0 3px rgba(16, 45, 85, 0.2);
  outline: none;
}

.qs-finish-swatch {
  background: linear-gradient(135deg, #f7f7f7, #c9ced3);
  border: 1px solid rgba(16, 45, 85, 0.08);
  border-radius: 50%;
  flex: 0 0 34px;
  height: 34px;
  width: 34px;
}

.qs-option-card[data-code$="SST"] .qs-finish-swatch,
.qs-option-card[data-code$="NMRSST"] .qs-finish-swatch,
.qs-option-card[data-code$="NMSSST"] .qs-finish-swatch { background: linear-gradient(135deg, #f2f4f5, #aeb6bb); }
.qs-option-card[data-code$="BLK"] .qs-finish-swatch { background: linear-gradient(135deg, #373a3d, #111315); }
.qs-option-card[data-code$="GME"] .qs-finish-swatch { background: linear-gradient(135deg, #747a7c, #3e4447); }
.qs-option-card[data-code$="RCO"] .qs-finish-swatch { background: linear-gradient(135deg, #ddb5a5, #b67462); }
.qs-option-card[data-code$="PTB"] .qs-finish-swatch { background: linear-gradient(135deg, #d0b477, #9b7635); }
.qs-option-card[data-code$="GLD"] .qs-finish-swatch { background: linear-gradient(135deg, #f1d77a, #c79a2b); }

.qs-option-thumbnail {
  border-radius: 7px;
  flex: 0 0 40px;
  height: 40px;
  object-fit: contain;
  width: 40px;
}

.qs-option-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.qs-option-title-row {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
  width: 100%;
}

.qs-option-title-row strong {
  min-width: 0;
}

.qs-option-copy strong {
  color: var(--qs-ink);
  font-size: 13px;
  line-height: 1.3;
}

.qs-option-copy small {
  color: var(--qs-muted);
  font-size: 11px;
  margin-top: 2px;
}

.qs-option-description {
  display: none;
  font-size: 12px !important;
  line-height: 1.45;
  margin-top: 5px !important;
}

.qs-option-card.is-selected .qs-option-description,
.qs-option-card:has(input:checked) .qs-option-description {
  display: block;
}

.qs-option-price {
  color: var(--qs-navy);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.qs-option-card.is-selected .qs-option-price,
.qs-option-card:has(input:checked) .qs-option-price {
  color: var(--qs-green);
}

.qs-field-error {
  color: var(--qs-red);
  font-size: 12px;
  margin: 6px 0 0 34px;
}

.qs-summary-card {
  background: var(--qs-soft);
  border: 1px solid #e1e7ee;
  border-radius: 13px;
  margin-top: 26px;
  padding: 17px;
}

.qs-summary-card h2 {
  color: var(--qs-navy);
  font-size: 15px;
  margin: 0 0 12px;
}

.qs-summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.qs-summary-list li {
  align-items: baseline;
  display: flex;
  font-size: 12px;
  gap: 14px;
  justify-content: space-between;
  line-height: 1.45;
  padding: 3px 0;
}

.qs-summary-list li span:last-child {
  color: var(--qs-navy);
  font-weight: 700;
  text-align: right;
}

.qs-summary-total {
  align-items: baseline;
  border-top: 1px solid #dfe5ec;
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 13px;
}

.qs-summary-total strong {
  color: var(--qs-red);
  font-size: 23px;
}

.qs-summary-card > p {
  color: var(--qs-muted);
  font-size: 11px;
  margin: 8px 0 0;
}

.qs-purchase-bar {
  align-items: center;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--qs-line);
  border-radius: 12px;
  bottom: 8px;
  box-shadow: var(--qs-shadow);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  margin-top: 24px;
  padding: 11px 14px;
  position: sticky;
  z-index: 50;
}

.qs-purchase-actions {
  align-items: center;
  display: flex;
  gap: 7px;
}

.qs-purchase-actions .print-btn,
.qs-purchase-actions .download-pdf-btn,
.qs-purchase-actions .official-url-btn {
  margin: 0;
  white-space: nowrap;
}

.qs-purchase-product,
.qs-purchase-total {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.qs-purchase-product strong {
  color: var(--qs-navy);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qs-purchase-product span,
.qs-purchase-total span {
  color: var(--qs-muted);
  font-size: 11px;
}

.qs-purchase-total {
  align-items: flex-end;
}

.qs-purchase-total strong {
  color: var(--qs-gold);
  font-size: 22px;
  white-space: nowrap;
}

.qs-quantity {
  align-items: stretch;
  border: 1px solid var(--qs-line);
  border-radius: 9px;
  display: flex;
  height: 46px;
  overflow: hidden;
}

.qs-quantity button,
.qs-quantity input {
  background: #fff;
  border: 0;
  color: var(--qs-navy);
  font-weight: 700;
  height: 44px;
  text-align: center;
}

.qs-quantity button {
  cursor: pointer;
  font-size: 18px;
  width: 35px;
}

.qs-quantity input {
  appearance: textfield;
  font-size: 14px;
  padding: 0;
  width: 37px;
}

.qs-quantity input::-webkit-inner-spin-button,
.qs-quantity input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.qs-add-to-cart {
  background: var(--qs-navy);
  border: 0;
  border-radius: 9px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  min-height: 46px;
  min-width: 165px;
  padding: 10px 18px;
}

.qs-add-to-cart:hover,
.qs-add-to-cart:focus-visible {
  background: var(--qs-navy-deep);
}

.qs-add-to-cart:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.qs-cart-message {
  border-radius: 8px;
  display: none;
  font-size: 13px;
  margin: 10px 0;
  padding: 10px 12px;
}

.qs-cart-message.is-error {
  background: #fff0f1;
  color: #9e1725;
  display: block;
}

.qs-cart-message.is-success {
  background: #eafaf3;
  color: #126b47;
  display: block;
}

.qs-product-tabs {
  clear: both;
  margin-top: 24px;
  overflow: hidden;
}

@container qs-page (min-width: 650px) {
  .qs-option-grid--finish,
  .qs-option-grid--tank,
  .qs-option-grid--water,
  .qs-option-grid--inspection,
  .qs-option-grid--installation,
  .qs-option-grid--soap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qs-option-grid--services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container qs-page (min-width: 900px) {
  .qs-product-layout {
    grid-template-columns: minmax(360px, 0.95fr) minmax(440px, 1.05fr);
  }

  .qs-media-panel {
    position: sticky;
    top: 18px;
  }
}

@media (max-width: 767px) {
  .quooker-streamline-shell > #column-left {
    display: none !important;
  }

  .quooker-streamline-shell > .quooker-streamline-page {
    float: none !important;
    width: 100% !important;
  }

  .quooker-streamline-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .qs-preview-notice {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .qs-image-stage {
    min-height: 275px;
    padding: 52px 18px 18px;
  }

  .qs-gallery-thumb {
    flex-basis: 58px;
    height: 58px;
  }

  .qs-option-heading {
    font-size: 16px;
  }

  .qs-purchase-bar {
    border-radius: 10px 10px 0 0;
    bottom: 0;
    gap: 7px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    margin-left: -10px;
    margin-right: -10px;
    padding: 8px 10px;
  }

  .qs-purchase-actions {
    display: none;
  }

  .qs-purchase-product {
    display: none;
  }

  .qs-purchase-total {
    align-items: flex-start;
  }

  .qs-purchase-total strong {
    font-size: 19px;
  }

  .qs-add-to-cart {
    font-size: 12px;
    min-width: 112px;
    padding: 8px 10px;
  }

  .qs-quantity,
  .qs-quantity button,
  .qs-quantity input {
    height: 42px;
  }

  .qs-quantity button {
    width: 30px;
  }

  .qs-quantity input {
    width: 30px;
  }
}

@media (max-width: 360px) {
  .qs-purchase-bar {
    grid-template-columns: 1fr auto;
  }

  .qs-quantity {
    display: none;
  }

  .qs-add-to-cart {
    min-width: 130px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quooker-streamline-page *,
  .quooker-streamline-page *::before,
  .quooker-streamline-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
