.autorro-company-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: calc(1.5em + .75rem + 2px);
    overflow: hidden;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.autorro-company-search > input,
.autorro-company-search > textarea,
.autorro-company-search > select {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent;
}

.autorro-company-search > input:focus,
.autorro-company-search > textarea:focus,
.autorro-company-search > select:focus {
    border: 0 !important;
    box-shadow: none !important;
    outline: 0;
}

.autorro-company-search:focus-within {
    border-color: #80bdff;
    box-shadow: 0 0 0 .2rem rgba(0,123,255,.25);
}

.autorro-company-search__button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 calc(1.5em + .75rem + 2px);
    align-self: stretch;
    width: calc(1.5em + .75rem + 2px);
    min-height: calc(1.5em + .75rem + 2px);
    border: 0;
    border-left: 1px solid #ced4da;
    border-radius: 0;
    background: #ff501c;
    color: #fff;
    line-height: 1;
    font-size: 1.35rem;
    font-weight: 700;
    cursor: pointer;
}

.autorro-company-search__button:hover,
.autorro-company-search__button:focus {
    background: #e84412;
    outline: 0;
}

.autorro-company-search__panel {
    width: 100%;
    margin-top: 0.5rem;
}

.autorro-company-search__results {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.autorro-company-search__result,
.autorro-company-search__message {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #212529;
    padding: 0.7rem 0.85rem;
    text-align: left;
}

.autorro-company-search__result {
    cursor: pointer;
}

.autorro-company-search__result:hover,
.autorro-company-search__result:focus {
    border-color: #ff501c;
    outline: none;
}

.autorro-company-search__result-title {
    display: block;
    font-weight: 700;
}

.autorro-company-search__result-meta {
    display: block;
    margin-top: 0.2rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.autorro-company-search__message--success {
    border-color: #16a34a;
    color: #166534;
}

.autorro-company-search__message--warning {
    border-color: #f59e0b;
    color: #92400e;
}

.autorro-company-search__message--danger {
    border-color: #dc2626;
    color: #991b1b;
}
