/**
 * Styles pour le bouton vert avec icône flèche
 */

/* Style du bouton vert avec flèche */
.wp-block-button.is-style-ic-green-arrow .wp-block-button__link,
.wp-block-button.is-style-ic-green-arrow > a {
    background-color: #96C34F !important;
    color: #ffffff !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding-right: 16px !important;
}

.wp-block-button.is-style-ic-green-arrow .wp-block-button__link::after,
.wp-block-button.is-style-ic-green-arrow > a::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('https://intranet.cinop.notaires.fr/wp-content/uploads/2025/12/Vector.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* Hover state */
.wp-block-button.is-style-ic-green-arrow .wp-block-button__link:hover,
.wp-block-button.is-style-ic-green-arrow > a:hover {
    background-color: #7fb33d !important;
    color: #ffffff !important;
}

/* S'assurer que le texte reste blanc */
.wp-block-button.is-style-ic-green-arrow .wp-block-button__link,
.wp-block-button.is-style-ic-green-arrow .wp-block-button__link:visited,
.wp-block-button.is-style-ic-green-arrow .wp-block-button__link:focus,
.wp-block-button.is-style-ic-green-arrow > a,
.wp-block-button.is-style-ic-green-arrow > a:visited,
.wp-block-button.is-style-ic-green-arrow > a:focus {
    color: #ffffff !important;
}

/**
 * Classes de visibilité pour les supports téléchargeables
 * Utilisées via le Dynamic Tag IC_Support_Visibility_Tag
 */
.ic-support-hidden {
    display: none !important;
}

.ic-support-visible {
    display: block;
}

/**
 * Masquer automatiquement les boutons/liens avec href vide
 * Cela empêche l'affichage de boutons "Télécharger" sans fichier associé
 */
a[href=""],
a:not([href]),
.elementor-button-wrapper a[href=""],
.elementor-button-wrapper a:not([href]) {
    display: none !important;
}
