.dm-header-lookup {
    position: relative;
    min-width: 0;
}

.dm-header-lookup form {
    margin-bottom: 0 !important;
}

.dm-search-panel {
    position: absolute;
    z-index: 1050;
    top: calc(100% + 8px);
    inset-inline: 0;
    max-height: min(470px, 50vh);
    max-height: min(470px, 50dvh);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #dce4db;
    border-radius: 8px;
    background: #fff;
    color: #173e3a;
    box-shadow: 0 12px 30px #173e3a26;
}

.dm-search-panel [hidden] {
    display: none !important;
}

.dm-search-option {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 8px 12px;
    border-bottom: 1px solid #ecf0eb;
    color: inherit;
    text-decoration: none;
    line-height: 1.35;
}

.dm-search-option:hover,
.dm-search-option[aria-selected="true"] {
    background: #f2f5ef;
    color: #173e3a;
}

.dm-search-option img {
    flex: 0 0 44px;
    width: 44px;
    height: 48px;
    object-fit: contain;
}

.dm-search-option strong {
    display: block;
    margin-top: 4px;
}

.dm-search-status {
    margin: 0;
    padding: 12px;
}

.dm-search-all {
    position: sticky;
    bottom: 0;
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    border-top: 1px solid #dce4db;
    background: #f7f8f4;
    color: inherit;
    font-weight: 600;
}

.dm-search-all:focus-visible {
    outline-offset: -4px !important;
}
