.recycle-dialog { width: min(1320px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 24px; border: 1px solid var(--dcats-border, #d8e0dd); border-radius: var(--dcats-card-radius, 10px); color: var(--dcats-ink, #25362e); background: #f5f7f6; overflow: auto; box-sizing: border-box; font: inherit; }
.recycle-dialog::backdrop { background: rgb(10 30 40 / 45%); }
.recycle-dialog header,.recycle-summary,.recycle-actions,.recycle-product { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.recycle-dialog h2,.recycle-dialog h3,.recycle-dialog h4 { margin: 8px 0 14px; }
.recycle-dialog header p { margin: 0; font-size: 13px; color: #526674; }
.recycle-dialog button,.recycle-detail button { min-height: 40px; padding: 8px 14px; border: 1px solid #a6bdca; border-radius: 8px; background: #fff; color: #174b60; cursor: pointer; font-weight: 600; }
.recycle-dialog button:disabled,.recycle-detail button:disabled { opacity: .45; cursor: default; }
.recycle-dialog button:focus-visible,.recycle-detail button:focus-visible,.recycle-dialog summary:focus-visible { outline: 3px solid #1688a8; outline-offset: 2px; }
.recycle-summary { padding: 14px; border: 1px solid #bdd8d2; border-radius: 10px; background: #edf7f3; justify-content: flex-start; }
.recycle-dialog details,.recycle-detail { margin-top: 16px; padding: 16px; border: 1px solid #d6e0e7; border-radius: 10px; background: #fff; }
.recycle-dialog summary,.recycle-detail summary { cursor: pointer; font-weight: 700; min-height: 30px; }
.recycle-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 18px; margin: 12px 0; }
.recycle-dialog label,.recycle-detail label { display: grid; gap: 6px; min-width: 0; margin: 8px 0; font-size: 13px; }
.recycle-dialog input,.recycle-dialog select,.recycle-detail input { width: 100%; min-width: 0; min-height: 40px; box-sizing: border-box; padding: 8px 10px; color: #172f38; background: #fff; border: 1px solid #a9bbc7; border-radius: 6px; }
.recycle-dialog fieldset { min-width: 0; padding: 12px; border: 0; }
.recycle-checks { display: flex; gap: 16px; flex-wrap: wrap; }
.recycle-checks label { display: flex; align-items: center; }
.recycle-checks input { width: 18px; min-height: 18px; }
.recycle-note { color: #6b5422; background: #fff8e8; padding: 12px; line-height: 1.7; border-radius: 8px; }
.recycle-product,.recycle-line { padding: 12px 0; border-bottom: 1px solid #e2e8ee; }
.recycle-product small,.recycle-line small { display: block; color: #607080; margin-top: 5px; }
.recycle-line { display: grid; grid-template-columns: minmax(140px,1.2fr) 76px minmax(160px,1fr) minmax(160px,1fr) auto; gap: 12px; align-items: center; }
.recycle-line strong { overflow-wrap: anywhere; }
.recycle-search { display: flex; align-items: center; gap: 12px; }
.recycle-search label { flex: 1; }
#recycle-message.error { color: #a52d2d; overflow-wrap: anywhere; }
.recycle-detail { margin: 12px 0; }
.recycle-dialog [hidden] { display: none !important; }
.recycle-header { padding-bottom: 14px; border-bottom: 1px solid #d8e0dd; }
.recycle-header h2 { margin-bottom: 0; font-size: 24px; color: #17231f; }
.recycle-header nav { justify-content: flex-end; }
.recycle-dialog button { border-color: #9fafaa; color: #31433b; border-radius: var(--dcats-control-radius, 6px); font: inherit; font-weight: 700; }
.recycle-dialog button:hover { background: #f1f5f3; }
.recycle-dialog input,.recycle-dialog select,.recycle-dialog textarea { border-color: var(--dcats-border, #d8e0dd); border-radius: var(--dcats-control-radius, 6px); color: #1b2923; font: inherit; font-size: 14px; }
.recycle-dialog textarea { width: 100%; min-width: 0; padding: 8px 10px; box-sizing: border-box; border: 1px solid #d8e0dd; resize: vertical; background: #fff; }
.recycle-dialog input:focus-visible,.recycle-dialog select:focus-visible,.recycle-dialog textarea:focus-visible { outline: 2px solid var(--dcats-focus, #27734f); outline-offset: 1px; }
.recycle-dialog #recycle-entry-fields { padding: 0; margin: 0; }
.recycle-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.recycle-search { align-items: flex-end; margin-bottom: 14px; }
.recycle-search button { flex-shrink: 0; }
.recycle-product { gap: 10px; }
.recycle-product>span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.recycle-line { grid-template-columns: 76px minmax(0,1fr) auto; gap: 12px; padding: 16px 0; }
.recycle-line>strong { grid-column: 1/-1; }
.recycle-line>label:nth-of-type(3) { grid-column: 1/3; }
.recycle-line>button { grid-column: 3; grid-row: 2; }
.recycle-line>span { grid-column: 1/3; font-size: 13px; color: #607080; }
.recycle-preview { background: #edf7f1; color: #17613f; border-top: 2px solid #ccd7d2; padding: 14px; line-height: 1.7; }
.recycle-postal-row { display: flex; gap: 6px; }
.recycle-postal-row input { flex: 1; width: 80px; }
.recycle-postal-row button { flex-shrink: 0; padding: 8px; }
.recycle-postal-field { min-width: 0; }
.recycle-postal-field>label { margin-bottom: 6px; }
#recycle-postal-status { display: block; margin-top: 4px; line-height: 1.6; }
#recycle-postal-results { display: grid; gap: 6px; margin-top: 6px; }
.recycle-dialog .customer-order-submit-button { width: 100%; border-color: var(--dcats-customer-green, #1d6544); background: var(--dcats-customer-green, #1d6544); color: #fff; }
.recycle-dialog .customer-order-submit-button:hover { background: var(--dcats-customer-green-hover, #174f36); }
.recycle-settings { margin-top: 18px; padding: 20px; border: 1px solid #d8e0dd; border-radius: var(--dcats-card-radius, 10px); background: #fff; }
.recycle-binding-info { color: #526159; line-height: 1.7; font-size: 13px; overflow-wrap: anywhere; }
.recycle-binding-info:empty { display: none; }
.recycle-binding-confirm { margin-top: 18px; padding-top: 16px; border-top: 2px solid #c6d6cf; overflow-wrap: anywhere; }
.recycle-binding-confirm h4 { font-size: 16px; }
.recycle-dialog .recycle-binding-ack { display: flex; align-items: flex-start; gap: 8px; font-weight: 700; line-height: 1.6; }
.recycle-binding-ack input { flex: 0 0 18px; width: 18px; min-height: 18px; margin: 2px 0 0; }
#recycle-message { margin: 10px 0; line-height: 1.7; }
#recycle-message:empty { display: none; }
.recycle-preview { white-space: pre-line; }
@media(max-width:700px) { .recycle-dialog { padding: 14px; } .recycle-grid { grid-template-columns: 1fr; } .recycle-line { grid-template-columns: 76px minmax(0,1fr); } .recycle-line>strong { grid-column: 1/-1; } .recycle-line>label:nth-of-type(3) { grid-column: 1/-1; } }
@media(max-width:700px) { .recycle-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 12px; } .recycle-header h2 { font-size: 21px; } .recycle-header nav { justify-content: flex-start; gap: 8px; } .recycle-workspace .recycle-grid { grid-template-columns: minmax(0,1fr); } .recycle-line { grid-template-columns: 66px minmax(0,1fr); } .recycle-line>button { grid-column: 1/-1; grid-row: auto; justify-self: end; } .recycle-search { flex-wrap: wrap; } .recycle-search label { flex-basis: 100%; } }


.recycle-entry-dialog { width: min(1240px, calc(100vw - 24px)); padding: 12px 18px; }
.recycle-entry-dialog .recycle-header { gap: 6px; padding-bottom: 6px; }
.recycle-entry-dialog .recycle-header h2 { margin: 2px 0 0; }
.recycle-entry-dialog .recycle-header nav { gap: 5px; }
.recycle-entry-dialog #recycle-message { margin: 4px 0; font-size: 13px; }
.recycle-entry-dialog #recycle-message:empty,
.recycle-entry-dialog #recycle-product-status:empty,
.recycle-entry-dialog #recycle-postal-status:empty,
.recycle-entry-dialog #recycle-postal-results:empty,
.recycle-entry-dialog #recycle-products:empty { display: none; }
.recycle-entry-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-areas: "products address" "products delivery" "order delivery"; gap: 6px; margin-top: 6px; align-items: start; }
.recycle-entry-products { grid-area: products; }
.recycle-entry-address { grid-area: address; }
.recycle-entry-order { grid-area: order; }
.recycle-entry-delivery { grid-area: delivery; }
.recycle-entry-extra { display: contents; }
.recycle-entry-dialog .recycle-compact-only { display: none; }
.recycle-entry-panel { min-width: 0; padding: 6px 10px; border: 1px solid #d8e0dd; border-radius: 7px; background: #fff; overflow-wrap: anywhere; }
.recycle-entry-panel h3 { font-size: 14px; line-height: 1.25; margin: 0 0 4px; }
.recycle-entry-panel .recycle-grid { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; gap: 4px 8px; }
.recycle-entry-panel label { margin: 0; gap: 2px; color: #526159; font-size: 12px; line-height: 1.25; font-weight: 600; }
.recycle-entry-panel input,.recycle-entry-panel select,.recycle-entry-panel textarea { min-height: 34px; padding: 5px 7px; }
.recycle-entry-panel #recycle-note { resize: vertical; }
.recycle-entry-panel #recycle-return-field { grid-column: auto; }
.recycle-entry-panel .recycle-search { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 5px; margin: 0; }
.recycle-entry-panel .recycle-search button,.recycle-entry-panel .recycle-postal-row button { min-height: 34px; padding: 4px 7px; }
.recycle-entry-panel #recycle-product-status,.recycle-entry-panel #recycle-postal-status { margin: 4px 0; font-size: 12px; line-height: 1.3; }
.recycle-entry-panel #recycle-postal-results { display: flex; flex-wrap: wrap; gap: 4px 7px; margin-top: 4px; }
.recycle-entry-panel #recycle-postal-results>button { overflow-wrap: anywhere; }
.recycle-entry-panel .recycle-postal-row input { width: 0; }
.recycle-cart-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 4px; padding-top: 4px; border-top: 1px solid #e2e8ee; }
.recycle-cart-head h3 { margin: 0; }
.recycle-entry-panel .recycle-line { grid-template-columns: 56px minmax(80px,1fr) minmax(110px,1.3fr) auto; align-items: end; gap: 4px 6px; padding: 4px 0 0; border: 0; }
.recycle-line-title { grid-column: 1 / -1; min-width: 0; line-height: 1.25; }
.recycle-line-title small { margin-top: 2px; }
.recycle-entry-panel .recycle-line>button { grid-column: auto; grid-row: auto; min-height: 34px; padding: 4px 6px; white-space: nowrap; }
.recycle-line-extra { min-width: 0; }
.recycle-line-extra p { margin: 0 0 3px; font-size: 12px; line-height: 1.25; color: #607080; overflow-wrap: anywhere; }
.recycle-entry-panel .recycle-product { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 5px; padding: 4px 0; font-size: 13px; }
.recycle-entry-panel .recycle-product small { margin-top: 2px; font-size: 12px; line-height: 1.25; }
.recycle-entry-panel .recycle-product button { min-height: 34px; padding: 4px 7px; }
.recycle-entry-panel #recycle-cart>p { margin: 4px 0 0; color: #526159; font-size: 12px; }
.recycle-pages { display: flex; justify-content: center; align-items: center; gap: 5px; font-size: 12px; }
.recycle-entry-panel .recycle-pages button { min-height: 28px; padding: 2px 6px; font-size: 12px; }
.recycle-entry-footer { display: flex; align-items: center; justify-content: end; gap: 6px; margin-top: 6px; }
.recycle-entry-footer .customer-order-submit-button { width: auto; }
.recycle-entry-popup[popover] { position: fixed; inset: 0; width: min(480px, calc(100vw - 24px)); margin: auto; padding: 8px; box-sizing: border-box; border: 1px solid #9fafaa; border-radius: 8px; background: #fff; color: #25362e; }
.recycle-entry-popup[popover]::backdrop { background: rgb(25 41 34 / 20%); }
.recycle-entry-popup .recycle-popup-head { align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.recycle-entry-popup .recycle-popup-head button { min-height: 33px; padding: 3px 8px; }

@media(min-width: 1050px) {
  .recycle-entry-order .recycle-grid { grid-template-columns: 1fr 1fr 0.8fr 0.65fr; }
}
@media (max-width: 800px), (max-width: 1049px) and (max-height: 820px) {
  .recycle-entry-dialog { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); padding: 6px; }
  .recycle-entry-dialog .recycle-header h2 { font-size: 16px; }
  .recycle-entry-dialog .recycle-header nav { gap: 3px; }
  .recycle-entry-dialog .recycle-header nav button { min-height: 32px; padding: 3px 4px; font-size: 12px; }
  .recycle-entry-dialog .recycle-header>div>p { display: none; }
  .recycle-entry-grid { grid-template-columns: minmax(0,1fr); grid-template-areas: "products" "address" "order" "delivery"; gap: 4px; margin-top: 4px; }
  .recycle-entry-compact .recycle-compact-only { display: inline-block; }
  .recycle-entry-compact .recycle-popup-head { display: flex; }
  .recycle-entry-compact .recycle-entry-extra { display: none; }
  .recycle-entry-compact .recycle-entry-extra:popover-open { display: grid; gap: 4px; }
  .recycle-entry-compact .recycle-entry-extra section { grid-area: auto; }
  .recycle-entry-panel { padding: 4px 6px; }
  .recycle-entry-panel .recycle-grid { gap: 4px 6px; }
  .recycle-entry-panel input,.recycle-entry-panel select,.recycle-entry-panel textarea { padding-inline: 4px; font-size: 14px; }
  .recycle-entry-panel .recycle-search { grid-template-columns: minmax(78px,auto) minmax(0,1fr) auto; gap: 4px; }
  .recycle-entry-panel #recycle-show-products { min-height: 28px; margin-top: 3px; padding: 3px 6px; font-size: 12px; }
  .recycle-entry-panel .recycle-postal-row { gap: 3px; }
  .recycle-entry-panel .recycle-postal-row button { padding-inline: 3px; font-size: 12px; white-space: nowrap; }
  .recycle-entry-compact .recycle-line { grid-template-columns: minmax(37px,.5fr) minmax(70px,1.5fr) auto auto; }
  .recycle-entry-compact .recycle-line-title { font-size: 13px; }
  .recycle-entry-compact .recycle-line>label span { font-size: 11px; }
  .recycle-entry-compact .recycle-line>button { padding-inline: 3px; font-size: 12px; }
  .recycle-entry-panel .recycle-product { grid-template-columns: minmax(0,1fr) auto; }
  .recycle-entry-panel .recycle-product>span:first-child { grid-column: 1 / -1; }
  .recycle-entry-footer { gap: 4px; margin-top: 4px; flex-wrap: wrap; }
  .recycle-entry-footer button,.recycle-entry-footer .customer-order-submit-button { min-height: 34px; padding: 3px 6px; font-size: 13px; }
}

.recycle-search-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.recycle-search-head h3 { margin: 0; }
.recycle-entry-panel .recycle-search-head #recycle-show-products { min-height: 25px; padding: 2px 7px; margin: 0; font-size: 12px; }
.recycle-entry-popup[popover] .recycle-popup-head { display: flex; }
.recycle-entry-panel .recycle-line-extra:not([popover]) { display: contents; }
.recycle-entry-panel .recycle-line-extra:not([popover])>p { grid-column: 1 / -1; grid-row: 2; margin: 0; }
.recycle-entry-panel .recycle-line-extra:not([popover])>.recycle-core-controls,
.recycle-entry-panel .recycle-line-extra:not([popover])>small { grid-column: 3; grid-row: 3; }
.recycle-core-controls { display: grid; gap: 4px; align-items: end; min-width: 0; }
.recycle-core-controls > * { min-width: 0; }
.recycle-core-controls > [hidden] { display: none; }
.recycle-line-extra:not([popover]) .recycle-core-controls:has(#recycle-manual-core-field:not([hidden])) { grid-template-columns: minmax(0, 1fr) minmax(88px, .55fr); }
.recycle-entry-panel .recycle-line>label { grid-row: 3; }
.recycle-entry-panel .recycle-line>button { grid-row: 3; }
@media (max-width: 800px), (max-width: 1049px) and (max-height: 820px) {
  .recycle-entry-dialog .recycle-header nav button { padding-inline: 3px; }
  .recycle-entry-dialog .recycle-header { column-gap: 4px; }
  .recycle-entry-panel label { gap: 1px; }
  .recycle-entry-panel .recycle-line { gap: 3px 4px; }
  .recycle-entry-panel .recycle-line>label,.recycle-entry-panel .recycle-line>button { grid-row: 2; }
  .recycle-entry-panel .recycle-line-title small { font-size: 12px; }
  .recycle-entry-panel .recycle-search-head #recycle-show-products { min-height: 23px; }
}

.recycle-entry-dialog .recycle-header>div>p { display: none; }
.recycle-address-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 4px; }
.recycle-address-head h3 { white-space: nowrap; }
.recycle-entry-panel .recycle-address-head h3,.recycle-entry-panel .recycle-address-head #recycle-postal-status { margin: 0; }
@media (max-width: 800px), (max-width: 1049px) and (max-height: 820px) {
  .recycle-entry-panel .recycle-pages button { min-height: 25px; }
}

.recycle-dialog #recycle-feedback .recycle-feedback-close { display: none; }
.recycle-dialog #recycle-feedback[popover]:popover-open { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.recycle-dialog #recycle-feedback[popover] .recycle-feedback-close { display: inline-block; min-height: 32px; padding: 3px 6px; flex: none; }
.recycle-dialog #recycle-feedback[popover] #recycle-message { margin: 0; }

.recycle-entry-dialog .recycle-actions:has(#recycle-check-result:not([hidden])) #recycle-settings-open { display: none; }


.recycle-delivery-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.recycle-delivery-head { margin-bottom: 4px; }
.recycle-entry-panel .recycle-delivery-head h3 { margin: 0; }
.recycle-entry-panel #recycle-shipping-retry { min-height: 26px; padding: 2px 6px; font-size: 12px; }
@media(min-width: 1050px) {
  .recycle-entry-grid { grid-template-columns: minmax(0,1.24fr) minmax(0,1fr); }
  .recycle-entry-panel .recycle-search { grid-template-columns: auto minmax(0,17rem) auto; justify-content: start; }
  .recycle-entry-panel .recycle-line { grid-template-columns: 64px minmax(112px,.9fr) minmax(180px,1.35fr) auto; }
  .recycle-entry-panel .recycle-line-title strong { font-size: 16px; }
  .recycle-entry-panel .recycle-line-title small { font-size: 13px; }
  .recycle-entry-panel .recycle-line>label input,.recycle-entry-panel .recycle-core-controls :is(select,input) { min-height: 38px; }
}

.recycle-order-context { display: grid; grid-template-columns: minmax(140px, 190px) minmax(0, 1fr); gap: 6px 16px; align-items: center; padding: 4px 8px; margin-top: 4px; border: 1px solid #d8e0dd; border-radius: 7px; background: #fff; }
.recycle-order-context label { display: flex; align-items: center; gap: 5px; margin: 0; }
.recycle-order-context :is(label,.recycle-bound-customer)>span { flex: none; color: #526159; font-size: 12px; }
.recycle-order-context select { width: auto; min-height: 32px; max-width: 100%; flex: 1; padding: 4px 6px; }
.recycle-bound-customer { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; min-width: 0; overflow-wrap: anywhere; }
.recycle-bound-customer strong { color: #1d6544; min-width: 0; }
.recycle-bound-customer small { color: #526159; }
.recycle-entry-panel #recycle-search-category { max-width: 11rem; }
.recycle-extra-actions { grid-area: order; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.recycle-entry-panel.recycle-extra-actions h3 { margin: 0 6px 0 0; }
.recycle-extra-actions button { min-height: 31px; padding: 3px 7px; }
.recycle-extra-popup .recycle-grid { gap: 4px 8px; margin: 4px 0 0; }
.recycle-extra-popup label { margin: 0; gap: 3px; }
.recycle-extra-popup :is(input,select) { min-height: 34px; padding: 5px 6px; }
.recycle-extra-popup #recycle-office-custom { display: grid; gap: 4px; min-width: 0; }
.recycle-entry-dialog #recycle-delivery-quote { grid-column: 1/-1; color: #526159; line-height: 1.25; }
.recycle-entry-dialog #recycle-delivery-quote:empty { display: none; }
.recycle-detail p { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 800px), (max-width: 1049px) and (max-height: 820px) {
  .recycle-order-context { grid-template-columns: minmax(92px, .82fr) minmax(0, 1fr); gap: 4px 7px; padding: 3px 5px; }
  .recycle-order-context label { display: grid; gap: 1px; }
  .recycle-order-context select { width: 100%; min-height: 28px; padding: 2px 3px; font-size: 13px; }
  .recycle-order-context :is(label,.recycle-bound-customer)>span { font-size: 11px; }
  .recycle-bound-customer strong { font-size: 14px; }
  .recycle-entry-panel #recycle-search-category { max-width: 106px; }
  .recycle-extra-popup .recycle-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 800px), (max-width: 1049px) and (max-height: 820px) {
  .recycle-order-context:has(.recycle-bound-customer) { grid-template-columns: minmax(94px, .58fr) minmax(0, 1fr); }
  .recycle-order-context label { line-height: 1.2; }
  .recycle-bound-customer { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1px 4px; line-height: 1.25; }
  .recycle-bound-customer small { grid-area: 1 / 2; }
  .recycle-bound-customer strong { grid-column: 1 / -1; }
}

.recycle-entry-dialog { width: min(1760px, calc(100vw - 22px)); }
.recycle-customer-picker { display: flex; gap: 6px; align-items: center; min-width: 0; }
.recycle-order-context .recycle-customer-picker>label { flex: none; color: #526159; font-size: 12px; }
.recycle-customer-control { flex: 1; display: flex; align-items: stretch; min-width: 0; }
.recycle-customer-control input { flex: 1; border-radius: 6px 0 0 6px; min-height: 32px; padding: 4px 8px; }
.recycle-customer-control button { flex: 0 0 34px; min-height: 32px; border-left: 0; padding: 3px; border-radius: 0 6px 6px 0; }
.recycle-customer-options { position: fixed; inset: 0; width: min(520px, calc(100vw - 26px)); border: 1px solid #9fafaa; border-radius: 8px; margin: auto; padding: 5px; background: #fff; color: #25362e; }
.recycle-customer-options button { display: block; width: 100%; min-height: 34px; margin: 0; padding: 4px 8px; border: 0; text-align: left; overflow-wrap: anywhere; }
.recycle-customer-options button[aria-selected=true] { background: #e4f1ea; color: #194a36; }
.recycle-customer-options p { margin: 4px 6px; font-size: 13px; }
.recycle-vehicle-panel { grid-area: vehicle; }
.recycle-vehicle-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.recycle-vehicle-heading button { min-height: 32px; padding: 3px 7px; }
.recycle-vehicle-panel:not([popover]) .recycle-vehicle-close { display: none; }
.recycle-entry-panel #recycle-packing-field { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.recycle-entry-panel #recycle-packed-together { width: 16px; height: 16px; min-height: 0; flex: 0 0 16px; padding: 0; margin: 0; }
@media (min-width: 1050px) {
  .recycle-entry-panel .recycle-search { grid-template-columns: auto minmax(0,32rem) auto; justify-content: start; }
}
@media (min-width: 1050px) and (min-height: 720px) {
  .recycle-entry-grid:has(.recycle-vehicle-panel:not([popover])) { grid-template-areas: "products address" "products delivery" "order delivery" "vehicle vehicle"; }
  .recycle-entry-dialog .recycle-vehicle-toggle { display: none; }
  .recycle-vehicle-panel:not([popover]) .recycle-grid { grid-template-columns: minmax(0,1.25fr) repeat(4,minmax(0,1fr)) repeat(3,minmax(0,.85fr)); }
}
@supports (top: anchor(bottom)) {
  @media (min-width: 801px) {
    .recycle-customer-control { anchor-name: --dcats-intake-customer; }
    .recycle-customer-options { position-anchor: --dcats-intake-customer; top: anchor(bottom); left: anchor(left); right: auto; bottom: auto; margin: 4px 0 0; width: min(520px,anchor-size(width)); }
  }
}
@media (max-width: 800px), (max-width: 1049px) and (max-height: 820px) {
  .recycle-entry-dialog { width: calc(100vw - 12px); }
  .recycle-customer-picker { display: grid; gap: 1px; }
  .recycle-order-context .recycle-customer-picker>label { font-size: 11px; }
  .recycle-customer-control input { min-height: 28px; padding: 3px 4px; font-size: 12px; }
  .recycle-customer-control button { flex-basis: 26px; min-height: 28px; }
  .recycle-entry-panel #recycle-packing-field { font-size: 11px; }
  .recycle-entry-dialog .recycle-header nav .recycle-vehicle-toggle { font-size: 11px; white-space: nowrap; }
}

@media (max-width: 480px) {
  .recycle-entry-dialog .recycle-header { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px; padding-bottom: 4px; }
  .recycle-entry-dialog .recycle-header h2 { white-space: nowrap; }
  .recycle-entry-dialog .recycle-header nav { flex-wrap: nowrap; }
  .recycle-entry-dialog .recycle-header nav button { font-size: 11px; white-space: nowrap; }
  .recycle-cart-head h3,.recycle-cart-head .recycle-pages :is(button,span) { white-space: nowrap; }
  .recycle-cart-head h3 { font-size: 13px; }
  .recycle-entry-grid>.recycle-entry-panel { padding-block: 3px; }
  .recycle-entry-footer { margin-top: 4px; }
  .recycle-cart-head .recycle-pages button { padding-inline: 3px; }
}

/* Use the available viewport for order entry; settings retain their own dialog size. */
dialog.recycle-entry-dialog[open] { inset: 0; margin: 0; width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; border: 0; border-radius: 0; }
.recycle-section-switch { display: none; }
.recycle-section-switch button[aria-pressed=true] { background: #e4f1ea; border-color: #527d68; }
@media (max-width: 800px), (max-width: 1049px) and (max-height: 820px) {
  .recycle-section-switch { display: flex; gap: 5px; }
  .recycle-section-switch button { min-height: 30px; padding: 2px 8px; }
  #recycle-entry-fields:not([data-section=address]) .recycle-entry-address,
  #recycle-entry-fields[data-section=address] .recycle-entry-products { display: none; }
}

html:has(dialog.recycle-entry-dialog[open]), body:has(dialog.recycle-entry-dialog[open]) { overflow: hidden; }
/* Each shipping field has its own row, with the control aligned beside its label. */
.recycle-entry-panel:is(.recycle-entry-address, .recycle-entry-delivery) .recycle-grid {
  grid-template-columns: minmax(0, 1fr);
}
:is(.recycle-entry-address, .recycle-entry-delivery) .recycle-grid > :is(label, .recycle-postal-field) {
  display: grid;
  grid-template-columns: min(10em, 34%) minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}
.recycle-entry-address .recycle-postal-field { font-size: 12px; }
.recycle-entry-address .recycle-postal-field > label { margin: 0; }
:is(.recycle-entry-address, .recycle-entry-delivery) .recycle-grid :is(input, select, textarea) {
  min-width: 0;
}
@media (min-width: 1050px) {
  .recycle-entry-grid, .recycle-entry-grid:has(.recycle-vehicle-panel:not([popover])) {
    grid-template-columns: minmax(465px, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "products address delivery" "order address delivery" "vehicle vehicle vehicle";
  }
}
@media (min-width: 801px) and (max-width: 1049px) and (min-height: 821px) {
  .recycle-entry-grid {
    grid-template-areas: "products address" "products delivery" "order delivery";
  }
}

dialog.recycle-entry-dialog[open], .recycle-entry-dialog #recycle-body,
.recycle-entry-dialog #recycle-entry, .recycle-entry-dialog #recycle-entry-fields {
  display: flex; flex-direction: column; min-height: 0;
}
.recycle-entry-dialog #recycle-body, .recycle-entry-dialog #recycle-entry,
.recycle-entry-dialog #recycle-entry-fields, .recycle-entry-dialog .recycle-entry-grid { flex: 1; min-height: 0; }
.recycle-entry-grid { grid-template-rows: minmax(0, 1fr) auto auto; }
.recycle-entry-products { display: flex; flex-direction: column; min-height: 0; align-self: stretch; }
#recycle-cart { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; padding: 2px; }
.recycle-cart-item { display: grid; grid-template-columns: minmax(46px,.5fr) minmax(82px,1fr) minmax(105px,1.45fr) auto; align-items: end; gap: 3px 6px; padding: 5px 0; border-bottom: 1px solid #d8e0dd; }
.recycle-cart-item .recycle-line-title { grid-column: 1 / -1; font-size: 14px; overflow-wrap: anywhere; }
.recycle-cart-item .recycle-line-title small { margin-left: 6px; }
.recycle-cart-item > button { padding: 3px 6px; min-height: 34px; }
.recycle-cart-details:not([popover]) { display: contents; }
.recycle-cart-details p { margin: 0; font-size: 12px; line-height: 1.25; color: #53655c; overflow-wrap: anywhere; }
.recycle-cart-item:has(.recycle-cart-details:not([popover])) > .recycle-line-title { grid-row: 1; grid-column: 1 / 3; }
.recycle-cart-details:not([popover]) > p { grid-row: 1; grid-column: 3 / -1; align-self: center; }
.recycle-cart-item > label, .recycle-cart-item > button, .recycle-cart-details:not([popover]) > :is(.recycle-core-controls,small) { grid-row: 2; }
.recycle-cart-item .recycle-core-controls:has([id^="recycle-manual-core-field-"]:not([hidden])) { grid-template-columns: minmax(0,1.15fr) minmax(65px,.85fr); }
.recycle-cart-item > button[data-recycle-action=remove] { grid-column: 4; }
@media (max-width: 800px), (max-width: 1049px) and (max-height: 820px) {
  .recycle-entry-grid { grid-template-areas: "products"; grid-template-rows: minmax(0,1fr); }
  #recycle-entry-fields[data-section=address] .recycle-entry-grid { grid-template-areas: "address"; }
  .recycle-entry-compact .recycle-cart-item { grid-template-columns: minmax(42px,.65fr) minmax(84px,1.65fr) auto auto; }
  .recycle-entry-compact .recycle-cart-item > :is(label,button) { grid-row: 2; }
  .recycle-entry-compact .recycle-cart-item > button[popovertarget] { grid-column: 3; }
}
@media (min-width: 801px) and (max-width: 1049px) and (min-height: 821px) {
  .recycle-entry-grid { grid-template-rows: auto minmax(0,1fr) auto; }
}
