/* Customer proposal v317: compact path with the official Carrier logo aspect ratio. */
.customer-authorization-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  min-height: 30px;
}

.customer-authorization-logos {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.customer-authorization-logos img {
  display: block;
  width: 104px;
  max-width: 104px;
  height: auto;
  max-height: 49px;
  object-fit: contain;
}

.customer-authorization-line small {
  color: #075da8;
  font-size: 14px;
  font-weight: 800;
}

.customer-share-status-row .status-success {
  border-color: #9ed8bc;
  background: #edf9f3;
  color: #126a43;
}

.customer-share-status-row .status-warning {
  border-color: #f0c27b;
  background: #fff6e6;
  color: #8a5700;
}

.customer-share-contact .customer-store-address::before {
  content: "地址：";
  color: #708196;
  font-weight: 700;
}

.customer-share-contact .customer-contact-consultant {
  color: #425a73;
}

.customer-wechat-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  min-height: 38px;
  border-color: #a8dec2;
  background: #eefaf3;
  color: #157347;
  padding: 8px 13px;
  font-size: 15px;
  font-weight: 800;
}

.customer-wechat-trigger::before {
  content: "微";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #1aad19;
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.customer-wechat-dialog {
  width: min(340px, calc(100vw - 28px));
  border: 1px solid #d8e5df;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 35, 63, .24);
  padding: 18px;
}

.customer-wechat-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.customer-wechat-dialog-head h3,
.customer-wechat-dialog-head p {
  margin: 0;
}

.customer-wechat-dialog-head p {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

.customer-wechat-dialog-head button {
  flex: 0 0 auto;
  min-width: 34px;
  min-height: 34px;
  padding: 4px;
}

.customer-wechat-qr-card {
  display: grid;
  justify-items: center;
  gap: 9px;
  margin-top: 14px;
  text-align: center;
}

.customer-wechat-qr-card img {
  display: block;
  width: min(224px, 72vw);
  aspect-ratio: 1;
  border: 1px solid #e0e8e3;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  object-fit: contain;
  -webkit-user-select: none;
  user-select: none;
}

.customer-wechat-demo-badge {
  border: 1px solid #f1cf86;
  border-radius: 999px;
  background: #fff8e8;
  color: #8a5a00;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}

.customer-wechat-id {
  color: #30475f;
  font-size: 13px;
}

.customer-wechat-longpress {
  color: #718096;
  font-size: 12px;
  line-height: 1.5;
}

.customer-share-fixed-cta.quote-only {
  grid-template-columns: 1fr;
  width: min(360px, calc(100vw - 24px));
}

.customer-proposal-stage-card {
  order: 25;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .8fr);
  gap: 18px;
  align-items: center;
  border: 1px solid #c5daed;
  border-radius: 14px;
  background: linear-gradient(135deg, #f5faff, #ffffff 62%);
  box-shadow: 0 8px 28px rgba(23, 61, 96, .06);
  padding: 18px 20px;
}

.customer-proposal-stage-card > div:first-child {
  display: grid;
  gap: 7px;
}

.customer-proposal-stage-card small {
  color: #0b62b4;
  font-weight: 800;
  letter-spacing: .06em;
}

.customer-proposal-stage-card h2,
.customer-proposal-stage-card p {
  margin: 0;
}

.customer-proposal-stage-card h2 {
  color: #173b5d;
  font-size: 21px;
  line-height: 1.35;
}

.customer-proposal-stage-card p {
  color: #5b7187;
  line-height: 1.65;
}

.customer-stage-focus-chapters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.customer-stage-focus-chapters span {
  border: 1px solid #bad2e8;
  border-radius: 999px;
  background: #fff;
  color: #234c70;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 800;
}

.customer-stage-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.customer-stage-facts div {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid #cfe1d7;
  border-radius: 10px;
  background: rgba(255, 255, 255, .9);
  padding: 10px 11px;
}

.customer-stage-facts small {
  color: #367056;
  letter-spacing: 0;
}

.customer-stage-facts b {
  overflow-wrap: anywhere;
  color: #1b4434;
  font-size: 13px;
  line-height: 1.45;
}

.proposal-stage-after-signing .customer-proposal-stage-card {
  order: 12;
  border-color: #a9d2bd;
  background: linear-gradient(135deg, #effaf4, #ffffff 62%);
}

.proposal-stage-signing .customer-proposal-stage-card {
  order: 12;
}

.proposal-stage-after-signing .customer-proposal-stage-card small {
  color: #1f7652;
}

.customer-story-nav button.is-primary {
  border-radius: 9px;
  background: #edf6ff;
  box-shadow: inset 0 0 0 1px #bdd7ee;
}

.proposal-stage-after-signing .customer-story-nav button.is-primary {
  background: #edf8f2;
  box-shadow: inset 0 0 0 1px #b7dbc8;
}

.customer-story-nav button.is-primary span::after {
  content: " · 重点";
  color: #0b62b4;
  font-size: 10px;
  font-weight: 800;
}

.proposal-stage-after-signing .customer-story-nav button.is-primary span::after {
  color: #1f7652;
}

/* The chapter decision summary comes before the full configuration workbook. */
.customer-share-page .customer-share-shell > .customer-share-hero { order: 10 !important; }
.customer-share-page .customer-share-shell > .customer-story-nav { order: 15 !important; }
.customer-share-page .customer-share-shell > .customer-share-decision { order: 20 !important; }
.customer-share-page .customer-share-shell > #customer-share-house { order: 30 !important; }
.customer-share-page .customer-share-shell > #customer-share-market { order: 40 !important; }
.customer-share-page .customer-share-shell > #customer-share-climate { order: 50 !important; }
.customer-share-page .customer-share-shell > #customer-share-recommendation { order: 60 !important; }
.customer-share-page .customer-share-shell > #customer-share-brand-story { order: 70 !important; }
.customer-share-page .customer-share-shell > #customer-share-products { order: 72 !important; }
.customer-share-page .customer-share-shell > #customer-share-quoted-products { order: 74 !important; }
.customer-share-page .customer-share-shell > #customer-share-value { order: 80 !important; }
.customer-share-page .customer-share-shell > #customer-share-config { order: 82 !important; }
.customer-share-page .customer-share-shell > #customer-share-store { order: 90 !important; }
.customer-share-page .customer-share-shell > #customer-share-cases { order: 92 !important; }
.customer-share-page .customer-share-shell > #customer-share-delivery { order: 100 !important; }
.customer-share-page .customer-share-shell > #customer-share-delivery-process { order: 102 !important; }
.customer-share-page .customer-share-shell > #customer-share-fulfillment { order: 104 !important; }
.customer-share-page .customer-share-shell > #customer-share-progress { order: 106 !important; }
.customer-share-page .customer-share-shell > #customer-share-service { order: 110 !important; }
.customer-share-page .customer-share-shell > #customer-share-feedback { order: 120 !important; }
.customer-share-page .customer-share-shell > .customer-share-privacy { order: 180 !important; }
.customer-share-page .customer-share-shell > .customer-share-final-contact { order: 190 !important; }
.customer-share-page .customer-share-shell > .customer-share-fixed-cta { order: 200 !important; }

.customer-mobile-table-hint {
  display: none;
}

@media (max-width: 900px) {
  .customer-proposal-stage-card {
    grid-template-columns: 1fr;
  }

  .customer-stage-focus-chapters {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .customer-share-status-row .customer-contract-status-pill {
    display: inline-flex !important;
  }

  .customer-share-contact {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .customer-share-contact span {
    display: block;
    font-size: 13px;
  }

  .customer-share-contact b {
    font-size: 16px;
  }

  .customer-wechat-trigger {
    width: 100%;
  }

  .customer-proposal-stage-card {
    gap: 12px;
    padding: 14px;
  }

  .customer-proposal-stage-card h2 {
    font-size: 18px;
  }

  .customer-proposal-stage-card p {
    font-size: 13px;
  }

  .customer-stage-facts {
    grid-template-columns: 1fr;
  }

  .customer-story-nav button.is-primary span::after {
    content: "";
  }

  .customer-mobile-table-hint {
    display: inline-flex;
    width: fit-content;
    border: 1px solid #c9dced;
    border-radius: 999px;
    background: #f4f9fd;
    color: #315b7d;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
  }

  .customer-config-quote-section .customer-config-table-scroll {
    max-width: 100%;
    overflow-x: auto !important;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    touch-action: pan-x pan-y;
  }

  .customer-config-quote-section .customer-config-table-scroll table {
    width: max-content !important;
    min-width: 980px !important;
    max-width: none !important;
    table-layout: auto !important;
    font-size: 12px !important;
  }

  .customer-config-quote-section .customer-config-overview-table,
  .customer-config-quote-section .customer-config-wide-table {
    min-width: 1160px !important;
  }

  .customer-config-quote-section .customer-config-detail-table {
    min-width: 1060px !important;
  }

  .customer-config-quote-section .customer-config-quote-summary .customer-config-table-scroll table {
    min-width: 560px !important;
  }

  .customer-config-quote-section .customer-config-table-scroll th,
  .customer-config-quote-section .customer-config-table-scroll td {
    min-width: 58px;
    padding: 7px 6px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    overflow-wrap: normal;
    word-break: normal;
  }

  .customer-config-quote-section .customer-config-sheet:not(.customer-config-quote-summary) table th:first-child,
  .customer-config-quote-section .customer-config-sheet:not(.customer-config-quote-summary) table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 72px;
    box-shadow: 7px 0 10px rgba(28, 66, 101, .08);
  }

  .customer-config-quote-section .customer-config-sheet:not(.customer-config-quote-summary) table th:first-child {
    z-index: 3;
  }

  .customer-config-quote-section .customer-config-detail-table th:nth-child(2),
  .customer-config-quote-section .customer-config-detail-table td:nth-child(2),
  .customer-config-quote-section .customer-config-detail-table th:nth-child(4),
  .customer-config-quote-section .customer-config-detail-table td:nth-child(4) {
    min-width: 125px;
  }

  .customer-config-quote-section .customer-config-detail-table th:nth-child(9),
  .customer-config-quote-section .customer-config-detail-table td:nth-child(9) {
    min-width: 190px;
  }
}

@media (max-width: 520px) {
  .customer-share-hero {
    padding: 14px;
  }

  .customer-authorization-line {
    gap: 7px;
  }

  .customer-authorization-logos img {
    width: 86px;
    max-width: 86px;
    height: auto;
    max-height: 41px;
  }

  .customer-authorization-line small {
    font-size: 12px;
  }

  .customer-share-status-row span {
    display: inline-flex !important;
  }

  .customer-wechat-dialog {
    padding: 15px;
  }
}

/* V210: compact room-by-room insight uses stable plan-position and experience rules. */
.customer-floor-plan-analysis .customer-floor-analysis-heading {
  display: block;
  padding-bottom: 14px;
}

.customer-floor-plan-analysis .customer-floor-analysis-heading small {
  display: block;
  color: #1f6fae;
  font-size: 15px;
  font-weight: 900;
}

.customer-zone-insight-group {
  gap: 7px;
  padding: 10px 0 8px;
}

.customer-zone-insight-group .customer-floor-analysis-group-heading {
  justify-content: flex-start;
}

.customer-floor-plan-analysis .customer-zone-insight-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.customer-zone-insight-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  align-content: start;
  min-height: 48px;
  padding: 6px 7px;
  border: 1px solid #d7e5ee;
  border-radius: 10px;
  background: #fff;
}

.customer-zone-insight-list li > b {
  color: #234b68;
  font-size: 12px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.customer-zone-insight-list li > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 3px;
}

.customer-zone-insight-list li > div > span {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  padding: 1px 4px;
  border-radius: 999px;
  color: #315e78;
  background: #edf6fb;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.customer-zone-insight-list li > div > span:first-child {
  color: #0b7569;
  background: #e9f7f3;
}

.customer-zone-insight-list li.customer-analysis-pending > div > span:nth-child(2) {
  color: #976715;
  background: #fff5df;
}

.customer-zone-insight-note {
  margin: 2px 0 0;
  color: #657b8e;
  font-size: 11px;
  line-height: 1.65;
}

.customer-floor-needs-group {
  display: grid;
  gap: 6px;
  padding: 10px 0 0;
}

.customer-floor-needs-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.customer-floor-needs-list li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #d8e6ef;
  border-radius: 9px;
  background: #f7fbfd;
}

.customer-floor-needs-list b {
  color: #205676;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.customer-floor-needs-list span {
  color: #4c697d;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .customer-zone-insight-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .customer-zone-insight-list li > div {
    justify-content: flex-start;
    gap: 3px;
  }

  .customer-zone-insight-list li > div > span {
    padding-inline: 3px;
    font-size: 8px;
  }

  .customer-floor-needs-list li {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 6px;
    padding: 6px;
  }
}

/* 00 summary: one saved HVAC choice, three decision metrics and an extensible add-on band. */
.customer-share-decision-grid {
  grid-template-columns: minmax(280px, 1.45fr) repeat(3, minmax(0, 1fr));
}

.customer-share-decision-card.customer-summary-systems h3 {
  font-size: 20px;
}

.customer-summary-configured {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid #d7e4f0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .82);
  padding: 10px 12px;
}

.customer-summary-configured > small {
  color: #4f6680;
  font-size: 13px;
  font-weight: 800;
}

.customer-summary-configured-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-summary-configured-list span {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  border: 1px solid #bfd6e9;
  border-radius: 999px;
  background: #f4f9fd;
  color: #234f75;
  padding: 6px 10px;
  line-height: 1;
}

.customer-summary-configured-list b {
  font-size: 13px;
}

.customer-summary-configured-list em {
  color: #0b62b4;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 980px) {
  .customer-share-decision-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .customer-share-decision-card.customer-summary-systems {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .customer-share-decision-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-share-decision-card.customer-summary-systems,
  .customer-share-decision-card.customer-summary-quote {
    grid-column: 1 / -1;
  }

  .customer-share-decision-card.customer-summary-systems h3,
  .customer-share-decision-card.customer-summary-quote h3 {
    font-size: 19px;
  }

  .customer-summary-configured {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* V209 floor analysis separates reviewed facts, rule derivations and confirmed customer needs. */
.customer-house-floor-story {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .85fr);
}

.customer-floor-plan-analysis {
  gap: 0;
}

.customer-floor-analysis-groups {
  display: grid;
}

.customer-floor-analysis-group {
  display: grid;
  gap: 9px;
  padding: 16px 0;
}

.customer-floor-analysis-group + .customer-floor-analysis-group {
  border-top: 1px solid #dbe7ef;
}

.customer-floor-analysis-group h4 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #2c86bd;
  font-size: 16px;
}

.customer-floor-analysis-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.customer-floor-analysis-group-heading > small {
  flex: 0 0 auto;
  border: 1px solid #cfe1ed;
  border-radius: 999px;
  background: #f5f9fc;
  color: #60788c;
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.customer-floor-analysis-group h4 i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #51a7d4;
}

.customer-floor-analysis-group ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 28px;
  color: #4f667a;
}

.customer-floor-analysis-group li {
  padding-left: 3px;
  line-height: 1.55;
}

.customer-floor-analysis-group li > span {
  display: block;
}

.customer-floor-analysis-group li > small {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  border-radius: 999px;
  background: #eef7f4;
  color: #39756d;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
}

.customer-floor-analysis-group li.customer-analysis-derived > small {
  background: #eef5fb;
  color: #3d6f99;
}

.customer-floor-analysis-group li.customer-analysis-pending {
  color: #758697;
}

.customer-floor-analysis-group li.customer-analysis-pending > small {
  background: #fff7e7;
  color: #9a6a13;
}

.customer-floor-functional-zones li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
}

.customer-floor-functional-zones b {
  overflow-wrap: anywhere;
  color: #2f516d;
}

.customer-floor-functional-zones em {
  color: #0d7b70;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 900px) {
  .customer-house-floor-story {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .customer-floor-analysis-group-heading {
    align-items: flex-start;
  }

  .customer-floor-analysis-group-heading h4 {
    font-size: 15px;
  }

  .customer-floor-analysis-group-heading > small {
    white-space: nowrap;
  }
}

/* v246: keep the quote and landscape actions on one row in mobile WeChat. */
@media (max-width: 820px) {
  .customer-share-fixed-cta.quote-only {
    width: calc(100vw - 16px);
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .customer-share-fixed-cta:not(.quote-only) {
    grid-template-columns: 1.15fr .9fr auto;
  }
}
