.selection-summary{flex-shrink:0;margin:0;padding:18px 26px 16px;border:0;border-top:1px solid #f0f0f0;border-radius:0;background:#fff;color:#303030;text-align:left;font-size:13px;font-weight:400}
.selection-summary-body{max-height:24vh;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d8d8d8 transparent}
.selection-summary .selection-summary-description{margin:0 0 14px;line-height:1.65;font-size:14px;font-weight:400;color:#303030;overflow-wrap:anywhere;white-space:pre-wrap}
.selection-summary-info{color:#999;font-size:12px;line-height:1.5;margin:0 0 13px}
.selection-summary .selection-summary-info p{display:flex;align-items:center;gap:4px;margin:0;font-size:12px;color:#999;line-height:1.5}
.selection-summary-info svg{flex-shrink:0;width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.selection-summary-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #f3f3f3;padding-top:12px}
.selection-summary-amounts{min-width:0}.selection-summary .selection-summary-total{margin:0 0 3px;color:#999;font-size:14px;line-height:1.5}
.selection-summary-total strong{font-size:22px;font-weight:400;color:#ff3829;overflow-wrap:anywhere}
.selection-summary .selection-summary-costs{display:flex;flex-wrap:wrap;gap:2px 8px;margin:0;color:#999;font-size:12px;line-height:1.5}
.selection-summary-copy{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;flex-shrink:0;min-width:50px;min-height:46px;padding:2px 0;border:0;background:transparent;color:#00bd8d;cursor:pointer}
.selection-summary-copy svg{width:22px;height:22px;fill:currentColor}.selection-summary-copy span{font-size:10px;color:#999;line-height:1.4}
.selection-summary-copy:disabled{opacity:.4;cursor:default}.selection-summary-copy:focus-visible{outline:2px solid #00a67c;outline-offset:3px;border-radius:4px}
.selection-summary .selection-summary-note{margin:8px 0 0;color:#999;font-size:11px;line-height:1.5}.selection-summary-note:empty{display:none}
.selection-summary[hidden]{display:none!important}
/* Keep legacy price sources readable by the shared summary without displaying duplicate totals. */
.selection-summary-ready>footer:is(.receipt-total,.chopstick-total,.color-box-total,.hotel-key-total,.ticket-total,.folder-total,.sleeve-total){display:none!important}
.selection-summary-ready>.business-price-result,.selection-summary-ready>.business-price-placeholder,.selection-summary-ready>.pvc-price-result,.selection-summary-ready>.pvc-price-placeholder,.selection-summary-ready>.notebook-price-result,.selection-summary-ready>.notebook-price-placeholder,.selection-summary-ready>.belly-price-result,.selection-summary-ready>.belly-price-placeholder,.selection-summary-ready>.shaped-price-result,.selection-summary-ready>.shaped-price-placeholder{display:none!important}
.frame-config-dialog .mobile-quantity-footer,
dialog:is(#signageConfigDialog, #tissueConfigDialog, .frame-config-dialog) .mobile-quantity-inline {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch;
  gap: 0; margin: 8px 0; padding: 0; border: 0; background: transparent;
}
.frame-config-dialog .mobile-quantity-footer > label,
dialog:is(#signageConfigDialog, .frame-config-dialog) .mobile-quantity-inline > label {
  display: block; grid-area: 1 / 1; min-width: 0; margin: 0; padding: 0;
  font-size: 0; line-height: 0;
}
.frame-config-dialog .mobile-quantity-footer > label input,
dialog:is(#signageConfigDialog, #tissueConfigDialog, .frame-config-dialog) .mobile-quantity-inline input {
  box-sizing: border-box;
  width: 100%; min-width: 0; height: 44px; margin: 0; padding: 0 14px;
  border: 1px solid #ddd; border-right: 0; border-radius: 5px 0 0 5px;
  background: #fff; color: #222; font-size: 16px; line-height: normal;
}
.frame-config-dialog .mobile-quantity-footer > button[type="submit"],
dialog:is(#signageConfigDialog, #tissueConfigDialog, .frame-config-dialog) .mobile-quantity-inline > button[type="submit"] {
  grid-area: 1 / 2; width: auto; height: 44px; min-height: 44px; margin: 0; padding: 0 16px;
  border: 0; border-radius: 0 5px 5px 0; background: linear-gradient(100deg, #ffdf68, #ffca17);
  color: #272211; font-size: 15px; font-weight: 600; white-space: nowrap;
}
.frame-config-dialog .mobile-quantity-footer > p { grid-column: 1 / -1; margin: 6px 0 0; }
.frame-line > .mobile-quantity-inline { flex: 1; min-width: 0; }
.mobile-quantity-inline:focus-within { outline: 1px solid #a77b12; border-radius: 5px; }
.mobile-quantity-inline > label > span, .mobile-quantity-footer .sticky-quantity-caption { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
/* Product forms still populate these nodes for price, delivery and copying. */
.selection-summary-ready :is(
  [id$="PricingResult"], .artwork-price-result, .card-series-pricing-result,
  form + .frame-selection, .frame-selection > [id$="SelectionSummary"],
  .frame-selection > [id$="QuantitySummary"], .receipt-summary, [data-box-pending-summary],
  #signageSummary, .quote-quantity-note, #chopstickQuantityNote
) {
  display: none !important;
}
/* Once the actual quote is available, its estimate and timing are in the bottom panel.
   Validation and manual-review messages remain available when calculation fails. */
.selection-summary-ready[data-calculated-quote] :is(
  [id$="EstimateNote"], .artwork-price-note, p[class$="-pricing-hint"],
  p[class$="-pending"], .frame-config-footer > p,
  #signageFeedback, #largeFormatFeedback, #chopstickFeedback, #crystalFeedback
) {
  display: none !important;
}
.selection-summary-specs:not(:empty)::before,.selection-summary-counts:not(:empty)::before,.selection-summary-extra:not(:empty)::before{content:" – "}
.selection-summary-factory{display:none}
@media(max-height:500px){.selection-summary{padding:10px 18px}.selection-summary-body{max-height:17vh}.selection-summary-footer{padding-top:8px}}
.selection-summary-ready > .selection-summary {
  padding: 12px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid #e6e3dc;
  box-shadow: 0 -3px 14px rgb(48 38 18 / 4%);
}
.selection-summary-body { max-height: min(18dvh, 128px); }
.selection-summary .selection-summary-description {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline;
  column-gap: 8px; margin: 0; line-height: 1.5;
}
.selection-summary-product { font-size: 15px; font-weight: 650; color: #25251f; }
.selection-summary-counts {
  grid-area: 1 / 2; justify-self: end; max-width: 36vw; border-radius: 5px;
  padding: 1px 7px; background: #f5f3ed; color: #585342; font-size: 12px;
}
.selection-summary-specs { grid-column: 1 / -1; margin-top: 3px; font-size: 12px; color: #575951; }
.selection-summary-specs:empty, .selection-summary-specs::before,
.selection-summary-counts:empty, .selection-summary-counts::before, .selection-summary-extra { display: none; }
.selection-summary-info { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 6px 0 0; }
.selection-summary .selection-summary-info p { font-size: 11px; color: #686a60; }
.selection-summary-factory:not(:empty) { display: inline; color: #686a60; font-size: 11px; }
.selection-summary .selection-summary-footer {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px;
  margin-top: 9px; padding-top: 9px; border-color: #eceae4;
}
.selection-summary .selection-summary-amounts {
  flex: 1 0 100%; display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; column-gap: 8px; row-gap: 2px;
}
.selection-summary .selection-summary-total {
  min-width: 0; margin: 0; color: #595b52; font-size: 12px; line-height: 1.4;
}
.selection-summary .selection-summary-total > span { display: block; }
.selection-summary .selection-summary-total strong {
  display: block; margin-top: 1px; color: #ff3b24; font-size: clamp(19px, 5vw, 23px);
  font-weight: 650; line-height: 1.25; font-variant-numeric: tabular-nums;
}
.selection-summary .selection-summary-costs { margin: 0 0 1px; font-size: 11px; color: #64665e; }
.selection-summary-costs [data-selection-goods] { display: none; }
.selection-summary-footer > button {
  flex: 1 1 0; min-width: 0; min-height: 44px; margin: 0; padding: 7px 5px;
  border-radius: 9px; font-size: 13px; font-weight: 550; line-height: 1.3;
}
.selection-summary-footer .selection-summary-copy {
  flex-direction: row; gap: 5px; border: 1px solid #e5e3dc; color: #484940;
}
.selection-summary-copy svg { width: 15px; height: 15px; }
.selection-summary-copy span { color: inherit; font: inherit; }
.selection-summary-footer .selection-summary-save { background: #f7f6f2; border: 1px solid #e5e3dc; color: #403f37; }
.selection-summary-footer .selection-summary-order { flex-grow: 1.45; background: #ffcc26; color: #322810; font-weight: 650; }
.selection-summary .selection-summary-note { margin-top: 5px; font-size: 11px; color: #6c6e66; }
.frame-config-dialog [data-sale-range] { white-space: normal; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.selection-summary-ready label.frame-choice input[data-customer-craft]:enabled:not(:checked) + span {
  background: #fff;
  color: #222;
  border-color: #dedede;
}
.selection-summary-ready label.frame-choice input[data-customer-craft]:enabled:checked + span {
  background: var(--yellow, #ffcc00);
  border-color: var(--yellow, #ffcc00);
  color: #171717;
}
.selection-summary-ready label.frame-choice input[data-customer-craft]:focus-visible + span {
  outline: 2px solid #9a6c00;
  outline-offset: 2px;
}
@media (max-height: 540px) {
  .selection-summary-ready > .selection-summary { max-height: 48dvh; overflow-y: auto; }
  .selection-summary-body { max-height: none; }
}
