.materials-hero { background:#f7f6f2; padding:2.5rem 0 1.75rem; border-bottom:1px solid #dedfd6; }
.materials-hero h1 { color:var(--timber-green,#19472d); font-family:Georgia,serif; font-size:clamp(2.25rem,5vw,3.6rem); margin:.6rem 0; }
.materials-hero p { color:#586252; max-width:48rem; margin:0; }
.materials-page { background:#f7f6f2; }
.materials-toolbar { display:flex; flex-wrap:wrap; gap:.75rem; margin-bottom:1.5rem; }
.materials-toolbar a,.materials-toolbar button { padding:.75rem 1.2rem; border-radius:4px; min-height:44px; }
.materials-page h2,.materials-editor h2 { font-family:Georgia,serif; color:var(--timber-green,#19472d); font-size:1.65rem; }
.materials-page .cart-summary { background:white; border:1px solid #d7ddcf; border-top:4px solid var(--timber-green,#19472d); padding:1.5rem; box-shadow:none; border-radius:4px; }
.materials-summary-heading { margin-bottom:1.25rem; }
.materials-page #stockSection,.materials-page #quoteRequestSection { background:white!important; border:1px solid #d7ddcf!important; border-radius:4px!important; padding:1.25rem!important; }
.materials-page #quoteRequestSection .d-none,.materials-page #quoteCardsList { display:none!important; }
.materials-page #depositBreakdown,.materials-page #specialOnlyNotice,.materials-page #speciesRequestSection { display:none!important; }
.materials-page #cartActions .btn-outline-danger,.materials-page .cart-summary>.btn-outline-danger { display:none; }
.materials-page .cart-table th { font-weight:500; color:#5b6559; font-size:.8rem; }
.materials-page .cart-table td { vertical-align:top; }
.materials-page .cart-table input { min-height:44px; font-size:16px; }
.materials-editor { border:1px solid #d7ddcf; border-radius:4px; background:white; padding:1.75rem; max-width:950px; margin:1.75rem 0; scroll-margin-top:100px; }
.materials-section-heading { display:flex; gap:1rem; align-items:flex-start; justify-content:space-between; margin-bottom:.75rem; }
.materials-section-heading h2,.materials-section-heading h3 { margin:0; }
.materials-eyebrow { color:#8a6942; text-transform:uppercase; font-size:.72rem; font-weight:600; letter-spacing:.12em; margin:0 0 .4rem; }
.materials-editor label { display:block; font-size:.85rem; font-weight:500; color:#414c3e; }
.materials-editor input,.materials-editor select,.materials-editor textarea { display:block; width:100%; min-height:44px; border:1px solid #cbd3c2; border-radius:4px; padding:.65rem .75rem; background:white; color:#26372a; font:inherit; font-size:16px; margin-top:.35rem; }
.materials-editor textarea { resize:vertical; }
.materials-editor input:focus,.materials-editor textarea:focus,.materials-editor select:focus,.materials-page button:focus-visible,.materials-page a:focus-visible { outline:2px solid #426b47; outline-offset:3px; }
.materials-editor fieldset { border:0; padding:1.2rem 0 0; margin:.7rem 0; border-top:1px solid #dce1d5; }
.materials-editor legend { font-size:1.05rem; margin-bottom:.5rem; }
.materials-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin:1rem 0; }
.materials-wide { grid-column:1/-1; }
.materials-species-input { display:flex; align-items:end; gap:.6rem; }
.materials-species-input input { flex:1; min-width:0; }
.materials-species-input button { flex-shrink:0; min-height:44px; padding:.55rem .9rem; }
.materials-chips { display:flex; gap:.5rem; flex-wrap:wrap; margin:.75rem 0; }
.materials-chips button { border:1px solid #b5c6ae; background:#f0f5eb; padding:.4rem .75rem; color:#23452c; border-radius:4px; min-height:40px; }
.materials-help { color:#616d5d; font-size:.85rem; line-height:1.55; margin:.6rem 0; }
.materials-error { color:#922e25; background:#fff4f1; padding:.75rem; border:1px solid #e5b5ad; border-radius:4px; }
.materials-text-button { color:#275234; border:0; background:none; padding:.45rem 0; text-decoration:underline; text-underline-offset:3px; text-align:left; font-size:.85rem; min-height:44px; }
.materials-form-actions,.materials-row-actions { display:flex; gap:1.2rem; flex-wrap:wrap; align-items:center; margin-top:1rem; }
.materials-form-actions>.btn-timber { padding:.75rem 1.2rem; }
.materials-request-row { border-top:1px solid #e1e4da; padding:1.1rem 0; }
.materials-request-row:last-child { padding-bottom:0; }
.materials-request-row h3 { font-family:Georgia,serif; font-size:1.15rem; font-weight:400; color:#214930; }
.materials-request-row p { font-size:.85rem; color:#62695d; }
.materials-status { font-size:.7rem; background:#f4f0e5; color:#705735; border:1px solid #e7dfca; border-radius:3px; padding:.2rem .45rem; white-space:nowrap; }
.materials-kind { display:block; font:400 .8rem/1.5 sans-serif; color:#796443; margin-top:.2rem; }
.materials-preserved-notes { white-space:pre-wrap; overflow-wrap:anywhere; }
.materials-line-notes { color:#52634c; font-size:.85rem; margin:.5rem 0; }
.materials-line-notes label { display:block; padding-top:.5rem; }
.materials-line-notes textarea { display:block; width:100%; border:1px solid #cbd3c2; border-radius:4px; padding:.6rem; font-size:16px; margin-top:.3rem; }
.materials-inline-quantity { display:inline-flex; gap:.6rem; align-items:center; margin:.4rem .9rem .4rem 0; font-size:.85rem; }
.materials-inline-quantity input { width:95px; min-height:44px; border:1px solid #cbd3c2; border-radius:4px; padding:.5rem; font-size:16px; }
.materials-scope { border:0; border-top:1px solid #dce1d5; padding:1rem 0 0; margin:1.1rem 0; }
.materials-scope legend { font-size:.9rem; font-weight:600; }
.materials-scope label { display:flex; gap:.65rem; align-items:flex-start; padding:.7rem; border:1px solid #dce1d5; border-radius:4px; margin:.5rem 0; cursor:pointer; font-size:.9rem; }
.materials-scope label:has(input:checked) { border-color:#416a46; background:#f3f7ef; }
.materials-scope input { margin-top:.25rem; accent-color:#214e31; }
.materials-scope small { display:block; color:#67725f; font-size:.76rem; line-height:1.5; margin-top:.2rem; }
.materials-request-review { background:#f8f9f4; border:1px solid #e0e4d8; padding:1rem; }
.materials-request-review ul { margin:0; padding-left:1.2rem; }
.materials-request-review li { padding:.3rem; font-size:.9rem; }
.materials-request-review small { display:block; color:#626e5b; white-space:pre-wrap; }
.materials-honeypot { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.materials-summary { border:1px solid #d1dac9; border-top:4px solid #214e31; background:white; padding:1.25rem; }
.materials-summary h2 { color:#214e31; font-family:Georgia,serif; font-size:1.6rem; margin-bottom:.8rem; }
.materials-summary-line { border-top:1px solid #e2e6dc; padding:.65rem 0; font-size:.85rem; }
.materials-summary-line small { display:block; color:#6a7364; margin-top:.2rem; }
.materials-summary [data-materials-summary-list] { max-height:360px; overflow:auto; }
.materials-summary-count { display:inline-block; font:400 .8rem/1.5 sans-serif; border-radius:50%; background:#214e31; color:white; padding:.15rem .5rem; margin-left:.4rem; vertical-align:middle; }
.materials-mobile-bar { display:none; }
.materials-page [hidden],.materials-editor [hidden],.materials-scope[hidden],.materials-editor[hidden] { display:none!important; }
@media(max-width:767px) {
    .materials-editor { padding:1.2rem; }
    .materials-fields { grid-template-columns:1fr; }
    .materials-section-heading { flex-wrap:wrap; }
    .materials-hero { padding:1.5rem 0; }
    .materials-toolbar { gap:.5rem; }
    .materials-toolbar a,.materials-toolbar button { flex:1 1 145px; text-align:center; font-size:.85rem; }
    .materials-page .cart-summary { position:static!important; }
    .materials-status { white-space:normal; }
    .materials-mobile-bar:not([hidden]) { display:flex; position:fixed; z-index:1030; bottom:0; left:0; right:0; align-items:center; justify-content:space-between; background:#214e31; color:white; padding:.7rem 1rem; gap:1rem; }
    .materials-mobile-bar a { color:white; border:1px solid #b8c9ae; padding:.45rem .8rem; border-radius:3px; }
}

/* Unified cart: one set of rows and one selection summary. */
.materials-page { padding:2rem 0 3rem; }
.materials-cart-row { display:grid; grid-template-columns:28px minmax(0,1fr); gap:1rem; padding:1.5rem; background:#fff; border:1px solid #d7ddcf; border-radius:4px; margin-bottom:1rem; }
.materials-cart-row--saved { background:#fbfbf8; }
.materials-cart-row h2 { font-size:1.45rem; font-weight:400; margin:0; line-height:1.3; }
.materials-row-select { padding:.2rem 0; }
.materials-row-select input,.materials-selection input { width:20px; height:20px; accent-color:#214e31; vertical-align:middle; }
.materials-row-select input:focus-visible,.materials-selection input:focus-visible { outline:2px solid #426b47; outline-offset:4px; }
.materials-row-quantity { display:flex; justify-content:space-between; flex-wrap:wrap; gap:.75rem; margin:.6rem 0; font-size:.95rem; }
.materials-line-price { color:#214e31; font-size:1.1rem; }
.materials-row-body { min-width:0; }
.materials-row-body>.materials-preserved-notes { margin:.5rem 0; color:#596252; font-size:.85rem; }
.materials-selection { display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; align-items:center; margin-bottom:1rem; padding:.4rem 0; }
.materials-selection label { display:flex; gap:.6rem; align-items:center; font-size:.9rem; }
.materials-selection>div { display:flex; gap:1rem; }
.materials-total { display:flex; justify-content:space-between; gap:1rem; padding:.7rem 0; border-bottom:1px solid #e1e5dc; font-size:.9rem; }
#materialsCartSummary { position:sticky; top:100px; }
#materialsContinue { min-height:48px; margin-top:1rem; }
#materialsQuoteSelected { display:block; line-height:1.5; margin-top:.5rem; }
.materials-cart-actions { display:flex; align-items:center; flex-wrap:wrap; gap:1.3rem; margin:1rem 0; }
.materials-empty { text-align:center; padding:3rem 1.5rem; background:#fff; border:1px solid #d7ddcf; border-radius:4px; }
.materials-notice { background:#faf5e9; color:#624d30; border:1px solid #e3d6b9; padding:1.25rem; margin:1rem 0; border-radius:4px; }
.materials-notice h2 { font-size:1.25rem; }
.materials-notice small { display:block; overflow-wrap:anywhere; }
.materials-profile { display:inline-block; margin:.25rem 0; }
.materials-profile .milling-profile-icon { display:inline-flex; max-width:130px; height:40px; }
.materials-profile svg { width:125px; height:40px; }
.materials-cut-list { padding-left:1.2rem; color:#53604c; font-size:.85rem; margin:.65rem 0; }
.materials-length-row { display:grid; grid-template-columns:1fr 1fr auto; gap:1rem; align-items:end; margin:.8rem 0; }
.materials-length-row input { max-width:180px; }
#materialsOptionalSpecs { margin:1rem 0; }
#materialsOptionalSpecs summary,#materialsCoverageEditor summary { color:#275234; cursor:pointer; padding:.5rem 0; min-height:44px; }
.materials-page button:disabled { opacity:.55; cursor:not-allowed; }
.materials-page .tropical-compare-details { margin:1rem 0; }
@media(max-width:767px) {
    .materials-cart-row { padding:1rem; gap:.7rem; grid-template-columns:24px minmax(0,1fr); }
    .materials-cart-row h2 { font-size:1.25rem; }
    #materialsCartSummary { position:static; }
    .materials-length-row { gap:.6rem; }
    .materials-selection { align-items:flex-start; }
}
