.amber-color-picker {
  border: 1px solid #E8E7E0;
  background: #FFFFFF;
  border-radius: 2px;
  line-height: 24px;
  min-height: 24px;
  min-width: 200px;
  display: inline-block;
  position: relative;
}

.amber-color-picker>input {
  border: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
  padding: 0 8px 0 24px;
  background: transparent;
}

.amber-color-picker>.neo-preview {
  pointer-events: none;
  position: absolute;
  left: 4px;
  top: 4px;
  height: 16px;
  width: 16px;
  border: 1px solid #0004;
  box-sizing: border-box;
  background: #FFF;
  border-radius: 2px;
  background-image: 
    linear-gradient(45deg, #ccc 25%, transparent 25%),
    linear-gradient(-45deg, #ccc 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ccc 75%),
    linear-gradient(-45deg, transparent 75%, #ccc 75%);
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
}

.amber-color-picker>.neo-preview::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  background: var(--background);
}

.amber-color-picker>.amber-palette {
  z-index: 10000;
  background: #FFF;
  position: absolute;
  left: -1px;
  top: 26px;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #E8E7E0;
  box-shadow: 0 1px 1px #0004;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.amber-color-picker>.amber-palette>.amber-inner {
  width: 100%;
  height: 100%;
  flex-grow: 1;
  display: flex;
  gap: 2px;
}

.amber-color-picker>.amber-palette::before {
  content:"Amber Color Picker :: Author: Arcturus";
  font-size: 8px;
  color: #CCC;
  right: 8px;
  bottom: 0px;
  line-height: 8px;
  position: absolute;
}

.amber-color-picker>.amber-palette>.amber-inner>.amber-palette-area {
  position: relative;
  width: 200px;
  height: 200px;
  border: 1px solid #E8E7E0;
  cursor: crosshair;
}

.amber-color-picker>.amber-palette>.amber-inner>.amber-palette-area::before {
  content: "";
  position:absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  background: linear-gradient(to bottom, transparent, #000);
  pointer-events: none;
}

.amber-color-picker>.amber-palette>.amber-inner>.amber-palette-area>div {
  position: absolute;
  pointer-events: none;
  height: 11px;
  width: 11px;
  border-radius: 50%;
  border:2px solid #fff;
  box-sizing: border-box;
  box-shadow: 0 0 2px #000;
  margin-left: -7px;
  margin-top: -7px
}

.amber-color-picker>.amber-palette>.amber-inner>.amber-hue-area {
  border: 1px solid #E8E7E0;
  width: 16px;
  height: 200px;
  position: relative;
  background: linear-gradient(to bottom, red 0%, magenta 16.67%, blue 33.34%, cyan 50%, lime 66.67%, yellow 83.33%, red 100%);
  cursor:ns-resize;
}

.amber-color-picker>.amber-palette>.amber-inner>.amber-hue-area>div {
  position: absolute;
  pointer-events: none;
  margin-left: -1px;
  margin-top: -3px;
  width: 100%;
  height:2px;
  border:2px solid #FFF;
  border-width: 2px 1px 2px 1px;
  box-shadow: 0 0 2px #000;
}

.amber-color-picker>.amber-palette>.amber-inner>.amber-alpha-area {
  border: 1px solid #E8E7E0;
  width: 16px;
  height: 200px;
  position: relative;
  cursor:ns-resize;
  background-image: 
      linear-gradient(45deg, #ccc 25%, transparent 25%),
      linear-gradient(-45deg, #ccc 25%, transparent 25%),
      linear-gradient(45deg, transparent 75%, #ccc 75%),
      linear-gradient(-45deg, transparent 75%, #ccc 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

.amber-color-picker>.amber-palette>.amber-inner>.amber-alpha-area::before {
  content: "";
  position: absolute;
  pointer-events: none;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: var(--background);
}

.amber-color-picker>.amber-palette>.amber-inner>.amber-alpha-area>div {
  position: absolute;
  pointer-events: none;
  margin-left: -1px;
  margin-top: -3px;
  width: 100%;
  height:2px;
  border:2px solid #FFF;
  border-width: 2px 1px 2px 1px;
  box-shadow: 0 0 2px #000;
}

.amber-color-picker>.amber-palette>.amber-inner>.amber-recent-color {
  display: grid;
  position: relative;
  border: 1px solid #E8E7E0;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(9, 1fr);
  width: calc(21px * 5 - 1);
  gap: 1px;
  align-items: start;
  padding: 1px;
}

.amber-color-picker>.amber-palette>.amber-inner>.amber-recent-color>div {
  border: 1px solid #E8E7E0;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  background-image: 
      linear-gradient(45deg, #ccc 25%, transparent 25%),
      linear-gradient(-45deg, #ccc 25%, transparent 25%),
      linear-gradient(45deg, transparent 75%, #ccc 75%),
      linear-gradient(-45deg, transparent 75%, #ccc 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

.amber-color-picker>.amber-palette>.amber-inner>.amber-recent-color>div::before {
  content: "";
  position: absolute;
  pointer-events: none;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: var(--background);
}
