/**
 * Supplement reminder modal styles.
 */

#nhma-supplement-reminder-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1055;
  background: rgba(0, 0, 0, 0.5);
}

#nhma-supplement-reminder-modal .nhma-modal-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 0.375rem;
  max-width: 480px;
  width: calc(100% - 2rem);
  padding: 1.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#nhma-supplement-reminder-modal .nhma-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #666;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

#nhma-supplement-reminder-modal .nhma-modal-close:hover {
  color: #000;
}

#nhma-supplement-reminder-modal .nhma-modal-title {
  margin: 0 0 1rem;
}

#nhma-supplement-reminder-modal .nhma-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

#nhma-supplement-reminder-modal .nhma-modal-btn {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 0;
  padding: 0.5rem 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
  border: 2px solid hsl(162, 99%, 32%);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* Secondary action (Continue to checkout) — outline style */
#nhma-supplement-reminder-modal .nhma-modal-btn--secondary {
  background: #fff;
  color: hsl(162, 95%, 16%);
}

#nhma-supplement-reminder-modal .nhma-modal-btn--secondary:hover,
#nhma-supplement-reminder-modal .nhma-modal-btn--secondary:focus {
  background: hsl(162, 95%, 16%);
  color: #fff;
  border-color: hsl(162, 95%, 16%);
}

/* Primary action (Add supplement / View cart) — solid style */
#nhma-supplement-reminder-modal .nhma-modal-btn--continue {
  background: hsl(162, 95%, 16%);
  color: #fff;
}

#nhma-supplement-reminder-modal .nhma-modal-btn--continue:hover,
#nhma-supplement-reminder-modal .nhma-modal-btn--continue:focus {
  background: #fff;
  color: hsl(162, 95%, 16%);
  border-color: hsl(162, 95%, 16%);
}

/* Multiple supplements — per-row layout */
#nhma-supplement-reminder-modal .nhma-supplement-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

#nhma-supplement-reminder-modal .nhma-supplement-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.85rem;
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
}

#nhma-supplement-reminder-modal .nhma-supplement-row__title {
  font-size: 0.9rem;
  flex: 1;
  min-width: 0;
}

#nhma-supplement-reminder-modal .nhma-supplement-row__title a {
  color: hsl(162, 95%, 16%);
  text-decoration: underline;
}

#nhma-supplement-reminder-modal .nhma-supplement-row__btn {
  flex-shrink: 0;
  font-size: 0.75rem;
  padding: 0.4rem 0.75rem;
  white-space: nowrap;
}
