@mixin triangle {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 9px 10px;
  border-color: transparent transparent #fff;
  position: absolute;
}

@mixin triangle-shadow {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 9px 10px;
  border-color: transparent transparent rgba(0, 0, 0, 0.1);
  position: absolute
}

& {
  width: 276px;
  background: white;
  border: 0 solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  border-radius: 4px;
  position: relative;

  &__body {
    padding: 10px 9px 9px 15px;
  }

  &__clear {
    clear: both;
  }

  &__swatch {
    width: 30px;
    height: 30px;
    float: left;
    border-radius: 4px;
    margin: 0 6px 6px 0;
  }

  &__hash {
    display: flex;
    color: #98A1A4;
    background: #F0F0F0;
    height: 30px;
    width: 30px;
    border-radius: 4px 0 0 4px;
    float: left;
    align-items: center;
    justify-content: center;
  }

  &__input {
    width: 100px;
    font-size: 14px;
    color: #666;
    border: 0;
    outline: none;
    height: 28px;
    box-shadow: inset 0 0 0 1px #F0F0F0;
    box-sizing: content-box;
    border-radius: 0 4px 4px 0;
    float: left;
    padding-left: 8px;
  }

  &__triangle--top-left {
    @include triangle();
    top: -10px;
    left: 12px;
  }

  &__triangle-shadow--top-left {
    @include triangle-shadow();
    top: -11px;
    left: 12px;
  }

  &__triangle--top-right {
    @include triangle();
    top: -10px;
    right: 12px;
  }

  &__triangle-shadow--top-right {
    @include triangle-shadow();
    top: -11px;
    right: 12px;
  }
}
