
.ptar-ar-wrapper{
  position:relative;
  width:100%;
  height:100dvh;
  min-height:520px;
  max-height:100dvh;
  background:#000;
  overflow:hidden;
  isolation:isolate;
  touch-action:manipulation;
}
.ptar-ar-scene{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  z-index:1!important;
  background:transparent!important;
}
.ptar-ar-wrapper video{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  z-index:0!important;
}
.ptar-ar-wrapper .a-canvas,
.ptar-ar-wrapper canvas.a-canvas{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  z-index:2!important;
  background:transparent!important;
  pointer-events:none!important;
}
.ptar-ar-ui{
  position:absolute;
  z-index:50;
  inset:0;
  pointer-events:none;
  font-family:Arial,sans-serif;
  touch-action:none;
}

.ptar-ar-status{
  position:absolute;
  top:calc(12px + env(safe-area-inset-top));
  left:50%;
  transform:translateX(-50%);
  z-index:70;
  max-width:calc(100% - 120px);
  box-sizing:border-box;
  background:rgba(0,0,0,.62);
  color:#fff;
  border-radius:18px;
  padding:9px 14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  text-align:center;
  pointer-events:none;
}
.ptar-ar-topbar{
  position:absolute;
  top:calc(10px + env(safe-area-inset-top));
  left:12px;
  right:12px;
  z-index:75;
  display:flex;
  justify-content:space-between;
  align-items:center;
  pointer-events:none;
}
.ptar-ar-topbar button{
  pointer-events:auto;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
.ptar-ar-camera,
.ptar-ar-close{
  width:46px;height:46px;
  border:0;border-radius:50%;
  background:rgba(0,0,0,.52);
  color:#fff;
  font-size:25px;
  line-height:46px;
  text-align:center;
  backdrop-filter:blur(8px);
}
.ptar-ar-close{font-size:30px}
.ptar-ar-start{
  position:absolute;
  left:50%;
  bottom:calc(22px + env(safe-area-inset-bottom));
  transform:translateX(-50%);
  z-index:80;
  pointer-events:auto!important;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  min-width:210px;
  min-height:58px;
  padding:16px 28px;
  font-size:17px;
  font-weight:700;
  border:0;
  border-radius:999px;
  cursor:pointer;
}
.ptar-ar-bottom{
  position:absolute;
  left:50%;
  bottom:calc(14px + env(safe-area-inset-bottom));
  transform:translateX(-50%);
  z-index:80;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  pointer-events:none;
}
.ptar-ar-mode{
  display:flex;
  gap:3px;
  padding:3px;
  border-radius:999px;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(8px);
  pointer-events:auto;
}
.ptar-ar-mode-btn{
  border:0;
  border-radius:999px;
  background:transparent;
  color:#fff;
  padding:6px 12px;
  font-size:11px;
  font-weight:700;
  min-width:62px;
  min-height:34px;
  pointer-events:auto;
  touch-action:manipulation;
}
.ptar-ar-mode-btn.is-active{background:rgba(255,255,255,.94);color:#111}
.ptar-ar-shutter{
  width:70px;
  height:70px;
  padding:0;
  border-radius:50%;
  border:5px solid rgba(255,255,255,.95);
  background:
    radial-gradient(circle at 50% 50%,
      #fff 0 23px,
      rgba(255,255,255,.16) 24px 100%);
  box-shadow:0 4px 22px rgba(0,0,0,.38);
  color:transparent;
  font-size:0;
  line-height:0;
  pointer-events:auto;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
.ptar-ar-shutter.is-video{
  background:
    radial-gradient(circle at 50% 50%,
      #ef4444 0 23px,
      rgba(255,255,255,.16) 24px 100%);
}
.ptar-ar-shutter.is-recording{
  border-color:#ef4444;
  background:
    radial-gradient(circle at 50% 50%,
      #ef4444 0 15px,
      rgba(255,255,255,.16) 16px 100%);
}
.ptar-ar-bottom-note{
  color:#fff;
  font-size:11px;
  padding:5px 10px;
  border-radius:12px;
  background:rgba(0,0,0,.42);
  white-space:nowrap;
}
.ptar-ar-accessories{
  position:absolute;
  left:50%;
  bottom:calc(112px + env(safe-area-inset-bottom));
  transform:translateX(-50%);
  z-index:85;
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  justify-content:center;
  width:calc(100% - 24px);
  max-width:900px;
  pointer-events:auto!important;
  touch-action:manipulation;
}
.ptar-ar-accessory{
  min-height:42px;
  padding:9px 13px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.94);
  color:#111;
  box-shadow:0 4px 14px rgba(0,0,0,.22);
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
.ptar-ar-accessory.is-selected{outline:3px solid #8d5cff}
.ptar-ar-reopen{
  position:absolute;
  left:50%;top:50%;
  transform:translate(-50%,-50%);
  z-index:100;
  border:0;border-radius:999px;
  padding:14px 24px;min-width:160px;font-weight:700;
}
@supports not (height:100dvh){
  .ptar-ar-wrapper{height:100vh;max-height:100vh}
}
@media (min-width:768px){
  .ptar-ar-start{bottom:22px;min-width:220px;min-height:58px}
  .ptar-ar-bottom{bottom:12px}
  .ptar-ar-accessories{bottom:118px}
}
@media (max-width:767px){
  .ptar-ar-status{top:calc(10px + env(safe-area-inset-top));font-size:13px;max-width:calc(100% - 115px)}
  .ptar-ar-topbar{top:calc(8px + env(safe-area-inset-top));left:9px;right:9px}
  .ptar-ar-camera,.ptar-ar-close{width:44px;height:44px;line-height:44px}
  .ptar-ar-start{bottom:calc(18px + env(safe-area-inset-bottom));min-width:220px;min-height:58px}
  .ptar-ar-bottom{bottom:calc(12px + env(safe-area-inset-bottom))}
  .ptar-ar-shutter{width:64px;height:64px}
  
  .ptar-ar-accessories{bottom:calc(108px + env(safe-area-inset-bottom));width:94%}
  .ptar-ar-bottom-note{display:none}
}
