/* 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;
}

/* 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;
}

.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;
}
