/* Keep Account, My Quote and Cart on one shared icon/text grid. */
.header-right .header-login,
.header-right .miniquote-wrapper,
.header-right .minicart-wrapper {
    align-items: flex-start;
    display: flex;
    flex: 0 0 3.5rem;
    justify-content: center;
    margin: 0 !important;
    min-width: 3.25rem;
    width: 3.25rem;
}

.header-right .header-login .login-link,
.header-right .miniquote-wrapper .action.showquote,
.header-right .minicart-wrapper .action.showcart {
    align-items: center;
    display: flex !important;
    flex-direction: column;
    height: 2.85rem;
    justify-content: flex-start;
    margin: 0 !important;
    padding: 0 .25rem !important;
    position: relative;
    width: 100%;
}

/* The reliable BSS summary only controls visibility; it is never displayed. */
.header-right .miniquote-wrapper .action.showquote {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.header-right .miniquote-wrapper .action.showquote.miniquote-visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.header-right .header-login .login-link::before,
.header-right .miniquote-wrapper .ico.ico-quote,
.header-right .minicart-wrapper .ico.ico-cart {
    align-items: center;
    display: flex;
    flex: 0 0 1.5rem;
    height: 1.5rem;
    justify-content: center;
    margin: 0 0 .12rem !important;
    order: 1;
    width: 1.5rem;
}

.header-right .header-login .login-link::before {
    background-position: center;
    background-size: 1.3rem 1.3rem;
}

.header-right .miniquote-wrapper .ico.ico-quote::before,
.header-right .minicart-wrapper .ico.ico-cart::before {
    background-position: center;
    background-size: contain;
    height: 1.3rem;
    left: auto;
    margin: 0;
    top: auto;
    width: 1.3rem;
}

.header-right .header-login .login-link > span,
.header-right .miniquote-wrapper .action.showquote .text,
.header-right .minicart-wrapper .action.showcart .minicart-cart-label {
    align-items: center;
    display: flex !important;
    flex: 0 0 1rem;
    font-size: .7rem;
    justify-content: center;
    line-height: 1rem;
    margin: 0 !important;
    min-height: 1rem;
    order: 2;
    padding: 0;
    text-align: center;
    white-space: nowrap;
}

.header-right .miniquote-wrapper .minicart-counter-number,
.header-right .minicart-wrapper .minicart-counter-number {
    font-size: .55rem;
    height: 1rem;
    line-height: 1rem;
    min-width: 1rem;
    padding: 0 .16rem;
    right: .25rem;
    top: -.35rem;
    width: auto;
}

@media screen and (max-width: 991px) {
    .header-right .header-login,
    .header-right .miniquote-wrapper,
    .header-right .minicart-wrapper {
        flex-basis: 3.8rem;
        min-width: 3.8rem;
        width: 3.8rem;
    }

    .header-right .miniquote-wrapper .action.showquote,
    .header-right .minicart-wrapper .action.showcart,
    .header-right .header-login .login-link {
        padding: 0 .2rem !important;
    }
}
