/* Стили для выделяемых блоков */
.copy-box {
        position: relative;
        transition: all 0.3s ease;
        cursor: pointer;
        padding-right: 50px !important;
}

/* Круглая кнопка выделения */
.copy-box::before {
        content: "";
        position: absolute;
        top: 10px;
        right: 10px;
        width: 27px;
        height: 27px;
        border: 1px solid #666;
        border-radius: 50%;
        transition: all 0.3s ease;
        z-index: 1;
        opacity: 0.5;
        pointer-events: none;
        /* Отключаем события мыши */
}

/* Галочка при выделении */
.copy-box::after {
        content: "✓";
        position: absolute;
        top: 10px;
        right: 10px;
        width: 27px;
        height: 27px;
        color: white;
        font-size: 16px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        z-index: 2;
        transform: scale(0);
        opacity: 0;
        pointer-events: none;
        /* Отключаем события мыши */
}

/* Hover ТОЛЬКО при наведении на область кнопки (через JS) */
.copy-box.hover-button::before {
        border-color: #00a9ff;
        opacity: 0.8;
}

/* Остальные стили остаются прежними */
.copy-box.selected {
        border-color: #00a9ff !important;
        box-shadow: 0px 0px 1px 1px #00a9ff5e;
}

.copy-box.selected::before {
        background: #00a9ff;
        border-color: #00a9ff;
        opacity: 0.5;
}

.copy-box.selected::after {
        transform: scale(1);
        opacity: 1;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
        .copy-box {
                padding-right: 45px !important;
        }

        .copy-box::before,
        .copy-box::after {
                right: 10px;
                top: 10px;
                width: 25px;
                height: 25px;
        }

        .copy-box::after {
                font-size: 14px;
        }
}

.copy-box.selected:focus {
        /* box-shadow: 0 0 15px #00a9ff; */
}