/* Home Repair proposal-level options and terms belong only to Review & Options,
   Terms & Payment, and Preview & Send — never the Services or trade workspaces. */
.hgc-proposal-details{
  display:grid;
  gap:0;
  margin:22px 0 0;
  overflow:hidden;
  border:1px solid #294255;
  border-radius:12px;
  background:#081722;
  color:#f5f8fb;
}
.hgc-proposal-details > header{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:18px;
  padding:18px 20px;
  border-bottom:1px solid #294255;
  background:#0b1c28;
}
.hgc-proposal-details > header > div{display:grid;gap:3px}
.hgc-proposal-details > header small,.hgc-preview-options > header small,.hgc-preview-terms > header small{color:#ff7a18;font-size:11px;font-weight:900;letter-spacing:.04em}
.hgc-proposal-details > header h3,.hgc-preview-options > header h4,.hgc-preview-terms > header h4{margin:0;color:#f7f9fb}
.hgc-proposal-details > header h3{font-size:20px}
.hgc-proposal-details > header p,.hgc-preview-options > header p,.hgc-preview-terms > header p{margin:0;color:#9fb3c3;font-size:13px;text-transform:none}
.hgc-proposal-details > header > strong{color:#ff8b2f;font-size:24px;white-space:nowrap}
.hgc-proposal-details > .hgc-preview-options,.hgc-proposal-details > .hgc-preview-terms{display:grid;gap:14px;padding:18px 20px 20px}
.hgc-proposal-details > .hgc-preview-options{border-bottom:1px solid #294255}
.hgc-preview-options > header,.hgc-preview-terms > header{display:flex;align-items:end;justify-content:space-between;gap:16px}
.hgc-preview-options > header > div,.hgc-preview-terms > header > div{display:grid;gap:2px}
.hgc-preview-options > header h4,.hgc-preview-terms > header h4{font-size:18px}
.hgc-preview-options > header > strong{color:#d6e2eb;font-size:14px;white-space:nowrap}
.hgc-preview-terms > header > strong{color:#ff8b2f;font-size:18px;white-space:nowrap}
.hgc-preview-option-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.hgc-preview-option-choice{
  --option-tone:#16bfdc;
  display:grid;
  grid-template-columns:36px minmax(0,1fr) auto;
  grid-template-areas:"icon copy check" "icon price check";
  align-items:center;
  gap:3px 10px;
  min-width:0;
  min-height:84px;
  padding:12px;
  border:1px solid color-mix(in srgb,var(--option-tone) 58%,#294255);
  border-radius:9px;
  background:color-mix(in srgb,var(--option-tone) 8%,transparent);
  color:#f5f8fb;
  text-align:left;
  box-shadow:none;
}
.hgc-preview-option-choice.purple{--option-tone:#b85cff}
.hgc-preview-option-choice.gold{--option-tone:#e3bf00}
.hgc-preview-option-choice > span{grid-area:icon;display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--option-tone);border-radius:50%;color:var(--option-tone)}
.hgc-preview-option-choice > div{grid-area:copy;display:grid;min-width:0}
.hgc-preview-option-choice > div > strong{overflow:hidden;color:#f5f8fb;font-size:14px;text-overflow:ellipsis;white-space:nowrap}
.hgc-preview-option-choice > div > small{overflow:hidden;color:#9fb3c3;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.hgc-preview-option-choice > b{grid-area:price;color:var(--option-tone);font-size:14px}
.hgc-preview-option-choice > i{grid-area:check;color:var(--option-tone)}
.hgc-preview-option-choice.selected{border-color:var(--option-tone);background:color-mix(in srgb,var(--option-tone) 15%,transparent);box-shadow:inset 0 0 0 1px var(--option-tone)}
.hgc-preview-option-choice:hover{border-color:var(--option-tone);background:color-mix(in srgb,var(--option-tone) 12%,transparent)}
.hgc-preview-option-choice:focus-visible{outline:2px solid #ff7a18!important;outline-offset:2px!important;box-shadow:none!important}
.hgc-preview-term-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.hgc-preview-term-card{display:grid;align-content:start;gap:8px;min-width:0;min-height:104px;padding:13px;border:1px solid #345167;border-radius:9px;background:rgba(14,38,54,.72);color:#f5f8fb}
.hgc-preview-term-card > span{display:flex;align-items:center;gap:7px;color:#bed0dd;font-size:11px;font-weight:900;text-transform:uppercase}
.hgc-preview-term-card > div{display:flex;align-items:center;min-width:0}
.hgc-preview-term-card input[type="number"],.hgc-preview-term-card select{width:100%;min-width:0;min-height:44px;border:1px solid #49677d;border-radius:7px;background:#07131d;color:#f5f8fb;box-shadow:none}
.hgc-preview-term-card input[type="number"]{padding:0 11px;font-size:15px;font-weight:800}
.hgc-preview-term-card select{padding:0 38px 0 11px;font-size:13px}
.hgc-preview-term-card em{display:grid;place-items:center;align-self:stretch;min-width:40px;border:1px solid #49677d;border-left:0;border-radius:0 7px 7px 0;color:#ff8b2f;font-style:normal;font-weight:900}
.hgc-preview-term-card > div > input{border-radius:7px 0 0 7px}
.hgc-preview-term-card > small{color:#9fb3c3;font-size:11px}
.hgc-preview-term-card.tax{grid-template-columns:minmax(0,1fr) auto;align-items:center;align-content:center}
.hgc-preview-term-card.tax input[type="checkbox"]{width:24px;height:24px;accent-color:#ff7a18}
.hgc-preview-term-card :is(input,select):focus{border-color:#ff7a18!important;outline:2px solid rgba(255,122,24,.28)!important;outline-offset:1px!important;box-shadow:none!important}
@media(max-width:760px){
  .hgc-proposal-details{margin-top:16px;border-radius:10px}
  .hgc-proposal-details > header{align-items:start;flex-direction:column;padding:16px;gap:7px}
  .hgc-proposal-details > .hgc-preview-options,.hgc-proposal-details > .hgc-preview-terms{padding:16px}
  .hgc-preview-options > header,.hgc-preview-terms > header{align-items:start;flex-direction:column;gap:5px}
  .hgc-preview-option-grid,.hgc-preview-term-grid{grid-template-columns:1fr}
  .hgc-preview-option-choice{min-height:72px}
  .hgc-preview-term-card{min-height:92px}
}

/* Home Repair Project Builder service library cards.
   Keep the preferred transparent service-card experience inside the one
   Project Builder screen instead of routing through a duplicate picker. */
.customer-builder-services.home-repair-project-services{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))!important;
  align-items:stretch;
  gap:12px;
}
.customer-builder-service-library-card{
  --service-tone:#4ba8ff;
  position:relative;
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-template-rows:auto auto minmax(48px,1fr) auto;
  align-content:start;
  gap:0!important;
  min-width:0;
  min-height:214px!important;
  padding:14px!important;
  overflow:hidden;
  border:1px solid color-mix(in srgb,var(--service-tone) 62%,#294255)!important;
  border-top:3px solid var(--service-tone)!important;
  border-radius:10px!important;
  background:color-mix(in srgb,var(--service-tone) 5%,rgba(4,15,24,.74))!important;
  color:#f5f8fb;
  box-shadow:none!important;
}
.customer-builder-service-library-card.orange{--service-tone:#ff7a18}
.customer-builder-service-library-card.green{--service-tone:#24ce69}
.customer-builder-service-library-card.gold{--service-tone:#e6cf1a}
.customer-builder-service-library-card.purple{--service-tone:#b764ef}
.customer-builder-service-library-card.cyan{--service-tone:#20cfdd}
.customer-builder-service-library-card.blue{--service-tone:#4ba8ff}
.customer-builder-service-library-card.pink{--service-tone:#f1699e}
.customer-builder-service-library-card > header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 0 12px;
  border-bottom:1px solid color-mix(in srgb,var(--service-tone) 24%,#294255);
}
.customer-builder-service-library-card > header > span{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border:1px solid var(--service-tone);
  border-radius:50%;
  background:transparent;
  color:var(--service-tone);
}
.customer-builder-service-library-card > header > span svg{width:22px;height:22px}
.customer-builder-service-library-card > header > em{
  color:#aebdca;
  font-size:11px;
  font-style:normal;
  font-weight:800;
}
.customer-builder-service-library-card.added > header > em{color:#5edc82}
.customer-builder-service-library-card > h3{
  margin:14px 0 5px;
  color:#f7f9fb;
  font-size:17px;
  line-height:1.2;
}
.customer-builder-service-library-card > p{
  margin:0;
  color:#aab9c6;
  font-size:12px;
  line-height:1.45;
}
.customer-builder-service-library-card > footer{
  display:block;
  padding-top:13px;
}
.customer-builder-service-library-card > footer > button{
  width:100%;
  min-height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:8px 10px;
  border:1px solid var(--service-tone)!important;
  border-radius:7px;
  background:transparent!important;
  color:#f5f8fb!important;
  font-size:12px;
  font-weight:850;
}
.customer-builder-service-library-card > footer > button:hover,
.customer-builder-service-library-card > footer > button:focus-visible{
  background:color-mix(in srgb,var(--service-tone) 12%,transparent)!important;
  border-color:var(--service-tone)!important;
  outline:2px solid color-mix(in srgb,var(--service-tone) 38%,transparent)!important;
  outline-offset:2px!important;
  box-shadow:none!important;
}
.customer-builder-service-library-card > footer > button svg{width:16px;height:16px;color:var(--service-tone)}
.customer-builder-service-library-card > strong{
  position:absolute;
  right:14px;
  bottom:65px;
  color:var(--service-tone);
  font-size:14px;
}
@media(max-width:680px){
  .customer-builder-services.home-repair-project-services{grid-template-columns:1fr!important}
  .customer-builder-service-library-card{min-height:196px!important}
}
