.product-options-edit { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; margin: 8px 0; padding: 8px 12px; color: #303746; background: #f7f8fa; border: 1px solid #e0e3e9; border-radius: 8px; font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1.4; cursor: pointer; }
.product-options-edit span { font-size: 20px; line-height: 1; }
.product-options-edit:hover { background: #eff1f5; border-color: #b6becb; }
body.product-options-open { overflow: hidden; }
.product-options-dialog { width: min(560px, calc(100% - 32px)); max-width: none; max-height: min(820px, calc(100dvh - 48px)); margin: auto; padding: 0; overflow: hidden; color: #202735; background: #fff; border: 1px solid #e4e7ed; border-radius: 20px; box-shadow: 0 24px 80px #18202f30; font-family: Poppins, sans-serif; }
.product-options-dialog[open] { display: flex; flex-direction: column; }
.product-options-dialog::backdrop { background: rgb(21 28 40 / 46%); }
.product-options-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 24px 20px; border-bottom: 1px solid #edf0f4; }
.product-options-heading h2 { margin: 0 0 6px; font-size: 22px; font-weight: 600; letter-spacing: -.035em; line-height: 1.3; }
.product-options-heading h2:focus { outline: none; }
.product-options-heading p { margin: 0; color: #6e7785; font-size: 12px; line-height: 1.6; }
.product-options-close { flex: 0 0 36px; width: 36px; height: 36px; padding: 0; display: grid; place-items: center; color: #677181; background: #f4f5f7; border: 0; border-radius: 50%; font: 400 24px/1 sans-serif; cursor: pointer; }
.product-options-body { min-height: 0; padding: 24px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.product-options-product { display: flex; align-items: center; gap: 14px; padding-bottom: 24px; }
.product-options-product img { flex: 0 0 64px; width: 64px; height: 64px; object-fit: contain; border: 1px solid #e9ebef; border-radius: 10px; }
.product-options-product img[hidden] { display: none; }
.product-options-product h3 { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.product-options-product p { margin: 5px 0 0; color: #727b88; font-size: 12px; line-height: 1.5; }
.product-options-fields { display: grid; gap: 24px; }
.product-options-fields fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.product-options-fields legend { margin: 0 0 10px; padding: 0; font-size: 13px; font-weight: 600; }
.product-options-fields legend small { margin-left: 8px; color: #7c8592; font-size: 11px; font-weight: 400; }
.product-option-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.product-option-choices.is-scrollable { max-height: 168px; overflow-y: auto; padding: 3px; margin: -3px; scrollbar-width: thin; }
.product-option-choices.is-short { grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); }
.product-option-choice { min-width: 0; position: relative; cursor: pointer; }
.product-option-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.product-option-choice > span { min-height: 48px; height: 100%; padding: 13px 36px 13px 14px; display: flex; flex-direction: column; justify-content: center; gap: 4px; color: #46505f; background: #fff; border: 1px solid #dfe3e9; border-radius: 10px; transition: border-color .15s, background-color .15s; }
.product-option-choice b { font-size: 13px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.product-option-choice small { color: #74808e; font-size: 11px; line-height: 1.5; }
.product-option-choice i { position: absolute; right: 12px; top: 17px; width: 14px; height: 14px; border: 1px solid #ccd2dc; border-radius: 50%; pointer-events: none; }
.product-option-choice:has(input:checked) > span { color: #202735; background: color-mix(in srgb, var(--store-accent, #334155) 5%, white); border-color: var(--store-accent, #334155); box-shadow: inset 0 0 0 1px var(--store-accent, #334155); }
.product-option-choice input:checked ~ i { border: 4px solid var(--store-accent, #334155); background: #fff; }
.product-option-choice:has(input:focus-visible) > span { outline: 3px solid color-mix(in srgb, var(--store-accent, #334155) 40%, transparent); outline-offset: 3px; }
.product-option-choice:hover:not(.is-unavailable) > span { border-color: var(--store-accent, #334155); }
.product-option-choice.is-unavailable { cursor: not-allowed; }
.product-option-choice.is-unavailable > span { color: #8c95a2; background: #f7f8fa; border-style: dashed; }
.product-option-choice.is-unavailable i { opacity: .4; }
.product-option-list { grid-template-columns: minmax(0, 1fr); }
.product-options-search { display: grid; gap: 7px; margin-bottom: 18px; font-size: 12px; font-weight: 500; }
.product-options-search input, .product-options-group-search { min-width: 0; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #dce1e8; border-radius: 9px; background: #fff; color: #202735; font-family: inherit; font-size: 13px; }
.product-options-group-search { margin-bottom: 12px; }
.product-options-empty { color: #737d8b; font-size: 13px; }
.product-options-footer { flex-shrink: 0; padding: 18px 24px 24px; background: #fff; border-top: 1px solid #e9edf2; }
.product-options-status { margin: 0 0 14px; color: #845421; font-size: 12px; line-height: 1.6; }
.product-options-status:empty { display: none; }
.product-options-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.product-options-total b { display: block; font-size: 13px; font-weight: 500; }
.product-options-total small { display: block; margin-top: 4px; color: #7c8592; font-size: 11px; }
.product-options-total strong { font-size: 24px; font-weight: 600; letter-spacing: -.035em; line-height: 1.3; overflow-wrap: anywhere; }
.product-options-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.product-options-actions button { min-height: 48px; height: auto; padding: 12px 16px; border-radius: 10px; font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.product-options-cancel { color: #505a69; background: #fff; border: 1px solid #dde2e9; }
.product-options-cancel:hover { background: #f6f7f9; }
.product-options-dialog button:disabled { cursor: wait; opacity: .55; }
@media (max-width: 600px) {
  .product-options-dialog { width: 100%; max-height: calc(100dvh - 16px); margin: auto 0 0; border-radius: 20px 20px 0 0; border-bottom: 0; }
  .product-options-heading { padding: 20px; }
  .product-options-heading h2 { font-size: 20px; }
  .product-options-body { padding: 20px; }
  .product-options-footer { padding: 16px 20px max(20px, env(safe-area-inset-bottom)); }
  .product-options-actions { gap: 8px; }
  .product-options-total strong { font-size: 22px; }
}
