.ps-crm-quick-actions {
  position: sticky;
  top: auto;
  bottom: 34px;
  z-index: 35;
  display: flex;
  justify-content: center;
  margin: -50px 0 0;
  padding: 0;
  pointer-events: none;
}

.ps-crm-card-main,
.ps-crm-card-featured {
  min-width: 0;
  min-height: 0;
  position: relative;
}

.ps-crm-card-form {
  padding-bottom: 64px;
}

.ps-crm-quick-actions-popover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-wrap: nowrap;
  max-width: min(100%, 820px);
  width: max-content;
  padding: 4px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(8px);
  pointer-events: auto;
  overflow-x: auto;
  overflow-y: hidden;
}

.ps-crm-quick-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #4b5563;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, color .18s ease;
}

.ps-crm-quick-action-btn:hover {
  background: #f6f0fa;
  color: #111827;
  transform: translateY(-1px);
}

.ps-crm-quick-action-btn:disabled {
  opacity: .55;
  cursor: wait;
  transform: none;
}

.ps-crm-quick-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ps-crm-quick-action-icon svg {
  width: 15px;
  height: 15px;
  display: block;
}

.ps-crm-quick-action-label {
  white-space: nowrap;
  font-size: 13px;
  line-height: 1;
}

.ps-crm-card-wrap.is-sideview-card .ps-crm-quick-actions,
.ps-crm-card-wrap.is-quickview-card .ps-crm-quick-actions {
  bottom: 10px;
}

@media (max-width: 767px) {
  .ps-crm-quick-actions {
    bottom: 10px;
    margin: -44px 0 0;
    padding: 0 8px;
  }

  .ps-crm-quick-actions-popover {
    max-width: calc(100% - 8px);
    width: auto;
    border-radius: 18px;
    justify-content: center;
  }
}