body.op-style-gallery-enhanced .op-style-gallery__fieldset .product-form__input--right {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

body.op-style-gallery-enhanced .op-style-gallery__fieldset .op-style-gallery__label {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100% !important;
  min-width: 0;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  color: rgb(var(--color-text, 18, 18, 18)) !important;
  text-align: left;
  white-space: normal;
  background: #fff !important;
  border: 1px solid #d8d8d8 !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.op-style-gallery-enhanced .op-style-gallery__fieldset .op-style-gallery__label:hover {
  border-color: #6f6f6f !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

body.op-style-gallery-enhanced .op-style-gallery__fieldset input[type='radio']:focus-visible + .op-style-gallery__label {
  outline: 3px solid rgba(0, 0, 0, 0.28);
  outline-offset: 2px;
}

body.op-style-gallery-enhanced .op-style-gallery__fieldset input[type='radio']:checked + .op-style-gallery__label {
  border-color: #111 !important;
  box-shadow: 0 0 0 1px #111, 0 5px 16px rgba(0, 0, 0, 0.12);
}

body.op-style-gallery-enhanced .op-style-gallery__fieldset input[type='radio']:checked + .op-style-gallery__label::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  background: #111;
  border-radius: 50%;
}

body.op-style-gallery-enhanced .op-style-gallery__image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f7f7f7;
  border-bottom: 1px solid #ececec;
}

body.op-style-gallery-enhanced .op-style-gallery__name {
  display: flex;
  min-height: 52px;
  align-items: center;
  padding: 10px 11px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

body.op-style-gallery-enhanced .op-gallery-hidden {
  display: none !important;
}

body.op-style-gallery-enhanced .product-style-gallery-test-section {
  display: none !important;
}

@media screen and (max-width: 749px) {
  body.op-style-gallery-enhanced .op-style-gallery__fieldset .product-form__input--right {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.op-style-gallery-enhanced .op-style-gallery__name {
    min-height: 48px;
    padding: 9px;
    font-size: 12px;
  }
}
