.restock-control {
  flex: 0 1 16rem;
  min-width: 0;
  align-self: stretch;
  position: relative;
}
.restock-control__status {
  color: #647276;
  font-size: .75rem;
  line-height: 1;
  margin: 0 0 .4rem;
}
.restock-control__button {
  background: #e4e6e5;
  color: #405051;
  border: 1px solid #d5dad9;
  width: 100%;
  padding: .8rem .75rem;
  font-size: .8rem;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
}
.restock-control__button:hover { background: #d7dddb; }
.restock-control + [data-ref="favorite"] { align-self: flex-end; }

.restock-dialog {
  box-sizing: border-box;
  width: min(475px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 52px 44px 48px;
  background: #f8f8f6;
  color: #272b2c;
  text-align: center;
  border: 0;
  overflow-y: auto;
}
.restock-dialog::backdrop { background: rgb(0 0 0 / 30%); }
.restock-dialog__close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  background: #eeeeec;
  color: #536061;
  cursor: pointer;
}
.restock-dialog__title {
  margin: 0;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.22;
  text-transform: uppercase;
}
.restock-dialog__description {
  margin: 16px 0 28px;
  color: #5a6466;
  font-size: 14px;
  line-height: 1.55;
}
.restock-dialog__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.restock-dialog__form[hidden] { display: none; }
.restock-dialog__form input[type="email"] {
  width: min(100%, 288px);
  padding: 10px 16px;
  border: 1px solid #dadfdd;
  background: #fff;
  color: #272b2c;
  font-size: 15px;
}
.restock-dialog__form button {
  min-height: 44px;
  padding: .6rem 2.2rem;
  background: transparent;
  border: 1px solid #dadfdd;
  color: #272b2c;
  text-transform: uppercase;
  font-size: .8rem;
  cursor: pointer;
}
.restock-dialog__form button:hover { background: #eeefed; }
.restock-dialog__form button:disabled { opacity: .6; cursor: wait; }
.restock-dialog__message { margin: 16px 0 0; font-size: 14px; }
.restock-dialog__message_error { color: #952b20; }

@media (max-width: 767px) {
  .restock-control { flex: 1 1 auto; }
  .restock-dialog { padding: 42px 20px 34px; }
  .restock-dialog__title { font-size: clamp(26px, 8vw, 36px); }
  .restock-dialog__close { top: 10px; right: 10px; }
  .restock-dialog__form { gap: 22px; }
}
