@import '../../../styles/definitions/colors';

.swatch {
	&_wrapper {
		display: flex;
		flex-wrap: wrap;
		row-gap: 24px;
	}

	&_item {
		width: 30px;
		height: 30px;
		margin-right: 24px;
		border-radius: 50%;
		cursor: pointer;
		border: none;
		box-shadow: inset 0 1px 1px 0 rgba(0,0,0,0.2);
		position: relative;
		outline: none;
		&:before {
			content: '';
			width: 40px;
			height: 40px;
			position: absolute;
			top: -5px;
			left: -5px;
			border: 2px solid transparent;
			border-radius: 50%;
			transition: 0.3s;
		}
		&:hover{
			&:before {
				border-color: $gray-80;
			}
		};
		&:focus,
		&--selected {
			&:before {
				border-color: #009CDE;
			}
		};
        &--disabled {
            &:before {
                opacity: 60%;
                background: $gray-80;
                cursor: not-allowed;
            }
        };
	}
}
