.upper-header-wrapper {
    background-color: var(--black);
}

.upper-header {
    color: white;
    padding: 10px 80px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.upper-header > * {
    white-space: nowrap;
}

.info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.info__item {
    display: flex;
    align-items: center;
}

.divider {
    display: inline;
    padding: 0 4px;
}

.mobile-callback {
    display: none;
}

.items {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}

.links {
    display: flex;
    gap: 24px;
    margin: 0;
    flex-shrink: 0;
}

.items > span {
    flex-shrink: 0;
}

/* The address is the only part that gives way: it is cut with an ellipsis instead of wrapping. */
.map-link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.map-link svg {
    flex-shrink: 0;
}

.map-link span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.close {
    display: none;
}

.desktop-hidden {
    display: none;
}

@media (max-width: 1439px) {
    .desktop-hidden {
        display: block;
    }

    .upper-header-wrapper {
        background-color: var(--gray);
    }

    .upper-header {
        padding: 8px 8px 8px 16px;
        color: black;
    }

    /* Mobile keeps its old wrapping: only the desktop bar must stay on one line. */
    .upper-header > * {
        white-space: normal;
    }

    .info {
        display: flex;
        justify-content: space-between;
        width: 100%;
        flex-shrink: 1;
    }
    .info__item {
        gap: 0;
    }

    .mobile-callback {
        display: block;
        height: 24px;
        margin-left: 4px;
    }
    .mobile-callback button {
        padding: 0;
        height: 24px;
    }

    .mobile-callback svg {
        stroke: var(--blue);
    }

    .items {
        display: none;
    }

    .close {
        display: block;
    }
}
