/* Sticky Bar Styling */
#sticky-wrapper {
    position: fixed;
    bottom: 0;
    right: 20px;
    z-index: 1000;
    width: 350px;
    background-color: var(--ast-global-color-0);
    color: white;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 10px 8px 6px 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Sticky Bar Links */
#sticky-wrapper a {
    flex: 1;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    line-height: 1.5;
}

#sticky-wrapper a i {
    font-size: 17px;
    display: block;
    margin-bottom: 4px;
}

/* Sticky Bar Divider */
#sticky-wrapper div {
    width: 1px;
    background-color: white;
    height: 40px;
}

/* Popup Box Styling */
.popup-box {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 70px;
    right: 20px;
    width: 350px;
    background-color: var(--ast-global-color-7);
    border-radius: 8px;
    border: 3px solid var(--ast-global-color-0);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    padding: 20px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    box-sizing: border-box; /* Prevent content from overflowing */
}

/* Popup Title */
.popup-box .popup-title {
    margin: 15px 0 5px 10px; /* Reduced bottom margin for closer spacing */
    font-size: 20px;
    font-weight: bold;
}

/* Popup Description */
.popup-box .popup-description {
    margin: 0 0 -40px 10px;
    font-size: 14px;
}

/* Popup Close Button */
.popup-box .close-popup-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #000;
    line-height: 1;
}

/* Responsive Styling */
@media (max-width: 768px) {
    /* Center Popup on Mobile */
    .popup-box {
        position: fixed !important;
        bottom: 70px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 90% !important;
        max-width: 350px !important;
        margin: 0 !important;
    }

    /* Center Sticky Bar on Mobile */
    #sticky-wrapper {
        position: fixed !important;
        bottom: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90% !important;
        margin: 0 !important;
    }
}

/* Animation for Popups */
.popup-box {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
