/* customSkuRadioComponent.css */

.customFieldRadios {
	display: block;
}
.customFieldsTitle {
	margin-bottom: .5em;
}
.customRadioBtnContainer {
	display: flex;
	flex-direction:row;
	overflow-x: auto;
	gap: .5em;
}
.customRadioLabel {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  min-width: 100px;
  aspect-ratio: 1/1;
  background: #fff;
  border-radius: 0.25em;
  overflow: hidden;
  box-shadow: var(--custom-field-box-shadow);
}

.customRadioInput {
  display: none; /* Hide the default radio button */
}

.customRadioText {
  position: absolute;
  bottom: 0;
  margin: 0 0 0.25em 0.25em;
  font-size: .9em;
  transition: color 0.3s ease;
}

.customRadioDot {
  position: absolute;
  top: 0.25em;
  left: 0.25em;
  width: 1em;
  height: 1em;
  border: 2px solid #ccc;
  border-radius: 50%;
  background: #fff;
  transition: all 0.3s ease;
  box-shadow: var(--custom-field-detail-box-shadow);
}

.customRadioImage {
  width: 100px;
  aspect-ratio: 1/1;
  transition: transform 0.25s ease;
}

.customRadioInput:checked ~ .customRadioDot {
  background: #287fdc;
  border-color: #287fdc;
  box-shadow: inset 0 0 0 2px white;
}

.customRadioInput:checked ~ .customRadioText {
  color: #287fdc;
  font-weight: 500;
}

.customRadioInput:checked ~ .customRadioImage {
  transform: scale(1.1);
}

/* Focus states */
.customRadioInput:focus ~ .customRadioDot {
  outline: 2px solid #3363ff;
  outline-offset: 2px;
}

/* Hover states */
.customRadioLabel:hover .customRadioDot {
  border-color: #999;
}

.customRadioLabel:hover .customRadioText {
  color: #333;
}
