/* Floating selection controls and native finish dialog, matching the planner board. */
#selection-actions {
  width:min(720px,calc(100% - 40px)); max-width:720px; max-height:calc(100dvh - 165px);
  left:50%; bottom:20px; transform:translateX(-50%); padding:0; overflow:visible;
  color:#292929; background:#fff; border:1px solid #e3e3e3; border-radius:10px;
  box-shadow:0 14px 40px #00000029; font-size:12px;
}
#selection-actions .selection-heading {display:flex;align-items:center;gap:14px;padding:16px 20px;border-bottom:1px solid #eaeaea;background:#fff;border-radius:10px 10px 0 0;}
#selection-actions .selection-heading>img {width:48px;height:48px;object-fit:contain;flex-shrink:0;border:0;background:transparent;}
#selection-actions .selection-heading>div {min-width:0;flex:1;}
#selection-actions .selection-heading strong {font-size:15px;line-height:1.4;font-weight:500;color:#242424;}
#selection-actions .selection-heading p {font-size:11px;line-height:1.45;color:#777;margin:5px 0 0;}
#selection-actions button {font-family:inherit;font-size:11px;line-height:1.3;font-weight:400;min-height:36px;padding:8px 12px;border:1px solid #e3e3e3;border-radius:6px;background:#fff;color:#414141;box-shadow:none;}
#selection-actions button:hover {background:#f5f5f3;border-color:#b5b9be;}
#selection-actions button:focus-visible,#selection-actions summary:focus-visible {outline:2px solid #607089;outline-offset:3px;}
#selection-actions button:disabled {opacity:.45;cursor:not-allowed;}
#selection-actions button[aria-pressed=true] {background:#607089;border-color:#607089;color:#fff;}
#selection-actions .selection-close {align-self:flex-start;border:0;padding:0;width:28px;min-height:28px;font-size:23px;color:#777;}
#selection-actions .selection-position,#selection-actions .selection-footer,#selection-actions .selection-main-actions {display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 20px;border:0;margin:0;background:#fff;}
#selection-actions .selection-position+.selection-footer {padding-top:0;}
#selection-actions .rotate-control {display:flex;align-items:center;gap:6px;margin-right:6px;padding-right:12px;border-right:1px solid #e6e6e6;}
#selection-actions .rotate-control>span {color:#777;font-size:10px;margin-right:2px;}
#selection-actions .rotate-control button {font-size:11px!important;min-width:38px;min-height:36px;padding:7px 9px!important;display:flex;gap:2px;align-items:center;justify-content:center;}
#selection-actions .rotate-control svg {width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;}
#selection-actions .rotate-control small {font-size:8px;}
#selection-actions .free-rotate {position:relative;}
#selection-actions .free-rotate summary {font-size:10px;padding:10px 6px;cursor:pointer;color:#666;}
#selection-actions .free-rotate[open] {position:absolute;z-index:8;bottom:60px;padding:12px;background:white;border:1px solid #ddd;box-shadow:0 6px 24px #0002;border-radius:8px;}
#selection-actions .free-rotate input {width:64px;}
#selection-actions .arrangement-controls {background:#fff;border:0;border-bottom:1px solid #eaeaea;}
#selection-actions .selection-section-heading {padding:10px 20px 0;color:#777;font-size:10px;}
#selection-actions .selection-section-heading button {padding:0;min-height:24px;background:transparent;border:0;color:#607089;}
#selection-actions .individual-controls {border:0;}
#selection-actions .remove-piece {color:#ae4c4c;border-color:#e9cece;background:#fff;}
#selection-actions .selection-scope {display:flex;gap:0;background:#f3f3f3;border:1px solid #e6e6e6;border-radius:6px;padding:3px;flex-shrink:0;}
#selection-actions .selection-scope button {min-height:30px;border:0;background:transparent;padding:6px 10px;font-size:10px;}
#selection-actions .selection-scope button[aria-pressed=true] {background:#607089;color:#fff;}
#selection-actions .selection-secondary,#selection-actions .selection-unlink,#selection-actions .fire-pit-controls,#selection-actions .lid-controls,#selection-actions .swing-height {display:flex;align-items:center;gap:8px;padding:12px 20px;margin:0;background:#f1f0ec;border:0;border-top:1px solid #eaeaea;font-size:11px;border-radius:0 0 10px 10px;}
#selection-actions .selection-secondary>span,#selection-actions .selection-unlink>span {flex:1;color:#777;line-height:1.5;}
#selection-actions .selection-secondary button,#selection-actions .selection-unlink button {background:transparent;border:0;color:#596b85;}
#selection-actions .fire-pit-controls {flex-wrap:wrap;}
#selection-actions .fire-pit-controls>.lid-controls {flex:1;padding:0;border:0;background:transparent;}
#selection-actions .lid-controls>span,#selection-actions .fire-pit-controls>span {margin-right:auto;color:#555;}
#selection-actions .fire-note {margin:0;flex-basis:100%;font-size:10px;color:#777;}
#selection-actions .selection-options-modal {
  position:fixed;inset:auto;margin:0;left:var(--options-left,24px);top:var(--options-top,96px);
  width:var(--options-width,700px);height:var(--options-height,720px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);
  padding:0;border:1px solid #e3e3e3;border-radius:10px;overflow:hidden;background:#fff;color:#292929;
  box-shadow:0 20px 70px #0003;font-family:inherit;
}
#selection-actions .selection-options-modal[open] {display:grid;grid-template-rows:auto minmax(0,1fr) auto;}
#selection-actions .selection-options-modal::backdrop {background:rgba(83,86,90,.35);}
#selection-actions .selection-options-header {display:flex;align-items:center;gap:14px;padding:18px 24px;border-bottom:1px solid #eaeaea;}
#selection-actions .selection-options-header>img {width:56px;height:56px;object-fit:contain;flex-shrink:0;}
#selection-actions .selection-options-header>div {flex:1;min-width:0;}
#selection-actions .selection-options-header h2 {margin:0;font-size:17px;font-weight:500;line-height:1.4;letter-spacing:0;}
#selection-actions .selection-options-header p {margin:5px 0 0;font-size:11px;line-height:1.4;color:#777;}
#selection-actions .selection-options-close {align-self:flex-start;width:28px;min-height:28px;padding:0;border:0;background:transparent;font-size:24px;color:#777;}
#selection-actions #selection-details.selection-options-body {display:flex;flex-direction:column;gap:24px;padding:22px 24px;max-height:none;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;}
#selection-actions .selection-options-body>label {display:block;margin:0;font-size:12px;line-height:1.5;font-weight:500;color:#333;}
#selection-actions .selection-options-body select {display:block;width:100%;margin:8px 0 14px;padding:10px 12px;min-height:38px;border:1px solid #dedede;border-radius:6px;background:#fff;font:inherit;font-weight:400;color:#555;}
#selection-actions .finish-swatches {display:flex;flex-wrap:wrap;gap:16px 10px;margin-top:14px;}
#selection-actions .finish-swatches button {display:flex;flex-direction:column;align-items:center;gap:7px;width:58px;min-height:0;padding:0;border:0;background:transparent;color:#777;font-size:9px;line-height:1.35;text-align:center;}
#selection-actions .finish-swatch-sample {position:relative;display:block;width:36px;height:36px;border:1px solid #00000012;border-radius:50%;box-shadow:0 0 0 3px #fff;}
#selection-actions .finish-swatch-sample img {width:100%;height:100%;object-fit:cover;border-radius:inherit;}
#selection-actions .finish-swatches button[aria-pressed=true] {background:transparent;color:#414141;}
#selection-actions .finish-swatches button[aria-pressed=true] .finish-swatch-sample {outline:2px solid #607089;outline-offset:3px;}
#selection-actions .finish-swatches button[aria-pressed=true] .finish-swatch-sample:after {content:'✓';position:absolute;inset:0;display:grid;place-items:center;color:white;font-size:18px;text-shadow:0 1px 3px #0009;}
#selection-actions .finish-swatches.fabric {gap:16px 12px;}
#selection-actions .finish-swatches.fabric button {width:64px;}
#selection-actions .finish-swatches.fabric .finish-swatch-sample {width:48px;height:48px;border-radius:3px;}
#selection-actions .cushion-controls {padding-top:22px;border-top:1px solid #eaeaea;}
#selection-actions .cushion-controls .small {font-size:10px;color:#888;line-height:1.5;}
#selection-actions .fabric-picker {margin-top:16px;}
#selection-actions .fabric-picker summary {cursor:pointer;font-size:11px;color:#607089;}
#selection-actions .pad-swatches {display:flex;flex-wrap:wrap;gap:16px 12px;padding:16px 0 0;max-height:none;overflow:visible;}
#selection-actions .pad-swatches button {display:flex;flex-direction:column;align-items:center;gap:7px;width:64px;padding:0;border:0;background:transparent;color:#777;font-size:9px;line-height:1.35;}
#selection-actions .pad-swatches button img {width:48px;height:48px;object-fit:cover;border-radius:3px;border:1px solid #00000012;}
#selection-actions .pad-swatches button[aria-pressed=true] {background:transparent;color:#414141;}
#selection-actions .pad-swatches button[aria-pressed=true] img {outline:2px solid #607089;outline-offset:3px;}
#selection-actions .selection-options-footer {display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 24px;background:#f9f9f9;border-top:1px solid #eaeaea;}
#selection-actions .selection-options-footer>span {color:#888;font-size:10px;line-height:1.5;}
#selection-actions .selection-options-done {min-width:88px;background:#607089;border-color:#607089;color:#fff;}
#selection-actions .selection-options-done:hover {background:#4c5e79;color:#fff;}
@media(max-width:900px) {
 #selection-actions {width:calc(100% - 24px);max-height:49dvh;bottom:12px;left:50%;border-radius:10px;}
 #selection-actions.editing-finishes {max-height:49dvh;}
 #selection-actions .selection-heading {padding:12px 14px;gap:10px;}
 #selection-actions .selection-heading strong {font-size:13px;}
 #selection-actions .selection-position,#selection-actions .selection-footer,#selection-actions .selection-main-actions {padding:10px 14px;gap:6px;}
 #selection-actions .selection-scope {flex-direction:column;}
 #selection-actions .selection-scope button {min-height:25px;padding:5px 8px;}
}
@media(max-width:540px) {
 #selection-actions .selection-heading>img {width:38px;height:38px;}
 #selection-actions .selection-heading p {font-size:10px;}
 #selection-actions .selection-heading strong {font-size:12px;}
 #selection-actions .rotate-control {gap:3px;padding-right:8px;margin-right:0;}
 #selection-actions button {font-size:10px;padding:7px 9px;}
 #selection-actions .selection-options-header {padding:15px 16px;gap:10px;}
 #selection-actions .selection-options-header h2 {font-size:15px;}
 #selection-actions .selection-options-header>img {width:44px;height:44px;}
 #selection-actions #selection-details.selection-options-body {padding:20px 16px;}
 #selection-actions .selection-options-footer {padding:14px 16px;}
 #selection-actions .selection-secondary,#selection-actions .selection-unlink,#selection-actions .fire-pit-controls,#selection-actions .lid-controls {padding:10px 14px;}
}
/* The small-screen inspector is a draggable bottom sheet in the workspace. */
#selection-actions [data-shelf-handle] {display:none;}
@media(max-width:900px) {
 #selection-actions,#selection-actions.editing-finishes {left:0;bottom:0;transform:none;width:100%;max-width:none;height:var(--shelf-height,auto);max-height:82%;border-radius:16px 16px 0 0;overflow:hidden;display:flex;flex-direction:column;}
 #selection-actions[hidden] {display:none;}
 #selection-actions [data-shelf-handle] {display:flex;align-items:center;justify-content:center;flex-shrink:0;height:44px;min-height:44px;width:100%;padding:0;border:0;border-radius:16px 16px 0 0;background:#fff;touch-action:none;cursor:ns-resize;user-select:none;}
 #selection-actions [data-shelf-handle]::before {content:'';display:block;width:40px;height:4px;border-radius:8px;background:#c9ccce;}
 #selection-actions [data-shelf-handle]:hover {background:#f9f9f8;}
 #selection-actions .selection-sheet-content {overflow:auto;overscroll-behavior:contain;min-height:0;flex:1;}
 #selection-actions .selection-heading {border-radius:0;}
 #selection-actions .selection-main-actions button,#selection-actions .selection-footer button,#selection-actions [data-action=settings] {min-height:44px;}
 #selection-actions .selection-main-actions {padding-bottom:calc(12px + env(safe-area-inset-bottom,0px));}
 #selection-actions .selection-options-modal .selection-options-close {min-width:44px;min-height:44px;}
 #selection-actions .selection-options-done {min-height:44px;}
}
#selection-actions .selection-heading>.selection-scope {flex:0 0 auto;margin:0;}
#selection-actions .selection-scope button[aria-pressed=true] {color:#fff!important;}
@media(max-width:900px) {
 #selection-actions .selection-sheet-content>.selection-heading {position:relative;top:0;}
}

/* Larger PDP image lets customers check the actual selected finish. */
#selection-actions .selection-options-header{align-items:center;gap:20px;padding:16px 24px}#selection-actions .selection-options-header>img{width:180px;height:160px;object-fit:contain;background:#fff;border-radius:4px}#selection-actions .selection-options-header h2{font-size:16px}#selection-actions .selection-options-close{align-self:flex-start}
@media(max-width:540px){#selection-actions .selection-options-header{padding:12px 16px;gap:12px}#selection-actions .selection-options-header>img{width:116px;height:110px}#selection-actions .selection-options-header h2{font-size:13px}}
/* Product-page finish families: a rectangular material sample above its price. */
#selection-actions .selection-options-price-line {display:flex;align-items:baseline;flex-wrap:wrap;gap:7px;margin-top:12px;line-height:1.5;}
#selection-actions #selection-options-price {font-size:16px;font-weight:500;color:#53565a;}
#selection-actions #selection-options-price-label {font-size:10px;color:#777;font-weight:400;}
#selection-actions .selection-options-price-line:has(#selection-options-price:empty) {display:none;}
#selection-actions .pdp-frame-picker {background:#fff;border:0;margin:0;color:#53565a;}
#selection-actions .pdp-frame-heading {display:flex;align-items:baseline;gap:8px;padding:16px 12px;background:#f0f0f0;font-size:12px;line-height:1.5;}
#selection-actions .pdp-frame-heading strong {font-size:13px;font-weight:500;color:#53565a;}
#selection-actions .pdp-frame-group {padding:13px 10px 16px;border-bottom:1px solid #ddd;}
#selection-actions .pdp-frame-group:last-child {border-bottom:0;padding-bottom:8px;}
#selection-actions .pdp-frame-group h3 {font-size:12px;font-weight:500;line-height:1.5;margin:0 0 4px;color:#53565a;letter-spacing:0;}
#selection-actions .pdp-frame-group>p {font-size:12px;font-weight:400;line-height:1.6;color:#53565a;margin:0 0 10px;}
#selection-actions .pdp-frame-price-note {font-size:10px;color:#777;margin:10px 10px 0;line-height:1.5;}
#selection-actions .pdp-frame-swatches {display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start;}
#selection-actions button.pdp-frame-card {position:relative;display:flex;flex-direction:column;width:66px;min-height:44px;gap:0;padding:0;border:1px solid #ddd;border-radius:3px;background:#fff;color:#53565a;font-weight:400;overflow:visible;}
#selection-actions button.pdp-frame-card:hover {border-color:#75797d;background:#fff;}
#selection-actions button.pdp-frame-card[aria-pressed=true] {background:#fff;color:#53565a;border-color:#53565a;outline:1px solid #53565a;outline-offset:2px;}
#selection-actions .pdp-frame-sample {display:block;width:100%;height:28px;border-radius:2px 2px 0 0;overflow:hidden;}
#selection-actions .pdp-frame-sample img {display:block;width:100%;height:100%;object-fit:cover;}
#selection-actions .pdp-frame-price {display:block;width:100%;font-size:9px;line-height:18px;white-space:nowrap;text-align:center;background:#fff;border-radius:0 0 2px 2px;}
#selection-actions .pdp-frame-name {position:absolute;left:50%;bottom:calc(100% + 7px);transform:translateX(-50%);z-index:2;padding:4px 6px;border-radius:3px;background:#53565a;color:#fff;font-size:10px;white-space:nowrap;pointer-events:none;visibility:hidden;}
#selection-actions .pdp-frame-card:hover .pdp-frame-name,#selection-actions .pdp-frame-card:focus-visible .pdp-frame-name {visibility:visible;}
#selection-actions .pdp-frame-card:disabled {opacity:.4;cursor:not-allowed;}
@media(max-width:540px) {
 #selection-actions .pdp-frame-group {padding-left:2px;padding-right:2px;}
 #selection-actions .pdp-frame-heading {padding:12px 10px;}
 #selection-actions .pdp-frame-swatches {gap:8px;}
 #selection-actions button.pdp-frame-card {width:62px;min-height:44px;}
 #selection-actions .pdp-frame-group>p {font-size:11px;}
}
