:root {
    --sticky-main-color: #1e6b52;
    --sticky-text-color: #ffffff;
}

/* Base Wrapper */
.lightui-sticky-widget {
    position: fixed;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.lightui-sticky-widget.pos-bottom-right {
    right: 20px;
    bottom: 30px;
}

.lightui-sticky-widget.pos-bottom-left {
    left: 20px;
    bottom: 30px;
}

.lightui-sticky-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lightui-sticky-item {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    position: relative;
}

.item-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    background-color: var(--sticky-main-color, #1e6b52);
    color: var(--sticky-text-color, #ffffff);
    flex-shrink: 0;
    box-sizing: border-box;
}

.item-icon-wrap img.custom-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fallback-icon {
    font-weight: bold;
    font-size: 18px;
}

/* ==========================================================================
   MẪU 1: Sticky button with text (Ảnh 1)
   ========================================================================== */
.layout-text_badge .lightui-sticky-item {
    justify-content: flex-end;
    gap: 10px;
}

.layout-text_badge.pos-bottom-left .lightui-sticky-item {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.layout-text_badge .item-label {
    background-color: var(--sticky-main-color, #1e6b52);
    color: var(--sticky-text-color, #ffffff);
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
    white-space: nowrap;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.layout-text_badge .lightui-sticky-item:hover .item-label {
    transform: translateX(-4px);
}

.layout-text_badge.pos-bottom-left .lightui-sticky-item:hover .item-label {
    transform: translateX(4px);
}

/* Bao phủ màu nền trọn vẹn xung quanh icon - Nền rộng, Icon nhỏ gọn */
.layout-text_badge .item-icon-wrap {
    width: 52px;
    height: 52px;
    background-color: var(--sticky-main-color, #1e6b52);
    padding: 10px; /* Tăng khoảng đệm để nền màu rộng rãi, icon nhỏ gọn */
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.layout-text_badge .item-icon-wrap img.custom-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    display: block;
}

.layout-text_badge .lightui-sticky-item:hover .item-icon-wrap {
    transform: scale(1.08);
}

/* ==========================================================================
   MẪU 2: Sticky button white icon with background (Ảnh 2)
   ========================================================================== */
.layout-dock_bar.pos-bottom-right {
    right: 0;
    bottom: 25%;
}

.layout-dock_bar.pos-bottom-left {
    left: 0;
    bottom: 25%;
}

.layout-dock_bar .lightui-sticky-inner {
    background-color: var(--sticky-main-color, #e51a24);
    padding: 18px 12px;
    gap: 22px;
    border-top-left-radius: 32px;
    border-bottom-left-radius: 32px;
    box-shadow: -3px 0 12px rgba(0, 0, 0, 0.2);
}

.layout-dock_bar.pos-bottom-left .lightui-sticky-inner {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 32px;
    border-bottom-right-radius: 32px;
    box-shadow: 3px 0 12px rgba(0, 0, 0, 0.2);
}

.layout-dock_bar .item-icon-wrap {
    width: 34px;
    height: 34px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

.layout-dock_bar .item-icon-wrap img {
    filter: brightness(0) invert(1);
    transition: transform 0.2s ease;
}

.layout-dock_bar .lightui-sticky-item:hover .item-icon-wrap img {
    transform: scale(1.15);
}

/* ==========================================================================
   MẪU 3: Sticky button icon (Ảnh 3)
   ========================================================================== */
.layout-circle_icons .lightui-sticky-inner {
    gap: 12px;
}

.layout-circle_icons .item-icon-wrap {
    width: 52px;
    height: 52px;
    background: transparent;
    box-shadow: none;
    padding: 0;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.layout-circle_icons .item-icon-wrap img {
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.layout-circle_icons .lightui-sticky-item:hover .item-icon-wrap {
    transform: scale(1.12);
}

/* ==========================================================================
   MẪU 4: Sticky button icon gradient (Ảnh 4)
   ========================================================================== */
.layout-ring_pill .lightui-sticky-inner {
    gap: 16px;
}

.layout-ring_pill .lightui-sticky-item {
    position: relative;
    display: flex;
    align-items: center;
}

/* Bao phủ màu nền chủ đạo toàn bộ nút & vòng hào quang đồng bộ - Nền rộng, Icon nhỏ gọn */
.layout-ring_pill .item-icon-wrap {
    width: 54px;
    height: 54px;
    background-color: var(--sticky-main-color, #1e6b52);
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 0 var(--sticky-main-color, #1e6b52);
    animation: sticky-pulse-ring 2.2s infinite;
    padding: 10px; /* Tăng khoảng đệm để nền màu rộng rãi, icon nhỏ gọn */
    border-radius: 50%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.layout-ring_pill .item-icon-wrap img.custom-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    display: block;
}

.layout-ring_pill .lightui-sticky-item:hover .item-icon-wrap {
    transform: scale(1.08);
}

.layout-ring_pill .item-pill-text {
    background-color: #fbf7f2;
    border: 1.5px solid var(--sticky-main-color, #1e6b52);
    color: #2c2523;
    font-weight: 700;
    padding: 7px 18px 7px 28px;
    border-radius: 12px;
    margin-left: -18px;
    z-index: -1;
    font-size: 14px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

@keyframes sticky-pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(30, 107, 82, 0.5);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(30, 107, 82, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(30, 107, 82, 0);
    }
}
