.mfo-as-search-widget {
    max-width: 600px;
    margin: 0 auto;
    font-family: inherit;
}

.mfo-as-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
}

.mfo-as-search-input:focus {
    border-color: #2271b1;
}

.mfo-as-search-results {
    margin-top: 10px;
}

.mfo-as-result {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    margin-bottom: 8px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: border-color 0.15s ease;
}

.mfo-as-result:hover {
    border-color: #2271b1;
}

.mfo-as-empty,
.mfo-as-loading {
    padding: 12px 16px;
    color: #888;
    font-size: 14px;
}

/* Карточка с данными (открывается прямо в виджете, без перехода на страницу) */
.mfo-as-detail-panel {
    margin-top: 10px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 16px;
    background: #fafafa;
}

.mfo-as-back {
    background: none;
    border: none;
    color: #2271b1;
    cursor: pointer;
    padding: 0 0 12px 0;
    font-size: 13px;
}

.mfo-as-detail-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.mfo-as-detail-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mfo-as-field-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mfo-as-field-value {
    font-size: 15px;
    word-break: break-word;
}

.mfo-as-link {
    font-size: 15px;
    color: #2271b1;
    word-break: break-all;
}

.mfo-as-copyable-text {
    font-size: 15px;
    word-break: break-word;
}

.mfo-as-multi-value {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mfo-as-multi-row {
    font-size: 15px;
}

.mfo-as-copy-btn {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    color: #333;
    vertical-align: middle;
}

.mfo-as-copy-btn:hover {
    border-color: #2271b1;
    color: #2271b1;
}

/* Список вариантов в выписке — намеренно НЕ <ul>/<li>, чтобы стили темы
   (буллеты, отступы, заглавные буквы и т.п.) не перебивали внешний вид */
.mfo-as-plain-list {
    margin: 4px 0 0 0;
    padding: 0;
    list-style: none;
}

.mfo-as-plain-line {
    font-size: 14px;
    padding: 2px 0;
    text-transform: none;
    list-style: none;
}

.mfo-as-name-block {
    font-weight: 700;
    font-size: 20px;
    margin: 0 0 16px 0;
    padding: 0;
}

.mfo-as-name-block--bottom {
    margin: 24px 0 0 0;
    padding-top: 16px;
    border-top: 1px solid #e2e2e2;
}

.mfo-as-global-block--top {
    margin: 0 0 20px 0;
}

.mfo-as-global-block--bottom {
    margin: 20px 0 0 0;
}

/* Подсказка-"?" с инструкцией по всплытию */
.mfo-as-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ccc;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: help;
}

.mfo-as-tooltip-text {
    display: none;
    position: absolute;
    bottom: 130%;
    left: 0;
    width: 260px;
    background: #333;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    padding: 8px 10px;
    border-radius: 6px;
    z-index: 10;
}

.mfo-as-tooltip:hover .mfo-as-tooltip-text,
.mfo-as-tooltip:focus .mfo-as-tooltip-text {
    display: block;
}
