.bib-brreg-search {
    position: relative;
    margin: 0 0 1.25rem;
}

.bib-brreg-label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 600;
}

.bib-brreg-control {
    position: relative;
}

.bib-brreg-input {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding-right: 2.75rem !important;
}

.bib-brreg-spinner {
    position: absolute;
    top: 50%;
    right: 0.9rem;
    width: 1rem;
    height: 1rem;
    margin-top: -0.5rem;
    border: 2px solid rgba(98, 60, 36, 0.22);
    border-top-color: #623c24;
    border-radius: 50%;
    animation: bib-brreg-spin 0.75s linear infinite;
}

.bib-brreg-help {
    margin: 0.4rem 0 0;
    color: #616161;
    font-size: 0.9em;
}

.bib-brreg-results {
    position: absolute;
    z-index: 999;
    right: 0;
    left: 0;
    overflow-y: auto;
    max-height: 22rem;
    margin-top: 0.25rem;
    border: 1px solid #d5d0cc;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(36, 27, 20, 0.14);
}

.bib-brreg-result {
    display: block;
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 0;
    border-bottom: 1px solid #eee9e5;
    background: #fff;
    color: #241b14;
    text-align: left;
    cursor: pointer;
}

.bib-brreg-result:last-child {
    border-bottom: 0;
}

.bib-brreg-result:hover,
.bib-brreg-result:focus,
.bib-brreg-result.is-active {
    outline: 0;
    background: #f7f2ee;
}

.bib-brreg-result-name,
.bib-brreg-result-meta,
.bib-brreg-result-warning {
    display: block;
}

.bib-brreg-result-meta {
    margin-top: 0.2rem;
    color: #665e58;
    font-size: 0.88em;
}

.bib-brreg-result-warning {
    margin-top: 0.25rem;
    color: #8a3d12;
    font-size: 0.85em;
    font-weight: 600;
}

.bib-brreg-status {
    margin-top: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-left: 4px solid #7a6b61;
    border-radius: 3px;
    background: #f5f3f1;
}

.bib-brreg-status.is-success {
    border-left-color: #238636;
    background: #edf8ef;
    color: #175f25;
}

.bib-brreg-status.is-error {
    border-left-color: #b42318;
    background: #fff0ef;
    color: #8d1c13;
}

.bib-brreg-status.is-notice {
    border-left-color: #b7791f;
    background: #fff8e7;
    color: #725017;
}

.bib-brreg-status.is-loading {
    border-left-color: #623c24;
}

.bib-brreg-manual {
    margin-top: 0.65rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #623c24;
    text-decoration: underline;
    cursor: pointer;
}

.bib-ehf-invoice-hint {
    margin: 0.15rem 0 0.65rem;
    padding: 0.65rem 0.75rem;
    border-left: 4px solid #238636;
    border-radius: 3px;
    background: #edf8ef;
    color: #175f25;
    font-size: 0.94em;
    font-weight: 600;
}

form:not(.bib-brreg-company-ready) .bib-brreg-company-details {
    display: none !important;
}

@keyframes bib-brreg-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .bib-brreg-spinner {
        animation-duration: 1.5s;
    }
}
