/* Burger button (inline now) */


.obm-search .search-form {
    margin-bottom: 4px !important;
}
.obm-burger-btn{
  width:20px;
  height:16px;
  display:inline-flex;
  flex-direction:column;
  justify-content:space-between;
  background:none;
  border:0;
  cursor:pointer;
  padding:0;
	background: #fff;
	position: relative;
	top: -10px;
}
.obm-expanded > a {
	background: #f1f1f1;
}
.menu-item-has-children a button:focus, .menu-item-has-children a button:hover {
	background:rgba(0,0,0,0) !important;
}
.obm-burger-btn:focus, .obm-burger-btn:hover {
	background: #fff;
}
#mega-menu-wrap-primary {
	display: inline-block !important;
}
.obm-burger-btn span{
  display:block;
  height:2px;
  background:#222;
  border-radius:2px;
}

/* Overlay */
.obm-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.45);
  opacity:0;
  pointer-events:none;
  transition:opacity .25s;
  z-index:9998;
}
.obm-overlay.show{
  opacity:1;
  pointer-events:auto;
}

/* Sidebar RIGHT */
.obm-sidebar{
  position:fixed;
  top:0;
  right:0;
  width:380px;
  max-width:95%;
  height:100%;
  background:#fff;
  transform:translateX(100%);
  transition:transform .28s cubic-bezier(.4,0,.2,1);
  z-index:9999;
  padding: 0;
  overflow:auto;
}
.obm-sidebar .getstarted {
	font-family: 'GeneralSans-Semibold';
    padding: 12px 30px 12px 20px;
    color: white;
    background-color: #f36e39;
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    align-content: stretch;
    border-radius: 25px;
    transition: ease-out 500ms;
}
.obm-sidebar .getstarted:after {
    content: url(https://themortgagebroker.co.uk/wp-content/uploads/2024/01/contactbut.png);
    width: 20px;
    height: 20px;
    position: relative;
    top: -8px;
    left: 8px;
    margin-left: 10px;
    transition: ease-out 500ms;
    transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
}

.obm-sidebar .sub-menu {
	list-style: none;
}
.obm-sidebar.open{
  transform:translateX(0);
}

.obm-close{
  font-size:28px;
  border:0;
  background:transparent;
  cursor:pointer;
	color: #182047;
 
}
.obm-close:hover {
  font-size:28px;
  border:0;
  background:#ccc;
  cursor:pointer;
	color: #182047;
 
}
.sidecall, .prvclnts {
	color: #182047;
	background-color: white;
	border: 1px solid #ccc;
}
.sidecall:hover, .prvclnts:hover {
	color: #182047;
	background-color: white;
	border: 1px solid #ccc;
}
.obm-sidebar button {
	font-size: 12px;
	padding: 10px;
}
/* Menu styling */
.obm-menu{
  list-style:none;
  padding:0;
  margin:20px 0px;
}
.obm-menu li{
  border-bottom:1px solid #eee;
}
.obm-menu a{
  display:block;
  padding:8px 4px;
  text-decoration:none;
  color: #182047;

}

/* prevent scroll */
body.obm-lock{
  overflow:hidden;
}

/* --- Submenu accordion (animated) --- */

/* Base submenu state: collapsed */
.obm-sidebar .obm-menu .sub-menu{
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s cubic-bezier(.4,0,.2,1);
  padding-left:14px;
  margin: 0 0 10px 0;
  border-left:2px solid rgba(0,0,0,0.12);
}

/* When expanded we set max-height inline via JS, but keep a fallback */
.obm-sidebar .obm-menu li.obm-expanded > .sub-menu{
  /* max-height is set in JS for smooth animation */
}

/* Layout: link + toggle button on same row */
.obm-sidebar .obm-menu li.menu-item-has-children > a{
  padding-right: 44px;
  position: relative;
}

/* Toggle button inserted by JS */
.obm-subtoggle{
  position:absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: rgba(0,0,0,0);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.obm-subtoggle:hover, .obm-subtoggle:focus, .obm-subtoggle:clicked {
	background: rgba(0,0,0,0) !important;
}
/* Chevron */
.obm-subtoggle::before{
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(0,0,0,0.75);
  border-bottom: 2px solid rgba(0,0,0,0.75);
  transform: rotate(45deg);
  display:block;
  transition: transform .2s ease;
}

/* Rotate chevron when open */
.obm-expanded > a > .obm-subtoggle::before{
  transform: rotate(-135deg);
}

/* --- Drilldown (push) menu --- */

.obm-nav {
  overflow: hidden;              /* hide off-screen panels */
}

/* Track that slides left/right */
.obm-drilldown-track{
  display: flex;
  width: 100%;
  transform: translateX(0);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}

/* Each UL becomes a panel */
.obm-drilldown-panel{
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Back row */
.obm-backbtn {
  margin: 0px 0px 5px 0px;
}
.obm-backbtn{
  width: 100%;
  text-align: left;
  padding: 6px 8px;
  background: transparent !important;
  border: 0;
  cursor: pointer;
  font-size: 16px;
	color: #182047; !important;
}
.obm-backbtn:hover, .obm-backbtn:focus {

  background: transparent !important;

	color: #182047 !important;
}
.obm-backbtn::before{
  content: "← ";
}
.obm-backwrap h4 {border-left: 0px solid #fff !important; }
/* Parent items show a chevron */
.obm-menu a.obm-has-sub{
  position: relative;
  padding-right: 44px; /* space for chevron */
}

/* Chevron icon on the right */
.obm-menu a.obm-has-sub::after{
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translateY(-50%) rotate(-45deg); /* points right */
  border-right: 2px solid rgba(0,0,0,0.75);
  border-bottom: 2px solid rgba(0,0,0,0.75);
}


/* Make every panel look consistent */
.obm-drilldown-panel{
  list-style:none;
  margin:0;
  padding:0;
}

/* Ensure links are full-width tappable */
.obm-drilldown-panel a{
  display:block;
  padding:6px 8px;
  text-decoration:none;
  color: #182047;
}

/* Chevron for ANY parent link in ANY drilldown panel */
.obm-drilldown-panel a.obm-has-sub{
  position: relative;
  padding-right: 44px; /* space for chevron */
}

.obm-drilldown-panel a.obm-has-sub::after{
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translateY(-50%) rotate(-45deg); /* points right */
  border-right: 2px solid rgba(0,0,0,0.75);
  border-bottom: 2px solid rgba(0,0,0,0.75);
}


/* Remove browser focus ring inside sliding offcanvas */
#obmSidebar button:focus,
#obmSidebar button:focus-visible,
#obmSidebar a:focus,
#obmSidebar a:focus-visible {
  outline: none !important;
}
/* Accessible focus style that DOESN'T leak outside transform panels */
#obmSidebar .obm-drilldown-panel a:focus-visible,
#obmSidebar .obm-drilldown-panel button:focus-visible {
  box-shadow: inset 0 0 0 2px #1a73e8;
  border-radius: 6px;
}

/* smoother mobile feel */
#obmSidebar .obm-drilldown-track {
  will-change: transform;
}