.nhm-floating-items-root {
    position: relative;
    z-index: 999999;
    pointer-events: none;
}

.nhm-floating-wrap {
    position: fixed;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.nhm-position-top {
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}

.nhm-position-bottom {
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}

.nhm-position-left {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    align-items: flex-start;
}

.nhm-position-right {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    align-items: flex-end;
}

.nhm-position-center {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
}

.nhm-floating-item {
    position: relative;
    max-width: min(320px, 90vw);
    pointer-events: auto;
}

.nhm-position-left .nhm-floating-item,
.nhm-position-right .nhm-floating-item {
    max-width: min(250px, 70vw);
}

.nhm-floating-link,
.nhm-floating-link img {
    display: block;
}

.nhm-floating-link {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
}

.nhm-floating-link img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    margin: 0;
}

.nhm-floating-featured-label {
    display: block;
    width: 100%;
    margin: 0;
    padding: 7px 10px;
    background: #d40000;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.nhm-floating-hide-btn {
    position: absolute;
    top: 6px;
    right: 8px;
    display: inline-block;
    padding: 2px 4px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    color: #fff;
    background: transparent;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

.nhm-floating-hide-btn:hover {
    opacity: 0.75;
}

.nhm-floating-hide-btn:focus {
    outline: none;
    opacity: 0.75;
}

.nhm-floating-item.is-hidden .nhm-floating-hide-btn {
    display: none;
}

.nhm-floating-item.is-hidden .nhm-floating-content {
    cursor: pointer;
}

.nhm-floating-item.is-hidden .nhm-floating-link img {
    width: 64px;
    max-width: 64px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.nhm-floating-item.is-hidden .nhm-floating-featured-label {
    display: none;
}

@media (max-width: 767px) {
    .nhm-position-top,
    .nhm-position-bottom {
        left: 50%;
        transform: translateX(-50%);
    }

    .nhm-position-left {
        left: 10px;
    }

    .nhm-position-right {
        right: 10px;
    }

    .nhm-floating-item {
        max-width: min(250px, 84vw);
    }

    .nhm-floating-hide-btn {
        font-size: 17px;
    }
}
