/*
 * DO NOT EDIT THIS FILE.
 * See the following change record for more information,
 * https://www.drupal.org/node/2815083
 * @preserve
 */

/**
 * @file
 * Select input elements.
 */

/*
  Media query breakpoints.
  Processed by postcss/postcss-custom-media.
*/

/* Navigation related breakpoints */

/* Grid related breakpoints */

/* Grid shifts from 6 to 14 columns. */

/* Width of the entire grid maxes out. */

/*
  Custom CSS properties.

  These are "compiled" by postcss/postcss-custom-properties for IE11 compatibility.
*/

:root {

  /* Typography */

  /* Layout */

  /* Drupal administrative toolbar heights and width. */

  /*
    Grid helpers.

    These variables help authors apply widths and negative margins to break items out of
    the grid, while still conforming to the larger grid system.

    Note we cannot change the values of these custom properties within media queries,
    as they are processed by postcss/postcss-custom-properties (for IE11 compatibility),
    which does not support that functionality. Therefore, we need a separate custom
    property for each breakpoint. 😭
  */ /* Approximate width of a scrollbar. Doesn't have to be perfect. */

  /* Grid gap across various breakpoints. */

  /* Column counts at various breakpoints. */

  /* Count of grid-gaps at various breakpoints. */

  /* Width of the entire grid at various breakpoints. */

  /* Width of a grid column at various breakpoints */

  /* Layout helpers */ /* Black */ /* Black 1 */ /* Black 2 */ /* Black 3 */ /* Gray Dark */ /* Gray medium */ /* Gray medium 1 */ /* Gray medium 2 */ /* Black 4 */ /* Gray light */ /* Gray light 1 */ /* Gray light 2 */ /* Blue dark 2 */ /* Blue medium */ /* Blue bright */ /* Blue bright 5 */ /* White */ /* Red */ /* Gold */ /* Green */ /* middle green */ /* light green */ /* dark green */ /* text color */
  
  /*
  $middle-green: #69aa41;
  $dark-green  : #376437;
  $light-green : #BECD2D;
  $dark-grey   : #555555;

  $color-primary: #286090;
  $color-danger : #c9302c;
  $text-color: #58595b;
  */

  /* Shadows */

  /* Radius */

  /* Outlines */

  /* Header */

  /* Width of slide out navigation */

  /* Border radius */

  /* Form */
}

[dir="ltr"] select {
  padding-left: 24px
}

[dir="rtl"] select {
  padding-right: 24px
}

[dir="ltr"] select {
  padding-right: 72px
}

[dir="rtl"] select {
  padding-left: 72px
}

select {
  max-width: 100%;
  height: 54px;
  padding-top: 0;
  padding-bottom: 0;
  color: #58595b;
  border-width: 2px 0;
  border-style: solid;
  border-color: transparent;
  border-top-left-radius: 0; /* LTR */
  border-top-right-radius: 2px; /* LTR */
  border-bottom-right-radius: 2px; /* LTR */
  border-bottom-left-radius: 0; /* LTR */
  outline: 1px solid transparent;
  /*
    Couple of notes here:

    The select element is styled with external images so it's visible in Firefox in Windows high contrast
    mode. There's a number of browser bugs that limit what we can do including not linear-gradients negating the
    entire ruleset. To work around this, we split off the various backgrounds into separate SVG images, and
    call them as appropriate. We cannot use the background CSS property because we split off the background-color.
    We also cannot use a left border because it angles at the end to blend in with the top and bottom
    transparent borders, so we re-use the background SVG image for this.

    @todo - look at inlining some of the SVGs with an eye on CSS filesize.
  */
  background-color: #f7f9fa;
  background-image: url("../../images/chevron-down.svg"), url("../../images/select-chevron-bg-default.svg"), url("../../images/select-chevron-bg-default.svg");
  background-repeat: no-repeat;
  background-position: /* LTR */
    right 18px center,
    right 0 top -2px,
    left -48px top -2px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 3.125rem;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none
}

select:focus {
    border-color: #69aa41;
    outline: 6px dashed transparent;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #69aa41, 0 0 36px rgba(83, 176, 235, 0.25)
  }

@supports (outline-style: double) {

select:focus {
      outline-style: double
  }
    }

select:hover {
    border-color: #69aa41;
    background-image:
      url("../../images/chevron-down.svg"),
      url("../../images/select-chevron-bg-highlight.svg"),
      url("../../images/select-chevron-bg-highlight.svg");
  }

select {

  /* Disables border of select specifically for ms browser */
}

select::-ms-expand {
    display: none;
  }

select[disabled] {
    pointer-events: none;
    opacity: 0.6;
  }

select.error {
    border-color: #e33f1e;
    background-image:
      url("../../images/chevron-down.svg"),
      url("../../images/select-chevron-bg-error.svg"),
      url("../../images/select-chevron-bg-error.svg");
  }

[dir="ltr"] select[multiple] {
    padding-left: 9px
}

[dir="rtl"] select[multiple] {
    padding-right: 9px
}

[dir="ltr"] select[multiple] {
    padding-right: 9px
}

[dir="rtl"] select[multiple] {
    padding-left: 9px
}

[dir="ltr"] select[multiple] {
    border-right: solid 2px transparent
}

[dir="rtl"] select[multiple] {
    border-left: solid 2px transparent
}

[dir="ltr"] select[multiple] {
    border-left: solid 6px #69aa41
}

[dir="rtl"] select[multiple] {
    border-right: solid 6px #69aa41
}

select[multiple] {
    height: auto;
    padding-top: 9px;
    padding-bottom: 9px;
    border-top: 0;
    border-bottom: 0;
    background-image: none;
    background-repeat: repeat-y;
    background-position: left -48px top -2px; /* LTR */
    line-height: 1 /* Needed by non-Chromium based MS Edge browsers. */
  }

[dir="ltr"] select[multiple] option {
      padding-left: 9px
}

[dir="rtl"] select[multiple] option {
      padding-right: 9px
}

[dir="ltr"] select[multiple] option {
      padding-right: 9px
}

[dir="rtl"] select[multiple] option {
      padding-left: 9px
}

select[multiple] option {
      padding-top: 9px;
      padding-bottom: 9px;
    }

select[multiple]:focus {
      border-color: #69aa41;
      box-shadow:
        0 -2px 0 #69aa41,
        0 2px 0 #69aa41,
        0 -2px 0 2px #fff,
        0 2px 0 2px #fff,
        0 -2px 0 4px #69aa41,
        0 2px 0 4px #69aa41,
        0 0 36px rgba(83, 176, 235, 0.25);
    }

select[multiple]:hover {
      border-color: #69aa41;
      box-shadow:
        0 -2px 0 #69aa41,
        0 2px 0 #69aa41;
    }

select[multiple]:focus:hover {
      box-shadow:
        0 -2px 0 #69aa41,
        0 2px 0 #69aa41,
        0 -2px 0 2px #fff,
        0 2px 0 2px #fff,
        0 -2px 0 4px #69aa41,
        0 2px 0 4px #69aa41,
        0 0 36px rgba(83, 176, 235, 0.25);
    }

select[multiple].error {
      border-color: #e33f1e;
      box-shadow:
        0 -2px 0 #e33f1e,
        0 2px 0 #e33f1e
    }

select[multiple].error:focus {
        box-shadow:
          0 -2px 0 #e33f1e,
          0 2px 0 #e33f1e,
          0 -2px 0 2px #fff,
          0 2px 0 2px #fff,
          0 -2px 0 4px #69aa41,
          0 2px 0 4px #69aa41,
          0 0 36px rgba(83, 176, 235, 0.25);
      }

[dir="ltr"] select.form-element--small {
    padding-left: 19.5px;
    padding-right: 58.5px
}

[dir="rtl"] select.form-element--small {
    padding-right: 19.5px;
    padding-left: 58.5px
}

select.form-element--small {
    height: 45px;
    background-position: right 13.5px center, right -10px top -2px, left -48px top -2px; /* LTR */
    line-height: 2.5625rem;
  }

select {

  /* Necessary for IE11 to show chevron. */
}

@media screen and (-ms-high-contrast: active) {

select {
    background-image: url("../../images/chevron-down.svg")
}
  }

[dir="rtl"] select {
  border-top-left-radius: 2px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 2px;
  background-position:
    left 18px center,
    left 0 top -2px,
    right -48px top -2px
}

[dir="rtl"] select[multiple] {
    background-position: right -48px top -2px;
  }

[dir="rtl"] select.form-element--small {
    background-position: left 13.5px center, right -10px top -2px, left -48px top -2px;
  }
