/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.admin-trade-warning {
  background-color: #991b1b !important;
  color: #fff !important;
}

/* Critical lightbox layout lives outside Tailwind so the overlay remains
 * fullscreen even when a local Tailwind watch/build has not picked up newly
 * added utility classes yet. */
.lead-lightbox-overlay {
  align-items: center;
  background-color: rgba(0, 0, 0, 0.9);
  bottom: 0;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 1rem;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1000;
  border: 0;
  height: 100dvh;
  margin: 0;
  max-height: none;
  max-width: none;
  width: 100vw;
}

.lead-lightbox-overlay:not([open]),
.lead-lightbox-overlay.hidden {
  display: none;
}

.lead-lightbox-overlay::backdrop {
  background-color: rgba(0, 0, 0, 0.9);
}

.lead-lightbox-frame {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  position: relative;
  width: 100%;
}

.lead-lightbox-close {
  color: #fff;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1020;
}

.lead-lightbox-image {
  max-height: 90vh;
  max-width: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1010;
}

@media (prefers-color-scheme: dark) {
  .admin-trade-warning {
    background-color: #991b1b !important;
    border-color: #fca5a5 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-trade-warning,
  .lead-lightbox-overlay,
  .lead-lightbox-image {
    animation: none !important;
    transition: none !important;
  }
}
