/* Photo edits are separate from the product's visibility settings. */
.inventory-product-photo { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #f4f4f4; flex: none; }
.product-photo-section { padding-bottom: 22px; border-bottom: 1px solid #eee; min-width: 0; }
.product-photo-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.product-photo-heading h3 { margin: 0; font-size: 15px; font-weight: 600; }
.product-photo-heading > span { color: #777; font-size: 12px; }
.product-photo-editor { display: flex; align-items: center; gap: 18px; }
.product-photo-preview { display: grid; place-items: center; flex: none; width: 128px; height: 128px; background: #f6f6f6; border: 1px solid #eee; border-radius: 12px; overflow: hidden; }
.product-photo-preview > img { width: 100%; height: 100%; object-fit: contain; }
.product-photo-preview > span { display: grid; justify-items: center; gap: 8px; color: #888; font-size: 12px; }
.product-photo-preview .icon { width: 26px; height: 26px; }
.product-photo-controls { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.product-photo-controls .button { min-height: 44px; padding: 10px 16px; }
.product-photo-controls p { margin: 9px 0 0; color: #777; font-size: 11px; line-height: 1.5; }
.product-photo-controls .product-photo-fallback { color: #555; }
.product-photo-remove, .product-photo-retry { min-height: 44px; padding: 8px 0; border: 0; background: none; font: inherit; font-size: 13px; color: #555; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.product-photo-remove:disabled { opacity: .5; cursor: wait; }
.product-photo-draft { margin-top: 14px; display: grid; gap: 10px; }
.product-photo-draft > span { font-size: 12px; color: #666; overflow-wrap: anywhere; }
.product-photo-draft > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.product-photo-draft .button { min-height: 44px; }
.product-photo-notice { margin: 12px 0 0; color: #256b40; font-size: 13px; }
#product-photo-error { margin-top: 12px; color: #a62525; font-size: 13px; line-height: 1.5; }
.product-photo-retry { display: block; color: inherit; }
.product-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.product-dialog > .product-dialog-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.product-dialog > .pricing-dialog-heading, .product-dialog > .pricing-dialog-actions { flex: none; }
.product-dialog #product-settings-form { display: grid; gap: 18px; }
.product-details-section { min-width: 0; padding-bottom: 22px; border-bottom: 1px solid #eee; }
.product-details-fields { display: grid; gap: 15px; }
.product-details-fields label { display: grid; min-width: 0; gap: 7px; color: #444; font-size: 13px; font-weight: 500; }
.product-details-fields input, .product-details-fields textarea { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; border: 1px solid #d5d5d5; border-radius: 8px; padding: 11px 12px; color: #222; background: #fff; font: inherit; font-size: 14px; font-weight: 400; line-height: 1.5; }
.product-details-fields textarea { resize: vertical; max-height: 180px; }
.product-details-fields input:focus-visible, .product-details-fields textarea:focus-visible { outline: 2px solid #222; outline-offset: 2px; }
.product-details-fields input:disabled, .product-details-fields textarea:disabled { background: #f7f7f7; color: #777; }
.product-details-fields label > span { color: #777; font-size: 11px; font-weight: 400; line-height: 1.5; }
.product-details-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 16px; }
.product-details-actions p { margin: 0 auto 0 0; color: #256b40; font-size: 13px; }
.product-details-actions .button, .product-details-conflict-actions .button { min-height: 44px; }
.product-details-error { margin: 12px 0 0; color: #a62525; font-size: 13px; line-height: 1.5; }
.product-details-retry { display: block; min-height: 44px; padding: 8px 0; border: 0; background: none; font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.product-details-conflict { margin-top: 14px; padding: 14px; border: 1px solid #e1ddd3; border-radius: 8px; background: #faf9f6; font-size: 12px; line-height: 1.5; }
.product-details-conflict p { margin: 0; }
.product-details-latest { margin-top: 12px; }
.product-details-latest dl { margin: 8px 0 0; display: grid; gap: 3px; }
.product-details-latest dt { color: #777; }
.product-details-latest dd { margin: 0 0 6px; overflow-wrap: anywhere; }
.product-details-conflict-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media (max-width: 760px) {
  .product-details-fields input, .product-details-fields textarea { font-size: 16px; }
}
@media (max-width: 380px) {
  .product-photo-editor { gap: 12px; }
  .product-photo-preview { width: 96px; height: 96px; }
  .product-photo-controls .button { padding: 9px 12px; }
}
