/* ============================================================
   RINNAI MEGA MENU
   ============================================================ */

/* ── DESKTOP OVERLAY ─────────────────────────────────────── */

.rmm__overlay {
	position: fixed;
	top: var(--rmm-panel-top, 0px);
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9990;
	pointer-events: none;
	background-color: rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.3s ease,
		visibility 0.3s ease;
}

.rmm__overlay.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* ── DESKTOP HEADER TABS ─────────────────────────────────── */

.rmm__header-tabs {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 24px;
	flex-wrap: wrap;
}

.rmm__header-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: default;
	user-select: none;
}

.rmm__header-tab-rule {
	display: block;
	flex-shrink: 0;
	width: 4px;
	height: 24px;
	background-color: #e2001a;
}

.rmm__header-tab-label {
	font-size: 14px;
	color: #3e3a39;
	white-space: nowrap;
	line-height: 1.3;
}

/* ── MOBILE HEADER TABS ──────────────────────────────────── */

.rmm__header-tabs-mobile {
	display: none;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	flex: 1;
}

.rmm__header-tab-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	color: #3e3a39;
	padding: 4px 0;
	white-space: nowrap;
	transition: color 0.2s ease;
	line-height: 1.3;
}

.rmm__header-tab-link:hover {
	color: #e2001a;
	text-decoration: none;
}

.rmm__header-tab-mobile-rule {
	display: block;
	flex-shrink: 0;
	width: 4px;
	height: 20px;
	background-color: #777473;
}

.rmm__header-tab-mobile-chevron {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.rmm__header-tab-chevron-svg {
	width: 10px;
	height: 10px;
	display: block;
	overflow: visible;
}

.rmm__header-tab-mobile-text {
	font-size: 14px;
}

/* Desktop: hide mobile tabs; Mobile: hide desktop tabs */
@media (min-width: 1245px) {
	.rmm__header-tabs-mobile {
		display: none !important;
	}
}

@media (max-width: 1244px) {
	.rmm__header-tabs {
		display: none;
	}

	.rmm__header-tabs-mobile {
		display: flex;
	}
}

/* ── PANEL SECTIONS ──────────────────────────────────────── */

.rmm__panel-section {
	margin-bottom: 50px;
}

.rmm__panel-section:last-child {
	margin-bottom: 0;
}

/* Orphan links (no group wrapper) — match section spacing when followed by a section */
.rmm__panel-inner > .rmm__panel-links:not(:last-child) {
	margin-bottom: 50px;
}

.rmm__panel-section-header {
	display: flex;
	align-items: center;
	margin-bottom: 30px;
}

.rmm__panel-section-rule {
	display: block;
	flex-shrink: 0;
	width: 4px;
	height: 28px;
	background-color: #e2001a;
}

.rmm__panel-section-title {
	font-weight: 600;
	color: #3e3a39;
	padding-left: 20px;
	line-height: 1.3;
}

.rmm__panel-section-title--link {
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.rmm__panel-section-title--link:hover {
	opacity: 0.7;
}

/* ── PANEL LINKS (text) ──────────────────────────────────── */

.rmm__panel-links {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
}

.rmm__panel-links:has(.rmm__panel-image-link) {
	grid-template-columns: repeat(3, 1fr);
}

.rmm__panel-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	color: #3e3a39;
	font-size: 14px;
	line-height: 1.3;
	transition: color 0.2s ease;
	white-space: nowrap;
}

.rmm__panel-link:hover {
	color: #e2001a;
	text-decoration: none;
}

.rmm__panel-link-chevron {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.rmm__panel-link-chevron-svg {
	width: 10px;
	height: 10px;
	display: block;
	overflow: visible;
}

/* ── PANEL IMAGE LINKS ───────────────────────────────────── */

.rmm__panel-image-link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: #3e3a39;
	transition: color 0.2s ease;
}

.rmm__panel-image-link:hover {
	color: #e2001a;
	text-decoration: none;
}

.rmm__panel-image-wrap {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 1px solid #e5e5e5;
	margin-bottom: 8px;
	background-color: #f5f5f5;
}

.rmm__panel-image-wrap .rmm__panel-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rmm__panel-image-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	line-height: 1.3;
}

/* ── MOBILE: ACCORDION GROUP HEADERS ─────────────────────── */

.rmm__acc-group {
	margin-top: 8px;
}

.rmm__acc-group-header {
	display: flex;
	align-items: center;
	padding: 4px 0;
	min-height: 36px;
	cursor: pointer;
	user-select: none;
}

.rmm__acc-group-rule {
	display: block;
	flex-shrink: 0;
	width: 4px;
	height: 20px;
	background-color: #777473;
}

.rmm__acc-group-name {
	flex: 1;
	font-size: 14px;
	font-weight: 500;
	color: #3e3a39;
	padding-left: 10px;
	line-height: 1.3;
}

.rmm__acc-group-name--link {
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.rmm__acc-group-name--link:hover {
	opacity: 0.7;
}

.rmm__acc-group-plus {
	position: relative;
	flex-shrink: 0;
	width: 14px;
	height: 14px;
}

.rmm__acc-group-plus::before,
.rmm__acc-group-plus::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 14px;
	height: 2px;
	margin: auto;
	background-color: #777473;
	transition: transform 0.3s ease;
}

.rmm__acc-group-plus::after {
	transform: rotate(90deg);
}

.rmm__acc-group-body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.rmm__acc-group.is-open .rmm__acc-group-body {
	max-height: 1200px;
}

.rmm__acc-group.is-open .rmm__acc-group-plus::after {
	transform: rotate(0deg);
}

/* ── DESKTOP NAV BAR ─────────────────────────────────────── */

.rmm__desktop-nav {
	display: flex;
	align-items: center;
}

.rmm__top-nav {
	display: flex;
	align-items: stretch;
	list-style: none;
	margin: 0;
	padding: 0;
}

.rmm__top-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	cursor: pointer;
}

.rmm__top-link {
	flex: 1;
	background: none;
	border: none;
	cursor: pointer;
	padding: 12px 20px;
	font-size: inherit;
	font-family: inherit;
	font-weight: inherit;
	color: inherit;
	display: flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.rmm__top-link:focus:not(:focus-visible) {
	outline: none;
}

.rmm__nav-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.rmm__nav-icon-svg,
.rmm__nav-icon img {
	display: block;
	width: 14px;
	height: 14px;
}

/* Default: hide the open-state icon */
.rmm__nav-icon--open {
	display: none;
}

/* Active: swap to open icon */
.rmm__top-item.is-active .rmm__nav-icon--default {
	display: none;
}

.rmm__top-item.is-active .rmm__nav-icon--open {
	display: inline-flex;
}

.rmm__indicator {
	display: block;
	width: 100%;
	height: 3px;
	background-color: transparent;
	transition: background-color 0.2s ease;
}

/* ── DESKTOP PANELS ──────────────────────────────────────── */

.rmm__panel {
	position: fixed;
	left: 0;
	right: 0;
	top: var(--rmm-panel-top, 0px);
	z-index: 9991;
	background-color: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	clip-path: inset(0 -50px -50px -50px);
	display: none;
	flex-direction: column;
	justify-content: flex-start;
	height: auto;
	max-height: 80vh;
	overflow-y: auto;
	scrollbar-gutter: stable;
	border-top: 1px solid #777473;
}

.rmm__panel-inner {
	width: 100%;
	position: relative;
	max-width: 1440px;
	margin: 0 auto;
	padding: 40px 40px 32px;
}

.rmm__panel-close {
	position: absolute;
	top: 33px;
	right: 45px;
	z-index: 1;
	background: none;
	border: none;
	cursor: pointer;
	color: inherit;
	padding: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.3s;
}

.rmm__panel-close:hover {
	opacity: 0.7;
}

.rmm__panel-close-svg {
	width: 24px;
	height: 24px;
	display: block;
}

.rmm__panel-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4px;
	overflow: visible !important;
	height: auto !important;
}

.rmm__panel-item {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit;
	padding: 12px 16px;
	border-radius: 4px;
	transition: opacity 0.2s ease;
}

.rmm__panel-item:hover {
	opacity: 0.7;
}

.rmm__panel-item-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
}

.rmm__panel-item-icon .rmm__item-svg,
.rmm__panel-item-icon .rmm__item-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.rmm__panel-item-label {
	line-height: 1.3;
}

/* ── BODY SCROLL LOCK ────────────────────────────────────── */

body.rmm-lock {
	overflow: hidden;
}

/* ── MOBILE NAV ──────────────────────────────────────────── */

.rmm__mobile-nav {
	display: none;
	align-items: center;
}

.rmm__hamburger {
	background: none;
	border: none;
	cursor: pointer;
	color: inherit;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
}

.rmm__hamburger span {
	position: absolute;
	left: 0;
	right: 0;
	margin: auto;
	width: 24px;
	height: 2px;
	background-color: #3e3a39;
	display: block;
	transition:
		transform 0.3s ease,
		opacity 0.3s ease,
		background-color 0.3s ease;
}

.rmm__hamburger span:nth-child(1) {
	top: 12px;
}
.rmm__hamburger span:nth-child(2) {
	top: 19px;
}
.rmm__hamburger span:nth-child(3) {
	top: 26px;
}

/* Animate to X when open */
.rinnai-mega-menu.is-mobile-open .rmm__hamburger span {
	background-color: #cf000e;
}

.rinnai-mega-menu.is-mobile-open .rmm__hamburger span:nth-child(1) {
	transform: translateY(7px) rotate(-45deg);
}

.rinnai-mega-menu.is-mobile-open .rmm__hamburger span:nth-child(2) {
	opacity: 0;
}

.rinnai-mega-menu.is-mobile-open .rmm__hamburger span:nth-child(3) {
	transform: translateY(-7px) rotate(45deg);
}

/* ── MOBILE PANEL ────────────────────────────────────────── */

.rmm__mobile-panel {
	position: fixed;
	left: 0;
	right: 0;
	top: var(--rmm-panel-top, 0px);
	z-index: 9995;
	background-color: #fff;
	display: none;
	height: 0;
	overflow: hidden;
}

.rmm__mobile-panel-inner {
	display: flex;
	flex-direction: column;
	padding: 30px 20px 48px;
}

/* ── ACCORDION ───────────────────────────────────────────── */

.rmm__accordion {
	flex: 1;
	margin-bottom: 30px;
}

.rmm__accordion-header {
	display: flex;
	align-items: center;
	padding: 5px 0;
	cursor: pointer;
	user-select: none;
	min-height: 48px;
}

.rmm__accordion-rule {
	display: block;
	flex-shrink: 0;
	width: 8px;
	height: 100%;
	min-height: 38px;
	background-color: #cf000e; /* fallback; overridden by control */
}

.rmm__accordion-title {
	flex: 1;
	font-weight: 500;
	color: #3e3a39;
	padding-left: 16px; /* fallback; overridden by control */
}

/* CSS plus/minus toggle icon — matches original */
.rmm__accordion-plus {
	position: relative;
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	margin-left: auto;
	padding-left: 0;
}

.rmm__accordion-plus::before,
.rmm__accordion-plus::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 14px;
	height: 2px;
	margin: auto;
	background-color: #777473;
	transition: transform 0.3s ease;
}

.rmm__accordion-plus::after {
	transform: rotate(90deg); /* vertical bar — makes the + */
}

.rmm__accordion-body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
	padding-left: calc(var(--rmm-rule-width, 8px) + var(--rmm-rule-spacing, 16px));
}

.rmm__accordion-item.is-open .rmm__accordion-body {
	max-height: 2000px;
}

.rmm__accordion-item.is-open .rmm__accordion-plus::after {
	transform: rotate(0deg);
}

.rmm__accordion-child {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 0 10px 20px;
	text-decoration: none;
	color: #3e3a39;
	transition: opacity 0.2s ease;
}

.rmm__accordion-child:hover {
	opacity: 0.7;
}

.rmm__accordion-child-chevron {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.rmm__accordion-child-chevron-svg {
	width: 10px;
	height: 10px;
	display: block;
	overflow: visible;
}

/* ── MOBILE ACCORDION IMAGE GRID ─────────────────────────── */

.rmm__accordion-image-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
	margin-top: 12px;
}

.rmm__accordion-child--image {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: #3e3a39;
	transition: color 0.2s ease;
}

.rmm__accordion-child--image:hover {
	color: #e2001a;
}

.rmm__accordion-image-wrap {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 1px solid #e5e5e5;
	margin-bottom: 8px;
	background-color: #f5f5f5;
}

.rmm__accordion-image-wrap .rmm__accordion-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rmm__accordion-image-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	line-height: 1.3;
}

/* ── MOBILE CTAs ─────────────────────────────────────────── */

.rmm__mobile-ctas {
	display: flex;
	flex-direction: row;
	gap: 1px;
	padding-top: 30px;
}

.rmm__mobile-cta {
	width: 100%;
	text-align: center;
	display: block;
	padding: 10px 15px;
	text-decoration: none !important;
	color: #fff !important;
	background-color: #777473;
	font-weight: 500 !important;
	transition: background-color 0.2s ease;
}

.rmm__mobile-cta:hover {
	background-color: #3e3a39;
}

/* ── RESPONSIVE BREAKPOINTS ──────────────────────────────── */

/* Desktop: hide mobile elements */
@media (min-width: 1245px) {
	.rmm__mobile-nav {
		display: none;
	}

	.rmm__mobile-panel {
		display: none;
	}
}

/* Tablet + Mobile: hide desktop elements */
@media (max-width: 1244px) {
	.rmm__desktop-nav {
		display: none;
	}

	/* Desktop panels suppressed — JS never fires them on mobile, but belt-and-braces */
	.rmm__panel {
		display: none !important;
	}

	.rmm__overlay {
		display: none;
	}

	.rmm__mobile-nav {
		display: flex;
	}

	.rmm__mobile-panel {
		display: block;
	}
}

/* ============================================================
   REGION PANEL (inside mega-menu widget)
   Globe button + mobile slide panel — mobile/tablet only
   ============================================================ */

/* ── REGION BUTTON ───────────────────────────────────────── */

.rmm__region-btn {
	background: none;
	border: none;
	cursor: pointer;
	color: #3e3a39;
	padding: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
	line-height: 1;
	position: relative;
}

.rmm__region-btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Globe ↔ X icon swap */
.rmm__region-globe-icon {
	display: flex;
	align-items: center;
	transition: opacity 0.2s ease;
}

.rinnai-mega-menu.is-region-open .rmm__region-globe-icon {
	opacity: 0;
}

.rmm__region-close-icon {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.rinnai-mega-menu.is-region-open .rmm__region-close-icon {
	opacity: 1;
}

.rmm__region-globe-svg,
.rmm__region-close-svg {
	width: 24px;
	height: 24px;
	display: block;
	flex-shrink: 0;
	pointer-events: none;
}

/* ── REGION MOBILE PANEL ─────────────────────────────────── */

.rmm__region-mobile-panel {
	position: fixed;
	left: 0;
	right: 0;
	top: var(--rmm-panel-top, 0px);
	z-index: 9995;
	background-color: #fff;
	display: none;
	height: 0;
	overflow: hidden;
}

.rmm__region-panel-inner {
	padding: 24px 20px 48px;
	display: flex;
	flex-direction: column;
}

/* ── REGION SECTION HEADER ───────────────────────────────── */

.rmm__region-section-header {
	display: flex;
	align-items: center;
	margin-bottom: 12px;
}

.rmm__region-section-rule {
	display: block;
	flex-shrink: 0;
	width: 4px;
	height: 32px;
	background-color: #e2001a;
}

.rmm__region-section-title {
	font-weight: 600;
	color: #3e3a39;
	padding-left: 12px;
	line-height: 1.3;
}

/* ── REGION GLOBAL LINK ──────────────────────────────────── */

.rmm__region-global-link {
	margin-bottom: 10px;
	padding-left: 14px;
}

/* ── REGION ACCORDION ────────────────────────────────────── */

.rmm__region-accordion {
	margin-top: 8px;
}

.rmm__region-accordion-header {
	display: flex;
	align-items: center;
	padding: 5px 0;
	cursor: default;
	min-height: 44px;
}

.rmm__region-group-rule {
	display: block;
	flex-shrink: 0;
	width: 4px;
	height: 24px;
	background-color: #777473;
}

.rmm__region-group-name {
	font-size: 14px;
	font-weight: 500;
	color: #3e3a39;
	padding-left: 10px;
	flex: 1;
	line-height: 1.3;
}

/* Plus icon hidden — groups are always expanded, no toggle needed */
.rmm__region-accordion-plus {
	display: none;
}

/* Always show all group bodies */
.rmm__region-accordion-body {
	max-height: none;
	overflow: visible;
	padding-left: 14px;
}

/* ── REGION LINKS ────────────────────────────────────────── */

.rmm__region-link-list {
	list-style: none;
	margin: 0;
	padding: 0;
	padding-left: 14px;
}

.rmm__region-link-list li {
	padding: 0;
	margin: 0;
}

.rmm__region-link {
	display: inline-flex;
	align-items: flex-start;
	text-decoration: none;
	color: #1a1a1a;
	line-height: 1.2;
	transition: color 0.2s ease;
	padding: 5px 0;
	width: 100%;
}

.rmm__region-link:hover {
	text-decoration: none;
	color: #e2001a;
}

.rmm__region-link-chevron {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	margin-right: 6px;
	padding-top: 0.4em;
}

.rmm__region-link-chevron-svg {
	width: 10px;
	height: 10px;
	display: block;
	overflow: visible;
}

.rmm__region-link-content {
	display: block;
	min-width: 0;
}

.rmm__region-link-text {
	white-space: normal;
	word-break: break-word;
}

.rmm__region-link-ext {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	flex-shrink: 0;
	margin-left: 5px;
	position: relative;
	top: -1px;
}

.rmm__region-link-ext-svg {
	width: 12px;
	height: auto;
	display: block;
	overflow: visible;
}

/* ── REGION: HIDE ON DESKTOP ─────────────────────────────── */

@media (min-width: 1245px) {
	.rmm__region-btn {
		display: none;
	}

	.rmm__region-mobile-panel {
		display: none !important;
	}
}

@media (max-width: 1244px) {
	.rmm__region-mobile-panel {
		display: block;
	}
}

/* ============================================================
   SEARCH
   ============================================================ */

/* ── SEARCH BUTTON ───────────────────────────────────────── */

.rmm__search-btn {
	background: none;
	border: none;
	cursor: pointer;
	color: #3e3a39;
	padding: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
	flex-shrink: 0;
}

.rmm__search-btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.rmm__search-icon-svg,
.rmm__search-icon img {
	width: 20px;
	height: 20px;
	display: block;
	flex-shrink: 0;
	pointer-events: none;
}

/* ── DESKTOP SEARCH PANEL ────────────────────────────────── */

.rmm__search-panel {
	position: fixed;
	left: 0;
	right: 0;
	top: var(--rmm-panel-top, 0px);
	z-index: 9991;
	background-color: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	display: none;
	height: 0;
	overflow: hidden;
	border-top: 1px solid #777473;
}

.rmm__search-panel-inner {
	position: relative;
	max-width: 1440px;
	margin: 0 auto;
	padding: 72px 80px 48px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rmm__search-template {
	width: 100%;
}

.rmm__search-form {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 700px;
	border: 1px solid #777473;
}

.rmm__search-input {
	flex: 1;
	border: none;
	background: transparent;
	padding: 10px 12px;
	font-size: 16px;
	font-family: inherit;
	color: #3e3a39;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
}

.rmm__search-input::placeholder {
	color: #aaa;
}

/* Remove browser default clear button on search inputs */
.rmm__search-input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.rmm__search-submit {
	background: none;
	border: none;
	cursor: pointer;
	color: inherit;
	padding: 8px;
	display: flex;
	align-items: center;
	flex-shrink: 0;
	transition: color 0.2s ease;
}

.rmm__search-submit:hover {
	color: #e2001a;
}

.rmm__search-panel-close {
	position: absolute;
	top: 33px;
	right: 45px;
	background: none;
	border: none;
	cursor: pointer;
	color: inherit;
	padding: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.3s;
}

.rmm__search-panel-close:hover {
	opacity: 0.7;
}

/* ── MOBILE SEARCH PANEL ─────────────────────────────────── */

.rmm__search-mobile-panel {
	position: fixed;
	left: 0;
	right: 0;
	top: var(--rmm-panel-top, 0px);
	z-index: 9995;
	background-color: #fff;
	display: none;
	height: 0;
	overflow: hidden;
}

.rmm__search-mobile-panel-inner {
	padding: 20px 20px 48px;
	display: flex;
	flex-direction: column;
}

.rmm__search-mobile-panel-inner .rmm__search-panel-close {
	position: static;
	align-self: flex-end;
	margin-top: 30px;
	width: 40px;
	height: 40px;
}

.rmm__search-mobile-panel-inner .rmm__search-panel-close .rmm__close-x-icon {
	width: 24px;
	height: 24px;
}

.rmm__search-mobile-panel-inner .rmm__search-panel-close .rmm__close-x-icon::before,
.rmm__search-mobile-panel-inner .rmm__search-panel-close .rmm__close-x-icon::after {
	width: 24px;
	left: 0;
}

.rmm__search-mobile-panel-inner .rmm__search-form {
	max-width: none;
}

/* ── SEARCH: RESPONSIVE ──────────────────────────────────── */

/* ── BOTTOM CLOSE BUTTON ─────────────────────────────────── */

.rmm__panel-close-bottom {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-top: 30px;
	margin-left: calc(100% - 40px);
	background: none;
	border: none;
	cursor: pointer;
	color: inherit;
	padding: 0;
	transition: opacity 0.3s;
	flex-shrink: 0;
}

.rmm__panel-close-bottom:hover {
	opacity: 0.7;
}

.rmm__panel-close-bottom .rmm__panel-close-svg {
	width: 24px;
	height: 24px;
}

/* CSS-drawn X icon (::before = \, ::after = /) */
.rmm__close-x-icon {
	display: block;
	position: relative;
	width: 24px;
	height: 24px;
}

.rmm__close-x-icon::before,
.rmm__close-x-icon::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: -2px;
	width: 24px;
	height: 2px;
	margin: auto;
	background-color: currentColor;
}

.rmm__close-x-icon::before {
	transform: rotate(45deg);
}

.rmm__close-x-icon::after {
	transform: rotate(-45deg);
}

/* ── SEARCH BUTTON: MOBILE X TOGGLE ─────────────────────── */

.rmm__search-close-icon {
	display: none;
	position: relative;
	width: 24px;
	height: 24px;
}

.rmm__search-close-icon::before,
.rmm__search-close-icon::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: -2px;
	width: 24px;
	height: 2px;
	margin: auto;
	background-color: currentColor;
}

.rmm__search-close-icon::before {
	transform: rotate(45deg);
}

.rmm__search-close-icon::after {
	transform: rotate(-45deg);
}

/* ── REGION PANEL CLOSE (inside mega-menu) ───────────────── */

.rgr-in-rmm__panel-close-bottom {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-top: 30px;
	margin-left: calc(100% - 40px);
	background: none;
	border: none;
	cursor: pointer;
	color: inherit;
	padding: 0;
	transition: opacity 0.3s;
	flex-shrink: 0;
}

.rgr-in-rmm__panel-close-bottom:hover {
	opacity: 0.7;
}

/* ── SEARCH: RESPONSIVE ──────────────────────────────────── */

@media (min-width: 1245px) {
	.rmm__search-btn {
		color: #e2001a;
	}

	.rmm__search-mobile-panel {
		display: none !important;
	}
}

@media (max-width: 1244px) {
	.rmm__search-panel {
		display: none !important;
	}

	.rmm__search-mobile-panel {
		display: block;
	}

	.is-search-open .rmm__search-icon {
		display: none;
	}

	.is-search-open .rmm__search-close-icon {
		display: block;
	}
}

@media (max-width: 500px) {
	.rmm__mobile-ctas {
		flex-direction: column;
		gap: 16px;
	}

	.rmm__accordion-rule {
		width: 4px;
	}
}
