﻿.imgcbox-wrapper-16 *,
.imgcbox-wrapper-16 *:after,
.imgcbox-wrapper-16 *:before {
    box-sizing: border-box;
}

.imgcbox-wrapper-16 .imgcbox-input {
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(100%);
    clip-path: inset(100%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}
.imgcbox-wrapper-16 {
    width: fit-content;
}

    .imgcbox-wrapper-16 .imgcbox-input:checked + .imgcbox-tile {
        border-color: #2260ff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        color: #2260ff;
    }

        .imgcbox-wrapper-16 .imgcbox-input:checked + .imgcbox-tile:before {
            transform: scale(1);
            opacity: 1;
            background-color: #2260ff;
            border-color: #2260ff;
        }

        .imgcbox-wrapper-16 .imgcbox-input:checked + .imgcbox-tile .imgcbox-icon,
        .imgcbox-wrapper-16 .imgcbox-input:checked + .imgcbox-tile .imgcbox-label {
            color: #2260ff;
        }

    .imgcbox-wrapper-16 .imgcbox-input:focus + .imgcbox-tile {
        border-color: #2260ff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1), 0 0 0 4px #b5c9fc;
        animation: removeBoxShadow 2s forwards;
    }
    .imgcbox-wrapper-16 .imgcbox-input:checked:focus + .imgcbox-tile {
        border-color: #2260ff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1), 0 0 0 4px #b5c9fc;
        animation: removeBoxShadowChecked 2s forwards;
    }

/* Animáció definíció */
@keyframes removeBoxShadow {
    0% {
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1), 0 0 0 4px #b5c9fc;
        border-color: #2260ff;
    }

    100% {
        box-shadow: none;
        border-color: #b5bfd9;
    }
}
@keyframes removeBoxShadowChecked {
    0% {
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1), 0 0 0 4px #b5c9fc;
    }

    100% {
        box-shadow: none;
    }
}


        .imgcbox-wrapper-16 .imgcbox-input:focus + .imgcbox-tile:before {
            transform: scale(1);
            opacity: 1;
        }

.imgcbox-wrapper-16 .imgcbox-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 5rem;
    min-height: 5rem;
    border-radius: 0.5rem;
    border: 2px solid #b5bfd9;
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transition: 0.15s ease;
    cursor: pointer;
    position: relative;
}

    .imgcbox-wrapper-16 .imgcbox-tile:before {
        content: "";
        position: absolute;
        display: block;
        width: 0.6rem;
        height: 0.6rem;
        border: 2px solid #b5bfd9;
        background-color: #fff;
        border-radius: 50%;
        top: 0.25rem;
        left: 0.25rem;
        opacity: 0;
        transform: scale(0);
        transition: 0.25s ease;
        background-size: 12px;
        background-repeat: no-repeat;
        background-position: 50% 50%;
    }

    .imgcbox-wrapper-16 .imgcbox-tile:hover {
        border-color: #2260ff;
    }

        .imgcbox-wrapper-16 .imgcbox-tile:hover:before {
            transform: scale(1);
            opacity: 1;
        }

.imgcbox-wrapper-16 .imgcbox-icon {
    transition: 0.375s ease;
    color: #494949;
}

    .imgcbox-wrapper-16 .imgcbox-icon svg {
        width: 3rem;
        height: 3rem;
    }

.imgcbox-wrapper-16 .imgcbox-label {
    color: #707070;
    font-size: 13px;
    transition: 0.375s ease;
    text-align: center;
    user-select: none;
}