.topnav {
    display: flex;
    align-items: stretch;
    position: relative;
    background: var(--primaryColor);
    color: var(--onPrimaryColor);
}
.topnav > a, .topnav > button, .dropbtn {
    display: block;
    padding: 14px 16px;
    border: 0;
    margin: 0;
    font: inherit;
    font-size: 17px;
    text-align: left;
    text-decoration: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.topnav > .navAction.right { margin-left: auto; }
.topnav > [data-account-link] { margin-left: auto; }
.topnav > #load_contacts + .dropdown.right { margin-left: auto; }
.topnav .active { background: var(--primaryVariantColor); }
.topnav .icon { display: none; }
.dropdown { position: relative; }
.dropbtn { list-style: none; }
.dropbtn::-webkit-details-marker { display: none; }
.dropdown-content {
    position: absolute;
    min-width: 180px;
    width: max-content;
    max-width: min(360px, 100vw);
    background: #f9f9f9;
    color: #000;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}
.dropdown.right .dropdown-content { right: 0; }
.dropdown-content a {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: 0;
    text-align: left;
    text-decoration: none;
    font: inherit;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.topnav > a:hover, .topnav > button:hover, .dropbtn:hover { background: #555; color: #fff; }
.dropdown-content a:hover { background: #ddd; }
.servicesMenu { max-height: min(70vh, 640px); overflow-y: auto; }
.servicesMenu .allServicesLink { font-weight: bold; border-bottom: 1px solid #d9e0e5; }
@media screen and (max-width: 1250px) {
    .topnav { flex-wrap: wrap; }
    .topnav > a:not(:first-child), .topnav > .navAction, .topnav > .dropdown { display: none; }
    .topnav .icon { display: block; margin-left: auto; }
    .topnav.responsive { display: block; }
    .topnav.responsive > a, .topnav.responsive > .navAction, .topnav.responsive > .dropdown { display: block; width: 100%; }
    .topnav.responsive .icon { position: absolute; right: 0; top: 0; }
    .topnav.responsive .dropdown-content { position: static; width: 100%; max-width: 100%; }
    .topnav.responsive .servicesMenu { max-height: 50vh; }
    .topnav:not([data-enhanced]) { display: flex; flex-wrap: wrap; }
    .topnav:not([data-enhanced]) > a, .topnav:not([data-enhanced]) > .dropdown { display: block; }
    .topnav:not([data-enhanced]) .icon { display: none; }
    .topnav:not([data-enhanced]) .dropdown-content { max-width: min(300px, 100vw); }
}
