/* Selection stays in normal document flow, above every card. */
.selection-panel{margin:20px 0 28px;border:1px solid #b3a081;border-radius:10px;background:#fcfaf6;color:#302b23;overflow:hidden;font-family:Arial,Helvetica,sans-serif;scroll-margin-top:90px}
.selection-panel summary{cursor:pointer;padding:16px;display:flex;align-items:center;justify-content:space-between;gap:14px;color:#193c32;list-style:none;min-height:64px}
.selection-panel summary::-webkit-details-marker{display:none}
.selection-summary-title{font-size:18px;font-weight:700;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.selection-summary-title:before{content:'▸';font-size:16px}
.selection-panel details[open] .selection-summary-title:before{content:'▾'}
.selection-count{display:inline-flex;background:#193c32;color:#fff;border-radius:50px;min-width:28px;min-height:28px;align-items:center;justify-content:center;padding:4px 7px;font-size:14px}
.selection-summary-total{text-align:right;max-width:50%;display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere}
.selection-summary-total small{font-size:10px;letter-spacing:.04em;line-height:1.4}
.selection-summary-total strong{font-size:19px;line-height:1.35}
.selection-note{font:12px/1.6 Arial,sans-serif!important;color:#655c4e;margin:0!important;padding:12px 16px;border-top:1px solid #d9d2c4;background:#f5f1e8}
.selection-body{padding:0 16px 16px}
.selection-list{list-style:none;padding:0;margin:0}
.selection-row{padding:16px 0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;border-top:1px solid #ded6c7;align-items:start}
.selection-product{min-width:0}.selection-product small{font-size:11px;color:#786747}.selection-product h3{font:600 17px/1.35 Arial,sans-serif;margin:4px 0;overflow-wrap:anywhere;color:#193c32}.selection-product p{font:13px/1.5 Arial,sans-serif;margin:4px 0;color:#655c4e}
.selection-controls{display:flex;flex-direction:column;gap:5px;align-items:center}
.selection-panel button{cursor:pointer;border:1px solid #a89169;background:#fcfaf6;color:#193c32;border-radius:6px;font:14px/1.2 Arial,sans-serif;min-height:44px;padding:8px 12px}
.selection-panel button:disabled{opacity:.4;cursor:default}
.selection-quantity{display:flex;align-items:center;gap:8px}
.selection-quantity button{width:44px;padding:6px;font-size:22px}.selection-quantity span{font-size:16px;min-width:20px;text-align:center}
.selection-remove{font-size:12px!important;min-height:36px!important;background:transparent!important;border-color:transparent!important;text-decoration:underline}
.selection-row-total{font:600 16px/1.4 Arial,sans-serif;grid-column:1/-1;text-align:right;color:#193c32}
.selection-bottom{border-top:2px solid #b3a081;padding-top:16px;display:flex;flex-direction:column;align-items:flex-end;gap:12px}.selection-bottom p{width:100%;margin:0;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:12px;line-height:1.5;color:#193c32}.selection-bottom strong{font-size:22px;text-align:right;max-width:60%}
.selection-empty{font:15px/1.6 Arial,sans-serif;margin:4px 0 8px}.selection-warning{padding:12px;background:#fff0d9;color:#6c4000;font:14px/1.5 Arial,sans-serif}
.selection-panel summary:focus-visible,.selection-panel button:focus-visible{outline:3px solid #86652c;outline-offset:3px}
@media(max-width:400px){.selection-panel summary{padding:12px;gap:10px;flex-wrap:wrap}.selection-summary-title{font-size:17px}.selection-summary-total{max-width:100%;text-align:left}.selection-body{padding:0 12px 12px}.selection-row{grid-template-columns:minmax(0,1fr)}.selection-controls{flex-direction:row;justify-content:space-between;align-items:center}.selection-row-total{grid-column:1}.selection-product h3{font-size:16px}.selection-bottom p{flex-direction:column;align-items:flex-start;gap:6px}.selection-bottom strong{max-width:100%;text-align:left}}

/* Accessible announcement when a time-limited card closes on an already-open page. */
.availability-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.selection-unavailable .selection-warning{border-left:3px solid #a89169;padding:8px 10px}

/* Order is opened by the balanced toolbar button, not an in-flow selection bar. */
dialog.selection-dialog{width:min(680px,calc(100% - 24px));max-height:85dvh;overflow:auto;padding:0;margin:auto;border:1px solid #b3a081;border-radius:10px;color:#302b23;background:#fcfaf6}
dialog.selection-dialog:not([open]){display:none}dialog.selection-dialog::backdrop{background:#08233199}
.selection-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px}
.selection-dialog-heading h2{margin:0;padding:0;border:0;color:#193c32;text-align:left;font:600 22px/1.3 Arial,sans-serif}
.selection-dialog-summary{padding:0 16px 16px}.selection-dialog-summary .selection-summary-total{max-width:none;text-align:left}
.selection-dialog .selection-body{padding-top:0}.selection-dialog .selection-close{flex-shrink:0}
@media(max-width:400px){.selection-dialog-heading{padding:12px}.selection-dialog-heading h2{font-size:20px}.selection-dialog-summary{padding:0 12px 12px}}
@media print{dialog.selection-dialog{display:none!important}}

/* Main-card order names keep a readable Portuguese reference beneath translations. */
.selection-product h3.selection-translated-name{font-size:18px}
.selection-product p.selection-original-name{font-size:16px;line-height:1.45;color:#514b3f;margin:4px 0 8px;overflow-wrap:anywhere}
