.product-size-options { margin: 16px 0; color: #43454a; font-weight: 400; }
.product-size-options[hidden] { display: none; }
.product-size-options fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.product-size-options legend { font-size: 14px; margin-bottom: 10px; }
.product-size-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.product-size-choice { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 12px; min-height: 60px; border: 1px solid #e4e4e7; border-radius: 16px; background: #f4f4f5; cursor: pointer; font-size: 14px; }
.product-size-choice small { font-size: 12px; color: #62656b; }
.product-size-choice.is-selected { background: #202124; border-color: #202124; color: #fff; }
.product-size-choice.is-selected small { color: #eee; }
.product-size-choice.is-unavailable { opacity: .45; cursor: default; }
.product-size-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.product-size-choice:focus-within { outline: 2px solid #e76b28; outline-offset: 2px; }
.owner-size-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(85px, .7fr) auto auto; gap: 8px; align-items: center; margin: 8px 0; }
.owner-size-row input { min-width: 0; width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 10px; font: inherit; }
.owner-size-row label { display: flex; align-items: center; gap: 4px; font-size: 12px; }
.owner-size-row input[type=checkbox] { width: 18px; height: 18px; }
.owner-size-row button { min-width: 44px; min-height: 44px; border: 0; border-radius: 10px; background: #f3f3f4; color: #444; }
.owner-size-editor { grid-column: 1 / -1; margin: 12px 0; }
.owner-size-editor > p { font-size: 12px; color: #777; }

@media (max-width: 520px) {
  .owner-size-row { grid-template-columns: minmax(0, 1fr) minmax(90px, .8fr) 44px; }
  .owner-size-row > label { grid-column: 1 / 3; grid-row: 2; min-height: 32px; }
  .owner-size-row > button { grid-column: 3; grid-row: 1 / 3; }
  .owner-size-row > input { min-height: 44px; box-sizing: border-box; }
}


.owner-size-headings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(85px, .7fr) 44px; gap: 8px; color: #777; font-size: 13px; }
.rc8-product-step-pricing .owner-size-editor { margin: 0; }
.rc8-product-step-pricing .owner-size-editor > span,
.rc8-product-step-pricing .owner-size-editor > p { display: none; }
.rc8-product-step-pricing .owner-size-headings,
.rc8-product-step-pricing .owner-size-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; }
.rc8-product-step-pricing .owner-size-row > label { grid-column: 1 / 3; grid-row: 2; min-height: 28px; }
.rc8-product-step-pricing .owner-size-row > button { grid-column: 3; grid-row: 1 / 3; }
.rc8-product-step-pricing .owner-size-row > input { min-height: 56px; padding: 12px; border-radius: 14px; font-size: 18px; }
.rc8-product-step-pricing .owner-size-row input[type=checkbox] { width: 18px; height: 18px; min-height: 18px; padding: 0; border-radius: 4px; }
.rc8-product-step-pricing #owner-add-size { margin-top: 12px; min-height: 48px; padding: 12px 16px; border: 1px solid #ddd; border-radius: 12px; color: #333; background: #f5f5f4; font: inherit; }
.rc8-review-size { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #eee; }
.rc8-review-size strong { font-size: 18px; }

.rc8-product-step-pricing .owner-size-row:only-child > button { visibility: hidden; }


/* Keep size, price and the active quantity control together. */
.has-size-groups #sheet-price { display: none !important; }
.product-size-legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.product-size-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.product-size-group { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid #e4e4e7; border-radius: 16px; background: #f6f6f5; }
.product-size-group.is-selected { background: #202124; border-color: #202124; color: #fff; }
.product-size-group .product-size-choice { flex: 1; min-width: 0; min-height: 44px; justify-content: center; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 15px; }
.product-size-group .product-size-choice span { overflow-wrap: anywhere; }
.product-size-group .product-size-choice small { font-size: 13px; }
.product-size-group .rc8-product-qty-row { flex: 0 0 auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.product-size-group .rc8-product-qty-copy { display: none; }
.product-size-group .rc8-product-qty-picker { color: #202124; grid-template-columns: 40px 24px 40px; gap: 2px; padding: 3px; }
.product-size-group .rc8-product-qty-picker button { width: 40px; height: 40px; }
.product-size-group .rc8-product-qty-picker strong { min-width: 24px; }

.has-size-groups #rc8-product-purchase > .rc8-product-qty-row { display: none; }
.product-size-group .rc8-product-qty-picker button:disabled { opacity: .4; cursor: default; }
