/* Floating Container */
.dp-line-floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Button Style */
.dp-line-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #00B900;
    /* Line Green */
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-decoration: none !important;
    line-height: 1;
}

.dp-line-btn:hover {
    background-color: #00c300;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.dp-line-btn img {
    width: 28px;
    height: 28px;
    margin-right: 10px;
    display: block;
}

.dp-line-btn span {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* Modal Style */
.dp-line-modal {
    display: none;
    /* Hidden by default */
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 280px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 25px 20px;
    text-align: center;
    animation: dpFadeIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dp-line-modal::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 30px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.dp-line-modal-content {
    position: relative;
}

.dp-line-modal-content h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 18px;
    font-weight: 700;
}

.dp-line-modal-content p {
    color: #888;
    font-size: 14px;
    margin: 0 0 20px 0;
}

.dp-line-qrcode {
    width: 100%;
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.dp-line-close {
    position: absolute;
    top: -15px;
    right: -10px;
    color: #aaa;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    transition: color 0.2s;
}

.dp-line-close:hover {
    color: #333;
}

@keyframes dpFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .dp-line-floating-container {
        bottom: 20px;
        right: 20px;
        left: auto;
        /* Ensure it doesn't conflict */
    }

    .dp-line-btn {
        padding: 8px 16px;
        border-radius: 50px;
    }

    .dp-line-btn img {
        width: 24px;
        height: 24px;
        margin-right: 8px;
    }

    .dp-line-btn span {
        font-size: 14px;
    }

    /* Adjust modal for mobile if it ever shows (though logic says redirect) */
    .dp-line-modal {
        position: fixed;
        /* easier to center on mobile if needed */
        bottom: 80px;
        right: 20px;
        width: calc(100vw - 40px);
        /* Full width with padding */
        max-width: 280px;
    }

    .dp-line-modal::after {
        right: 20px;
        /* Align arrow with button */
    }
}

@media (max-width: 768px) {

    /* On mobile, we might want just an icon or smaller pill */
    /* But user screenshot checks for "Floating button" which usually implies similar UI */
    .dp-line-btn {
        padding: 10px 20px;
    }
}