/* ==========================================================
   VR SHARE 2.1.1
========================================================== */

.vr-share{
    margin:10px 0 20px;
    text-align:center;
}

/* Блокировка прокрутки */
body.vr-share-lock{
    overflow:hidden;
}

/* ==========================================================
   Кнопка открытия
========================================================== */

.vr-share-open{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    padding:10px 25px 10px 20px;

    border:0;
    border-radius:50px;

    cursor:pointer;
    text-decoration:none;
    
    font-weight:800;
    line-height:1.2;

    transition:
        background-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.vr-share-open:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 24px rgba(0,0,0,.12);
}

.vr-share-open:active{
    transform:translateY(0);
}

.vr-share-open:focus-visible{
    outline:2px solid #31974b;
    outline-offset:3px;
}

.vr-share-open .vr-share__icon{
    width:30px;
    height:30px;
    fill:currentColor;
}


/* ==========================================================
   Модальное окно
========================================================== */

.vr-share-modal{
    position:fixed;
    inset:0;
    z-index:99999;

    display:flex;
    align-items:center;
    justify-content:center;

    opacity:0;
    visibility:hidden;

    transition:
        opacity .22s ease,
        visibility .22s ease;
}

.vr-share-modal.is-open{
    opacity:1;
    visibility:visible;
}

.vr-share-overlay{
    position:absolute;
    inset:0;

    background:rgba(0,0,0,.55);

    backdrop-filter:blur(2px);
}

.vr-share-dialog{

    position:relative;

    width:min(560px,calc(100vw - 32px));

    padding:34px 30px 28px;

    background:#fff;

    border-radius:24px;

    box-shadow:
        0 30px 80px rgba(0,0,0,.28);

    transform:translateY(20px) scale(.96);

    transition:
        transform .22s ease;

}

.vr-share-modal.is-open .vr-share-dialog{
    transform:translateY(0) scale(1);
}

/* ==========================================================
   Кнопка закрытия
========================================================== */

.vr-share-close{
    position:absolute;
    top:16px;
    right:16px;

    width:42px;
    height:42px;
    padding:0;

    border:0;
    border-radius:50%;

    background:var(--contrast-2);

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;

    transition:
        background-color .18s ease,
        transform .18s ease;
}

.vr-share-close:hover{
    background:#ececec;
    transform:rotate(90deg);
}

.vr-share-close__icon{
    width:18px;
    height:18px;

    stroke:currentColor;
    stroke-width:2.5;
    stroke-linecap:round;

    fill:none;
}
/* ==========================================================
   Заголовок
========================================================== */

.vr-share-heading{

    margin:0 0 26px;

    text-align:center;

    font-size:26px;
    font-weight:700;
    line-height:1.25;

}

/* ==========================================================
   Сетка
========================================================== */

.vr-share-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:14px;

}

/* ==========================================================
   Карточки
========================================================== */

.vr-share-card{

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    gap:10px;

    min-height:104px;

    padding:14px 10px;

    background:#f8f8f8;

    border-radius:18px;

    text-decoration:none;
    color:#333;

    transition:
        transform .18s ease,
        background-color .18s ease,
        box-shadow .18s ease;

}

.vr-share-card:hover{

    background:#f2f2f2;

    transform:translateY(-2px);

    box-shadow:0 10px 24px rgba(0,0,0,.08);

}

.vr-share-card:active{
    transform:translateY(0);
}

.vr-share-card span{

    font-size:13px;
    font-weight:500;
    line-height:1.25;

    text-align:center;

}

.vr-share__icon{

    width:42px;
    height:42px;

    flex:0 0 auto;

}

/* ==========================================================
   Кнопка копирования
========================================================== */

.vr-share-copy{

    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    width:100%;

    margin-top:22px;

    padding:14px 18px;

    border:0;
    border-radius:18px;
    
    color: var(--contrast-2);
    background:#ececec;

    cursor:pointer;

    font-size:16px;
    font-weight:600;

    transition:
        background-color .18s ease,
        transform .18s ease;

}

.vr-share-copy:hover{

    background:#e4e4e4;
    color: var(--contrast-2);
    transform:translateY(-1px);

}

.vr-share-copy:active{
    transform:none;
}

.vr-share-copy .vr-share__icon{

    width:32px;
    height:32px;

}

/* ==========================================================
   Плавающая кнопка
========================================================== */

.vr-share-floating{

    position:fixed;
    right:16px;
    width:46px;
    height:46px;
    border:0;
    border-radius:50%;
    background-color: rgba(255, 207, 52, 0.8);
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    opacity:0;
    transition:
        transform .2s ease,
        background-color .2s ease,
        opacity .2s ease;
    z-index:9998;
}


.vr-share-floating:hover{

    background:none;
    transform:translateY(-2px);
    background-color:var(--global-color-10);

}

.vr-share-floating .vr-share__icon {

    width:46px;
    height:46px;

}

/* ==========================================================
   Mobile
========================================================== */

@media (max-width:768px){

    .vr-share-dialog{

        width:calc(100vw - 24px);

        padding:26px 18px 20px;

        border-radius:20px;

    }

    .vr-share-heading{

        font-size:22px;

        margin-bottom:20px;

    }

    .vr-share-grid{

        grid-template-columns:repeat(3,1fr);

        gap:12px;

    }

    .vr-share-card{

        min-height:96px;

        padding:12px 8px;

    }

    .vr-share__icon{

        width:46px;
        height:46px;

    }

    .vr-share-card span{

        font-size:12px;

    }

    .vr-share-floating{

        right:16px;
        width:46px;
        height:46px;
        
    }

}

/* ==========================================
   Copy success checkmark
========================================== */

.vr-share-copy {
    position: relative;
}

.vr-share-copy::after {
    content: "✓";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%) scale(.7);

    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: #28a745;

    opacity: 0;
    pointer-events: none;

    transition:
        opacity .2s ease,
        transform .2s ease;
}

.vr-share-copy.is-success::after {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}