@mixin entry() {
  entry {
    padding: 5px;
    border: none;
    color: $text_color;
    caret-color: currentColor;
    background-color: gtkalpha($bg_color, 0.25);

    &:active, &:focus {
      background-color: $base_color;
      
      @if $variant != 'dark' {
        box-shadow: 0 9px 6px 0 gtkalpha($dark_shadow, 0.3);
      }
      @else {
        box-shadow: 0 9px 6px 0 gtkalpha($light_shadow, 0.3);
      }
    }

    &:selected, &:selected:focus, selection, selection:focus {
      color: $selected_fg_color;
      background-color: $selected_bg_color;
    }

    &:disabled {
      color: $disabled_text_color;

      &:backdrop { color: $unfocused_disabled_fg_color; }
    }

    &:backdrop { color: $unfocused_fg_color; }

    > image {
      &.left { padding-right: 5px; }
      &.right { padding-left: 5px; }
    }

    progress {
      margin: -4px -4px;
      border-width: 0 0 2px;
      border-radius: 0;
      border-style: solid;
      border-color: $selected_bg_color;
      background-color: transparent;
    }

    &.flat, &.flat:focus {
      min-height: 0;
      padding: 3px;
      border-radius: 0;
      background-image: none;
      border-color: transparent;
    }

    &.search { border-radius: 40px; }
  }
}
