#legend-customizer-container {
  margin-top: -20px;
  display: flex;
  gap: 20px;
}

/* Buttons for changing legend colors */
.change-legend-color-btn {
  color: white;
  background: rgba(11, 18, 34, 1);
  border: 1px solid #253149;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}
.change-legend-color-btn:hover {
  background: #4b5563;
}

/* Window for selecting new color(s) */
.color-picker-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(11, 18, 34, 1);
  border: 1px solid #253149;
  border-radius: 8px;
  padding: 20px;
  z-index: 1001;
  color: white;
}
.color-input-group {
  margin: 12px 0;
}
.color-input-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}
.color-input-group input[type="color"] {
  width: 100px;
  height: 30px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Accept and Cancel buttons */
#apply-gradient-colors, .cancel-gradient-change-btn {
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}
.cancel-gradient-change-btn {
  background: #6b7280;
}

#swap-colors {
  color: white;
  background: #059669;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: xx-large;
}

/* Safari-only stylization */
@supports (hanging-punctuation: first) {
  #swap-colors-container {
    margin-top: 20px !important;
  }
}

/* Firefox-only stylization */
@-moz-document url-prefix() {
  #swap-colors {
    margin-top: -5px;
  }

  #swap-sign {
    margin-bottom: 8px;
    width: 30px;
    font-size: larger;
  }
}

/* Gradient choices */
.gradient-option {
  display: flex;
  align-items: center;
  padding: 8px;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.gradient-option:hover {
  border-color: #3b4a6f;
}
.gradient-option.selected {
  border-color: #2563eb;
}
.gradient-preview {
  width: 60px;
  height: 20px;
  border-radius: 4px;
  margin-right: 12px;
  border: 1px solid #3b4a6f;
}
.gradient-option span {
  font-size: 14px;
  color: white;
}
