:root { --e-global-color-primary: #FFD012; --e-global-color-secondary: #0B3665; --eel-gradient-1: #4750CC; --eel-gradient-2: #EF5CE8; --eel-gradient-3: #EFC7AE; } .eel-button-gradient { position: relative; overflow: hidden; &::after, &::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; transition: opacity 0.6s ease-in-out; z-index: 0; } &::after { background: linear-gradient( 68.75deg, var(--eel-gradient-1) 9.78%, var(--eel-gradient-2) 58.79%, var(--eel-gradient-3) 92.67% ); opacity: 1; } &::before { background: linear-gradient( -68.75deg, var(--eel-gradient-1) 9.78%, var(--eel-gradient-2) 58.79%, var(--eel-gradient-3) 92.67% ); opacity: 0; // default hidden } &:hover { &::after { opacity: 0; } &::before { opacity: 1; } } span { position: relative; z-index: 1; } } // Base Button Styles .elementor-widget-eel-button .eel-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border: none; cursor: pointer; font-family: inherit; text-align: center; vertical-align: middle; user-select: none; transition: all 0.5s ease; position: relative; overflow: hidden; white-space: nowrap; line-height: 1.5; padding: 10px 20px; border-radius: 5px; &:hover { text-decoration: none; transform: translateY(-1px); } } .eel-button-primary { background-color: var(--e-global-color-primary); color: #ffffff; &:hover { background-color: var(--e-global-color-secondary); border-color: var(--e-global-color-secondary); } } .eel-button-outline { background-color: transparent; color: var(--e-global-color-secondary); border: 2px solid var(--e-global-color-secondary); &:hover { background-color: var(--e-global-color-primary); } } // Icon Styles - Comprehensive targeting .eel-button-icon-before, .eel-button-icon-after { display: inline-flex; align-items: center; justify-content: center; transition: all 0.3s ease; } .eel-button-icon-before { margin-right: 8px; } .eel-button-icon-after { margin-left: 8px; } // Elementor Icon Styles .eel-button .elementor-icon { display: inline-flex; align-items: center; justify-content: center; transition: all 0.3s ease; i { font-size: inherit; color: inherit; } svg { width: 1em; height: 1em; } } // Ensure icons inherit button text color .eel-button .elementor-icon, .eel-button .elementor-icon i, .eel-button .elementor-icon svg { color: inherit; } // Additional icon targeting for better compatibility .eel-button { i, svg, .elementor-icon, .elementor-icon i, .elementor-icon svg, .eicon, .fas, .far, .fab, .fa { color: inherit; font-size: inherit; } svg, .elementor-icon svg { width: 1em; height: 1em; } } // Uploaded SVG and Image Icon Styles .elementor-widget-eel-button .eel-button { img, .eel-button-icon-before img, .eel-button-icon-after img { width: 1em; height: 1em; object-fit: contain; vertical-align: middle; } .eel-button-icon-before svg, .eel-button-icon-after svg { width: 1em; height: 1em; color: inherit; vertical-align: middle; } // Ensure uploaded SVG icons inherit button text color .eel-button-icon-before svg path, .eel-button-icon-after svg path { fill: currentColor; } } // Button Text .eel-button-text { display: inline-block; vertical-align: middle; } @keyframes eel-button-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .eel-button-icon_btn{ background: transparent; .eel-button-icon-after, .eel-button-icon-before{ display: inline-grid; place-content: center; place-items: center; width: 64px; height: 64px; border-radius: 50%; background-color: var(--e-global-color-primary); color: #ffffff; margin-right: 16px; } } .hover-gradient { .eel-button-primary { position: relative; border: 2px solid transparent; overflow: hidden; &::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; transition: opacity 0.6s ease-in-out; z-index: 0; background: linear-gradient( 68.75deg, var(--eel-gradient-1) 9.78%, var(--eel-gradient-2) 58.79%, var(--eel-gradient-3) 92.67% ); opacity: 0; } &:hover { background-color: unset !important; &::before { opacity: 1; } } span { position: relative; z-index: 1; } } } // gradient border button .eel-button { &.eel-button-border-gradient { z-index: 1; transition: all 0.4s ease; position: relative; background: #fff; color: currentColor; &::before { content: ""; position: absolute; inset: 0; padding: 2px; /* border width */ background: linear-gradient(90deg, #A53E1B 0%, #173998 100%); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; z-index: -1; transition: background 0.5s ease; } &:hover { color: #fff; background: linear-gradient(90deg, #A53E1B, #173998); } } }