.vm-sku-group-frame() {
  box-sizing: border-box;
  min-inline-size: 0;
  margin: 0;
  padding: 0 16px 16px;
  border: 1px solid rgba(36, 28, 63, 0.16);
  border-radius: 24px;
}

.vm-sku-group-heading() {
  // Native legends interrupt the frame without painting over the page background.
  display: table;
  float: none;
  width: auto;
  max-width: 100%;
  margin: 0 0 14px;
  margin-inline-start: 4px;
  padding: 0 12px;
  border: 0;
  color: inherit;
  white-space: normal;
  overflow-wrap: anywhere;

  > .vm-sku-group-dimension {
    margin-inline-end: 12px;
    color: rgba(36, 28, 63, 0.75);
    font-size: 24px;
    font-weight: 400;
  }

  > h3 {
    display: inline;
    margin: 0;
    color: inherit;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
  }
}

// Both the mask and stamp are positioned against the whole SKU card.
.vm-sku-status-mask() {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.72);
  pointer-events: none;

  .vm-sku-status-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 220px;
    max-width: calc(100% - 24px);
    height: auto;
    color: #777;
    fill: none;
    stroke: none;
    transform: translate(-50%, -50%);

    text {
      fill: #fff;
      stroke: none;
      font-family: inherit;
      font-size: 28px;
      font-weight: 800;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }
  }
}

// A real button covers the card; the stepper remains a separate click target.
.vm-sku-add-target() {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;

  &:disabled,
  &[aria-disabled='true'] {
    cursor: default;
    opacity: 1;
  }
  &:not(:disabled):active {
    transform: none;
  }
  &:not(:disabled):not([aria-disabled='true']):hover {
    box-shadow: inset 0 0 0 2px var(--vm-primary-border);
  }
  &:focus-visible {
    outline: 3px solid var(--vm-primary);
    outline-offset: 3px;
  }
}
