.color-picker-panel {
  width: 310px;
  border-radius: 8px;
  z-index: 20;
  margin: 0 -10px !important;
}

.panel-row {
  position: relative;
  margin: 0 10px 10px;
}

.panel-row:first-child {
  margin-top: 10px;
  margin-bottom: 6px;
}

.panel-row:after {
  content: "";
  display: table;
  clear: both;
}

.panel-header {
  background: #f2f2f2;
  padding: 8px;
  margin: 0 0 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  color: #333;
}

.swatch {
  display: inline-block;
  width: 32px;
  height: 32px;
  background: #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  border: 1px solid #efefef;
  cursor: pointer;
  position: relative;
}

.swatch .i-close {
  font-size: 8px;
  width: 14px;
  height: 14px;
  border-radius: 14px;
  display: none;
  background-color: #333;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  right: -4px;
  top: -4px;
  position: absolute;
  z-index: 2;
}

.swatch:hover .i-close {
  display: flex;
}

.default-swatches {
  /* width: 212px; */
  width: 100%;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding-bottom: 4px;
}

.custom-swatches {
  width: 100%;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.color-cursor {
  border-radius: 100%;
  background: #ccc;
  box-sizing: border-box;
  position: absolute;
  pointer-events: none;
  z-index: 2;
  border: 2px solid #fff;
  transition: all 0.2s ease;
}

.color-cursor.dragging {
  transition: none;
}

.color-cursor[data-id=spectrum-cursor] {
  width: 30px;
  height: 30px;
  margin-left: -15px;
  margin-top: -15px;
  top: 0;
  left: 0;
}

.color-cursor[data-id=hue-cursor] {
  top: 0;
  left: 50%;
  height: 20px;
  width: 20px;
  margin-top: -10px;
  margin-left: -10px;
  pointer-events: none;
}

.spectrum-map {
  position: relative;
  width: 212px;
  height: 200px;
  overflow: hidden;
}

[data-id=spectrum-canvas] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ccc;
  border-radius: 10px;
}

.hue-map {
  position: absolute;
  top: 5px;
  bottom: 5px;
  right: 29px;
  width: 10px;
}

[data-id=hue-canvas] {
  border-radius: 8px;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ccc;
}

.button {
  background: #fff;
  border: 0;
  border-radius: 4px;
  color: #333;
  font-size: 16px;
  outline: none;
  cursor: pointer;
  padding: 4px;
  border: 1px solid #efefef;
}

.button:hover,
.button:active {
  box-shadow: 2px 2px 10px rgba(0, 0, 0, .05);
}

.button.eyedropper {
  position: absolute;
  right: 0;
  top: 0;
  width: 68px;
  height: 68px;
  display: block;
}

.button.add-swatch {
  padding: 6px 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.button.mode-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 68px;
  height: 40px;
}

.value-fields {
  display: none;
  align-items: center;
}

.value-fields.active {
  display: flex;
}

.value-fields .field-label {
  margin-right: 6px;
  color: #666;
}

.value-fields .field-input {
  border: 1px solid #efefef;
  box-sizing: border-box;
  border-radius: 2px;
  line-height: 38px;
  padding: 0 4px;
  text-align: center;
  color: #333;
  font-size: 16px;
  display: block;
  border-radius: 3px;
}

.rgb-fields .field-group {
  display: flex;
  align-items: center;
}

.rgb-fields .field-input {
  width: 42px;
  margin-right: 10px;
}

.hex-field .field-input {
  width: 170px;
}

.color-indicator {
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: #ccc;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
}

.buttons .button {
  min-height: 34px;
}