/**
 * Copyright (c) HashiCorp, Inc.
 * SPDX-License-Identifier: MPL-2.0
 */

.flight-icon {
  display: block;
}

.flight-icon-display-inline {
  display: inline-block;
}

@keyframes hds-flight-icon-animation-rotation {
  to {transform: rotate(360deg);}
}

.flight-icon--animation-loading {
  animation: hds-flight-icon-animation-rotation 9s linear infinite;
}

.flight-icon--animation-running {
  animation: hds-flight-icon-animation-rotation 9s linear infinite;
}

@media (prefers-reduced-motion: no-preference) {

  .flight-icon--animation-loading {
    animation-duration: .7s;
  }

  .flight-icon--animation-running {
    animation-duration: 1s;
  }
}

.flight-sprite-container {
  position: absolute;
  width: 0;
  height: 0;
  visibility: hidden;
}
#ember-a11y-refocus-nav-message {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ember-a11y-refocus-skip-link {
  position: absolute;
  left: 0;
  top: 0;
  background-color: rgba(0, 0, 0, 0.75);
  font-size: 0.75rem;
  color: #fff;
  padding: 0.25rem;
  text-decoration: none;
  transform: translateY(-100%); 
  transition: transform 0.3s ease-in-out;
}

.ember-a11y-refocus-skip-link:focus {
  transform: translateY(0);
}
.ember-select {
  position: relative;
}

.es-control {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  color: #333;
  cursor: text;
  display: table;
  height: 36px;
  outline: none;
  overflow: hidden;
  padding: 6px 12px;
  position: relative;
  table-layout: fixed;
  width: 100%;
  z-index: 5;
}

.es-control:hover {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.es-multiple .es-control {
  padding: 4px 12px;
}

.es-multiple .es-input > input {
  width: auto;
}

.es-open > .es-control {
  background: #fff;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #b3b3b3 #ccc #d9d9d9;
}

.es-focus:not(.es-open) > .es-control {
  border-color: #0099e6;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 5px -1px rgba(0, 136, 204, 0.5);
}

.es-selections {
  margin-right: 1rem;
}

.es-selections span {
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
  margin: 2px 0;
  padding: 0 6px;
}

.es-selections span:hover {
  background-color: #e6e6e6;
  border-color: #adadad;
}

.es-input > input {
  border: 0 none;
  font-family: inherit;
  font-size: inherit;
  outline: none;
  width: 100%;
}

.es-select,
.es-select input,
.es-select .es-control .es-input > input {
  cursor: pointer;
}

/* Hide IE `clear` on input */
.es-input > input::-ms-clear {
  display: none;
}

.es-focus .es-input > input {
  cursor: text;
}

/* Clear */
.es-clear-zone {
  color: #999;
  cursor: pointer;
  display: table-cell;
  position: relative;
  text-align: center;
  vertical-align: middle;
  width: 20px;
}

.es-clear-zone:hover {
  color: #D0021B;
}

.es-clear {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
}

/* Options */
.es-options {
  background-color: #fff;
  border: 1px solid #ccc;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  border-top-color: #e6e6e6;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
  margin-top: -2px;
  max-height: 200px;
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
  position: absolute;
  top: 100%;
  width: 100%;
  z-index: 10;
}

.es-option {
  cursor: pointer;
  display: block;
  padding: 0.25rem 1.5rem;
}

.es-option:last-child {
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.es-options .es-highlight {
  background-color: #f2f9fc;
  color: #333;
}

/* Dropdown */
.es-arrow-zone {
  cursor: pointer;
  display: table-cell;
  position: relative;
  text-align: center;
  vertical-align: middle;
  width: 20px;
}

.es-arrow {
  border-color: #999 transparent transparent;
  border-style: solid;
  border-width: 5px 5px 2.5px;
  display: inline-block;
  height: 0;
  width: 0;
}

.es-open .es-arrow,
.es-arrow-zone:hover > .es-arrow {
  border-top-color: #666;
}

/* Groups */
.es-group {
  font-weight: bold;
  padding: 1rem 0 0 0.5rem;
}

/* Pseudo elements to disable IE `helpfulness`.
   Avoids clear and show password buttons. */
::-ms-clear,
::-ms-reveal {
  display: none;
}
