:root{
  --cc-teal:#0b8aa0;
  --cc-teal-dark:#0b2f36;
  --cc-orange:#ff8500;
  --cc-bg:#f5f7fb;
  --cc-card:#ffffff;
  --cc-text:#0b1b2b;
  --cc-muted:#5b6b73;
}

.materials-hero{
  background:linear-gradient(120deg, #0b8aa0 0%, #0a6d82 100%);
  color:#fff;
  padding:64px 0 52px;
}
.materials-hero__grid{
  display:grid;
  grid-template-columns:1fr;
  gap:0;
  align-items:center;
}
.materials-hero__copy h1{
  margin:0 0 10px;
  font-size:40px;
  font-weight:800;
}
.materials-hero__copy p{
  margin:0 0 16px;
  color:#e2f4f7;
}
.materials-hero__steps{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.materials-step{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.2);
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
}
.materials-step span{
  width:22px;
  height:22px;
  border-radius:999px;
  background:#fff;
  color:#0b8aa0;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
}
.materials-hero__card{ display:none; }

.materials-builder{
  background:var(--cc-bg);
  padding:44px 0 70px;
}
.materials-steps{
  display:flex;
  align-items:center;
  gap:12px;
  justify-content:center;
  margin:0 auto 18px;
  flex-wrap:wrap;
}
.materials-stepItem{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#fff;
  border:1px solid rgba(15,23,42,.12);
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  color:#5b6b73;
}
.materials-stepItem span{
  width:22px;
  height:22px;
  border-radius:999px;
  background:#e8f6f8;
  color:#0b8aa0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:12px;
}
.materials-stepItem.is-active{
  background:#0b2f36;
  color:#fff;
  border-color:#0b2f36;
}
.materials-stepItem.is-active span{
  background:#ffefdc;
  color:#b45309;
}
.materials-searchbar{
  max-width:900px;
  margin:0 auto 18px;
}
.materials-search{
  display:flex;
  align-items:center;
  gap:10px;
  background:#ffffff;
  border-radius:999px;
  padding:8px 12px;
  box-shadow:0 10px 24px rgba(15,23,42,.08);
  border:1px solid rgba(15,23,42,.08);
}
.materials-search input{
  border:none;
  outline:none;
  flex:1;
  height:36px;
  font-size:14px;
}
.materials-search button{
  width:38px;
  height:38px;
  border:none;
  border-radius:999px;
  background:#ff8500;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.materials-searchResults{
  list-style:none;
  margin:8px 0 0;
  padding:0;
  background:#fff;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.08);
  box-shadow:0 12px 26px rgba(15,23,42,.08);
  overflow:hidden;
  display:none;
}
.materials-searchResults.is-visible{ display:block; }
.materials-searchResults li{
  padding:10px 12px;
  cursor:pointer;
  border-bottom:1px solid rgba(15,23,42,.06);
  font-size:13px;
}
.materials-searchResults li:last-child{ border-bottom:none; }
.materials-searchResults li:hover{ background:#f8fafc; }

.materials-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-top:16px;
}
.materials-checkout{
  display:none !important;
}
.materials-checkout.is-visible{
  display:block !important;
}
.materials-panel{
  background:var(--cc-card);
  border-radius:18px;
  padding:18px;
  box-shadow:0 14px 30px rgba(15,23,42,.08);
  border:1px solid rgba(15,23,42,.06);
}
.materials-panel h2,
.materials-panel h3{
  margin:0 0 12px;
  font-weight:800;
  color:#0a3440;
}
.materials-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:12px;
}
.materials-field label{
  font-size:12px;
  color:#455a64;
  font-weight:700;
}
.materials-field input,
.materials-field select{
  height:46px;
  border-radius:10px;
  border:1px solid rgba(15,23,42,.12);
  padding:0 12px;
  background:#fff;
  outline:none;
}
.materials-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.materials-btn{
  background:#0b8aa0;
  color:#fff;
  border:none;
  border-radius:10px;
  height:46px;
  font-weight:800;
  cursor:pointer;
  width:100%;
}
.materials-btn--secondary{
  background:#0b2f36;
}
.materials-btn--primary{
  background:var(--cc-orange);
  max-width:280px;
}
.materials-btn--ghost{
  background:transparent;
  color:#0b2f36;
  border:1px dashed rgba(15,23,42,.25);
  max-width:220px;
}
.materials-btn:hover{ filter:brightness(.97); }
.materials-alert{
  background:#fff3e0;
  color:#8a4b00;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #ffd59a;
}
.materials-panel--list{
  display:flex;
  flex-direction:column;
}
.materials-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.materials-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  background:#f8fafc;
  border:1px solid rgba(15,23,42,.06);
  border-radius:12px;
  padding:10px 12px;
}
.materials-item__meta{
  flex:1;
}
.materials-item__title{
  font-weight:700;
  color:#0b1b2b;
  margin-bottom:2px;
}
.materials-item__sub{
  font-size:12px;
  color:#6b7280;
}
.materials-item__actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.materials-item__qty{
  width:70px;
  height:36px;
  border-radius:8px;
  border:1px solid rgba(15,23,42,.12);
  padding:0 8px;
}
.materials-item__remove{
  background:#ffe1e1;
  color:#b42318;
  border:none;
  border-radius:8px;
  height:36px;
  padding:0 10px;
  cursor:pointer;
  font-weight:700;
}
.materials-empty{
  color:#94a3b8;
  margin-bottom:10px;
}
.materials-total{
  margin-top:auto;
  display:flex;
  justify-content:space-between;
  padding-top:10px;
  border-top:1px dashed rgba(15,23,42,.15);
  font-weight:700;
}
.materials-divider{
  margin:22px 0 8px;
  text-align:center;
  position:relative;
  display:none;
}
.materials-divider span{
  background:var(--cc-bg);
  padding:0 12px;
  font-weight:800;
  color:#0a3440;
}
.materials-divider::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:50%;
  height:1px;
  background:rgba(15,23,42,.12);
  z-index:-1;
}
.materials-cta{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  margin-top:16px;
}
.materials-note{
  font-size:12px;
  color:#6b7280;
  max-width:720px;
}

.materials-thanks{
  background:var(--cc-bg);
  padding:80px 0;
  text-align:center;
}
.materials-thanks h1{
  margin:0 0 10px;
  font-weight:800;
}
.materials-thanks p{
  color:#5b6b73;
  margin:0 0 16px;
}

@media (max-width:900px){
  .materials-hero__grid,
  .materials-grid{
    grid-template-columns:1fr;
  }
  .materials-pick{
    grid-template-columns:1fr;
  }
}
.materials-panel--picker{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.materials-pick{
  display:grid;
  grid-template-columns:1fr 1fr 1.2fr;
  gap:14px;
}
.materials-pick h4{
  margin:0 0 8px;
  font-size:12px;
  letter-spacing:.4px;
  color:#0a3440;
}
.materials-catList,
.materials-subList,
.materials-prodList{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height:280px;
  overflow:auto;
}
.materials-catList li,
.materials-subList li,
.materials-prodList li{
  padding:10px 12px;
  border-radius:12px;
  background:#f8fafc;
  border:1px solid rgba(15,23,42,.08);
  cursor:pointer;
  font-size:13px;
}
.materials-catList li.is-active,
.materials-subList li.is-active,
.materials-prodList li.is-active{
  background:#e8f6f8;
  border-color:rgba(5,165,203,.35);
}
.materials-products .materials-prodList li{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.materials-choose{
  border-top:1px dashed rgba(15,23,42,.14);
  padding-top:12px;
}
.materials-stepNote{
  margin:6px 0 12px;
  color:#55646d;
  font-size:12px;
}
