﻿/* 
    Referenced code from 
    https://www.w3.org/TR/wai-aria-practices-1.2/examples/combobox/combobox-autocomplete-list.html.
    
    Modified styling to match VTB website.
*/

.combobox-list {
    position: relative;
}

.combobox .group {
    display: inline-flex;
    padding: 2px;
}

.combobox input,
.combobox button {
    background-color: white;
    color: #555;
    box-sizing: border-box;
    height: 34px;
    width: 100%;
    padding: 6px 12px;
    margin: 0;
    vertical-align: bottom;
    border: 1px solid #ccc;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
}

.combobox input:focus{
    outline: none;
    border: 1px #66afe9e8 solid;
    box-shadow: 0 1px 1px rgba(102, 175, 233, 0.080) inset, 0 0 8px rgba(102, 175, 233, 0.3);
}

.combobox button {
    width: 19px;
    border-left: none;
    outline: none;
    color: rgb(0 90 156);
}

.combobox button[aria-expanded="true"] svg {
    transform: rotate(180deg) translate(0, -3px);
}

ul[role="listbox"] {
    margin: 0;
    padding: 0;
    position: absolute;
    left: 4px;
    top: 36px;
    list-style: none;
    background-color: white;
    display: none;
    box-sizing: border-box;
    border: 1px #66afe9e8 solid;
    max-height: 250px;
    width: 98%;
    overflow: scroll;
    overflow-x: hidden;
    font-size: 87.5%;
    cursor: pointer;
}

ul[role="listbox"] li[role="option"] {
    margin: 0;
    display: block;
    padding-left: 3px;
    padding-top: 2px;
    padding-bottom: 2px;
}

/* focus and hover styling */

[role="listbox"].focus [role="option"][aria-selected="true"],
[role="listbox"] [role="option"]:hover {
    background-color: #def;
    padding-top: 0;
    padding-bottom: 0;
    border-top: 1px #66afe9e8 solid;
    border-bottom: 1px #66afe9e8 solid;;
}

/* 
    Style to modify arrow icon in select element used in Shaka 
    player preset.
*/
select {
    background-image:
            linear-gradient(55deg, transparent 60%, #427bbd 60%),
            linear-gradient(125deg, #427bbd 40%, transparent 40%) !important;
    background-position:
            calc(100% - 20px) 14px,
            calc(100% - 10px) 14px,
            100% 0;
    background-size:
            10px 10px,
            10px 10px;
    background-repeat: no-repeat;
    -webkit-appearance: none;
    -moz-appearance: none;
}