/* Keep the header row stable while allowing the Theme Options logo height to scale the logo. */
.tp-header-main {
    height: 96px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.tp-header-main > .container,
.tp-header-main > .container > .row {
    height: 100%;
}

.tp-header-main .logo {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
}

.tp-header-main .logo a {
    display: flex;
    align-items: center;
    max-height: 100%;
}

.tp-header-main .logo img {
    max-height: min(var(--tp-theme-logo-height, 35px), 100px) !important;
}

@media (max-width: 991.98px) {
    .tp-header-main {
        height: 76px;
        padding-top: 0;
        padding-bottom: 0;
    }

    .tp-header-main .logo img {
        max-height: min(var(--tp-theme-logo-height, 35px), 75px) !important;
    }
}

@media (max-width: 991.98px) {
    .tp-header-main > .container > .row {
        position: relative;
    }

    .tp-header-main .tp-header-logo-column {
        display: flex;
        flex: 0 0 100%;
        justify-content: center;
        max-width: 100%;
        width: 100%;
    }

    .tp-header-main .tp-header-actions-column {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        max-width: none;
        padding-right: 15px;
        width: auto;
    }

    .tp-header-main .tp-header-main-right {
        height: 100%;
    }

    .tp-header-main .tp-header-mobile-menu {
        position: absolute;
        top: 50%;
        left: 15px;
        z-index: 1;
        transform: translateY(-50%);
    }

    .tp-header-main .tp-header-action {
        margin-left: 0 !important;
    }

    .tp-header-main .tp-header-action-item:not(:first-child) {
        margin-left: 16px;
    }

    .tp-header-main .tp-header-action-item:last-child {
        margin-right: 0;
    }

    .tp-header-main .tp-header-action-item-compare,
    .tp-header-main .tp-header-action-item-menu {
        display: none !important;
    }

    .tp-header-main .tp-header-action-item-wishlist {
        display: block !important;
    }
}
