.wp-block-swp-chat-site-prompt-button {
  margin-bottom: 1.5em;
}

.swp-prompt-button {
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

/* Hover state */
.swp-prompt-button:hover:not(:disabled):not([data-loading="true"]) {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  opacity: 0.9;
}

/* Active state */
.swp-prompt-button:active:not(:disabled):not([data-loading="true"]) {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Loading state */
.swp-prompt-button[data-loading="true"] {
  cursor: not-allowed;
  opacity: 0.7;
}

/* Error state */
.swp-prompt-button[data-error="true"] {
  background-color: #dc3545 !important;
  color: #ffffff !important;
}

/* Loading animation */
.swp-prompt-button[data-loading="true"]::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  animation: loading-bar 1s infinite linear;
}

@keyframes loading-bar {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Disabled state */
.swp-prompt-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

/* Responsive styles */
@media (max-width: 768px) {
  /* Center alignment on mobile */
  .wp-block-swp-chat-site-prompt-button div[style*="text-align"] {
    text-align: center !important;
  }

  /* Mobile button sizing */
  .swp-prompt-button {
    max-width: 100%;
    min-width: 200px;
    width: calc(100% - 2rem) !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin: 0 1rem;
  }
}

/* Editor specific styles */
.wp-block-swp-chat-site-prompt-button .components-notice {
  margin: 1em 0;
  padding: 0.5em 1em;
  border-radius: 4px;
}

.wp-block-swp-chat-site-prompt-button .components-notice.is-warning {
  background-color: #fff8e6;
  border-left: 4px solid #f0b849;
}

.wp-block-swp-chat-site-prompt-button .components-notice.is-info {
  background-color: #e6f6ff;
  border-left: 4px solid #0073aa;
}

.wp-block-swp-chat-site-prompt-button .components-notice.is-error {
  background-color: #fcf0f0;
  border-left: 4px solid #dc3545;
}

