/*
 * Frontend text helpers
 * - per-word wrapper used by GSAP text animations.
 */
.word {
   overflow: hidden;
   padding-bottom: 0.1em;
   margin-bottom: -0.1em;
   transform-origin: bottom;
   display: inline-block;
}
/*
 * Generic wrapper applied on animated widgets.
 */
.gafe-widget {
   border-radius: inherit;
}
/*
 * Container/Section element styling.
 */
.gafe-element {
   position: relative;
}
.gafe-container-overlay {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   z-index: 10;
   pointer-events: none;
}
/*
 * Reveal and image wrappers used by image/text reveal effects.
 */
.elementor-widget-image {
   width: 100%;
   max-width: 100%;
}
.gafe-reveal-mask {
   overflow: hidden;
}
.gafe-image-wrapper {
   position: relative;
   display: inline-block;
   vertical-align: middle;
   max-width: 100%;
}
.gafe-image-wrapper img {
   display: block;
   width: 100%;
   height: auto;
}
.gafe-reveal-wrapper {
   visibility: hidden;
   position: relative;
   width: 100%;
   height: 100%;
   overflow: hidden;
   border-radius: inherit;
}
.gafe-reveal-wrapper img {
   height: 100%;
   width: 100%;
   object-fit: cover;
   transform-origin: center;
}
.gafe-curtain-wrapper {
   position: relative;
   overflow: hidden;
   border-radius: inherit;
   --curtain-size: 0%;
}
.gafe-curtain-wrapper img {
   width: 100%;
   opacity: 0;
}
.gafe-curtain-wrapper::after {
   content: "";
   position: absolute;
   background: var(--gafe-curtain-color);
   border-radius: inherit;
}
.gafe-curtain-wrapper.curtain-up::after,
.gafe-curtain-wrapper.curtain-down::after {
   width: 100%;
   height: var(--curtain-size);
   left: 0;
}
.gafe-curtain-wrapper.curtain-up::after {
   bottom: 0;
}
.gafe-curtain-wrapper.curtain-down::after {
   top: 0;
}
.gafe-curtain-wrapper.curtain-left::after,
.gafe-curtain-wrapper.curtain-right::after {
   height: 100%;
   width: var(--curtain-size);
   top: 0;
}
.gafe-curtain-wrapper.curtain-left::after {
   right: 0;
}
.gafe-curtain-wrapper.curtain-right::after {
   left: 0;
}
/*
 * Underline / highlight helpers.
 */
.gafe-underline-bar {
   pointer-events: none;
}
/*
 * Normalize margins for hidden editor wrappers.
 */
.elementor-text-editor > div[aria-hidden="true"] > p {
   margin: 0 !important;
}
/*
 * Elementor panel: help tooltip icon and content.
 */
.gafe-help-icon {
   font-size: 12px;
   color: var(--e-a-color-txt);
   margin-left: 2px;
}
.gafe-help-icon-wrapper .gafe-tooltip-content {
   position: absolute;
   bottom: calc(100% + 8px);
   left: 10px;
   right: 10px;
   width: auto;
   background: var(--e-a-color-secondary);
   color: var(--e-a-color-white);
   padding: 7px;
   border-radius: 6px;
   font-size: var(--control-title-size);
   font-weight: 300;
   line-height: 1.3;
   white-space: normal;
   text-align: left;
   opacity: 0;
   visibility: hidden;
   pointer-events: none;
   transition: opacity 0.2s ease, visibility 0.2s ease;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
   z-index: 99999;
   font-family: var(--e-a-font-family);
}
.gafe-help-icon-wrapper:hover .gafe-tooltip-content {
   display: block !important;
   opacity: 1;
   visibility: visible;
}
.gafe-tooltip-content b {
   font-weight: 500;
}
/*
 * Elementor panel: section headings with favicon.
 */
.elementor-control .elementor-panel-heading-title {
   display: flex !important;
   align-items: center;
   justify-content: space-between;
   width: 100%;
   gap: 8px;
}
svg.gafe-favicon {
   width: 23px;
   height: 23px;
   flex-shrink: 0;
}
svg.gafe-favicon path {
   fill: var(--e-a-color-txt);
   transition: fill 0.2s ease;
}
/*
 * Custom heading style for GSAP sections in the editor.
 */
.elementor-control.gafe-heading-custom {
   background: var(--e-a-btn-bg-primary);
   margin-bottom: 15px;
   padding: 15px;
}
.elementor-control.gafe-heading-custom .elementor-control-title {
   font-weight: 500 !important;
   color: #515962;
}
.elementor-control.gafe-heading-custom .elementor-control-title .gafe-help-icon-wrapper i {
   color: #515962;
}
/*
 * Info alert used for ON/OFF notices in the panel.
 */
.alert-info {
   padding: 7px !important;
   margin: -15px -20px 5px;
   font-style: normal !important;
   border: 0 !important;
   background: var(--e-a-bg-primary) !important;
   border-radius: 0;
   display: flex;
   justify-content: space-evenly;
}
.alert-info b {
   font-weight: 500;
}
/*
 * Toast position adjustments inside Elementor.
 */
.elementor-toast {
   left: 10px !important;
   right: 10px !important;
   bottom: 10px !important;
   max-width: none !important;
   width: auto !important;
}
/*
 * Motion / ScrollTrigger / Settings toggle controls.
 */
.elementor-control.gafe-toggle {
   background-color: var(--e-a-bg-active);
   border-top: 1px solid var(--e-a-bg-default);
   padding-top: 15px;
   margin-bottom: 15px;
}
/*
 * Markers toggle separator.
 */
.elementor-control.gafe-show-markers {
   border-top: 2px solid var(--e-a-bg-primary);
   padding-top: 15px;
}
/*
 * "Play animation" button styling in the editor.
 */
.elementor-control.gafe-play-button {
   background-color: var(--e-a-btn-bg-primary);
   padding: 10px 20px;
}
.elementor-control.gafe-play-button button {
   width: 30px !important;
   border-radius: 27px;
   padding: 0px;
   display: flex !important;
   padding-left: 3px;
   padding-top: 2px;
   height: 30px;
   align-items: center;
   justify-content: center;
}
