/* Pro user sticky bar */

.sticky-bar {
    display: none;
    width: 100%;
    max-width: calc(100% - 70%);
    position: fixed;
    bottom: 30px;
    padding: 12px 20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 20px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0);
    backdrop-filter: blur(10px);
}

.sticky-bar-grid {
    position: relative;
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    align-content: space-between;
    column-gap: 11px;
    row-gap: 5px;
}

.sticky-bar-logo {
    display: block;
    width: 66px;
    height: 66px;
    grid-column: 1;
    grid-row: 1 / 3;
}

.sticky-bar-logo img {
    width: 66px;
    height: 66px;
    object-fit: cover;
    border-radius: 10px;
}

.sticky-bar-logo img.logoImage {
    max-width: 66px;
    max-height: 66px;
}

.sticky-bar-meta,
.sticky-bar-actions {
    display: contents;
}

.sticky-bar-meta .title {
    font-size: 22px;
    line-height: 1.2;
    grid-column: 2 / 4;
    grid-row: 1;
}

.sticky-bar-meta .location {
    font-size: 0.778rem;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    grid-column: 3;
    grid-row: 2;
}

.sticky-bar-grid:not(:has(.tag)) .sticky-bar-meta .location {
    grid-column: 2 / 4;
}

.sticky-bar-meta .location-sep {
    display: none;
}

.sticky-bar-actions .tag {
    padding: 3px 12px;
    border-radius: 100px;
    background: #e6ff9d;
    font-size: 0.778rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
}

.sticky-bar a.hire {
    width: 117px;
    height: 28px;
    background: #000;
    border-radius: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    font-weight: 500;
    color: #fff;
    position: relative;
    grid-column: 4;
    grid-row: 1 / 3;
    align-self: center;
}

@media (max-width: 1024px) {
    .sticky-bar {
        max-width: calc(100% - 55%);
    }
}

@media (max-width: 768px) {
    .sticky-bar {
        padding: 8px 12px;
        max-width: calc(100% - 40px);
        bottom: 16px;
    }

    .sticky-bar-grid {
        grid-template-columns: auto 1fr auto;
        align-content: start;
    }

    .sticky-bar-logo,
    .sticky-bar-logo img {
        width: 48px;
        height: 48px;
    }

    .sticky-bar-logo img.logoImage {
        max-width: 48px;
        max-height: 48px;
    }

    .sticky-bar-meta .title {
        font-size: 16px;
        grid-column: 2;
        grid-row: 1;
    }

    .sticky-bar-meta .location {
        flex-direction: row;
        flex-wrap: wrap;
        grid-column: 2;
        grid-row: 2;
    }

    .sticky-bar-grid:not(:has(.tag)) .sticky-bar-meta .location {
        grid-column: 2;
    }

    .sticky-bar-meta .location-sep {
        display: inline;
    }

    .sticky-bar-actions .tag {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    .sticky-bar a.hire {
        width: 88px;
        height: 28px;
        font-size: 14px;
        grid-column: 3;
        grid-row: 2;
        align-self: start;
    }
}
