.eacf7-image-choice {
    .image-choice-wrap {
        &.inline {
            display: flex;
            gap: 10px;
            flex-direction: row;
            align-items: center;

            .image-choice-item {
                max-width: 150px;
            }
        }

        &.grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;

            @media (max-width: 1024px) {
                grid-template-columns: repeat(3, 1fr);
            }

            @media (max-width: 768px) {
                grid-template-columns: repeat(2, 1fr);
            }

            @media (max-width: 480px) {
                grid-template-columns: 1fr;
            }
        }

        &.style-2 {
            .active {
                svg {
                    padding: 0;
                    box-shadow: 0px 0px 0 0 #1E62B9;
                }

                img {
                    border: 2px solid #1E62B9;
                }
            }

            img {
                border: 2px solid transparent;
                border-radius: 10px;
            }
        }

        &.style-3 {
            .active {
                svg {
                    padding: 0;
                    box-shadow: 0px 0px 0 0.5px #1E62B9;
                    border: 2px dashed #fff;
                }

                img {
                    border-color: #1E62B9;
                    filter: none;
                }
            }

            img {
                border: 2px solid transparent;
                border-radius: 10px;
                -webkit-filter: grayscale(100%);
                filter: grayscale(100%);
            }
        }

        &.style-4 {
            >.image-choice-item {
                border: 2px solid #E5E7EB;
                padding: 12px;
                border-radius: 12px;
            }

            .active {
                svg {
                    width: 20px;
                    height: 20px;
                    padding: 5px;
                    top: 5px;
                    right: 5px;
                    box-shadow: 0 0 0 0 #1E62B9;
                }
            }

            img {
                border-radius: 10px;
            }
        }

        .image-choice-item {
            position: relative;
            cursor: pointer;

            &.active {
                svg {
                    display: block;
                }
            }

            svg {
                display: none;
                position: absolute;
                top: 10px;
                right: 10px;
                background: #1E62B9;
                padding: 5px;
                width: 30px;
                stroke: #fff;
                height: 30px;
                box-shadow: 0px 0px 10px 1px #1E62B9;
                border-radius: 20px;
            }

            img {
                margin-bottom: 5px;
                width: 100%;
            }

            p {
                font-size: 14px;
                line-height: 1.5;
            }
        }
    }
}