.hi-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.hi-popup-content {
    position: relative;
    box-sizing: border-box;
    background: #fff;
    padding: 20px;
    max-width: 800px;
    width: 90%;
    border-radius: 8px;
    overflow-y: auto;
}

.hi-popup-animated {
    animation-duration: 0.45s;
    animation-fill-mode: both;
    animation-timing-function: ease-out;
}

.hi-popup-animation-fast { animation-duration: 0.25s; }
.hi-popup-animation-slow { animation-duration: 0.75s; }
.hi-popup-animation-fade-in { animation-name: hi-popup-fade-in; }
.hi-popup-animation-zoom-in { animation-name: hi-popup-zoom-in; }
.hi-popup-animation-slide-up { animation-name: hi-popup-slide-up; }
.hi-popup-animation-slide-down { animation-name: hi-popup-slide-down; }
.hi-popup-animation-slide-left { animation-name: hi-popup-slide-left; }
.hi-popup-animation-slide-right { animation-name: hi-popup-slide-right; }

@keyframes hi-popup-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes hi-popup-zoom-in {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes hi-popup-slide-up {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes hi-popup-slide-down {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes hi-popup-slide-left {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes hi-popup-slide-right {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hi-popup-animated {
        animation: none;
    }
}

.hi-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 22px;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
	height: 35px;
	z-index: 9999999;
}

.hi-popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* controls spacing between icon and text */
}

/* If icon is before the text */
.hi-popup-btn .elementor-icon-left {
    order: 0;
}

/* If icon is after the text */
.hi-popup-btn .elementor-icon-right {
    order: 2;
}

/* Ensure icons align properly */
.hi-popup-btn i,
.hi-popup-btn svg {
    display: inline-block;
    vertical-align: middle;
}

/* Allow Elementor control to manage spacing */
.hi-popup-btn .elementor-icon-left {
    margin-right: var(--hi-icon-spacing, 8px);
}

.hi-popup-btn .elementor-icon-right {
    margin-left: var(--hi-icon-spacing, 8px);
}
