/* Theme mobile overlay — loaded at max-width 900px to match .menu-trigger */

.mm-mobile {
	position: fixed;
	inset: 0;
	z-index: 400000;
	display: block;
	font-family: museo-sans-rounded, sans-serif;
	color: #001755;
	background: transparent;
}

.mm-mobile[hidden] {
	display: none !important;
}

.mm-mobile__backdrop {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(0, 23, 85, 0.5);
	opacity: 0;
	cursor: pointer;
	transition: opacity 0.3s ease;
}

.mm-mobile.is-open .mm-mobile__backdrop {
	opacity: 1;
}

.mm-mobile__inner {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	width: 80%;
	height: 100%;
	min-height: 0;
	padding: 12px 16px 24px 20px;
	box-sizing: border-box;
	background: #fff;
	overflow: hidden;
	transform: translate3d(100%, 0, 0);
	transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.mm-mobile.is-open .mm-mobile__inner {
	transform: translate3d(0, 0, 0);
}

.mm-mobile ul,
.mm-mobile li,
.mm-mobile hr {
	margin: 0;
	padding: 0;
	padding-inline-start: 0;
	border: 0;
	list-style: none;
	background: none;
	box-shadow: none;
}

.mm-mobile a {
	text-decoration: none;
}

.mm-mobile__header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 74px;
	padding-bottom: 12px;
	flex-shrink: 0;
}

.mm-mobile__close {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.mm-mobile__close span {
	position: relative;
	display: block;
	width: 22px;
	height: 3px;
	margin: 0 auto;
	background: transparent;
}

.mm-mobile__close span:before,
.mm-mobile__close span:after {
	content: "";
	position: absolute;
	left: 0;
	width: 22px;
	height: 3px;
	border-radius: 2px;
	background: #00c8e5;
}

.mm-mobile__close span:before {
	transform: rotate(45deg);
}

.mm-mobile__close span:after {
	transform: rotate(-45deg);
}

.mm-mobile__logo {
	display: block;
	line-height: 0;
}

.mm-mobile__logo-img {
	max-width: 140px;
	height: auto;
	display: block;
}

.mm-mobile__logo-text {
	font-weight: 800;
	font-size: 18px;
	color: #c70067;
}

.mm-mobile__panels {
	position: relative;
	flex: 1;
	min-height: 0;
	overflow: hidden;
	isolation: isolate;
}

.mm-mobile__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 0;
	width: 100%;
	box-sizing: border-box;
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	padding: 0 12px 16px 0;
	background: #fff;
	transform: translate3d(100%, 0, 0);
	transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
	backface-visibility: hidden;
}

.mm-mobile__panel::-webkit-scrollbar {
	width: 0;
	height: 0;
}

.mm-mobile__panel.is-behind {
	transform: translate3d(0, 0, 0);
	z-index: 1;
}

.mm-mobile__panel.is-active {
	transform: translate3d(0, 0, 0);
	pointer-events: auto;
	z-index: 2;
}

.mm-mobile__panel.is-leaving {
	transform: translate3d(100%, 0, 0);
	z-index: 3;
}

.mm-mobile__panel-head {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	padding: 0;
}

.mm-mobile__panel:not([data-mm-root]) .mm-mobile__panel-head {
	padding-bottom: 10px;
}

.mm-mobile__back,
.mm-mobile__intro {
	display: flex;
	align-items: center;
	align-self: stretch;
	box-sizing: border-box;
	margin: 0 0 16px;
	padding: 0;
	height: 24px;
	min-height: 24px;
	overflow: hidden;
	border: 0;
	background: none;
	color: #c70067;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.mm-mobile__back {
	align-self: flex-start;
	gap: 8px;
	cursor: pointer;
}

.mm-mobile__intro {
	margin: 0 0 16px;
	color: #c70067 !important;
	text-overflow: ellipsis;
}

.mm-mobile__back-icon {
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	margin-right: 2px;
	border-left: 2px solid #c70067;
	border-bottom: 2px solid #c70067;
	transform: rotate(45deg);
}

.mm-mobile__panel-title {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.25;
	color: #001755;
}

.mm-mobile__label {
	display: inline-flex;
	align-items: flex-start;
	min-width: 0;
	flex: 1;
	line-height: 1;
}

.mm-mobile__copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 3px;
}

.mm-mobile__text {
	display: flex;
	align-items: center;
	min-height: 25px;
	line-height: 1.25;
}

.mm-mobile__cta-note {
	display: block;
	color: #c70067;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
}

.mm-mobile__icon {
	display: block;
	width: 25px;
	height: 25px;
	margin-right: 8px;
	flex-shrink: 0;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.mm-mobile__icon.buying,
.mm-mobile__icon.purchase { background-image: url(../images/buying-bg.svg); }
.mm-mobile__icon.bridging { background-image: url(../images/bridging.svg); }
.mm-mobile__icon.btl { background-image: url(../images/btl.svg); }
.mm-mobile__icon.special { background-image: url(../images/special.svg); }
.mm-mobile__icon.self-employed { background-image: url(../images/self-employed.svg); }
.mm-mobile__icon.insurance { background-image: url(../images/insurance.svg); }
.mm-mobile__icon.remortgage { background-image: url(../images/remortgage.svg); }
.mm-mobile__icon.laterlife { background-image: url(../images/buy.svg); }
.mm-mobile__icon.guides { background-image: url(../images/guides-menu.svg); }
.mm-mobile__icon.service,
.mm-mobile__icon.our-service { background-image: url(../images/perks.svg); }
.mm-mobile__icon.about,
.mm-mobile__icon.careers { background-image: url(../images/our-service.svg); }
.mm-mobile__icon.calc { background-image: url(../images/calc.svg); }
.mm-mobile__icon.contact,
.mm-mobile__icon.enquire { background-image: url(../images/about.svg); }
.mm-mobile__icon.tube { background-image: url(../images/youtube.svg); }
.mm-mobile__icon.perks { background-image: url(../images/perks.svg); }
.mm-mobile__icon.partners { background-image: url(../images/partners.svg); }
.mm-mobile__icon.team { background-image: url(../images/team.svg); }
.mm-mobile__icon.reviews { background-image: url(../images/reviews.svg); }
.mm-mobile__icon.monitor { background-image: url(../images/monitor.svg); }
.mm-mobile__icon.press { background-image: url(../images/press.svg); }
.mm-mobile__icon.refer { background-image: url(../images/our-service.svg); }

.mm-mobile__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mm-mobile__item {
	margin: 0;
	border: 0;
}

.mm-mobile__section-item {
	margin: 28px 0 8px;
	padding: 0;
	list-style: none;
}

.mm-mobile__section-item:first-child {
	margin-top: 4px;
}

.mm-mobile__section {
	margin: 0;
	padding: 10px 0 5px 0;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.3;
	color: #001755;
}

.mm-mobile__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	padding: 16px 8px 16px 0;
	border: 0;
	background: none;
	color: #001755 !important;
	font-family: inherit;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.25;
	text-align: left;
	text-decoration: none !important;
	cursor: pointer;
}

.mm-mobile__panel:not([data-mm-root]) .mm-mobile__link {
	font-size: 17px;
	font-weight: 700;
	padding: 12px 8px 12px 0;
}

.mm-mobile__panel[data-mm-depth="2"] .mm-mobile__link,
.mm-mobile__panel[data-mm-depth="3"] .mm-mobile__link {
	font-size: 16px;
	font-weight: 500;
	padding: 8px;
}

.mm-mobile__panel[data-mm-root] .mm-mobile__item:first-child .mm-mobile__link {
	padding-top: 0;
}

.mm-mobile__chevron {
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	margin-left: 12px;
	border-right: 2px solid #c70067;
	border-bottom: 2px solid #c70067;
	transform: rotate(-45deg);
}

.mm-mobile__empty {
	margin: 24px 0;
	font-size: 16px;
	font-weight: 300;
}

.mm-mobile__cta {
	display: block;
	flex-shrink: 0;
	margin-top: 8px;
	padding: 8px 16px;
	border: 0;
	border-radius: 40px;
	background: #c70067;
	color: #fff !important;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	text-decoration: none !important;
}

body.mm-mobile-open {
	overflow: hidden;
}

#sfm-sidebar,
.sfm-rollback,
.sfm-mob-nav {
	display: none !important;
}

@media (max-width: 320px) {
	.mm-mobile__inner {
		width: 90%;
	}
}

@media (max-width: 280px) {
	.mm-mobile__inner {
		padding: 10px 10px 16px 12px;
	}

	.mm-mobile__header {
		min-height: 56px;
		padding-bottom: 8px;
	}

	.mm-mobile__logo-img {
		max-width: 110px;
	}

	.mm-mobile__logo-text {
		font-size: 15px;
	}

	.mm-mobile__back,
	.mm-mobile__intro {
		margin-bottom: 10px;
		font-size: 13px;
	}

	.mm-mobile__panel-title {
		font-size: 16px;
		white-space: nowrap;
	}

	.mm-mobile__icon {
		width: 20px;
		height: 20px;
		margin-right: 6px;
	}

	.mm-mobile__text {
		min-height: 20px;
		white-space: nowrap;
	}

	.mm-mobile__cta-note {
		font-size: 10px;
		white-space: nowrap;
	}

	.mm-mobile__section {
		font-size: 13px;
		white-space: nowrap;
	}

	.mm-mobile__link {
		padding: 12px 4px 12px 0;
		font-size: 16px;
		white-space: nowrap;
	}

	.mm-mobile__panel:not([data-mm-root]) .mm-mobile__link {
		padding: 8px 4px 8px 0;
		font-size: 14px;
	}

	.mm-mobile__panel[data-mm-depth="2"] .mm-mobile__link,
	.mm-mobile__panel[data-mm-depth="3"] .mm-mobile__link {
		padding: 6px 4px;
		font-size: 13px;
	}

	.mm-mobile__chevron {
		margin-left: 8px;
	}

	.mm-mobile__cta {
		padding: 7px 12px;
		font-size: 13px;
		white-space: nowrap;
	}
}
