/*
 * VOIDCRAFT utility-header interaction fix.
 *
 * The promotional text lives in the flexible middle grid column. When that
 * column is visually shifted, it must never sit above Gift Cards. The utility
 * navigation is therefore explicitly layered above it. The Help hover bridge
 * is also narrowed to the Help control, rather than covering Find a Store.
 */

/* Keep every utility link, especially Gift Cards, above the promo text. */
.top-utility-nav {
    position: relative !important;
    z-index: 3705 !important;
}

.top-bar .top-bar-text {
    position: relative;
    z-index: 1;
}

/*
 * Safe version of the desktop visual nudge. Unlike a stretched grid item,
 * this element only owns the text's own width, so it cannot block Gift Cards.
 */
@media (min-width: 1301px) {
    .top-bar .top-bar-text {
        justify-self: center !important;
        width: max-content !important;
        max-width: calc(100% - 1rem) !important;
        transform: translateX(clamp(55px, 6vw, 120px)) !important;
    }
}

/*
 * The bridge preserves hover while moving from Help into its menu, but only
 * below the Help button itself. The old 244px bridge reached underneath
 * Find a Store and caused accidental menu opening.
 */
.top-utility-help::after {
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
}

/* A hidden Help menu must never receive the pointer. */
.top-help-menu {
    pointer-events: none !important;
}

.top-utility-help:hover .top-help-menu,
.top-utility-help:focus-within .top-help-menu {
    pointer-events: auto !important;
}
