/*
 * 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.
 */

.topbar {
  height: 50px;
}

.footer {
  height: 50px;
}

.full-height {
  min-height: calc(100vh - 100px);
}

.avatar {
  align-items: center;
  display: flex;
  font-size: 16px;
  font-weight: bold;
  height: 50px;
  justify-content: center;
  width: 50px;
}

@media (min-width: 768px) {
  .avatar {
    font-size: 24px;
    height: 75px;
    width: 75px;
  }
}

.transition-color {
  transition: background-color 0.5s ease;
}

#import-errors-accordian {
  --bs-accordion-btn-bg: #f8d7da;
  --bs-accordion-btn-color: #58151c;
  --bs-accordion-active-color: #58151c;
  --bs-accordion-active-bg: #f8d7da;
}

:root {
  --topbar-height: 46px;
}

.cart-dropdown-menu {
  min-width: 22rem;
}

.cart-dropdown-items {
  max-height: 15rem;
  overflow-y: auto;
}

@media (max-width: 767px) {
  .card:has(.card-body) .list-group-item {
    background-color: var(--bs-light);
  }

  .card:has(.card-body) .list-group-item:first-child {
    border-top: var(--bs-list-group-border-width) solid var(--bs-list-group-border-color);
  }

  .card > .d-none:first-child + .list-group-flush .list-group-item:first-child {
    border-top-left-radius: var(--bs-card-inner-border-radius);
    border-top-right-radius: var(--bs-card-inner-border-radius);
  }

  .cart-dropdown-menu {
    position: fixed !important;
    top: var(--topbar-height) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    max-height: calc(80vh - var(--topbar-height));
    overflow-y: auto;
  }

  .cart-dropdown-items {
    max-height: calc(60vh - var(--topbar-height));
  }
}

.flash-toast {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  z-index: 900;
}

.card .list-group-flush:last-child .list-group-item:last-child {
  border-bottom-left-radius: var(--bs-card-inner-border-radius);
  border-bottom-right-radius: var(--bs-card-inner-border-radius);
}

.drag-handle {
  cursor: grab;
  user-select: none;
}

.action-button {
  --bs-btn-padding-y: .1rem;
  --bs-btn-font-size: .70rem;
}

.status-dot {
  width: 16px;
  height: 16px;
  display: inline-block;
}

.accordion-neutral {
  --bs-accordion-active-bg: var(--bs-secondary-bg);
  --bs-accordion-active-color: var(--bs-body-color);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(var(--bs-body-color-rgb), 0.15);
}

