.nori-notify-button {
  cursor: pointer;
}

.nori-notify-open {
  overflow: hidden;
}

.nori-notify-overlay {
  position: fixed;
  inset: 0;
  z-index: 1085;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgb(0 0 0 / 48%);
}

.nori-notify-dialog {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border-radius: 0.75rem;
  background: var(--bs-body-bg, #fff);
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 24%);
}

.nori-notify-dialog__body {
  padding: 1.5rem;
}

.nori-notify-dialog__close {
  position: absolute;
  z-index: 2;
  top: 0.5rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.nori-notify-product {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 2rem;
  margin-bottom: 1.25rem;
}

.nori-notify-product img {
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 0.4rem;
}

.nori-notify-product__name {
  font-weight: 600;
}

.nori-notify-captcha {
  min-height: 3rem;
}

.nori-notify-loading {
  width: 2.5rem;
  height: 2.5rem;
  margin: 3rem auto;
  border: 0.25rem solid rgb(128 128 128 / 25%);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: nori-notify-spin 0.8s linear infinite;
}

.nori-notify-success {
  margin-bottom: 1rem;
}

@keyframes nori-notify-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 575.98px) {
  .nori-notify-overlay {
    align-items: end;
    padding: 0;
  }

  .nori-notify-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 0.9rem 0.9rem 0 0;
  }

  .nori-notify-dialog__body {
    padding: 1.25rem;
  }
}

/* Nori Frontend compatibility: the original cart control is converted in place. */
.nori-theme .nori-product-card .nori-notify-button.nori-product-card__notify:not(:disabled) {
  color: #fff;
  background-color: #707984;
  border-color: #707984;
  cursor: pointer;
  opacity: 1;
}

.nori-theme .nori-product-card .nori-notify-button.nori-product-card__notify:not(:disabled):hover,
.nori-theme .nori-product-card .nori-notify-button.nori-product-card__notify:not(:disabled):focus {
  color: #fff;
  background-color: #5f6872;
  border-color: #5f6872;
}

.nori-notify-unavailable.product-thumb:not(.nori-product-card) {
  background-color: #f1f3f5;
}

.nori-notify-unavailable.product-thumb:not(.nori-product-card) img {
  opacity: 0.76;
  filter: grayscale(25%);
}

/* Account wishlist: keep the native row layout, but present Notify as an active gray action. */
.nori-notify-button.nori-notify-wishlist:not(:disabled) {
  color: #fff;
  background-color: #707984;
  border-color: #707984;
  cursor: pointer;
  opacity: 1;
}

.nori-notify-button.nori-notify-wishlist:not(:disabled):hover,
.nori-notify-button.nori-notify-wishlist:not(:disabled):focus {
  color: #fff;
  background-color: #5f6872;
  border-color: #5f6872;
}

.nori-notify-button.nori-notify-wishlist .fa-bell {
  margin-right: 0.35rem;
}
