/*
 * DevToolsKH Central Admin
 * Store page layout matching Settings page
 * Scope: /admin/store only
 */

.store-card-grid-hotfix {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch !important;
}

/* Store heading must occupy its own full-width row */
.store-card-grid-hotfix > .store-heading-hotfix {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Store cards */
.store-card-grid-hotfix > .store-card-hotfix {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  height: 100% !important;
  box-sizing: border-box !important;
}

/* Medium screens */
@media (max-width: 1180px) {
  .store-card-grid-hotfix {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Mobile */
@media (max-width: 760px) {
  .store-card-grid-hotfix {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  .store-card-grid-hotfix > .store-heading-hotfix {
    grid-column: 1 !important;
  }
}
