.product-media-dialog{width:min(760px,calc(100vw - 32px));max-height:90dvh;overflow:auto;border:1px solid #b6a586;border-radius:20px;padding:24px;background:#fffdf9;color:#263a33}.product-media-dialog::backdrop{background:#10251fe0}.product-media-dialog img{display:block;width:100%;height:min(58dvh,560px);object-fit:contain;background:#f3f1ea}.product-media-dialog button{font:inherit;padding:10px 16px;min-height:44px;border:1px solid #829288;border-radius:10px;background:#edf1eb;color:#243e35;cursor:pointer}.product-media-dialog button:disabled{opacity:.45;cursor:default}.product-media-dialog .media-close{float:right}.media-controls{display:flex;justify-content:space-between;gap:16px}.browser-product-photo button{border:0;padding:0;width:100%;background:transparent;cursor:zoom-in}.product-image [data-product-media-url]{position:static;margin:8px;min-height:44px}.product-media-dialog h2{color:#263a33;font-size:24px}.product-media-dialog p{color:#465a50}

/* Detail controls occupy their own full-width rows below the uncropped photo. */
#product-dialog .product-image{flex-direction:column;align-items:stretch;justify-content:center;gap:10px;padding-bottom:12px}
#product-dialog .product-image>button{position:static;flex:0 0 auto;align-self:stretch;width:calc(100% - 24px);margin:0 12px;min-height:44px;padding:12px 16px;white-space:normal;text-align:center;font-size:14px;line-height:1.4}
#product-dialog .product-image>button[hidden]{display:none}
.product-media-dialog .media-description{font-size:15px;line-height:1.6;white-space:pre-line;margin:16px 0}
