/* GSAP Word wrapper for slide animations */
.word {
   overflow: hidden;
   padding-bottom: 0.1em;
   margin-bottom: -0.1em;
   transform-origin: bottom;
   display: inline-block;
}
.elementor-text-editor.elementor-inline-editing div p,
.elementor-text-editor.elementor-inline-editing p {
   margin-block-end: 0;
}
.gafe-widget {
   border-radius: inherit;
}
.gafe-reveal-wrapper {
   visibility: hidden;
   position: relative;
   width: 100%;
   height: 100%;
   overflow: hidden;
   border-radius: inherit; /* Inherit from parent image */
}
.gafe-reveal-wrapper img {
   height: 100%;
   width: 100%;
   object-fit: cover;
   transform-origin: center;
}
.gafe-curtain-container {
   position: relative;
   overflow: hidden;
   border-radius: inherit; /* Inherit from parent image */
   --curtain-size: 0%; /* CSS variable for animation (height or width) */
}
.gafe-curtain-container img {
   width: 100%;
   opacity: 0;
}
.gafe-curtain-container::after {
   content: "";
   position: absolute;
   background: var(--gafe-curtain-color, #000000);
   border-radius: inherit; /* Inherit from container */
}
/* Vertical curtain (up/down) */
.gafe-curtain-container.curtain-up::after,
.gafe-curtain-container.curtain-down::after {
   width: 100%;
   height: var(--curtain-size);
   left: 0;
}
.gafe-curtain-container.curtain-up::after {
   bottom: 0;
}
.gafe-curtain-container.curtain-down::after {
   top: 0;
}
/* Horizontal curtain (left/right) */
.gafe-curtain-container.curtain-left::after,
.gafe-curtain-container.curtain-right::after {
   height: 100%;
   width: var(--curtain-size);
   top: 0;
}
.gafe-curtain-container.curtain-left::after {
   right: 0;
}
.gafe-curtain-container.curtain-right::after {
   left: 0;
}
/* Tooltip */
.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;
}
/* 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 */
.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;
}

/* Notice */
.elementor-control-gafe_svg_draw_note .elementor-panel-alert-info,
.elementor-control-gafe_heading_kinetics_notice .elementor-panel-alert-info,
.elementor-control-gafe_heading_settings_notice .elementor-panel-alert-info {
   padding: 7px;
   margin-bottom: 5px;
   font-weight: 400;
}
/* Toast notification - Make it more visible */
.elementor-toast {
   left: 10px !important;
   right: 10px !important;
   bottom: 10px !important;
   max-width: none !important;
   width: auto !important;
}

/* DrawSVG - Force stroke for icons with draw animation */
/* Converts all SVG elements to stroke-based rendering */
/* Applied on frontend when draw animation is active */
.gafe-widget[data-gafe-config*='"animation":"draw"'] svg path,
.gafe-widget[data-gafe-config*='"animation":"draw"'] svg line,
.gafe-widget[data-gafe-config*='"animation":"draw"'] svg circle,
.gafe-widget[data-gafe-config*='"animation":"draw"'] svg rect,
.gafe-widget[data-gafe-config*='"animation":"draw"'] svg polyline,
.gafe-widget[data-gafe-config*='"animation":"draw"'] svg polygon,
.gafe-widget[data-gafe-config*='"animation":"draw"'] svg ellipse {
   fill: none !important;
   stroke: currentColor !important;
   stroke-width: 1.5px !important;
   vector-effect: non-scaling-stroke;
}

/* Toogle */
.elementor-control-gafe_heading_kinetics_toogle,
.elementor-control-gafe_heading_scrolltrigger_toggle,
.elementor-control-gafe_heading_settings_toggle,
.elementor-control-gafe_svg_kinetics_toogle,
.elementor-control-gafe_svg_scrolltrigger_toggle,
.elementor-control-gafe_svg_settings_toggle,
.elementor-control-gafe_image_kinetics_toogle,
.elementor-control-gafe_image_scrolltrigger_toggle,
.elementor-control-gafe_image_settings_toggle,
.elementor-control-gafe_text_kinetics_toogle,
.elementor-control-gafe_text_scrolltrigger_toggle,
.elementor-control-gafe_text_settings_toggle {
   background-color: var(--e-a-bg-active);
   border-top: 1px solid var(--e-a-bg-default);
   padding-top: 15px;
   margin-bottom: 15px;
}
/* Play button */
.elementor-control-gafe_heading_play_animation,
.elementor-control-gafe_svg_play_animation,
.elementor-control-gafe_image_play_animation,
.elementor-control-gafe_text_play_animation {
   background-color: var(--e-a-btn-bg-primary);
   padding: 10px 20px;
}
.elementor-control-gafe_heading_play_animation button,
.elementor-control-gafe_svg_play_animation button,
.elementor-control-gafe_image_play_animation button,
.elementor-control-gafe_text_play_animation 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;
}
