/* Configurator journey: compatible with the existing TAIGA template. */
.tc-consultation { text-decoration: none; text-align: center; }
.tc-workspace { grid-template-columns: minmax(0, 1fr) minmax(340px, 580px) minmax(280px, 340px); }
.tc-builder, .tc-summary, .tc-visual { min-width: 0; }
.tc-builder { padding: 36px 28px 56px; }
.tc-builder__title { font-size: clamp(30px, 3vw, 46px); line-height: 1.08; letter-spacing: -.035em; }
.tc-builder__intro, .tc-next-stage__intro { font-size: 16px; line-height: 1.55; }
.tc-status { overflow-wrap: anywhere; }
.tc-progress { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 30px; }
.tc-progress span { padding: 9px 11px; font-size: 12px; border: 1px solid var(--tc-line); border-radius: 3px; }
.tc-progress [aria-current] { color: #fff; background: #171716; border-color: #171716; }
.tc-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tc-option { min-height: 48px; font-size: 14px; overflow-wrap: anywhere; }
.tc-options--reserve { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tc-step-help, .tc-summary__help { font-size: 13px; line-height: 1.5; color: #68645e; }
.tc-summary { align-self: start; position: sticky; top: 104px; min-height: 0; max-height: calc(100dvh - 104px); overflow-y: auto; overscroll-behavior: contain; padding: 26px 24px; }
.tc-summary h2 { font-size: 23px; line-height: 1.2; }
.tc-summary__list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 12px; padding: 10px 0; }
.tc-summary__list dt { margin: 0; color: #68645e; }
.tc-summary__list dd { text-align: right; }
.tc-summary__list dt, .tc-summary__list dd { font-size: 14px; line-height: 1.45; }
.tc-summary__price { margin-top: 20px; }
.tc-summary__price small { font-size: 12px; line-height: 1.4; color: #68645e; }
.tc-summary__price strong { font-size: clamp(24px, 2.1vw, 34px); overflow-wrap: anywhere; }
.tc-summary__action { min-height: 50px; margin-top: 18px; font-size: 14px; }
.tc-summary__consult { color: #171716; font-size: 14px; display: inline-block; padding: 10px 0; }
.tc-processing-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tc-processing-card { min-width: 0; padding: 14px 12px; }
.tc-processing-card strong, .tc-processing-card span { font-size: 14px; }
.tc-service-help, .tc-service-result { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.tc-request { border-top: 1px solid var(--tc-line); padding-top: 32px; margin-top: 32px; scroll-margin-top: 120px; }
.tc-request[hidden], .tc-retry[hidden], .tc-print-sheet { display: none; }
.tc-request h2 { margin: 12px 0; font-size: 29px; line-height: 1.15; letter-spacing: -.025em; }
.tc-request p { line-height: 1.5; }
.tc-request__total { display: grid; gap: 6px; margin: 20px 0; }
.tc-request__total span { font-size: 14px; }
.tc-request__total strong { font-size: 30px; line-height: 1.2; }
.tc-request__tools { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 20px 0 10px; }
.tc-request__tools a { font-size: 14px; color: #171716; }
.tc-export, .tc-retry { padding: 13px 17px; border: 1px solid #171716; background: transparent; font: inherit; font-size: 14px; cursor: pointer; }
.tc-request__form { display: grid; gap: 18px; margin-top: 22px; }
.tc-request__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tc-request__form label { display: grid; gap: 7px; font-size: 14px; }
.tc-request__form input:not([type=checkbox]), .tc-request__form textarea { width: 100%; min-width: 0; border: 1px solid #aaa398; background: #fffdf9; color: #171716; border-radius: 0; padding: 13px; font: inherit; font-size: 16px; }
.tc-request__form textarea { resize: vertical; }
.tc-request__form .tc-request__consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; }
.tc-request__consent input { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; accent-color: #171716; }
.tc-request__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tc-request__submit { display: flex; gap: 20px; justify-content: space-between; align-items: center; min-height: 52px; padding: 14px 20px; border: 0; background: #171716; color: #fff; font: inherit; font-size: 16px; cursor: pointer; }
.tc-request button:disabled { opacity: .45; cursor: default; }
.tc-quote-status { margin: 0; font-size: 14px; }
.tc-quote-status[data-state=error] { color: #963520; }
.tc-quote-status[data-state=success] { color: #23523d; }
.taiga-configurator-page :focus-visible { outline: 2px solid #735638; outline-offset: 4px; }
@media (min-width: 1201px) {
  .tc-workspace .tc-visual { overflow: clip; }
  .tc-workspace .tc-visual__media { position: sticky; top: 104px; height: calc(100dvh - 104px); min-height: 0; }
}
@media (max-width: 1200px) {
  .tc-workspace { grid-template-columns: minmax(0, 1fr) 310px; }
  .tc-visual { display: none; }
  .tc-builder { padding: 34px 28px 48px; }
}
@media (max-width: 760px) {
  .tc-workspace { display: flex; flex-direction: column; }
  .tc-builder { padding: 26px 18px 32px; }
  .tc-builder__title { font-size: 32px; }
  .tc-builder__intro { margin-bottom: 14px; }
  .tc-progress { gap: 6px; margin: 16px 0 24px; }
  .tc-progress span { padding: 8px; }
  .tc-summary { position: static; width: 100%; max-height: none; overflow: visible; padding: 28px 18px 40px; }
  .tc-step { margin-top: 24px; }
  .tc-request__fields { grid-template-columns: 1fr; }
  .tc-service-step { gap: 12px; }
  .tc-request { scroll-margin-top: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  .tc-workspace *, .tch2 * { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  @page { size: A4; margin: 16mm; }
  body.tc-printing > *:not(.tc-print-sheet) { display: none !important; }
  body.tc-printing { background: white !important; color: #171716; }
  .tc-printing .tc-print-sheet { display: block; font: 10pt/1.45 Arial, sans-serif; }
  .tc-print-sheet img { width: 130px; height: auto; }
  .tc-print-sheet h1 { font-size: 22pt; line-height: 1.15; }
  .tc-print-sheet h2 { font-size: 15pt; }
  .tc-print-sheet h3 { font-size: 12pt; }
  .tc-print-sheet h1, .tc-print-sheet h2, .tc-print-sheet h3 { break-after: avoid; }
  .tc-print-sheet table { width: 100%; border-collapse: collapse; margin: 18px 0; }
  .tc-print-sheet th, .tc-print-sheet td { padding: 7px 0; border-bottom: 1px solid #ddd; text-align: left; }
  .tc-print-sheet th { width: 44%; font-weight: normal; }
  .tc-print-sheet tr { break-inside: avoid; }
}

/* Guided material selection. Native details keep completed choices editable. */
.tc-workspace [hidden] { display: none !important; }
.tc-workspace .tc-choice-step { border-top: 0; padding: 16px 0; margin: 0; scroll-margin-top: 120px; }
.tc-choice-step > summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 26px minmax(0, 1fr) 22px; align-items: center; gap: 6px 10px; margin: 0; min-height: 44px; scroll-margin-top: 120px; }
.tc-choice-step[open] > summary { margin-bottom: 14px; }
.tc-choice-step > summary > span:first-child { grid-column: 1; grid-row: 1; }
.tc-choice-step > summary > strong { grid-column: 2; grid-row: 1; }
.tc-choice-step > summary::-webkit-details-marker { display: none; }
.tc-choice-step > summary::after { content: '+'; grid-column: 3; grid-row: 1 / span 2; align-self: center; justify-self: end; font-size: 20px; }
.tc-choice-step[open] > summary::after { content: '−'; }
.tc-choice-step .tc-choice-value { grid-column: 2; grid-row: 2; min-width: 0; font-size: 13px; line-height: 1.5; color: #4d6559; letter-spacing: 0; }
.tc-choice-value:empty { display: none; }
.tc-workspace .tc-option__image { aspect-ratio: 16 / 9; }
.tc-workspace [data-facet=profile_code] .tc-option__image { object-fit: contain; background: #fff; }
.tc-workspace [data-facet=grade] .tc-option__image { aspect-ratio: 4 / 3; }
.tc-option__description, .tc-option__price { display: block; font-size: 12px; line-height: 1.45; padding: 0 12px 12px; font-weight: normal; }
.tc-option__description { color: #68645e; }
.tc-option__price { margin-top: auto; color: #25483a; font-weight: 600; }
.tc-option:not(.tc-option--visual) .tc-option__description { margin-top: 10px; padding: 0; }
.tc-option.is-active .tc-option__description, .tc-option.is-active .tc-option__price { color: inherit; }
.tc-more { width: 100%; margin-top: 12px; padding: 14px; background: transparent; border: 1px solid #98948c; color: #171716; font: inherit; font-size: 14px; cursor: pointer; }
.tc-compare { margin: 18px 0; font-size: 14px; }
.tc-compare > summary { cursor: pointer; padding: 10px 0; text-decoration: underline; text-underline-offset: 4px; }
.tc-compare__scroll { overflow-x: auto; }
.tc-compare table { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.5; text-align: left; }
.tc-compare td, .tc-compare th { padding: 12px 8px; border-bottom: 1px solid var(--tc-line); vertical-align: top; }
.tc-compare td:last-child { min-width: 100px; }
.tc-mobile-total { display: none; }
.tc-static-scene { position: absolute; inset: 0; background: #e5e0d6; }
.tc-scene-enlarge { width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.tc-static-scene__image { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-workspace .tc-static-scene__badge { position: absolute; left: 18px; right: 18px; bottom: 84px; background: rgba(19,34,27,.85); padding: 12px; color: #fff; pointer-events: none; }
.tc-static-scene__badge strong, .tc-static-scene__badge span { display: block; font-size: 12px; line-height: 1.4; }
.tc-static-scene__badge span { margin-top: 5px; font-size: 11px; }
.tc-scene-tabs { position: absolute; bottom: 18px; left: 14px; right: 14px; display: flex; gap: 5px; }
.tc-scene-tabs button { flex: 1; padding: 13px 5px; border: 1px solid #ddd8cf; background: #f8f6f1; color: #171716; font: inherit; font-size: 12px; cursor: pointer; }
.tc-scene-tabs button[aria-pressed=true] { background: #233e32; color: #fff; border-color: #233e32; }
.tc-scene-tabs button:disabled { background: #e6e1d9; color: #79756d; cursor: default; }
.tc-image-dialog { padding: 20px; border: 0; max-width: min(1000px, 94vw); max-height: 94dvh; background: #f8f6f1; }
.tc-image-dialog::backdrop { background: rgba(0,0,0,.75); }
.tc-image-dialog img { display: block; max-width: 100%; max-height: 72dvh; margin: 12px auto; object-fit: contain; }
.tc-image-dialog button { padding: 10px 18px; background: #233e32; color: #fff; border: 0; cursor: pointer; }
.tc-image-dialog p { font-size: 14px; line-height: 1.5; }
.tc-footer a { color: inherit; text-underline-offset: 4px; }
@media (max-width: 760px) {
  .tc-workspace { padding-bottom: 84px; }
  .tc-workspace .tc-visual { display: block; width: 100%; min-height: 0; height: 230px; }
  .tc-workspace .tc-visual__media { position: relative; height: 230px; min-height: 0; }
  .tc-workspace .tc-static-scene__badge { bottom: 66px; left: 14px; right: auto; max-width: calc(100% - 28px); padding: 8px 10px; }
  .tc-scene-tabs { bottom: 12px; }
  .tc-scene-tabs button { min-height: 42px; padding: 10px 5px; }
  .tc-builder__title { font-size: 29px; }
  .tc-builder__intro { font-size: 14px; }
  .tc-status { font-size: 12px; padding: 10px; }
  .tc-workspace .tc-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-workspace .tc-options--reserve { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tc-option__description { font-size: 11px; padding: 0 10px 10px; }
  .tc-option__price { font-size: 12px; padding: 0 10px 10px; }
  .tc-workspace .tc-option__label { padding: 10px; min-height: 48px; }
  .tc-mobile-total { position: fixed; bottom: 0; left: 0; right: 0; z-index: 110; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #ccc5ba; background: #f8f6f1; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px #0000000a; }
  .tc-mobile-total > div { min-width: 0; }
  .tc-mobile-total small { display: block; color: #68645e; font-size: 11px; }
  .tc-mobile-total strong { display: block; font-size: 17px; overflow-wrap: anywhere; }
  .tc-mobile-total button { flex: 0 0 auto; padding: 14px 12px; min-height: 46px; background: #233e32; color: #fff; border: 0; font: inherit; font-size: 13px; cursor: pointer; }
  .tc-footer { padding-bottom: 96px; }
}

.tc-grade-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tc-grade-gallery figure { margin: 0; }
.tc-grade-gallery img { width: 100%; max-height: 280px; object-fit: cover; }
.tc-grade-gallery figcaption { font-size: 13px; line-height: 1.5; }

/* Compact phone layout, verified against the customer's Safari screenshots. */
@media (max-width: 760px) {
  .taiga-configurator-page:has(.tc-workspace) .tc-header__inner { min-height: 0; padding: 10px 16px; gap: 10px 16px; grid-template-columns: 1fr auto; }
  .taiga-configurator-page:has(.tc-workspace) .tc-brand img { width: 110px; }
  .taiga-configurator-page:has(.tc-workspace) .tc-consultation { padding: 9px 12px; font-size: 12px; min-height: 40px; }
  .taiga-configurator-page:has(.tc-workspace) .tc-directions { grid-column: 1 / -1; width: 100%; order: 3; padding: 3px; }
  .taiga-configurator-page:has(.tc-workspace) .tc-direction { flex: 1; min-height: 36px; padding: 8px 12px; font-size: 14px; }
  .tc-workspace .tc-step { padding: 18px 0; margin-top: 0; scroll-margin-top: 126px; }
  .tc-workspace .tc-choice-step { padding: 12px 0; }
  .tc-choice-step > summary { scroll-margin-top: 126px; }
  .tc-workspace .tc-builder { padding: 20px 16px 24px; }
  .tc-workspace .tc-builder__title { margin: 12px 0 16px; font-size: 27px; }
  .tc-workspace .tc-builder__intro { margin: 0 0 14px; }
  .tc-workspace .tc-builder__eyebrow { font-size: 10px; }
  .tc-workspace .tc-progress { margin: 14px 0; gap: 5px; }
  .tc-workspace .tc-progress span { font-size: 10px; padding: 8px 7px; }
  .tc-workspace .tc-area-field { padding: 12px 14px; }
  .tc-workspace .tc-area-field input { font-size: 24px; min-height: 34px; border-radius: 0; }
  .tc-workspace .tc-next-stage { margin-top: 20px; padding-top: 20px; scroll-margin-top: 126px; }
  .tc-workspace .tc-next-stage__title { font-size: 27px; line-height: 1.12; margin: 10px 0 14px; }
  .tc-workspace .tc-next-stage__intro { font-size: 14px; margin: 0 0 18px; }
  .tc-workspace .tc-summary { padding: 22px 16px 30px; }
  .tc-workspace .tc-summary h2 { margin: 12px 0; font-size: 21px; }
  .tc-workspace .tc-summary__price { margin-top: 18px; }
}
