/* Styling for searchable-select.js. The trigger reuses the select's own .form-control
   classes, so only the panel and list need rules of their own. */
.st-select {
    position: relative;
}

/* Kept in the DOM for form serialization and the checkout's own jQuery calls. */
.st-select > select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.st-select-field {
    width: 100%;
    text-align: left;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23666' d='M4 6l4 4 4-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
    padding-right: 30px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.st-select-panel {
    position: absolute;
    z-index: 1060;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.st-select-search {
    display: block;
    width: 100%;
    padding: 6px 10px;
    border: 0;
    border-bottom: 1px solid #eee;
    outline: none;
    font-size: 1.3rem;
}

.st-select-list {
    max-height: 240px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.st-select-option {
    padding: 7px 10px;
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1.4;
}

.st-select-option.is-active {
    background: #f2f4f7;
}

.st-select-option.is-selected {
    font-weight: 600;
}
