/* Company lookup above the billing block of the public forms - see js/companyLookup.js. */

.company-lookup {
    position: relative;
}

.company-lookup__input {
    width: 100%;
}

.company-lookup__hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #777;
}

.company-lookup__results {
    display: none;
    position: absolute;
    z-index: 1080;
    left: 0;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
    margin-top: 2px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    text-align: left;
}

.company-lookup.is-open .company-lookup__results {
    display: block;
}

.company-lookup__item {
    display: block;
    padding: 10px 12px;
    min-height: 38px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    touch-action: manipulation;
}

.company-lookup__item:last-child {
    border-bottom: 0;
}

.company-lookup__item.is-active,
.company-lookup__item:hover {
    background: #f5f7fa;
}

.company-lookup__name {
    display: block;
    font-weight: 600;
    line-height: 1.3;
}

.company-lookup__address {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #777;
    line-height: 1.3;
}

.company-lookup__empty {
    padding: 10px 12px;
    font-size: 13px;
    color: #777;
}

.company-lookup.is-loading .company-lookup__input {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6' fill='none' stroke='%23bbb' stroke-width='2' stroke-dasharray='9 24'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 8 8' to='360 8 8' dur='.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

@media (pointer: coarse) {
    .company-lookup__input {
        font-size: 16px;
    }

    .company-lookup__item {
        padding: 12px;
        min-height: 44px;
    }
}
