/* SST Restock Notify */

.sst-rsn-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid #d3d7de;
  background: #fff;
  color: #4a4f57;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}

.sst-rsn-btn:hover:not(.is-busy) {
  border-color: #9e2c5f;
  color: #9e2c5f;
}

.sst-rsn-btn.is-on {
  border-color: #9e2c5f;
  background: #9e2c5f;
  color: #fff;
}

.sst-rsn-btn.is-on:hover {
  background: #86254f;
  border-color: #86254f;
  color: #fff;
}

.sst-rsn-btn.is-busy {
  opacity: .55;
  cursor: progress;
}

.sst-rsn-btn__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sst-rsn-btn svg {
  flex: 0 0 auto;
}

/* Match the Quick Order quantity slot so unavailable cards keep their size. */
.sst-qo .sst-rsn-btn[data-source="qo"] {
  grid-area: qty;
  align-self: center;
  justify-self: stretch;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 28px;
  min-height: 28px;
  margin: 0;
  padding: 0 4px;
  gap: 3px;
}

.sst-qo__modal-offer-action .sst-rsn-btn[data-source="qo-modal"] {
  box-sizing: border-box;
  width: 112px;
  min-width: 112px;
  height: 32px;
  min-height: 32px;
  justify-content: center;
}

/* multi-line bell -------------------------------------------------------- */

/*
 * One bell standing for every variation of a product that has not opened yet. It
 * carries a whole sentence rather than a one-word label, so it is sized and
 * weighted like a primary action - jet on bone, the way the rest of the release
 * furniture reads - and it wraps rather than ellipsing, because the sentence is
 * the offer and half of it is worth nothing.
 *
 * Placement is deliberately not set here. The same markup is rendered by the theme
 * inside the home-page hero, where the surrounding layout owns the geometry; these
 * rules have to survive being dropped into either context.
 */
.sst-rsn-btn--multi {
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border-color: #1a1a1a;
  background: #1a1a1a;
  color: #fff;
  font-size: 12px;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
}

.sst-rsn-btn--multi:not(.is-on):hover:not(.is-busy) {
  border-color: #9e2c5f;
  background: #9e2c5f;
  color: #fff;
}

/* The label is a sentence: let it wrap instead of being cut off mid-promise. */
.sst-rsn-btn--multi .sst-rsn-btn__label {
  overflow: visible;
  white-space: normal;
  line-height: 1.35;
}

.sst-rsn-btn--multi .sst-rsn-btn__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

/* product page ---------------------------------------------------------- */

.sst-rsn-mount:empty {
  display: none;
}

.sst-rsn-product {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 14px 0 4px;
  padding: 12px 14px;
  border: 1px solid #e4e7ec;
  background: #fafbfc;
}

.sst-rsn-product .sst-rsn-btn {
  min-height: 36px;
  padding: 0 14px;
  font-size: 12px;
}

/* Wins back the padding the rule above flattens - a wrapping label needs the
   vertical room, and `0 14px` would let a second line touch the border. */
.sst-rsn-product .sst-rsn-btn--multi {
  min-height: 44px;
  padding: 11px 18px;
}

/* On a teaser the sentence under the bell is the explanation of what one click
   buys, so it sits on its own line rather than beside a button it is as wide as. */
.sst-rsn-product--teaser {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.sst-rsn-product__text {
  color: #5b6169;
  font-size: 12px;
  line-height: 1.5;
}

/* dialog ---------------------------------------------------------------- */

.sst-rsn-dialog {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.sst-rsn-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 20, 24, .55);
}

.sst-rsn-dialog__panel {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .25);
}

.sst-rsn-dialog__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sst-rsn-dialog__lead {
  margin: 0 0 14px;
  color: #5b6169;
  font-size: 12px;
  line-height: 1.6;
}

.sst-rsn-dialog__label {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #4a4f57;
}

.sst-rsn-dialog__input {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  border: 1px solid #d3d7de;
  background: #fff;
  font: inherit;
  font-size: 14px;
}

.sst-rsn-dialog__input:focus {
  outline: none;
  border-color: #9e2c5f;
}

.sst-rsn-dialog__check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  color: #4a4f57;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}

.sst-rsn-dialog__check input {
  margin: 2px 0 0;
  flex: 0 0 auto;
}

.sst-rsn-dialog__error {
  margin: 10px 0 0;
  color: #9e2c5f;
  font-size: 12px;
  line-height: 1.5;
}

.sst-rsn-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.sst-rsn-dialog__cancel,
.sst-rsn-dialog__submit {
  appearance: none;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid #1a1a1a;
  background: #fff;
  color: #1a1a1a;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}

.sst-rsn-dialog__submit {
  background: #1a1a1a;
  color: #fff;
}

.sst-rsn-dialog__submit:hover:not(:disabled) {
  background: #9e2c5f;
  border-color: #9e2c5f;
}

.sst-rsn-dialog__submit:disabled {
  opacity: .5;
  cursor: progress;
}

/* toast ----------------------------------------------------------------- */

.sst-rsn-flash {
  position: absolute;
  z-index: 100001;
  max-width: 260px;
  padding: 8px 11px;
  background: #1a1a1a;
  color: #fff;
  font-size: 11px;
  line-height: 1.45;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  pointer-events: none;
}

/* preferences page ------------------------------------------------------ */

.sst-rsn-prefs {
  max-width: 680px;
  margin: 0 auto;
  padding: 8px 0 32px;
}

.sst-rsn-prefs h2 {
  margin: 0 0 4px;
  font-size: 20px;
  letter-spacing: .04em;
}

.sst-rsn-prefs__email {
  margin: 0 0 18px;
  color: #5b6169;
  font-size: 13px;
}

.sst-rsn-prefs__notice {
  margin: 0 0 18px;
  padding: 10px 12px;
  border-left: 3px solid #9e2c5f;
  background: #fbf4f7;
  font-size: 13px;
}

.sst-rsn-prefs__section {
  margin-bottom: 28px;
  padding-top: 18px;
  border-top: 1px solid #e4e7ec;
}

.sst-rsn-prefs__section h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sst-rsn-prefs__list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.sst-rsn-prefs__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #eef0f3;
  font-size: 13px;
}

.sst-rsn-prefs__name em {
  color: #757b84;
  font-style: normal;
}

.sst-rsn-prefs__off,
.sst-rsn-prefs__all {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: #9e2c5f;
  text-decoration: underline;
}

.sst-rsn-prefs__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  flex-wrap: wrap;
}

.sst-rsn-prefs__state {
  margin: 0;
  font-size: 13px;
  color: #5b6169;
}

.sst-rsn-prefs__button {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid #9e2c5f;
  border-radius: 2px;
  background: #fff;
  color: #9e2c5f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
}

.sst-rsn-prefs__button:hover,
.sst-rsn-prefs__button:focus-visible {
  background: #9e2c5f;
  color: #fff;
}

/* The section a mail link asked for: findable without a hunt down the page. */
.sst-rsn-prefs__section--focus {
  margin-left: -14px;
  margin-right: -14px;
  padding: 18px 14px 14px;
  border-top: 0;
  border-left: 3px solid #9e2c5f;
  background: #fbf4f7;
  scroll-margin-top: 24px;
}

/*
 * "Turn off" used to be a link, and a link is a GET, and a GET gets prefetched by
 * mail scanners. It is a form button now; these rules keep it looking the way it
 * did in the list, so the change is invisible to the reader.
 */
.sst-rsn-prefs__off {
  flex: 0 0 auto;
  margin: 0;
}

.sst-rsn-prefs__linkbutton {
  padding: 0;
  border: 0;
  background: none;
  color: #9e2c5f;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.sst-rsn-prefs__linkbutton:hover,
.sst-rsn-prefs__linkbutton:focus-visible {
  color: #6d1d41;
}

/* The one item a mail link pointed at. */
.sst-rsn-prefs__item--focus {
  margin: 0 -8px;
  padding: 10px 8px;
  background: #fbf4f7;
  scroll-margin-top: 24px;
}

.sst-rsn-prefs__loading {
  margin: 0;
  color: #5b6169;
  font-size: 13px;
}

/* Without scripting there is no way to identify the reader from a URL that has no
   token on it, so the spinner text would sit there forever. Hide it and let the
   noscript message stand on its own. */
.sst-rsn-prefs--shell noscript {
  display: block;
  font-size: 13px;
}

/* A form, not a section: the section modifier's negative margins would pull it
   out past the list it belongs under. */
.sst-rsn-prefs__toggle--focus {
  margin: 0 -8px;
  padding: 10px 8px;
  border-left: 3px solid #9e2c5f;
  background: #fbf4f7;
  scroll-margin-top: 24px;
}

.sst-rsn-prefs__hint {
  color: #5b6169;
  font-size: 12px;
}

/*
 * The dialog's checkbox row sets display:flex, which is author-origin and so beats
 * the UA stylesheet's [hidden] rule. Hiding it from script did nothing at all
 * without this: guests were still shown a newsletter tick box whose answer the
 * server discards.
 */
.sst-rsn-dialog__check[hidden] {
  display: none;
}

/*
 * The line under the newsletter tick box, shown only to someone who has
 * unsubscribed before. It has to read as an explanation of why the box is empty,
 * not as an error, so it sits quiet and close to the control it belongs to.
 */
.sst-rsn-dialog__note {
  margin: -4px 0 0;
  color: #5b6169;
  font-size: 12px;
  line-height: 1.5;
}
