# Browser camera permission prompt

> A bubble that drops from the address bar to ask for camera and microphone; the call turns on or gets blocked by your choice.

- Category: [Overlays](https://library.aimran.es/components/overlays)
- Built with: HTML + CSS
- Live editor: https://library.aimran.es/blocks/uv-ov-site-permission
- Library: AIMRAN Library (https://library.aimran.es), free, no sign-up, by Aimran Oukham

## Where to use it

Video apps live or die by the permission prompt, and this mock lets you design around it. Allowing turns the lobby tile into a live preview and adds a recording dot to the address bar, while blocking shows how to change it. It suits onboarding guides, help pages and product tours.

The main color is used for buttons and the avatar, the second one for the recording dot. Change the domain and the request text, and reopen the bubble from the address bar icon or from the blocked tile to test every path.

## Code

### HTML

```html
<div class="uvq13-prm" data-p="ask"><div class="tb"><span class="dots" aria-hidden="true"><i></i><i></i><i></i></span><div class="ad"><button type="button" class="fire" aria-haspopup="dialog" aria-label="Site permissions"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 7h10M18 7h2M4 17h4M12 17h8"/><circle cx="16" cy="7" r="2"/><circle cx="10" cy="17" r="2"/></svg></button><span class="url">videollamada.app/equipo</span><span class="cam" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="7" width="12" height="10" rx="2"/><path d="M15 10.5l6-3v9l-6-3"/></svg><i></i></span></div></div><div class="lob"><div class="vid"><span class="st s0"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="7" width="12" height="10" rx="2"/><path d="M15 10.5l6-3v9l-6-3M3 3l18 18"/></svg><span>Camera off</span></span><span class="st s2"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="8.5"/><path d="M6 6l12 12"/></svg><span>You blocked the camera</span><button type="button" class="chg">Change permission</button></span><span class="me" aria-hidden="true"><i class="hd"></i><i class="bd"></i><i class="lv"><b></b><b></b><b></b></i></span><small class="tag">You</small></div><p class="mt"><b>Team meeting</b><small>10:30 · 4 personas esperando</small></p><button type="button" class="jn">Join now</button></div><div class="po" role="dialog" aria-modal="true" aria-labelledby="uvq13-prm-t"><button type="button" class="x" aria-label="Close"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 7l10 10M17 7L7 17"/></svg></button><p class="ti" id="uvq13-prm-t">This site wants to</p><p class="dm">videollamada.app</p><p class="rw"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="7" width="12" height="10" rx="2"/><path d="M15 10.5l6-3v9l-6-3"/></svg><span>Use your camera</span></p><p class="rw"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="3" width="6" height="11" rx="3"/><path d="M5.5 11a6.5 6.5 0 0 0 13 0M12 17.5V21"/></svg><span>Use your microphone</span></p><div class="ac"><button type="button" data-v="on">Allow while visiting the site</button><button type="button" class="b2" data-v="on">Allow this time</button><button type="button" data-v="no">Don't allow</button></div></div></div>
```

### CSS

```css
.uvq13-prm {
  --c1: #2563eb;
  --c2: #ef4444;
  --s: 16px;
  /* tamaño */
  --k: 1;
  /* velocidad */
  --fg: #1d1d1f;
  /* texto */
  --bg: #f5f5f7;
  /* fondo */
}

.uvq13-prm {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  width: 22em;
  height: 18em;
  border-radius: 1.2em;
  overflow: hidden;
  background: color-mix(in srgb,var(--fg) 3%,var(--bg));
  box-shadow: 0 0 0 1px color-mix(in srgb,var(--fg) 9%,transparent);
}

.uvq13-prm .tb {
  display: flex;
  align-items: center;
  gap: .7em;
  padding: .55em .7em;
  background: color-mix(in srgb,var(--fg) 6%,var(--bg));
  border-bottom: 1px solid color-mix(in srgb,var(--fg) 9%,transparent);
}

.uvq13-prm .dots {
  display: flex;
  gap: .3em;
}

.uvq13-prm .dots i {
  width: .55em;
  height: .55em;
  border-radius: 50%;
  background: color-mix(in srgb,var(--fg) 20%,transparent);
}

.uvq13-prm .ad {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .3em;
  height: 2.3em;
  padding: 0 .3em;
  border-radius: 2em;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--fg) 9%,transparent);
  font-size: .74em;
}

.uvq13-prm .fire {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: grid;
  place-items: center;
  flex: none;
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  transition: background calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq13-prm .fire:hover {
  background: color-mix(in srgb,var(--fg) 6%,transparent);
}

.uvq13-prm.open .fire {
  color: var(--c1);
  background: color-mix(in srgb,var(--c1) 14%,transparent);
}

.uvq13-prm .fire svg,.uvq13-prm .cam svg {
  width: 1.15em;
  height: 1.15em;
}

.uvq13-prm .url {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq13-prm .cam {
  position: relative;
  display: none;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
}

.uvq13-prm .cam i {
  position: absolute;
  right: .25em;
  top: .3em;
  width: .45em;
  height: .45em;
  border-radius: 50%;
  background: var(--c2);
  animation: uvq13-prm-d calc(1.2s / var(--k)) ease-in-out infinite;
}

.uvq13-prm[data-p="on"] .cam {
  display: grid;
}

.uvq13-prm .lob {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: .6em .9em;
  align-items: center;
  padding: 1.1em;
}

.uvq13-prm .vid {
  position: relative;
  grid-row: span 2;
  display: grid;
  place-items: center;
  aspect-ratio: 4/3;
  border-radius: .8em;
  overflow: hidden;
  color: #cbd5e1;
  background: #1f2430;
}

.uvq13-prm .st {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: .35em;
  padding: .5em;
  text-align: center;
  font-size: .68em;
}

.uvq13-prm .st>svg {
  width: 1.8em;
  height: 1.8em;
}

.uvq13-prm[data-p="ask"] .s0,.uvq13-prm[data-p="no"] .s2 {
  display: flex;
}

.uvq13-prm .chg {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  margin-top: .2em;
  padding: .4em .8em;
  border-radius: 2em;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,.16);
}

.uvq13-prm .me {
  position: absolute;
  inset: 0;
  display: none;
  background: radial-gradient(120% 90% at 30% 20%,#64748b,#1e293b);
}

.uvq13-prm[data-p="on"] .me {
  display: block;
  animation: uvq13-prm-i calc(0.5s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq13-prm .me i {
  position: absolute;
  display: block;
}

.uvq13-prm .me .hd {
  left: 50%;
  top: 22%;
  width: 2.4em;
  height: 2.4em;
  margin-left: -1.2em;
  border-radius: 50%;
  background: #e0b896;
  animation: uvq13-prm-b calc(3s / var(--k)) ease-in-out infinite;
}

.uvq13-prm .me .bd {
  left: 50%;
  bottom: -1.4em;
  width: 5.6em;
  height: 3.8em;
  margin-left: -2.8em;
  border-radius: 50% 50% 0 0;
  background: var(--c1);
}

.uvq13-prm .me .lv {
  right: .5em;
  bottom: .5em;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: .9em;
}

.uvq13-prm .me .lv b {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: #4ade80;
  transform-origin: 50% 100%;
  animation: uvq13-prm-l calc(0.5s / var(--k)) ease-in-out infinite alternate;
}

.uvq13-prm .me .lv b:nth-child(2) {
  animation-delay: -.2s;
}

.uvq13-prm .me .lv b:nth-child(3) {
  animation-delay: -.35s;
}

.uvq13-prm .tag {
  position: absolute;
  left: .5em;
  top: .45em;
  padding: .15em .5em;
  border-radius: .4em;
  font-size: .6em;
  color: #fff;
  background: rgba(0,0,0,.45);
}

.uvq13-prm .mt {
  display: grid;
  margin: 0;
  align-self: end;
}

.uvq13-prm .mt b {
  font-size: .85em;
}

.uvq13-prm .mt small {
  font-size: .68em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq13-prm .jn {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  justify-self: start;
  align-self: start;
  padding: .6em 1em;
  border-radius: 2em;
  font-size: .78em;
  font-weight: 700;
  color: #fff;
  background: var(--c1);
}

.uvq13-prm .po {
  position: absolute;
  left: 3.1em;
  top: 3.2em;
  z-index: 5;
  width: 13.2em;
  padding: .9em 1em 1em;
  box-sizing: border-box;
  border-radius: .8em;
  background: color-mix(in srgb,var(--fg) 2%,var(--bg));
  box-shadow: 0 0 0 1px color-mix(in srgb,var(--fg) 9%,transparent),0 1.6em 3.2em -1.2em rgba(0,0,0,.5);
  background: var(--bg);
  transform-origin: 1.4em 0;
  transform: translateY(-.4em) scale(.96);
  opacity: 0;
  pointer-events: none;
  transition: transform calc(0.25s / var(--k)) cubic-bezier(.22,1,.36,1),opacity calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq13-prm.open .po {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.uvq13-prm .po::before {
  content: "";
  position: absolute;
  left: 1.15em;
  top: -.4em;
  width: .8em;
  height: .8em;
  background: inherit;
  transform: rotate(45deg);
  box-shadow: -1px -1px 0 color-mix(in srgb,var(--fg) 9%,transparent);
}

.uvq13-prm .po .x {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  right: .45em;
  top: .45em;
  display: grid;
  place-items: center;
  width: 1.8em;
  height: 1.8em;
  border-radius: 50%;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq13-prm .po .x svg {
  width: .9em;
  height: .9em;
}

.uvq13-prm .ti {
  margin: 0;
  padding-right: 1.6em;
  font-size: .82em;
  font-weight: 700;
}

.uvq13-prm .dm {
  margin: .1em 0 .7em;
  font-size: .72em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq13-prm .rw {
  display: flex;
  align-items: center;
  gap: .6em;
  margin: 0 0 .45em;
  font-size: .8em;
}

.uvq13-prm .rw svg {
  width: 1.25em;
  height: 1.25em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq13-prm .ac {
  display: grid;
  gap: .35em;
  margin-top: .8em;
}

.uvq13-prm .ac button {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding: .55em .8em;
  border-radius: 2em;
  font-size: .74em;
  font-weight: 650;
  color: var(--c1);
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--fg) 9%,transparent);
  transition: background calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq13-prm .ac button:hover {
  background: color-mix(in srgb,var(--c1) 9%,transparent);
}

.uvq13-prm .ac button:active {
  transform: scale(.98);
}

.uvq13-prm button:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

@keyframes uvq13-prm-d {
  50% {
    opacity: .35;
  }
}

@keyframes uvq13-prm-i {
  from {
    opacity: 0;
  }
}

@keyframes uvq13-prm-b {
  50% {
    transform: translateY(.12em) rotate(3deg);
  }
}

@keyframes uvq13-prm-l {
  from {
    transform: scaleY(.3);
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq13-prm,.uvq13-prm *,.uvq13-prm *::before,.uvq13-prm *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
```

### JavaScript

```js
document.querySelectorAll(".uvq13-prm").forEach(el => {
  const fire=el.querySelector(".fire"),scr=el.querySelector(".scr"),pnl=el.querySelector(".po");let tms=[];const later=(f,ms)=>tms.push(setTimeout(f,ms));
const foc=(t,ms)=>later(()=>{const n=typeof t==="string"?el.querySelector(t):t;n&&n.focus({preventScroll:true})},ms||0);
const isOpen=()=>el.classList.contains("open");
const open=u=>{if(isOpen())return;el.classList.add("open");pnl.inert=false;fire&&fire.setAttribute("aria-expanded","true");u&&foc('.po .b2',250)};
const close=()=>{if(!isOpen())return;el.classList.remove("open");pnl.inert=true;fire&&fire.setAttribute("aria-expanded","false");;fire&&fire.focus({preventScroll:true})};
fire&&fire.addEventListener("click",()=>isOpen()?close():open(true));scr&&scr.addEventListener("click",()=>close());
el.addEventListener("keydown",e=>{if(!isOpen())return;if(e.key==="Escape"){e.preventDefault();e.stopPropagation();close()}else if(e.key==="Tab"){const f=[...pnl.querySelectorAll('button:not([disabled]),input:not([disabled]),textarea,a[href],[tabindex="0"]')].filter(x=>x.getClientRects().length);if(!f.length){e.preventDefault();return}const a=f[0],z=f[f.length-1],ac=document.activeElement;if(e.shiftKey&&(ac===a||!pnl.contains(ac))){e.preventDefault();z.focus()}else if(!e.shiftKey&&(ac===z||!pnl.contains(ac))){e.preventDefault();a.focus()}}});
pnl.inert=true;later(()=>open(false),700);el.querySelectorAll(".po .ac button").forEach(b=>b.addEventListener("click",()=>{el.dataset.p=b.dataset.v;close()}));el.querySelector(".po .x").addEventListener("click",close);el.querySelector(".chg").addEventListener("click",()=>open(true));return()=>tms.forEach(clearTimeout)
});
```

### React

```tsx
// @ts-nocheck: setup() es JavaScript del DOM sin tipos, el mismo de la pestaña JS.
import { useEffect, useRef, type CSSProperties } from "react";

const css = `
.uvq13-prm {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  width: 22em;
  height: 18em;
  border-radius: 1.2em;
  overflow: hidden;
  background: color-mix(in srgb,var(--fg) 3%,var(--bg));
  box-shadow: 0 0 0 1px color-mix(in srgb,var(--fg) 9%,transparent);
}

.uvq13-prm .tb {
  display: flex;
  align-items: center;
  gap: .7em;
  padding: .55em .7em;
  background: color-mix(in srgb,var(--fg) 6%,var(--bg));
  border-bottom: 1px solid color-mix(in srgb,var(--fg) 9%,transparent);
}

.uvq13-prm .dots {
  display: flex;
  gap: .3em;
}

.uvq13-prm .dots i {
  width: .55em;
  height: .55em;
  border-radius: 50%;
  background: color-mix(in srgb,var(--fg) 20%,transparent);
}

.uvq13-prm .ad {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .3em;
  height: 2.3em;
  padding: 0 .3em;
  border-radius: 2em;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--fg) 9%,transparent);
  font-size: .74em;
}

.uvq13-prm .fire {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: grid;
  place-items: center;
  flex: none;
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  transition: background calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq13-prm .fire:hover {
  background: color-mix(in srgb,var(--fg) 6%,transparent);
}

.uvq13-prm.open .fire {
  color: var(--c1);
  background: color-mix(in srgb,var(--c1) 14%,transparent);
}

.uvq13-prm .fire svg,.uvq13-prm .cam svg {
  width: 1.15em;
  height: 1.15em;
}

.uvq13-prm .url {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq13-prm .cam {
  position: relative;
  display: none;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
}

.uvq13-prm .cam i {
  position: absolute;
  right: .25em;
  top: .3em;
  width: .45em;
  height: .45em;
  border-radius: 50%;
  background: var(--c2);
  animation: uvq13-prm-d calc(1.2s / var(--k)) ease-in-out infinite;
}

.uvq13-prm[data-p="on"] .cam {
  display: grid;
}

.uvq13-prm .lob {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: .6em .9em;
  align-items: center;
  padding: 1.1em;
}

.uvq13-prm .vid {
  position: relative;
  grid-row: span 2;
  display: grid;
  place-items: center;
  aspect-ratio: 4/3;
  border-radius: .8em;
  overflow: hidden;
  color: #cbd5e1;
  background: #1f2430;
}

.uvq13-prm .st {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: .35em;
  padding: .5em;
  text-align: center;
  font-size: .68em;
}

.uvq13-prm .st>svg {
  width: 1.8em;
  height: 1.8em;
}

.uvq13-prm[data-p="ask"] .s0,.uvq13-prm[data-p="no"] .s2 {
  display: flex;
}

.uvq13-prm .chg {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  margin-top: .2em;
  padding: .4em .8em;
  border-radius: 2em;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,.16);
}

.uvq13-prm .me {
  position: absolute;
  inset: 0;
  display: none;
  background: radial-gradient(120% 90% at 30% 20%,#64748b,#1e293b);
}

.uvq13-prm[data-p="on"] .me {
  display: block;
  animation: uvq13-prm-i calc(0.5s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq13-prm .me i {
  position: absolute;
  display: block;
}

.uvq13-prm .me .hd {
  left: 50%;
  top: 22%;
  width: 2.4em;
  height: 2.4em;
  margin-left: -1.2em;
  border-radius: 50%;
  background: #e0b896;
  animation: uvq13-prm-b calc(3s / var(--k)) ease-in-out infinite;
}

.uvq13-prm .me .bd {
  left: 50%;
  bottom: -1.4em;
  width: 5.6em;
  height: 3.8em;
  margin-left: -2.8em;
  border-radius: 50% 50% 0 0;
  background: var(--c1);
}

.uvq13-prm .me .lv {
  right: .5em;
  bottom: .5em;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: .9em;
}

.uvq13-prm .me .lv b {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: #4ade80;
  transform-origin: 50% 100%;
  animation: uvq13-prm-l calc(0.5s / var(--k)) ease-in-out infinite alternate;
}

.uvq13-prm .me .lv b:nth-child(2) {
  animation-delay: -.2s;
}

.uvq13-prm .me .lv b:nth-child(3) {
  animation-delay: -.35s;
}

.uvq13-prm .tag {
  position: absolute;
  left: .5em;
  top: .45em;
  padding: .15em .5em;
  border-radius: .4em;
  font-size: .6em;
  color: #fff;
  background: rgba(0,0,0,.45);
}

.uvq13-prm .mt {
  display: grid;
  margin: 0;
  align-self: end;
}

.uvq13-prm .mt b {
  font-size: .85em;
}

.uvq13-prm .mt small {
  font-size: .68em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq13-prm .jn {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  justify-self: start;
  align-self: start;
  padding: .6em 1em;
  border-radius: 2em;
  font-size: .78em;
  font-weight: 700;
  color: #fff;
  background: var(--c1);
}

.uvq13-prm .po {
  position: absolute;
  left: 3.1em;
  top: 3.2em;
  z-index: 5;
  width: 13.2em;
  padding: .9em 1em 1em;
  box-sizing: border-box;
  border-radius: .8em;
  background: color-mix(in srgb,var(--fg) 2%,var(--bg));
  box-shadow: 0 0 0 1px color-mix(in srgb,var(--fg) 9%,transparent),0 1.6em 3.2em -1.2em rgba(0,0,0,.5);
  background: var(--bg);
  transform-origin: 1.4em 0;
  transform: translateY(-.4em) scale(.96);
  opacity: 0;
  pointer-events: none;
  transition: transform calc(0.25s / var(--k)) cubic-bezier(.22,1,.36,1),opacity calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq13-prm.open .po {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.uvq13-prm .po::before {
  content: "";
  position: absolute;
  left: 1.15em;
  top: -.4em;
  width: .8em;
  height: .8em;
  background: inherit;
  transform: rotate(45deg);
  box-shadow: -1px -1px 0 color-mix(in srgb,var(--fg) 9%,transparent);
}

.uvq13-prm .po .x {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  right: .45em;
  top: .45em;
  display: grid;
  place-items: center;
  width: 1.8em;
  height: 1.8em;
  border-radius: 50%;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq13-prm .po .x svg {
  width: .9em;
  height: .9em;
}

.uvq13-prm .ti {
  margin: 0;
  padding-right: 1.6em;
  font-size: .82em;
  font-weight: 700;
}

.uvq13-prm .dm {
  margin: .1em 0 .7em;
  font-size: .72em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq13-prm .rw {
  display: flex;
  align-items: center;
  gap: .6em;
  margin: 0 0 .45em;
  font-size: .8em;
}

.uvq13-prm .rw svg {
  width: 1.25em;
  height: 1.25em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq13-prm .ac {
  display: grid;
  gap: .35em;
  margin-top: .8em;
}

.uvq13-prm .ac button {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding: .55em .8em;
  border-radius: 2em;
  font-size: .74em;
  font-weight: 650;
  color: var(--c1);
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--fg) 9%,transparent);
  transition: background calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq13-prm .ac button:hover {
  background: color-mix(in srgb,var(--c1) 9%,transparent);
}

.uvq13-prm .ac button:active {
  transform: scale(.98);
}

.uvq13-prm button:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

@keyframes uvq13-prm-d {
  50% {
    opacity: .35;
  }
}

@keyframes uvq13-prm-i {
  from {
    opacity: 0;
  }
}

@keyframes uvq13-prm-b {
  50% {
    transform: translateY(.12em) rotate(3deg);
  }
}

@keyframes uvq13-prm-l {
  from {
    transform: scaleY(.3);
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq13-prm,.uvq13-prm *,.uvq13-prm *::before,.uvq13-prm *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
`;

// Interacción en JavaScript del DOM: la misma que en la pestaña JS.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function setup(el: any) {
  const fire=el.querySelector(".fire"),scr=el.querySelector(".scr"),pnl=el.querySelector(".po");let tms=[];const later=(f,ms)=>tms.push(setTimeout(f,ms));
const foc=(t,ms)=>later(()=>{const n=typeof t==="string"?el.querySelector(t):t;n&&n.focus({preventScroll:true})},ms||0);
const isOpen=()=>el.classList.contains("open");
const open=u=>{if(isOpen())return;el.classList.add("open");pnl.inert=false;fire&&fire.setAttribute("aria-expanded","true");u&&foc('.po .b2',250)};
const close=()=>{if(!isOpen())return;el.classList.remove("open");pnl.inert=true;fire&&fire.setAttribute("aria-expanded","false");;fire&&fire.focus({preventScroll:true})};
fire&&fire.addEventListener("click",()=>isOpen()?close():open(true));scr&&scr.addEventListener("click",()=>close());
el.addEventListener("keydown",e=>{if(!isOpen())return;if(e.key==="Escape"){e.preventDefault();e.stopPropagation();close()}else if(e.key==="Tab"){const f=[...pnl.querySelectorAll('button:not([disabled]),input:not([disabled]),textarea,a[href],[tabindex="0"]')].filter(x=>x.getClientRects().length);if(!f.length){e.preventDefault();return}const a=f[0],z=f[f.length-1],ac=document.activeElement;if(e.shiftKey&&(ac===a||!pnl.contains(ac))){e.preventDefault();z.focus()}else if(!e.shiftKey&&(ac===z||!pnl.contains(ac))){e.preventDefault();a.focus()}}});
pnl.inert=true;later(()=>open(false),700);el.querySelectorAll(".po .ac button").forEach(b=>b.addEventListener("click",()=>{el.dataset.p=b.dataset.v;close()}));el.querySelector(".po .x").addEventListener("click",close);el.querySelector(".chg").addEventListener("click",()=>open(true));return()=>tms.forEach(clearTimeout)
}

export default function OvSitePermission() {
  const ref = useRef<HTMLDivElement>(null);

  useEffect(() => {
    const el = ref.current?.firstElementChild;
    return el ? setup(el) : undefined;
  }, []);

  return (
    <>
      <style>{css}</style>
      <div
        ref={ref} style={{
          "--c1": "#2563eb",
          "--c2": "#ef4444",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq13-prm" data-p="ask"><div className="tb"><span className="dots" aria-hidden="true"><i></i><i></i><i></i></span><div className="ad"><button type="button" className="fire" aria-haspopup="dialog" aria-label="Site permissions"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><path d="M4 7h10M18 7h2M4 17h4M12 17h8" /><circle cx="16" cy="7" r="2" /><circle cx="10" cy="17" r="2" /></svg></button><span className="url">videollamada.app/equipo</span><span className="cam" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><rect x="3" y="7" width="12" height="10" rx="2" /><path d="M15 10.5l6-3v9l-6-3" /></svg><i></i></span></div></div><div className="lob"><div className="vid"><span className="st s0"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><rect x="3" y="7" width="12" height="10" rx="2" /><path d="M15 10.5l6-3v9l-6-3M3 3l18 18" /></svg><span>Camera off</span></span><span className="st s2"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="8.5" /><path d="M6 6l12 12" /></svg><span>You blocked the camera</span><button type="button" className="chg">Change permission</button></span><span className="me" aria-hidden="true"><i className="hd"></i><i className="bd"></i><i className="lv"><b></b><b></b><b></b></i></span><small className="tag">You</small></div><p className="mt"><b>Team meeting</b><small>10:30 · 4 personas esperando</small></p><button type="button" className="jn">Join now</button></div><div className="po" role="dialog" aria-modal="true" aria-labelledby="uvq13-prm-t"><button type="button" className="x" aria-label="Close"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><path d="M7 7l10 10M17 7L7 17" /></svg></button><p className="ti" id="uvq13-prm-t">This site wants to</p><p className="dm">videollamada.app</p><p className="rw"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><rect x="3" y="7" width="12" height="10" rx="2" /><path d="M15 10.5l6-3v9l-6-3" /></svg><span>Use your camera</span></p><p className="rw"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><rect x="9" y="3" width="6" height="11" rx="3" /><path d="M5.5 11a6.5 6.5 0 0 0 13 0M12 17.5V21" /></svg><span>Use your microphone</span></p><div className="ac"><button type="button" data-v="on">Allow while visiting the site</button><button type="button" className="b2" data-v="on">Allow this time</button><button type="button" data-v="no">Don't allow</button></div></div></div>
      </div>
    </>
  );
}
```

## Prompt for AI assistants

Paste this into ChatGPT, Claude, Cursor, v0 or Lovable to adapt the block to your stack (Tailwind, Vue, Svelte…):

````text
I want to add the “Browser camera permission prompt” block (Overlays) from AIMRAN Library to my project.

## What it is
A bubble that drops from the address bar to ask for camera and microphone; the call turns on or gets blocked by your choice.

## Chosen settings
- Main color: #2563eb
- Secondary color: #ef4444
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "Este sitio quiere"

## What I need
1. Add it to my project with the same look and animation as the reference code: same sizes, colours, radii, shadows, timings and easing.
2. It is built with plain HTML and CSS (the reference wraps it in a React component with its CSS). If my project uses something else (Vue, Svelte, Astro, plain HTML…), translate it without losing any behaviour. If I use Tailwind, turn the styles into classes; if not, keep the CSS in its own file.
3. Expose the settings above as props (or CSS variables) with those values as defaults.
4. Make it work well on phones: nothing that depends only on hover, touch targets of at least 44 px and no overflow on 320 px screens.
5. Make it look right in light and dark mode.
6. Keep it accessible: semantic HTML, roles and aria-* where needed, visible focus and keyboard support.
7. Respect prefers-reduced-motion: with reduced motion, no big animations but the same end result.

## Reference code
```tsx
// @ts-nocheck: setup() es JavaScript del DOM sin tipos, el mismo de la pestaña JS.
import { useEffect, useRef, type CSSProperties } from "react";

const css = `
.uvq13-prm {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  width: 22em;
  height: 18em;
  border-radius: 1.2em;
  overflow: hidden;
  background: color-mix(in srgb,var(--fg) 3%,var(--bg));
  box-shadow: 0 0 0 1px color-mix(in srgb,var(--fg) 9%,transparent);
}

.uvq13-prm .tb {
  display: flex;
  align-items: center;
  gap: .7em;
  padding: .55em .7em;
  background: color-mix(in srgb,var(--fg) 6%,var(--bg));
  border-bottom: 1px solid color-mix(in srgb,var(--fg) 9%,transparent);
}

.uvq13-prm .dots {
  display: flex;
  gap: .3em;
}

.uvq13-prm .dots i {
  width: .55em;
  height: .55em;
  border-radius: 50%;
  background: color-mix(in srgb,var(--fg) 20%,transparent);
}

.uvq13-prm .ad {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .3em;
  height: 2.3em;
  padding: 0 .3em;
  border-radius: 2em;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--fg) 9%,transparent);
  font-size: .74em;
}

.uvq13-prm .fire {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: grid;
  place-items: center;
  flex: none;
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  transition: background calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq13-prm .fire:hover {
  background: color-mix(in srgb,var(--fg) 6%,transparent);
}

.uvq13-prm.open .fire {
  color: var(--c1);
  background: color-mix(in srgb,var(--c1) 14%,transparent);
}

.uvq13-prm .fire svg,.uvq13-prm .cam svg {
  width: 1.15em;
  height: 1.15em;
}

.uvq13-prm .url {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq13-prm .cam {
  position: relative;
  display: none;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
}

.uvq13-prm .cam i {
  position: absolute;
  right: .25em;
  top: .3em;
  width: .45em;
  height: .45em;
  border-radius: 50%;
  background: var(--c2);
  animation: uvq13-prm-d calc(1.2s / var(--k)) ease-in-out infinite;
}

.uvq13-prm[data-p="on"] .cam {
  display: grid;
}

.uvq13-prm .lob {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: .6em .9em;
  align-items: center;
  padding: 1.1em;
}

.uvq13-prm .vid {
  position: relative;
  grid-row: span 2;
  display: grid;
  place-items: center;
  aspect-ratio: 4/3;
  border-radius: .8em;
  overflow: hidden;
  color: #cbd5e1;
  background: #1f2430;
}

.uvq13-prm .st {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: .35em;
  padding: .5em;
  text-align: center;
  font-size: .68em;
}

.uvq13-prm .st>svg {
  width: 1.8em;
  height: 1.8em;
}

.uvq13-prm[data-p="ask"] .s0,.uvq13-prm[data-p="no"] .s2 {
  display: flex;
}

.uvq13-prm .chg {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  margin-top: .2em;
  padding: .4em .8em;
  border-radius: 2em;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,.16);
}

.uvq13-prm .me {
  position: absolute;
  inset: 0;
  display: none;
  background: radial-gradient(120% 90% at 30% 20%,#64748b,#1e293b);
}

.uvq13-prm[data-p="on"] .me {
  display: block;
  animation: uvq13-prm-i calc(0.5s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq13-prm .me i {
  position: absolute;
  display: block;
}

.uvq13-prm .me .hd {
  left: 50%;
  top: 22%;
  width: 2.4em;
  height: 2.4em;
  margin-left: -1.2em;
  border-radius: 50%;
  background: #e0b896;
  animation: uvq13-prm-b calc(3s / var(--k)) ease-in-out infinite;
}

.uvq13-prm .me .bd {
  left: 50%;
  bottom: -1.4em;
  width: 5.6em;
  height: 3.8em;
  margin-left: -2.8em;
  border-radius: 50% 50% 0 0;
  background: var(--c1);
}

.uvq13-prm .me .lv {
  right: .5em;
  bottom: .5em;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: .9em;
}

.uvq13-prm .me .lv b {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: #4ade80;
  transform-origin: 50% 100%;
  animation: uvq13-prm-l calc(0.5s / var(--k)) ease-in-out infinite alternate;
}

.uvq13-prm .me .lv b:nth-child(2) {
  animation-delay: -.2s;
}

.uvq13-prm .me .lv b:nth-child(3) {
  animation-delay: -.35s;
}

.uvq13-prm .tag {
  position: absolute;
  left: .5em;
  top: .45em;
  padding: .15em .5em;
  border-radius: .4em;
  font-size: .6em;
  color: #fff;
  background: rgba(0,0,0,.45);
}

.uvq13-prm .mt {
  display: grid;
  margin: 0;
  align-self: end;
}

.uvq13-prm .mt b {
  font-size: .85em;
}

.uvq13-prm .mt small {
  font-size: .68em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq13-prm .jn {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  justify-self: start;
  align-self: start;
  padding: .6em 1em;
  border-radius: 2em;
  font-size: .78em;
  font-weight: 700;
  color: #fff;
  background: var(--c1);
}

.uvq13-prm .po {
  position: absolute;
  left: 3.1em;
  top: 3.2em;
  z-index: 5;
  width: 13.2em;
  padding: .9em 1em 1em;
  box-sizing: border-box;
  border-radius: .8em;
  background: color-mix(in srgb,var(--fg) 2%,var(--bg));
  box-shadow: 0 0 0 1px color-mix(in srgb,var(--fg) 9%,transparent),0 1.6em 3.2em -1.2em rgba(0,0,0,.5);
  background: var(--bg);
  transform-origin: 1.4em 0;
  transform: translateY(-.4em) scale(.96);
  opacity: 0;
  pointer-events: none;
  transition: transform calc(0.25s / var(--k)) cubic-bezier(.22,1,.36,1),opacity calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq13-prm.open .po {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.uvq13-prm .po::before {
  content: "";
  position: absolute;
  left: 1.15em;
  top: -.4em;
  width: .8em;
  height: .8em;
  background: inherit;
  transform: rotate(45deg);
  box-shadow: -1px -1px 0 color-mix(in srgb,var(--fg) 9%,transparent);
}

.uvq13-prm .po .x {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  right: .45em;
  top: .45em;
  display: grid;
  place-items: center;
  width: 1.8em;
  height: 1.8em;
  border-radius: 50%;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq13-prm .po .x svg {
  width: .9em;
  height: .9em;
}

.uvq13-prm .ti {
  margin: 0;
  padding-right: 1.6em;
  font-size: .82em;
  font-weight: 700;
}

.uvq13-prm .dm {
  margin: .1em 0 .7em;
  font-size: .72em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq13-prm .rw {
  display: flex;
  align-items: center;
  gap: .6em;
  margin: 0 0 .45em;
  font-size: .8em;
}

.uvq13-prm .rw svg {
  width: 1.25em;
  height: 1.25em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq13-prm .ac {
  display: grid;
  gap: .35em;
  margin-top: .8em;
}

.uvq13-prm .ac button {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding: .55em .8em;
  border-radius: 2em;
  font-size: .74em;
  font-weight: 650;
  color: var(--c1);
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--fg) 9%,transparent);
  transition: background calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq13-prm .ac button:hover {
  background: color-mix(in srgb,var(--c1) 9%,transparent);
}

.uvq13-prm .ac button:active {
  transform: scale(.98);
}

.uvq13-prm button:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

@keyframes uvq13-prm-d {
  50% {
    opacity: .35;
  }
}

@keyframes uvq13-prm-i {
  from {
    opacity: 0;
  }
}

@keyframes uvq13-prm-b {
  50% {
    transform: translateY(.12em) rotate(3deg);
  }
}

@keyframes uvq13-prm-l {
  from {
    transform: scaleY(.3);
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq13-prm,.uvq13-prm *,.uvq13-prm *::before,.uvq13-prm *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
`;

// Interacción en JavaScript del DOM: la misma que en la pestaña JS.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function setup(el: any) {
  const fire=el.querySelector(".fire"),scr=el.querySelector(".scr"),pnl=el.querySelector(".po");let tms=[];const later=(f,ms)=>tms.push(setTimeout(f,ms));
const foc=(t,ms)=>later(()=>{const n=typeof t==="string"?el.querySelector(t):t;n&&n.focus({preventScroll:true})},ms||0);
const isOpen=()=>el.classList.contains("open");
const open=u=>{if(isOpen())return;el.classList.add("open");pnl.inert=false;fire&&fire.setAttribute("aria-expanded","true");u&&foc('.po .b2',250)};
const close=()=>{if(!isOpen())return;el.classList.remove("open");pnl.inert=true;fire&&fire.setAttribute("aria-expanded","false");;fire&&fire.focus({preventScroll:true})};
fire&&fire.addEventListener("click",()=>isOpen()?close():open(true));scr&&scr.addEventListener("click",()=>close());
el.addEventListener("keydown",e=>{if(!isOpen())return;if(e.key==="Escape"){e.preventDefault();e.stopPropagation();close()}else if(e.key==="Tab"){const f=[...pnl.querySelectorAll('button:not([disabled]),input:not([disabled]),textarea,a[href],[tabindex="0"]')].filter(x=>x.getClientRects().length);if(!f.length){e.preventDefault();return}const a=f[0],z=f[f.length-1],ac=document.activeElement;if(e.shiftKey&&(ac===a||!pnl.contains(ac))){e.preventDefault();z.focus()}else if(!e.shiftKey&&(ac===z||!pnl.contains(ac))){e.preventDefault();a.focus()}}});
pnl.inert=true;later(()=>open(false),700);el.querySelectorAll(".po .ac button").forEach(b=>b.addEventListener("click",()=>{el.dataset.p=b.dataset.v;close()}));el.querySelector(".po .x").addEventListener("click",close);el.querySelector(".chg").addEventListener("click",()=>open(true));return()=>tms.forEach(clearTimeout)
}

export default function OvSitePermission() {
  const ref = useRef<HTMLDivElement>(null);

  useEffect(() => {
    const el = ref.current?.firstElementChild;
    return el ? setup(el) : undefined;
  }, []);

  return (
    <>
      <style>{css}</style>
      <div
        ref={ref} style={{
          "--c1": "#2563eb",
          "--c2": "#ef4444",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq13-prm" data-p="ask"><div className="tb"><span className="dots" aria-hidden="true"><i></i><i></i><i></i></span><div className="ad"><button type="button" className="fire" aria-haspopup="dialog" aria-label="Site permissions"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><path d="M4 7h10M18 7h2M4 17h4M12 17h8" /><circle cx="16" cy="7" r="2" /><circle cx="10" cy="17" r="2" /></svg></button><span className="url">videollamada.app/equipo</span><span className="cam" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><rect x="3" y="7" width="12" height="10" rx="2" /><path d="M15 10.5l6-3v9l-6-3" /></svg><i></i></span></div></div><div className="lob"><div className="vid"><span className="st s0"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><rect x="3" y="7" width="12" height="10" rx="2" /><path d="M15 10.5l6-3v9l-6-3M3 3l18 18" /></svg><span>Camera off</span></span><span className="st s2"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="8.5" /><path d="M6 6l12 12" /></svg><span>You blocked the camera</span><button type="button" className="chg">Change permission</button></span><span className="me" aria-hidden="true"><i className="hd"></i><i className="bd"></i><i className="lv"><b></b><b></b><b></b></i></span><small className="tag">You</small></div><p className="mt"><b>Team meeting</b><small>10:30 · 4 personas esperando</small></p><button type="button" className="jn">Join now</button></div><div className="po" role="dialog" aria-modal="true" aria-labelledby="uvq13-prm-t"><button type="button" className="x" aria-label="Close"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><path d="M7 7l10 10M17 7L7 17" /></svg></button><p className="ti" id="uvq13-prm-t">This site wants to</p><p className="dm">videollamada.app</p><p className="rw"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><rect x="3" y="7" width="12" height="10" rx="2" /><path d="M15 10.5l6-3v9l-6-3" /></svg><span>Use your camera</span></p><p className="rw"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><rect x="9" y="3" width="6" height="11" rx="3" /><path d="M5.5 11a6.5 6.5 0 0 0 13 0M12 17.5V21" /></svg><span>Use your microphone</span></p><div className="ac"><button type="button" data-v="on">Allow while visiting the site</button><button type="button" className="b2" data-v="on">Allow this time</button><button type="button" data-v="no">Don't allow</button></div></div></div>
      </div>
    </>
  );
}
```

Give me the complete final code, ready to paste, and tell me in one line where to put it in my project.
````
