.collar-offer:not([hidden]) {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 14px 0 12px;
  padding: 9px 12px;
  border: 1px solid #c9dbc1;
  border-radius: 12px;
  background: #f5f8f1;
  color: #233d2e;
}

.collar-offer:has(input:checked) {
  border-color: #9abb90;
  background: #eff6e8;
}

.collar-offer__heading {
  display: flex;
  align-items: center;
  gap: 2px;
}

.collar-offer__heading label {
  margin: 0;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

/* The label also covers the savings line and the space around the switch. */
.collar-offer__heading label::after {
  content: "";
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.collar-offer__heading button {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #57745f;
}

.collar-offer__heading button:is(:hover, :focus-visible) {
  background: #dfebda;
  color: #244b33;
}

.collar-offer__saving {
  display: block;
  color: #386445;
  font-size: .83rem;
  font-weight: 600;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.collar-offer__switch {
  appearance: none;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 38px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 1px solid #84968a;
  border-radius: 99px;
  background: #d3dcd1;
  cursor: pointer;
}

.collar-offer__switch::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #253c2c45;
}

.collar-offer__switch:checked {
  border-color: #346445;
  background: #346445;
}

.collar-offer__switch:checked::before { transform: translateX(16px); }
.collar-offer :is(input, button):focus-visible { outline: 2px solid #346445; outline-offset: 2px; }
.collar-offer:has(input:disabled) label::after, .collar-offer__switch:disabled { cursor: default; }

.neck-logo-dialog { width: min(460px, calc(100% - 24px)); }
.neck-logo-dialog h2 { align-self: center; margin: 0; }
.neck-logo-dialog p { margin: 12px 0; }
.neck-logo-dialog figure { margin: 0; }
.neck-logo-dialog figcaption { margin-top: 8px; color: #53625a; font-size: .85rem; }
.neck-logo-photo { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 3 / 2; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.neck-logo-photo img { position: absolute; width: 165%; max-width: none; height: auto; top: -5%; left: 50%; transform: translateX(-50%); }
#neckLogoPreviewStatus { padding: 12px; text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .collar-offer__switch::before { transition: transform 150ms ease-out; }
}

@media (forced-colors: active) {
  .collar-offer__switch { forced-color-adjust: none; background: Canvas; border-color: ButtonText; }
  .collar-offer__switch::before { background: ButtonText; box-shadow: none; }
  .collar-offer__switch:checked { background: Highlight; border-color: Highlight; }
  .collar-offer__switch:checked::before { background: HighlightText; }
  .collar-offer :is(input, button):focus-visible { outline-color: Highlight; }
}
