#MainContent .preorder-button:not(:disabled) {
  background: var(--preorder-button-background, #903eff) !important;
  color: var(--preorder-button-text, #fff) !important;
  border-color: var(--preorder-button-background, #903eff) !important;
}

#MainContent .preorder-button:not(:disabled)::after {
  border-color: var(--preorder-button-background, #903eff) !important;
}

#MainContent .preorder-button:disabled {
  background: #8a8a8a !important;
  color: #fff !important;
  border-color: #8a8a8a !important;
}

#MainContent .preorder-button:disabled::after {
  border-color: #8a8a8a !important;
}

#MainContent .preorder-button:disabled .btn-fill {
  display: none !important;
}

#MainContent .preorder-button:not(:disabled) .btn-text {
  color: inherit !important;
}

#MainContent .preorder-button:not(:disabled) .btn-fill {
  background: var(--preorder-button-background, #903eff) !important;
  background: color-mix(in srgb, var(--preorder-button-background, #903eff) 86%, #000) !important;
}

#MainContent .preorder-button.preorder-button--compact:not(:disabled) {
  --preorder-icon-size: 18px;
  gap: 4px;
  font-size: var(--preorder-button-size, 15px) !important;
  font-weight: var(--preorder-button-weight, 600) !important;
  white-space: nowrap;
}

#MainContent .preorder-button--compact > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

#MainContent .preorder-button .preorder-button__icon.icon {
  background-color: currentColor;
  mask: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cdefs%3E%3Cmask%20id%3D%22package%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22white%22%2F%3E%3Ccircle%20cx%3D%2217.5%22%20cy%3D%2217.5%22%20r%3D%226.35%22%20fill%3D%22black%22%2F%3E%3C%2Fmask%3E%3C%2Fdefs%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%206.8%207.5-3.7L18%206.8l-7.5%203.7L3%206.8Zm0%200v10.1l7.5%203.7V10.5m7.5-3.7v10.1l-7.5%203.7M6.8%204.9l7.4%203.8%22%20mask%3D%22url(%23package)%22%2F%3E%3Ccircle%20cx%3D%2217.5%22%20cy%3D%2217.5%22%20r%3D%224.9%22%2F%3E%3Cpath%20d%3D%22M17.5%2014.8v2.7l1.9%201.1%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E') center / 100% no-repeat;
  display: inline-block !important;
  width: var(--preorder-icon-size, 1.125em) !important;
  min-width: var(--preorder-icon-size, 1.125em) !important;
  max-width: var(--preorder-icon-size, 1.125em) !important;
  height: var(--preorder-icon-size, 1.125em) !important;
  min-height: var(--preorder-icon-size, 1.125em) !important;
  max-height: var(--preorder-icon-size, 1.125em) !important;
  flex: 0 0 var(--preorder-icon-size, 1.125em) !important;
  color: inherit;
}

#MainContent .preorder-button:disabled .preorder-button__icon,
#MainContent .preorder-button--sticky:disabled .preorder-button__sticky-content {
  display: none !important;
}

#MainContent .preorder-button__main-label {
  position: relative;
  white-space: nowrap;
}

#MainContent .preorder-button:not(:disabled) .preorder-button__main-label::before {
  content: attr(data-preorder-original-label);
  visibility: hidden;
}

#MainContent .preorder-button__main-content {
  font: inherit;
}

#MainContent .preorder-button:not(:disabled) .preorder-button__main-content,
#MainContent .preorder-button--sticky .preorder-button__sticky-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  white-space: nowrap;
}

@media (min-width: 768px) {
  /* The sticky button normally sizes itself to the original translated label. */
  #MainContent .preorder-button--sticky:not(:disabled) .btn-text::before {
    content: attr(data-preorder-original-label);
    visibility: hidden;
    white-space: nowrap;
  }

  #MainContent .preorder-button--sticky:not(:disabled) .preorder-button__desktop-label {
    display: none;
  }
}

#MainContent .preorder-shipping-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--preorder-button-background, #903eff) 8%, #fff);
  font-size: var(--pdp-note-size, var(--a2l-notes-size, 12px));
  font-weight: var(--pdp-note-weight, var(--a2l-notes-weight, 400));
  color: var(--pdp-note-color, currentColor);
  line-height: 1.4;
}

#MainContent .preorder-shipping-note .preorder-shipping-note__icon.icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--preorder-button-background, #903eff);
}

@media (hover: hover) and (pointer: fine) {
  #MainContent .preorder-button:not(:disabled):hover {
    background: color-mix(in srgb, var(--preorder-button-background, #903eff) 86%, #000) !important;
    color: var(--preorder-button-text, #fff) !important;
  }
}

@media (max-width: 767px) {
  #MainContent .preorder-button.preorder-button--compact:not(:disabled) {
    --preorder-icon-size: 16px;
    font-size: var(--preorder-button-size-mobile, 14px) !important;
  }

  #MainContent .preorder-button.preorder-button--sticky {
    --preorder-icon-size: 16px;
  }

  #MainContent .preorder-button--sticky .preorder-button__sticky-content > span {
    display: none;
  }

  #MainContent .preorder-button--sticky:disabled .preorder-button__sticky-content {
    display: flex !important;
  }

  #MainContent .preorder-button--sticky:disabled .preorder-button__icon.icon {
    display: inline-block !important;
  }
}
