/* Menu Popup Wrapper - No fixed positioning */
.agifly-mobile-menu .sliding-menu-popup-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Sliding Menu Container for Popup - Static, no animation needed */
.agifly-mobile-menu .sliding-menu-container-popup {
    position: relative;
    width: 100%;
    height: 935px;
    overflow: hidden;
}

/* Menu Header */
/* .agifly-mobile-menu .menu-header {
    border-bottom: 1px solid #e5e7eb;
} */

.agifly-mobile-menu .wpml-ls-statics-shortcode_actions.wpml-ls.wpml-ls-legacy-dropdown.js-wpml-ls-legacy-dropdown {
  border: none;
  background: #ffffff;
  border-radius: 8px;
  height: 54px;
  margin-bottom: 40px;
}

.agifly-mobile-menu li.wpml-ls-slot-shortcode_actions.wpml-ls-current-language.wpml-ls-item-legacy-dropdown a {
  font-family: "Bricolage Grotesque", Sans-serif;
  border: none;
  font-weight: 700;
  color: #242424;
  padding: 16px;
}

.agifly-mobile-menu li.wpml-ls-slot-shortcode_actions.wpml-ls-current-language.wpml-ls-item-legacy-dropdown a.wpml-ls-item-toggle {
  color: #015DDE;
}

.agifly-mobile-menu .wpml-ls-legacy-dropdown a.wpml-ls-item-toggle:after {
  border-left: 3px solid #566673;
  border-bottom: 3px solid #566673;
  width: 9px;
  height: 9px;
  right: 23px;
  top: 22px;
}

.agifly-mobile-menu .menu-header h3 {
  font-family: "Bricolage Grotesque", Sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
  color: #242424;
  margin: 0 0 20px;
}


/* Menu Panel */
.agifly-mobile-menu .menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #F6F8FA;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.agifly-mobile-menu .menu-panel.active {
    transform: translateX(0) !important;
}

.agifly-mobile-menu .menu-panel.slide-left {
    transform: translateX(-100%);
}

.agifly-mobile-menu .menu-panel .menu-header {
  padding: 0 16px;
}

.agifly-mobile-menu .menu-panel .menu-items {
  padding: 0 24px;
}

/* Back Button */
.agifly-mobile-menu .back-button {
    display: flex;
    align-items: end;
    gap: 16px;
    padding: 16px 24px;
    border: none;
    cursor: pointer;
    color: #242424;
    font-family: "Bricolage Grotesque", Sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: normal;
    text-align: left;
    background: none;
}

/* .agifly-mobile-menu .back-button:hover {
    background: #f3f4f6;
} */

.agifly-mobile-menu .back-arrow {
    font-size: 20px;
    color: #667eea;
}

/* Menu Items Container */
/* .agifly-mobile-menu .menu-items {
    flex: 1;
} */

/* Regular Menu Item (for parent levels) */
.agifly-mobile-menu .menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: none;
    border-radius: 16px;
    background: #ffffff;
    cursor: pointer;
    font-family: "Bricolage Grotesque", Sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: normal;
    color: #242424;
    width: 100%;
    text-align: left;
    text-decoration: none;
    transition: background 0.3s, padding-left 0.3s;
    margin-bottom: 4px;
}

.agifly-mobile-menu #mainMenuPanel .menu-item {
  padding: 25px 16px;
}

.agifly-mobile-menu #mainMenuPanel .menu-item.has-submenu {
  padding: 16px;
}

.agifly-mobile-menu .menu-item:hover {
  background: #F7FBFF;
}

/* Detailed Menu Item (with description) */
.agifly-mobile-menu .menu-item-detailed {
    position: relative;
    display: flex;
    align-items: end;
    gap: 24px;
    padding: 16px;
    padding-right: 25px;
    border: none;
    background: white;
    cursor: pointer;
    width: 100%;
    text-align: left;
    text-decoration: none;
    transition: background 0.3s, padding-left 0.3s;
    border-radius: 16px;
    margin-bottom: 8px;
}

/* Item Badge */
.agifly-mobile-menu .item-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #F78018;
    color: #ffffff;
    font-family: "DM Sans";
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    padding: 4px 8px;
    border-radius: 36px;
}

/* Item Content */
.agifly-mobile-menu .item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 32px;
}

.agifly-mobile-menu .item-title {
  color: #242424;
  font-family: "Bricolage Grotesque", Sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
}

.agifly-mobile-menu .item-description {
  color: #47535D;
  font-family: "DM Sans";
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  display: block;
}

/* Arrow */
.agifly-mobile-menu .menu-item .arrow,
.agifly-mobile-menu .menu-item-detailed .arrow {
    font-size: 18px;
    color: #9ca3af;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.agifly-mobile-menu .menu-item:hover .arrow,
.agifly-mobile-menu .menu-item-detailed:hover .arrow {
    transform: translateX(5px);
}

.agifly-mobile-menu .menu-item.highlighted .arrow,
.agifly-mobile-menu .menu-item-detailed.highlighted .arrow {
    color: white;
}

/* Menu CTA Section */

.agifly-mobile-menu .menu-cta {
    margin-top: 38px;
    padding: 0 16px 16px;
    border-bottom: 1px solid #EAF1FB;
}

.agifly-mobile-menu .menu-bottom {
    padding: 16px 40px 40px;
}

.agifly-mobile-menu .cta-button {
  display: flex;
  padding: 16px 18px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  border-radius: 4px;
  background: #FAA44B;
  color: #ffffff;
  font-family: "Bricolage Grotesque", Sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
}

.agifly-mobile-menu .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.agifly-mobile-menu .menu-bottom .socials-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.agifly-mobile-menu .menu-bottom .socials {
  display: flex;
  align-items: center;
  gap: 24px;
}

.agifly-mobile-menu .contact-label {
  color: #8A9AA6;
  font-family: "Bricolage Grotesque", Sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.agifly-mobile-menu .contact-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.agifly-mobile-menu .contact-link {
    color: #FAA44B;
    font-family: "Bricolage Grotesque", Sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.agifly-mobile-menu .contact-link:hover {
    opacity: 0.8;
}

/* Scrollbar Styling */
.agifly-mobile-menu .menu-panel::-webkit-scrollbar {
    width: 6px;
}

.agifly-mobile-menu .menu-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.agifly-mobile-menu .menu-panel::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.agifly-mobile-menu .menu-panel::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}