.vhhtp-pdf-button-wrapper {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #fff !important;
    padding: 15px 20px !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
    z-index: 999999 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    transition: transform 0.3s ease !important;
    margin: 0 !important;
    width: 100% !important;
}

.vhhtp-pdf-button-wrapper.hidden {
    transform: translateY(100%) !important;
}

.vhhtp-pdf-button {
    display: flex!important;
    flex-flow: row nowrap!important;
    justify-content: center!important;
    align-items: center!important;
    gap: 10px!important;
    border-style: solid!important;
    border-width: 1px 1px 1px 1px!important;
    font-family: "Poppins", Sans-serif!important;
    font-size: 18px!important;
    font-weight: 500!important;
    border-radius: 50px 50px 50px 50px!important;
    padding: 14px 14px 14px 14px!important;
    background-color: #0C0B0F!important;
    color: #ffffff!important;
}

.vhhtp-pdf-button:hover {
    cursor: pointer!important;
    /* background: #005a87 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.4) !important;
    color: #fff !important; */
}

.vhhtp-pdf-button:disabled,
.vhhtp-pdf-button.loading {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.vhhtp-pdf-button.loading::after {
    content: '' !important;
    display: inline-block !important;
    width: 14px !important;
    height: 14px !important;
    margin-left: 8px !important;
    border: 2px solid #fff !important;
    border-top-color: transparent !important;
    border-radius: 50% !important;
    animation: vhhtp-spin 0.6s linear infinite !important;
}

@keyframes vhhtp-spin {
    to { transform: rotate(360deg); }
}

.vhhtp-pdf-status {
    display: inline-block !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: none!important;
}

.vhhtp-pdf-status.success {
    color: #46b450 !important;
}

.vhhtp-pdf-status.error {
    color: #dc3232 !important;
}

.vhhtp-pdf-close {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    color: #666 !important;
    cursor: pointer !important;
    padding: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    border-radius: 4px !important;
}

.vhhtp-pdf-close:hover {
    background: #f0f0f0 !important;
    color: #333 !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .vhhtp-pdf-button-wrapper {
        padding: 12px 15px !important;
    }
    
    .vhhtp-pdf-button {
        padding: 12px 24px !important;
        font-size: 14px !important;
    }
    
    .vhhtp-pdf-close {
        right: 10px !important;
    }
}

/* Add padding to body to prevent content being hidden behind fixed button */
body.single-product,
body.woocommerce-page,
body {
    padding-bottom: 80px !important;
}

/* Elementor PDF Icon Loading State */
#pdf-icon.vhhtp-generating {
    opacity: 0.6 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}

#pdf-icon.vhhtp-generating .elementor-icon {
    animation: vhhtp-pulse 1.5s ease-in-out infinite !important;
}

#pdf-icon.vhhtp-generating .elementor-icon-box-title a {
    color: #999 !important;
}

@keyframes vhhtp-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Prevent multiple clicks on Elementor PDF icon */
#pdf-icon {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}
