/* Octane Site Widgets — site-wide: Safety Data Sheets dialog and toasts.
   Every selector is prefixed .oct- to avoid clashing with themes/plugins. */

html.oct-modal-open,
html.oct-modal-open body { overflow: hidden; }

.oct-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(0.5rem);
  backdrop-filter: blur(0.5rem);
  font-family: 'Poppins', sans-serif;
}
.oct-modal[hidden] { display: none; }

.oct-modal__dialog {
  width: 100%;
  max-width: 40.625rem;
  max-height: 90vh;
  overflow-y: auto;
  background: #FFFFFF;
  color: #000000;
  border-radius: 1.25rem;
  box-shadow: 0 1.5625rem 3.75rem rgba(0, 0, 0, 0.35);
  outline: none;
}
.oct-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  border-bottom: 0.0625rem solid #E5E5E5;
}
.oct-modal__header h3 {
  margin: 0;
  font-family: 'Cal Sans', 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 1.625rem;
  line-height: 1.2;
  color: #000000;
}
.oct-modal__close {
  padding: 0.25rem;
  border: 0;
  background: none;
  font-size: 2rem;
  line-height: 1;
  color: #737373;
  cursor: pointer;
}
.oct-modal__close:hover,
.oct-modal__close:focus-visible { color: #000000; }
.oct-modal__body { padding: 1.75rem; }

.oct-sds__intro { margin: 0 0 1.5rem; font-size: 0.9375rem; line-height: 1.5; color: #404040; }
.oct-sds__empty { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: #404040; }
.oct-sds__list { display: flex; flex-direction: column; gap: 0.875rem; margin: 0; padding: 0; list-style: none; }
.oct-sds__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #F8F9FA;
  border: 0.0625rem solid #E5E5E5;
  border-radius: 0.75rem;
}
.oct-sds__info h4 { margin: 0 0 0.25rem; font-size: 1rem; font-weight: 600; color: #000000; }
.oct-sds__info span { font-size: 0.8125rem; color: #737373; }
.oct-sds__download {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  background: #2B64DC;
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}
.oct-sds__download:hover,
.oct-sds__download:focus-visible { background: #1B4EBA; color: #FFFFFF; }

@media (max-width: 767px) {
  .oct-sds__item { flex-direction: column; align-items: flex-start; }
}

/* Toasts */
.oct-toasts {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 100001;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  pointer-events: none;
}
.oct-toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 26.25rem;
  padding: 0.875rem 1.375rem;
  background: #000000;
  color: #FFFFFF;
  border-left: 0.25rem solid #2B64DC;
  border-radius: 0.625rem;
  box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.35);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.4;
  pointer-events: auto;
  animation: octToastIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.oct-toast.is-leaving { opacity: 0; transform: translateY(0.625rem); }
.oct-toast--success { border-left-color: #00E676; }
.oct-toast--error { border-left-color: #FF5252; }
.oct-toast__icon { font-weight: 700; font-size: 1.1rem; }

@keyframes octToastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 767px) {
  .oct-toasts { left: 1rem; right: 1rem; bottom: 1rem; }
  .oct-toast { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .oct-toast { animation: none; }
}
