.customize-control-radio-image .ui-button {
	margin: 0;
	border-radius: 0;
	border: none;
	background: transparent;
}

.customize-control-radio-image input[type="radio"] {
	display: none;
}

.customize-control-radio-image .ui-button-text {
	padding: 0;
}

.customize-control-radio-image .buttonset {
	display: flex;
	flex-flow: wrap;
}

.customize-control-radio-image .buttonset > label {
	width: 26.333%;
	padding: 5px 5px 0 0;
    box-sizing: border-box;
}

.customize-control-radio-image input[type="radio"]:checked + label img {
    border-color: #ddd;
}

.customize-control-radio-image .buttonset > label[name="checked"] img {
	border-color: #008ec2 !important;
}

.customize-control-radio-image img {
	box-sizing: border-box;
	max-width: 100%;
	height: auto;
	padding: 1px;
	border: 4px solid transparent;
}

.customize-control-radio-image img:hover,
.customize-control-radio-image img:focus {
	border-color: #ddd;
}

.customize-control-radio-image .ui-state-active img {
	border-color: #00a0d2;
}