/**
 * Design Config Widget Styles
 * Styles to support the full-width background functionality
 */

/* Full-width background wrapper */
.full-width-bg-wrapper {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Ensure content inside full-width wrapper is properly contained */
.full-width-bg-wrapper .block-4-column-cta {
  max-width: none;
  width: 100%;
}

/* Optional: Add some padding to full-width backgrounds */
.full-width-bg-wrapper .vads-l-grid-container {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 64em) {
  .full-width-bg-wrapper .vads-l-grid-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Ensure proper spacing for full-width backgrounds */
.full-width-bg-wrapper {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Debug styles (can be removed in production) */
.design-config-debug {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.5rem;
  margin: 1rem 0;
}

.design-config-debug summary {
  cursor: pointer;
  font-weight: bold;
  padding: 0.25rem;
}

.design-config-debug pre {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 3px;
  padding: 0.5rem;
  font-size: 0.75rem;
  overflow-x: auto;
}

.design-config-debug code {
  background: #e9ecef;
  padding: 0.125rem 0.25rem;
  border-radius: 2px;
  font-size: 0.8em;
}

/* Reset button styles */
.reset-config-button {
  background-color: #6c757d;
  border: 1px solid #6c757d;
  color: white;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.reset-config-button:hover {
  background-color: #5a6268;
  border-color: #545b62;
  color: white;
}

.reset-config-button:focus {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.5);
}

.reset-config-button:active {
  background-color: #545b62;
  border-color: #4e555b;
  transform: translateY(1px);
}

/* Position reset buttons at the top of each details section */
.form-item-reset-border,
.form-item-reset-text-alignment,
.form-item-reset-background-color,
.form-item-reset-text-color,
.form-item-reset-box-shadow {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #dee2e6;
}

/* Reset All button styles */
.reset-all-button {
  background-color: #dc3545;
  border: 1px solid #dc3545;
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
  width: 100%;
}

.reset-all-button:hover {
  background-color: #c82333;
  border-color: #bd2130;
  color: white;
}

.reset-all-button:focus {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5);
}

.reset-all-button:active {
  background-color: #bd2130;
  border-color: #b21f2d;
  transform: translateY(1px);
}

/* Position reset all button at the top */
.form-item-reset-all {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #dee2e6;
}