/* Styling Desktop vs Mobile Menu layout */
.owm-menu-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
}

/* Desktop horizontal styles */
.owm-desktop-nav {
  display: block;
  width: 100%;
}
.owm-desktop-menu {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}
.owm-desktop-menu li a {
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
  display: inline-block;
}

/* Underline feature styles */
.owm-has-underline-yes .owm-desktop-menu > li > a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}
.owm-has-underline-yes .owm-desktop-menu > li > a:hover::after,
.owm-has-underline-yes .owm-desktop-menu > li.current-menu-item > a::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Hide Hamburger Toggle on Desktop */
.owm-toggle-btn {
  display: none;
  background: transparent !important;
  border: 1px solid currentColor !important;
  padding: 10px;
  cursor: pointer;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  box-shadow: none !important;
  outline: none !important;
  transition: all 0.3s ease;
}
.owm-toggle-btn:hover {
  background: transparent !important;
  opacity: 0.9 !important;
}
.owm-toggle-icon {
  position: relative;
  width: 20px;
  height: 2px;
  background-color: currentColor;
  display: inline-block;
  transition: background-color 0.3s ease;
}
.owm-toggle-icon::before,
.owm-toggle-icon::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: currentColor;
  left: 0;
  transition: background-color 0.3s ease;
}
.owm-toggle-icon::before { top: -6px; }
.owm-toggle-icon::after { bottom: -6px; }

/* Responsive adjustments */
@media (max-width: 1024px) {
  .owm-desktop-nav {
    display: none !important;
  }
  .owm-toggle-btn {
    display: flex;
  }
}

/* Side Panel Drawer styling */
.owm-drawer-container-1c415c70 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
}

/* Admin bar offsets */
body.admin-bar .owm-drawer-container-1c415c70 {
  top: var(--wp-admin--admin-bar--height, 32px);
  height: calc(100% - var(--wp-admin--admin-bar--height, 32px));
}
@media screen and (max-width: 782px) {
  body.admin-bar .owm-drawer-container-1c415c70 {
    top: 46px;
    height: calc(100% - 46px);
  }
}

.owm-backdrop-1c415c70 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.owm-drawer-1c415c70 {
  position: absolute;
  top: 0;
  width: 320px;
  max-width: 85%;
  height: 100%;
  background-color: #fff;
  box-shadow: 0 0 15px rgba(0,0,0,0.25);
  padding: 60px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Determine direction side */
.owm-drawer-container-1c415c70.side-right .owm-drawer-1c415c70 {
  right: 0;
  transform: translateX(100%);
}
.owm-drawer-container-1c415c70.side-left .owm-drawer-1c415c70 {
  left: 0;
  transform: translateX(-100%);
}

/* Drawer open state modifiers */
.owm-drawer-container-1c415c70.is-active .owm-backdrop-1c415c70 {
  opacity: 1;
}
.owm-drawer-container-1c415c70.is-active .owm-drawer-1c415c70 {
  transform: translateX(0);
}

.owm-drawer-close-1c415c70 {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  font-size: 32px !important; /* Smaller, compact close button size */
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px !important;
  height: 32px !important;
}
.owm-drawer-close-1c415c70:hover,
.owm-drawer-close-1c415c70:focus,
.owm-drawer-close-1c415c70:active {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  color: inherit !important;
  opacity: 0.8;
}

.owm-mobile-menu {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.owm-mobile-menu li a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  display: block;
  padding: 5px 0;
}
