/**
 * RSX Framework
 * Copyright 2015 Bell Canada
 * 
 * Custom select widget.
 * Reference: 
 */

.rsx-custom-select {
  display: inline-block;
  position: relative;
  z-index: 2;
}

.rsx-custom-select.rsx-focused .rsx-custom-select-trigger{
    outline: 2px solid #0075ff;
    outline-offset: 2px;
    border-radius: 2px;
}

.rsx-custom-select button {
  padding: 0;
}

.rsx-custom-select > select{
  display: block;
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0; 
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  -webkit-appearance: none;
}

.rsx-custom-select-accessibility > select {
    position: static;
    height: 50px;
    opacity: 1;
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {/*IE 10+ Fixes*/
  .rsx-custom-select > select {
    top: 15px;height: 45%;
    }
}

@media screen and (min-width:0\0) {/*IE 9 Fixes*/
  .rsx-custom-select > select {
    top: 15px;height: 45%;
    }
}

.rsx-custom-select-trigger {
    background-color: #fff;
    border: 2px solid #8D8D8D;
    outline: 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
}


.rsx-custom-select-trigger-label {
    margin: 15px 45px 15px 15px;
    display: block;
}

.rsx-custom-select.rsx-custom-select_nowrap .rsx-custom-select-trigger-label {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;    
    display: block;
}

.rsx-custom-select-trigger > .rsx-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    color: #00549a;
    -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
            transform: translateY(-50%);
}

.rsx-error .rsx-custom-select-trigger {
    border-color: #BD2025;
}

.rsx-error .rsx-icon-select-trigger {
    color: #BD2025;
}




/* White on Dark */
.rsx-custom-select_light-on-dark .rsx-custom-select-trigger {
    border-color: #b0afb4;
    background-color: transparent;
    font-size: 16px;
    color: #fff;
}

.rsx-custom-select_light-on-dark .rsx-icon-select-trigger {
    color: #fff;
}
