.rp-mobile-country-switcher {
	display: none;
}

@media (max-width: 850px) {
	body.rp-homepage.rp-us-market header.site-header,
	body.rp-homepage.rp-country-page header.site-header {
		position: relative;
		inset: auto;
		top: auto;
		z-index: 120;
		display: grid;
		grid-template-columns: minmax(0, 1fr) 46px 46px 46px;
		align-items: center;
		justify-content: initial;
		gap: clamp(5px, 1.5vw, 10px);
		width: 100%;
		min-height: 64px;
		margin: 0;
		padding: 8px clamp(12px, 4vw, 20px);
		box-sizing: border-box;
		border: 0;
		border-bottom: 1px solid #d5e1eb;
		background: rgb(248 252 255 / 97%);
		color: #17385e;
		box-shadow: 0 4px 14px rgb(23 56 94 / 7%);
		-webkit-backdrop-filter: blur(12px);
		backdrop-filter: blur(12px);
	}

	/* Clear legacy Admin Bar relative offset while retaining normal document flow. */
	body.admin-bar.rp-homepage.rp-us-market header.site-header {
		top: auto;
	}

	html {
		scroll-padding-top: 0;
	}

	body.rp-homepage.rp-us-market #main > section[id],
	body.rp-homepage.rp-us-market #us-market-ribbon {
		scroll-margin-top: 0;
	}

	body.rp-homepage.rp-us-market header.site-header.is-scrolled,
	body.rp-homepage.rp-country-page header.site-header.is-scrolled {
		border-bottom-color: #d5e1eb;
		background: rgb(248 252 255 / 97%);
		box-shadow: 0 4px 14px rgb(23 56 94 / 7%);
	}

	body.rp-homepage.rp-us-market header.site-header > .brand,
	body.rp-homepage.rp-country-page header.site-header > .brand {
		grid-column: 1;
		min-width: 0;
		max-width: 100%;
		margin: 0;
		gap: 4px;
	}

	body.rp-homepage.rp-us-market .brand__complete-logo,
	body.rp-homepage.rp-country-page .brand__complete-logo {
		display: block;
		width: 100%;
		max-width: clamp(108px, 34vw, 148px);
		height: auto;
		object-fit: contain;
	}

	body.rp-homepage.rp-country-page header.site-header .brand__logo {
		width: 36px;
		height: 36px;
		flex-basis: 36px;
	}

	body.rp-homepage.rp-country-page header.site-header .brand__wordmark {
		font-size: 10px;
		letter-spacing: .08em;
	}

	.rp-mobile-country-switcher {
		display: block;
		position: static;
		grid-column: 2;
		width: 46px;
		height: 46px;
		z-index: 122;
	}

	.rp-mobile-country-switcher > summary {
		width: 46px;
		height: 46px;
		padding: 0;
		box-sizing: border-box;
		border: 1px solid #c5d6e4;
		border-radius: 12px;
		background: #ffffff;
		color: #17385e;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 2px;
		list-style: none;
		cursor: pointer;
		touch-action: manipulation;
	}

	.rp-mobile-country-switcher > summary::-webkit-details-marker {
		display: none;
	}

	.rp-mobile-country-switcher > summary::marker {
		content: "";
	}

	.rp-mobile-country-switcher > summary:focus-visible {
		outline: 3px solid #1769a6;
		outline-offset: 3px;
	}

	.rp-mobile-country-switcher__trigger svg {
		width: 20px;
		height: 20px;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.6;
		stroke-linecap: round;
		stroke-linejoin: round;
	}

	.rp-mobile-country-switcher__code {
		font-size: 10px;
		font-weight: 800;
		line-height: 1;
	}

	.rp-mobile-country-switcher__menu {
		position: absolute;
		top: calc(100% + 8px);
		right: clamp(12px, 5vw, 20px);
		width: min(300px, calc(100vw - 24px));
		max-height: min(60vh, 420px);
		padding: 10px;
		box-sizing: border-box;
		overflow: auto;
		overscroll-behavior: contain;
		border: 1px solid #d5e1eb;
		border-radius: 12px;
		background: #f8fcff;
		box-shadow: 0 12px 28px rgb(23 56 94 / 18%);
		color: #17385e;
		z-index: 130;
	}

	.rp-mobile-country-switcher__heading {
		margin: 2px 8px 8px;
		color: #405a76;
		font-size: 12px;
		font-weight: 700;
	}

	.rp-mobile-country-switcher__menu ul {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.rp-mobile-country-switcher__menu li + li {
		margin-top: 4px;
	}

	.rp-mobile-country-switcher__option {
		min-height: 44px;
		padding: 8px;
		box-sizing: border-box;
		display: grid;
		grid-template-columns: 34px minmax(0, 1fr) auto;
		align-items: center;
		gap: 8px;
		border: 1px solid transparent;
		border-radius: 8px;
		color: #17385e;
		font-size: 13px;
		text-decoration: none;
	}

	a.rp-mobile-country-switcher__option:hover,
	.rp-mobile-country-switcher__option.is-current {
		border-color: #ccdde9;
		background: #eaf2f8;
	}

	.rp-mobile-country-switcher__option:focus-visible {
		outline: 3px solid #1769a6;
		outline-offset: 1px;
	}

	.rp-mobile-country-switcher__option-code {
		font-size: 11px;
		font-weight: 800;
		letter-spacing: .04em;
	}

	.rp-mobile-country-switcher__option small {
		color: #53677d;
		font-size: 10px;
		white-space: nowrap;
	}

	body.rp-homepage.rp-us-market header.site-header .wotoboom-contact,
	body.rp-homepage.rp-country-page header.site-header .wotoboom-contact {
		grid-column: 3;
		grid-row: 1;
		align-self: center;
		margin: 0;
	}

	body.rp-homepage.rp-us-market header.site-header > .menu-toggle,
	body.rp-homepage.rp-country-page header.site-header > .menu-toggle {
		grid-column: 4;
		grid-row: 1;
		width: 46px;
		height: 46px;
		min-height: 46px;
		padding: 0;
		box-sizing: border-box;
		border: 1px solid #c5d6e4;
		border-radius: 12px;
		background: #ffffffd9;
		color: #17385e;
		display: grid;
		place-items: center;
	}

	body.rp-homepage.rp-us-market header.site-header > .menu-toggle .menu-toggle__icon,
	body.rp-homepage.rp-country-page header.site-header > .menu-toggle .menu-toggle__icon,
	body.rp-homepage.rp-us-market header.site-header > .menu-toggle .menu-toggle__icon::before,
	body.rp-homepage.rp-country-page header.site-header > .menu-toggle .menu-toggle__icon::before,
	body.rp-homepage.rp-us-market header.site-header > .menu-toggle .menu-toggle__icon::after,
	body.rp-homepage.rp-country-page header.site-header > .menu-toggle .menu-toggle__icon::after {
		background: #17385e;
	}

	body.rp-country-page main [id] {
		scroll-margin-top: 0;
	}

	body.rp-country-page:has(.wotoboom-contact__trigger[aria-expanded="true"]) .rp-country-hero .hero__content {
		padding-top: calc(190px + env(safe-area-inset-top, 0px));
	}

	body.rp-homepage .primary-nav .market-select-label {
		display: none;
	}
}
