.efsa-toggle-icon {
    display: inline-flex;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.efsa-toggle-icon:hover {
    opacity: 0.7;
}

/* Lightbox Base Style */
.efsa-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.96); /* Kita-Avalon Light style */
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.efsa-overlay.efsa-open {
    opacity: 1;
    visibility: visible;
}

.efsa-close {
    position: absolute;
    top: 40px;
    right: 40px;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.3s ease;
}

.efsa-close:hover {
    transform: rotate(90deg);
}

.efsa-content {
    width: 80%;
    max-width: 900px;
    position: relative;
    transform: translateY(40px);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.efsa-overlay.efsa-open .efsa-content {
    transform: translateY(0);
}

.efsa-input-wrapper {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #555;
    padding-bottom: 10px;
}

.efsa-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: clamp(30px, 5vw, 60px);
    font-weight: 300;
    color: #333;
    box-shadow: none;
    padding: 0 20px 0 0;
}

.efsa-input:focus {
    background: transparent;
    border: none;
    box-shadow: none;
    outline: none;
}

.efsa-submit {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0 10px;
    transition: transform 0.3s ease;
}

.efsa-submit:hover {
    transform: scale(1.1);
}

/* Fix for Elementor editor mode so overlay doesn't break editor UI */
.elementor-editor-active .efsa-overlay {
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: 99;
}
