/* custom-button-editor.css */

.custom-button-editor {
  max-width: 100%;
}

.custom-button-editor .components-text-control__input,
.custom-button-editor .components-select-control__input {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Button Group styling */
.custom-button-editor .components-button-group {
  display: flex;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.custom-button-editor .components-button-group .components-button {
  border: none;
  border-radius: 0;
  flex: 1;
}

.custom-button-editor .components-button-group .components-button.is-primary {
  background-color: #0073aa;
  color: white;
}

.custom-button-editor .components-button-group .components-button.is-secondary {
  background-color: #f7f7f7;
  color: #555;
}

/* Inspector controls styling */
.custom-button-editor .components-panel__body-title {
  font-weight: 600;
}

.custom-button-editor .components-base-control__help {
  font-size: 12px;
  font-style: italic;
  color: #757575;
  margin-top: 4px;
}

/* Button preview styles */
.custom-button-preview {
  transition: all 0.2s ease;
  border: none;
  cursor: default;
}

.custom-button-preview:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.custom-button-preview--filled {
  background-color: #192c5d;
  color: #f6f4e7;
}

.custom-button-preview--outline {
  background-color: transparent;
  color: #e3af64;
  border: 2px solid #e3af64;
}

/* Block controls toolbar */
.custom-button-editor .components-toolbar-group {
  border: 1px solid #ddd;
}

.custom-button-editor .components-toolbar-button.is-active {
  background-color: #0073aa;
  color: white;
}

/* Alignment wrapper styles */
.custom-button-wrapper--left {
  text-align: left;
}

.custom-button-wrapper--center {
  text-align: center;
}

.custom-button-wrapper--right {
  text-align: right;
}

/* Toggle control styling */
.custom-button-editor .components-toggle-control {
  margin: 16px 0;
}

.custom-button-editor .components-toggle-control .components-toggle-control__label {
  font-weight: 500;
}

/* Select control styling */
.custom-button-editor .components-select-control__input {
  min-height: 36px;
}

/* Panel body spacing */
.custom-button-editor .components-panel__body-content > * {
  margin-bottom: 16px;
}

.custom-button-editor .components-panel__body-content > *:last-child {
  margin-bottom: 0;
}

/* Loading state for pages */
.custom-button-editor .components-spinner {
  margin: 8px 0;
}

/* Info panel in editor */
.custom-button-editor .button-info-panel {
  background-color: #e8f2ff;
  border: 1px solid #4a90e2;
  border-radius: 4px;
  padding: 12px;
  margin-top: 16px;
}

.custom-button-editor .button-info-panel .info-item {
  margin-bottom: 4px;
  font-size: 12px;
  color: #0f1a3a;
}

.custom-button-editor .button-info-panel .info-item:last-child {
  margin-bottom: 0;
}

/* Responsive preview */
@media (max-width: 782px) {
  .custom-button-editor .components-text-control__input,
  .custom-button-editor .components-select-control__input {
    font-size: 16px; /* Prevent zoom on iOS */
  }
}
