.banner-custom {
    position: fixed !important; /* Posizione fissa */
    top: 20% !important;        /* Distanza dall'alto */
    right: 0 !important;       /* Posizione a destra */
    width: 200px !important;   /* Larghezza del banner */
    padding: 20px !important;  /* Spaziatura interna */
    z-index: 1000 !important;  /* Z-index per sovrapposizione */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important; /* Ombra per effetto 3D */
}

.bg-abbonati {
    background-image: url('../images/profile-banner-2.png');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
}

/* PDF Viewer */
#pdf-viewer-container {
    text-align: center;
    background: #e9e9e9;
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
    min-height: 400px;
}
#pdf-viewer-container canvas {
    max-width: 100%;
    height: auto !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    background: #fff;
}
.pdf-controls button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* WP Simple Pay button override */
.simpay-checkout-btn,
.simpay-payment-btn {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
    font-size: 1.25rem !important;
    padding: .5rem 1rem !important;
    border-radius: .3rem !important;
    line-height: 1.5 !important;
    display: inline-block !important;
}
.simpay-checkout-btn:hover,
.simpay-payment-btn:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
}