.product-miniature .thumbnail-container:has(> .hm-resize-badge) { position: relative; }
.product-miniature .thumbnail-container:has(> .hm-resize-badge) > .hdc-signature {
  position: relative;
  inset: auto;
}
.product-miniature .thumbnail-container:has(> .hm-resize-badge) > .product-flags {
  top: calc(var(--hm-image-top, 40px) + 8px) !important;
}
.product-miniature .thumbnail-container > .hm-resize-badge {
  position: static;
  display: block;
  box-sizing: border-box;
  margin: 0 4px 4px;
  padding: 5px 7px;
  background: #f7f3ea;
  color: #453a28;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  text-align: right;
  pointer-events: none;
}
.product-miniature .hm-resize-badge strong { font-weight: 700; white-space: nowrap; }
form .product-variants-item.hm-resize-size {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  gap: 5px 14px;
}
form .hm-resize-size > .form-control-label { grid-column: 1; grid-row: 1; }
form .hm-resize-size > .custom-select2 { grid-column: 1; grid-row: 2; }
form .hm-resize-size > .hm-resize-choice { grid-column: 2; grid-row: 1 / 3; align-self: end; }
form .hm-resize-choice {
  display: flex;
  align-items: baseline;
  gap: 9px;
  max-width: 360px;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #c3b396;
  border-radius: 4px;
  background: #fbf8f1;
  color: #29251e;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
form .hm-resize-choice input[type=checkbox] {
  position: static; width: 17px; height: 17px; flex: none; margin: 0; opacity: 1;
  align-self: start; accent-color: #493f2c; appearance: auto;
}
form .hm-resize-choice strong { white-space: nowrap; }
form .hm-resize-choice small { display: block; margin-top: 3px; font-size: 12px; color: #514a3e; }
form .hm-resize-choice:focus-within { outline: 2px solid #796237; outline-offset: 2px; }
@media (max-width: 480px) {
  form .product-variants-item.hm-resize-size { gap: 4px 8px; }
  form .hm-resize-choice { padding: 8px; gap: 7px; }
}
