/* Webcam OK - condivisione diretta delle singole webcam */

.webcam-share-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 36;

    width: 40px;
    height: 40px;
    padding: 0;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255,255,255,.24);
    border-radius: 50%;

    background: rgba(7, 18, 30, .88);
    color: #fff;

    box-shadow: 0 4px 14px rgba(0,0,0,.24);
    backdrop-filter: blur(5px);

    cursor: pointer;
    transition: transform .16s ease, background .16s ease;
}

.webcam-share-btn:hover {
    background: rgba(7, 18, 30, .98);
    transform: scale(1.06);
}

.webcam-share-btn:focus-visible {
    outline: 3px solid rgba(255,255,255,.92);
    outline-offset: 2px;
}

.webcam-share-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.webcam-direct-toolbar {
    margin: -8px 0 22px;
}

.webcam-direct-toolbar a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;

    border: 1px solid #dce3e9;
    border-radius: 10px;

    background: #fff;
    color: #25384a;

    font-size: 13px;
    font-weight: 700;
    text-decoration: none;

    box-shadow: 0 4px 14px rgba(11,23,38,.05);
}

.webcam-direct-toolbar a:hover {
    border-color: #cbd5de;
    background: #f8fafc;
}

.webcam-share-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 2147483600;

    max-width: calc(100vw - 32px);
    padding: 10px 15px;

    border-radius: 22px;
    background: #0b1726;
    color: #fff;

    font-size: 13px;
    font-weight: 700;

    box-shadow: 0 10px 30px rgba(0,0,0,.25);

    opacity: 0;
    transform: translate(-50%, 10px);
    transition: opacity .18s ease, transform .18s ease;
}

.webcam-share-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 520px) {
    .webcam-share-btn {
        width: 37px;
        height: 37px;
        top: 9px;
        right: 9px;
    }
}
