.product-camera-view:not([open]) { display: none; }
.product-camera-view[open] {
  position: fixed;
  inset: 0;
  z-index: 10000;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #171714;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
}
.product-camera-view::backdrop { background: #171714; }
.product-camera-shell { position: relative; isolation: isolate; width: 100%; height: 100%; background: #171714; }
.product-camera-shell > video { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: center; }
.product-camera-shell > video[hidden] { display: none; }
.product-camera-view button { font: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.product-camera-view button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.product-camera-preview { position: absolute; inset: 0; z-index: 1; touch-action: none; }
.product-camera-status[hidden], .product-camera-fallback[hidden] { display: none; }
.product-camera-status { position: absolute; top: 42%; left: 8%; right: 8%; padding: 12px 16px; border-radius: 12px; background: rgba(24, 22, 21, .82); color: #fff; text-align: center; font-size: 14px; }
.product-camera-fallback { position: absolute; top: 58%; left: 50%; width: max-content; max-width: calc(100% - 32px); padding: 10px 16px; border: 0; border-radius: 999px; transform: translateX(-50%); background: #fff; color: #24211f; font-size: 14px; cursor: pointer; }
.product-camera-header { position: absolute; z-index: 2; top: max(22px, env(safe-area-inset-top)); left: 28px; display: flex; align-items: center; gap: 46px; }
.product-camera-close, .product-camera-flash { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; background: transparent; color: #fff; filter: drop-shadow(0 2px 5px rgba(0,0,0,.65)); cursor: pointer; }
.product-camera-close svg, .product-camera-flash svg { width: 30px; height: 30px; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.product-camera-flash:disabled { opacity: .75; cursor: not-allowed; }
.product-camera-heading { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.product-camera-controls { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; box-sizing: border-box; padding: 0 35px max(34px, env(safe-area-inset-bottom)); color: #fff; }
.product-camera-instruction { margin: 0 0 9px; color: #fff; font-size: 16px; line-height: 20px; text-shadow: 0 1px 5px rgba(0,0,0,.85); }
.product-camera-thumbnails { display: flex; align-items: center; gap: 12px; height: 102px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.product-camera-thumbnails::-webkit-scrollbar { display: none; }
.product-camera-thumb { position: relative; flex: 0 0 75px; width: 75px; height: 100px; border-radius: 4px; background: rgba(20,19,18,.6); }
.product-camera-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }
.product-camera-thumb-remove { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid #fff; border-radius: 50%; transform: translate(7px, -5px); background: rgba(30,28,27,.9); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.product-camera-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 10px; min-height: 140px; margin-top: 14px; }
.product-camera-shutter { grid-column: 2; justify-self: center; display: grid; place-items: center; width: 136px; height: 136px; padding: 6px; border: 3px solid #fff; border-radius: 50%; background: rgba(0,0,0,.16); cursor: pointer; }
.product-camera-shutter span { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; }
.product-camera-shutter:disabled { opacity: .55; cursor: not-allowed; }
.product-camera-confirm { grid-column: 3; justify-self: end; display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 145px; height: 66px; padding: 0 20px; border: 0; border-radius: 999px; background: #fff; color: #151515; font-size: 18px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.product-camera-confirm svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.product-camera-confirm:disabled { opacity: .6; cursor: not-allowed; }
@media (max-width: 520px) {
  .product-camera-header { top: max(16px, env(safe-area-inset-top)); left: 18px; gap: 38px; }
  .product-camera-close, .product-camera-flash { width: 34px; height: 34px; }
  .product-camera-close svg, .product-camera-flash svg { width: 23px; height: 23px; }
  .product-camera-controls { padding: 0 22px max(22px, env(safe-area-inset-bottom)); }
  .product-camera-instruction { margin-bottom: 6px; font-size: 12px; line-height: 16px; }
  .product-camera-thumbnails { gap: 8px; height: 67px; }
  .product-camera-thumb { flex-basis: 49px; width: 49px; height: 65px; }
  .product-camera-thumb-remove { width: 21px; height: 21px; font-size: 17px; transform: translate(5px, -3px); }
  .product-camera-actions { gap: 6px; min-height: 91px; margin-top: 8px; }
  .product-camera-shutter { width: 88px; height: 88px; padding: 4px; border-width: 2px; }
  .product-camera-confirm { min-width: 94px; height: 44px; gap: 5px; padding: 0 11px; font-size: 12px; }
  .product-camera-confirm svg { width: 16px; height: 16px; }
}
@media (max-height: 700px) {
  .product-camera-controls { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .product-camera-thumbnails { height: 58px; }
  .product-camera-thumb { height: 56px; flex-basis: 42px; width: 42px; }
  .product-camera-actions { min-height: 75px; margin-top: 5px; }
  .product-camera-shutter { width: 72px; height: 72px; }
}
