.sage-ai-update-banner-widget {
  position: fixed !important;
  top: 40px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: auto;
  max-width: 500px;
  min-width: 300px;
  z-index: 999999 !important;
  flex-shrink: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-sizing: border-box !important;
  pointer-events: auto !important;
}

.sage-ai-update-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  animation: slideDown 0.3s ease-out;
}

.sage-ai-update-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sage-ai-update-banner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #ffffff;
  opacity: 0.9;
}

.sage-ai-update-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sage-ai-update-banner-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
}

.sage-ai-update-banner-version {
  font-size: 12px;
  opacity: 0.9;
  line-height: 1.2;
}

.sage-ai-update-banner-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.sage-ai-update-banner-button {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sage-ai-update-banner-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sage-ai-update-banner-button-update {
  background: #ffffff;
  color: #667eea;
}

.sage-ai-update-banner-button-update:hover {
  background: #f8f9fa;
}

.sage-ai-update-banner-button-later {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.sage-ai-update-banner-button-later:hover {
  background: rgba(255, 255, 255, 0.3);
}

.sage-ai-update-banner-button-decline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.sage-ai-update-banner-button-decline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sage-ai-update-banner-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 13px;
}

.sage-ai-update-banner-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.sage-ai-update-banner-description {
  font-size: 12px;
  opacity: 0.9;
  color: #ffffff;
  margin-top: 2px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sage-ai-update-banner-widget {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    max-width: calc(100vw - 40px) !important;
    min-width: auto;
    margin: 0 20px !important;
  }

  .sage-ai-update-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .sage-ai-update-banner-actions {
    align-self: stretch;
    justify-content: space-between;
  }

  .sage-ai-update-banner-button {
    flex: 1;
    text-align: center;
  }
}
