.webcam-vradio-bouton {
    display: inline-flex;
    width: auto;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px 16px;
    border: 1px solid #e0c27a;
    border-radius: 999px;
    background: #6b351a;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 14px #0006;
    cursor: pointer;
}

.webcam-vradio-bouton[hidden],
.webcam-vradio-panneau[hidden] {
    display: none !important;
}

.webcam-vradio-bouton:hover:not(:disabled),
.webcam-vradio-actif {
    background: #87451f;
}

.webcam-vradio-bouton-global {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1200;
}

.webcam-vradio-icone {
    width: auto;
    min-width: 27px;
    min-height: 25px;
    margin: 0 0 0 5px;
    padding: 1px 4px;
    border: 1px solid #9a763d;
    border-radius: 6px;
    background: #281d10;
    color: #ffe2a6;
    font-size: 14px;
    line-height: 1.2;
    vertical-align: middle;
    cursor: pointer;
}

.webcam-vradio-icone:hover,
.webcam-vradio-icone:focus-visible {
    background: #61431b;
    outline: 2px solid #e0c27a;
    outline-offset: 1px;
}

.webcam-vradio-icone-propre {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.webcam-vradio-panneau {
    position: fixed;
    right: 18px;
    bottom: 76px;
    z-index: 1201;
    display: flex;
    width: min(600px, calc(100vw - 24px));
    height: min(720px, calc(100dvh - 100px));
    min-height: 300px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #73515b;
    border-radius: 12px;
    background: #100d10;
    color: #f7f4f1;
    box-shadow: 0 16px 50px #000b;
}

.webcam-vradio-panneau.webcam-vradio-minimise {
    height: auto;
    min-height: 0;
}

.webcam-vradio-entete {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border-bottom: 1px solid #594750;
    background: #181116;
    cursor: move;
    touch-action: none;
    user-select: none;
}

.webcam-vradio-commandes {
    display: flex;
    gap: 6px;
}

.webcam-vradio-commandes button,
.webcam-vradio-demande button,
.webcam-vradio-activer,
.webcam-vradio-secondaire {
    width: auto;
    min-width: 36px;
    min-height: 36px;
    margin: 0;
    padding: 5px 10px;
    border: 1px solid #73515b;
    border-radius: 6px;
    background: #291821;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.webcam-vradio-corps {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
    overflow: auto;
    padding: 10px;
}

.webcam-vradio-minimise .webcam-vradio-corps {
    display: none;
}

.webcam-vradio-statut {
    min-height: 1.4em;
    margin: 0;
    color: #e0c27a;
    font-size: 13px;
}

.webcam-vradio-erreur {
    color: #ffb3b3;
}

.webcam-vradio-demandes {
    display: grid;
    gap: 8px;
}

.webcam-vradio-demande {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid #b08b4c;
    border-radius: 8px;
    background: #281d10;
}

.webcam-vradio-demande p {
    flex: 1 1 100%;
    margin: 0;
}

.webcam-vradio-activer {
    align-self: flex-start;
    border-color: #b08b4c;
    background: #6b351a;
}

.webcam-vradio-activer:disabled {
    cursor: wait;
    opacity: .6;
}

.webcam-vradio-tuile {
    position: fixed;
    z-index: 1210;
    top: 82px;
    right: 18px;
    display: flex;
    width: min(360px, calc(100vw - 24px));
    height: 250px;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #594750;
    border-radius: 8px;
    background: #000;
    box-shadow: 0 12px 36px #000a;
}

.webcam-vradio-tuile.webcam-vradio-tuile-minimise {
    height: auto;
}

.webcam-vradio-tuile-entete {
    display: flex;
    min-height: 36px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 7px;
    background: #181116;
    color: #fff;
    cursor: move;
    touch-action: none;
    user-select: none;
}

.webcam-vradio-tuile-nom {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.webcam-vradio-tuile-commandes {
    display: flex;
    flex: 0 0 auto;
    gap: 4px;
}

.webcam-vradio-tuile-commandes button {
    width: 30px;
    min-height: 28px;
    margin: 0;
    padding: 0;
    border: 1px solid #73515b;
    border-radius: 5px;
    background: #291821;
    color: #fff;
    line-height: 1;
}

.webcam-vradio-tuile-video {
    min-height: 0;
    flex: 1 1 auto;
    background: #000;
}

.webcam-vradio-tuile-minimise .webcam-vradio-tuile-video {
    display: none;
}

.webcam-vradio-tuile-video video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.webcam-vradio-invitation {
    align-self: flex-start;
    color: #e0c27a;
    font-size: 12px;
}

@media (max-width: 520px) {
    .webcam-vradio-panneau {
        right: 8px;
        bottom: 66px;
        width: calc(100vw - 16px);
        height: calc(100dvh - 80px);
    }

    .webcam-vradio-tuile {
        width: min(320px, calc(100vw - 24px));
        height: 220px;
    }
}
