[data-apfs-field-id="12"] .an-pf-field-image-wrap {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Scope everything to field ID 12 */
[data-apfs-field-id="12"] {
  position: relative;
  max-width: 350px;
  font-family: sans-serif;
}

/* Style each radio option as a button */
[data-apfs-field-id="12"] .anfield-radio {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  border: 1px solid #ccc;
  border-top: none; /* We'll restore top for first-child below */
  cursor: pointer;
  width: 100%;
  height: 60px;
  box-sizing: border-box;
  background: #fff;
  transition: background 0.3s;
}

/* Add top border only to the first item */
[data-apfs-field-id="12"] .anfield-radio:first-child {
  border-top: 1px solid #ccc;
}

/* Hover effect */
[data-apfs-field-id="12"] .anfield-radio:hover {
  background: #f7f7f7;
}

/* Image wrapper */
[data-apfs-field-id="12"] .an-pf-field-image-wrap {
  flex-shrink: 0;
}

/* Image size */
[data-apfs-field-id="12"] .an-pf-fieldminiature_left {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* Highlight selected */
[data-apfs-field-id="12"] .anfield-radio.selected {
  outline: 2px solid #000;
}

/* Scrollable wrapper for radio options */
[data-apfs-field-id="12"] .anfield-radio-wrapper {
  max-height: none;
  overflow-y: auto;
  transition: max-height 0.3s ease;
}

/* When collapsed, only the selected item is visible */
[data-apfs-field-id="12"].collapsed .anfield-radio-wrapper {
  max-height: none;
  overflow: visible;
}

/* When expanded, cap height and scroll */
[data-apfs-field-id="12"]:not(.collapsed) .anfield-radio-wrapper {
  max-height: calc(60px * 5);
  overflow-y: auto;
}

/* Hide unselected items when collapsed */
[data-apfs-field-id="12"].collapsed .anfield-radio:not(.selected) {
  display: none;
}
/* Add down-arrow to selected item when collapsed */
[data-apfs-field-id="12"].collapsed .anfield-radio.selected {
  position: relative;
  padding-right: 30px; /* make room for the arrow */
}

[data-apfs-field-id="12"].collapsed .anfield-radio.selected::after {
  content: "▾"; /* Unicode down-arrow */
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #666;
  pointer-events: none; /* so it doesn't block clicks */
}
span.radio-text {
  align-items: center;
  cursor: pointer;
  display: flex;
  float: left;
  font-size: 14px; /* Adjust text size if needed */
  color: #333; /* Adjust text color */
  height: 58px;
  white-space: nowrap; /* Prevent the text from wrapping to the next line */
}
@media (min-width: 1200px) {
  .product-variants.js-product-variants .product-variants-item:nth-child(n+2) {
    width: 100% !important;
  }
}