/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */

/* Make long Divi dropdown menus scroll instead of falling off-screen */
.et_pb_menu .sub-menu,
.et-menu .sub-menu,
.nav .sub-menu {
  max-height: 70vh;           /* keeps it within the viewport */
  overflow-y: auto;           /* enables scrolling */
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
}

/* Optional: slightly tighter spacing for long lists */
.et_pb_menu .sub-menu li a,
.et-menu .sub-menu li a {
  padding-top: 10px;
  padding-bottom: 10px;
}

.nav .sub-menu {
  scrollbar-width: thin; /* Firefox */
}
.nav .sub-menu::-webkit-scrollbar {
  width: 8px;
}

/* =Global Bottom Sticky Button
------------------------------------------------------- */
@media (max-width: 767px) {
  .rm-sticky-mobile-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 99999;
    pointer-events: none;
  }

  .rm-sticky-mobile-call {
    pointer-events: auto;
    display: block;
    width: 100%;
    text-align: center;
    background: #cfa163;
    color: #ffffff !important;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
    line-height: 1.1;
    padding: 16px 20px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.14);
  }

  body {
    padding-bottom: 90px;
  }
}