#custom-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px; 
  flex-wrap: wrap;
  justify-content: center;
}

.footer-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}

.footer-card:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
}

.footer-card {
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  width: 220px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.2s, background-color 0.2s;
  color: #333;
}

.footer-card:hover {
  transform: scale(1.05);
}

.footer-card-title {
  font-weight: bold;
  margin-bottom: 6px;
}

.footer-card-desc {
  font-size: 14px;
}

.color-wordpress { background-color: #FFE5B4; }
.color-twenty { background-color: #D8E2DC; }
.color-jan { background-color: #FEC8D8; }
.color-openmanus { background-color: #CDEAC0; }
.color-n8n { background-color: #A0CED9; }

/* Mobile responsive styles */
@media (max-width: 768px) {
  #custom-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    overflow-x: hidden;
    justify-content: flex-start;
    align-items: flex-start;
    box-sizing: border-box;
  }

  .footer-card {
    width: calc(50% - 4px);
    min-width: 0;
    padding: 3px 6px;
    font-size: 13px;
    box-sizing: border-box;
    margin: 0;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
  }

  .footer-card-desc {
    display: none;
  }

  .footer-card-title {
    margin-bottom: 0;
    font-size: 13px;
  }

  #custom-actions .footer-card:nth-child(n+5) {
    display: none !important;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .footer-card {
    font-size: 12px;
    padding: 2px 4px;
  }
  .footer-card-title {
    font-size: 12px;
  }
}
