/* R360 Promo Banner. Design values come from --r360pb-* variables set inline on #r360pb; fallbacks are the factory defaults. */

#r360pb,
#r360pb * {
	box-sizing: border-box;
}

#r360pb {
	position: relative;
	z-index: var(--r360pb-z, 9999);
	display: flex;
	align-items: center;
	min-height: var(--r360pb-min-h, 96px);
	padding: var(--r360pb-pad-y, 12px) 86px;
	background: var(--r360pb-bg, #f7f3ec);
	border-top: var(--r360pb-border-top-width, 4px) solid var(--r360pb-border-top-color, #d8b47a);
	border-bottom: var(--r360pb-border-bottom-width, 0) solid var(--r360pb-border-bottom-color, #d8b47a);
	box-shadow: var(--r360pb-shadow, 0 2px 14px rgba(0, 0, 0, .18));
	line-height: 1.3;
	text-align: left;
}

#r360pb.r360pb--sticky {
	position: sticky;
	top: var(--r360pb-adminbar, 0px);
}

/* The WP admin bar is fixed above 600px wide (32px, 46px at 782px and below). */
body.admin-bar {
	--r360pb-adminbar: 32px;
}

@media (max-width: 782px) {
	body.admin-bar {
		--r360pb-adminbar: 46px;
	}
}

@media (max-width: 600px) {
	body.admin-bar {
		--r360pb-adminbar: 0px;
	}
}

/* Dismissed, or outside the schedule: set by the <head> script before paint. */
html.r360pb-hidden {
	--r360pb-height: 0px !important;
}

.r360pb-hidden #r360pb {
	display: none !important;
}

#r360pb.r360pb--closing {
	height: 0 !important;
	min-height: 0;
	padding-top: 0;
	padding-bottom: 0;
	border-width: 0;
	opacity: 0;
	overflow: hidden;
	transition: height .3s ease, padding .3s ease, border-width .3s ease, opacity .2s ease;
}

@media (min-width: 1025px) {
	#r360pb.r360pb--hide-desktop {
		display: none;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	#r360pb.r360pb--hide-tablet {
		display: none;
	}
}

@media (max-width: 767px) {
	#r360pb.r360pb--hide-mobile {
		display: none;
	}
}

/* Screen-reader-only text (real page text, so GTranslate translates it) */
#r360pb .r360pb__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

#r360pb p {
	margin: 0;
	padding: 0;
}

.r360pb__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--r360pb-gap, 36px);
	width: 100%;
	max-width: var(--r360pb-max-w, none);
	margin: 0 auto;
}

/* Badge */
.r360pb__badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: none;
	padding: 10px 22px;
	background: var(--r360pb-badge-bg, #013a42);
	font-family: var(--r360pb-font-heading, "Montserrat", sans-serif);
	font-weight: 600;
	text-transform: uppercase;
	text-align: center;
}

.r360pb__badge-eyebrow {
	font-size: 10px;
	line-height: 1.25;
	letter-spacing: .3em;
	color: var(--r360pb-eyebrow-color, #d8b47a);
}

.r360pb__badge-main {
	font-size: var(--r360pb-badge-size, 22px);
	line-height: 1.15;
	letter-spacing: .08em;
	color: var(--r360pb-badge-color, #fff);
}

/* Copy */
.r360pb__copy {
	min-width: 0;
	text-align: var(--r360pb-text-align, left);
}

#r360pb .r360pb__headline {
	font-family: var(--r360pb-font-heading, "Montserrat", sans-serif);
	font-size: var(--r360pb-headline-size, 18px);
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--r360pb-headline-color, #013a42);
}

#r360pb .r360pb__lead {
	font-weight: 600;
	color: var(--r360pb-lead-color, #013a42);
}

.r360pb__rule {
	display: block;
	width: 46px;
	height: 1px;
	margin: 8px 0 6px;
	background: var(--r360pb-rule-color, #d8b47a);
}

#r360pb.r360pb--text-center .r360pb__copy {
	text-align: center;
}

.r360pb--text-center .r360pb__rule {
	margin-left: auto;
	margin-right: auto;
}

#r360pb .r360pb__fine {
	font-family: var(--r360pb-font-body, "Open Sans", sans-serif);
	font-size: var(--r360pb-fine-size, 13px);
	font-style: italic;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: .02em;
	color: var(--r360pb-fine-color, #5d6f73);
}

#r360pb .r360pb__fine a {
	color: var(--r360pb-fine-link, #013a42);
	text-decoration: underline;
}

/* Button */
#r360pb .r360pb__btn {
	display: inline-block;
	flex: none;
	padding: 12px 26px;
	border: 1px solid var(--r360pb-btn-border, #013a42);
	border-radius: 0;
	background: var(--r360pb-btn-bg, transparent);
	color: var(--r360pb-btn-text, #013a42);
	font-family: var(--r360pb-font-heading, "Montserrat", sans-serif);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: .2em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s, color .2s, border-color .2s;
}

#r360pb .r360pb__btn:hover,
#r360pb .r360pb__btn:focus-visible {
	border-color: var(--r360pb-btn-hover-border, #013a42);
	background: var(--r360pb-btn-hover-bg, #013a42);
	color: var(--r360pb-btn-hover-text, #fff);
}

/* Close */
#r360pb .r360pb__close {
	position: absolute;
	top: 50%;
	right: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: -17px 0 0;
	padding: 0;
	border: 1px solid var(--r360pb-close-border, rgba(1, 58, 66, .3));
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: var(--r360pb-close-icon, #013a42);
	cursor: pointer;
	transition: border-color .2s;
}

#r360pb .r360pb__close:hover {
	border-color: var(--r360pb-close-hover, #013a42);
}

.r360pb__close svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
}

#r360pb .r360pb__btn:focus-visible,
#r360pb .r360pb__close:focus-visible {
	outline: 2px solid var(--r360pb-focus, #013a42);
	outline-offset: 2px;
}

/* Layout presets, order, alignment */
.r360pb--layout-compact .r360pb__badge {
	flex-direction: row;
	align-items: baseline;
	gap: .5em;
	padding: 8px 18px;
}

.r360pb--order-badge-right .r360pb__badge {
	order: 3;
}

.r360pb--order-button-left .r360pb__btn {
	order: -2;
}

.r360pb--order-button-left .r360pb__badge {
	order: -1;
}

.r360pb--align-left .r360pb__inner {
	justify-content: flex-start;
	margin-left: 0;
}

/* Families left to the theme ("inherit" can't travel in a custom property) */
#r360pb.r360pb--inherit-heading .r360pb__badge,
#r360pb.r360pb--inherit-heading .r360pb__headline,
#r360pb.r360pb--inherit-heading .r360pb__btn,
#r360pb.r360pb--inherit-body .r360pb__fine {
	font-family: inherit;
}

.r360pb--align-space-between .r360pb__inner {
	justify-content: space-between;
}

/* Entrance animation (transform/opacity only: no layout shift) */
.r360pb--anim-slide {
	animation: r360pb-slide .45s ease-out backwards;
}

.r360pb--anim-fade {
	animation: r360pb-fade .45s ease-out backwards;
}

@keyframes r360pb-slide {
	from {
		transform: translateY(-100%);
	}
}

@keyframes r360pb-fade {
	from {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	#r360pb,
	#r360pb.r360pb--closing {
		animation: none;
		transition: none;
	}
}

/* Tablet: 1024px and below (min height, padding and gap settings are desktop-only) */
@media (max-width: 1024px) {
	#r360pb {
		--r360pb-headline-size: 13px;
		--r360pb-badge-size: 16px;
		--r360pb-fine-size: 12px;
		min-height: 0;
		padding: 10px 60px 10px 20px;
	}

	#r360pb .r360pb__inner {
		gap: 18px;
	}

	#r360pb .r360pb__badge {
		padding: 8px 14px;
	}

	.r360pb__badge-eyebrow {
		font-size: 9px;
	}

	#r360pb .r360pb__headline {
		letter-spacing: .1em;
	}

	.r360pb__rule {
		margin: 6px 0 4px;
	}

	#r360pb .r360pb__btn {
		padding: 10px 16px;
		font-size: 11px;
		letter-spacing: .16em;
	}

	#r360pb .r360pb__close {
		right: 14px;
	}
}

/* Mobile: 767px and below. Row 1: badge pill + button; row 2: the text.
   Element order is fixed here so the layout stays predictable. */
@media (max-width: 767px) {
	#r360pb {
		--r360pb-headline-size: 12px;
		--r360pb-badge-size: 13px;
		--r360pb-fine-size: 10.5px;
		padding: 10px 48px 10px 14px;
	}

	#r360pb .r360pb__inner {
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 8px 12px;
	}

	#r360pb .r360pb__inner > * {
		order: 0;
	}

	#r360pb .r360pb__badge ~ .r360pb__copy {
		order: 3;
	}

	#r360pb .r360pb__copy {
		flex-basis: 100%;
	}

	#r360pb .r360pb__badge {
		flex-direction: row;
		align-items: baseline;
		gap: .45em;
		padding: 5px 10px;
	}

	.r360pb__badge-eyebrow {
		letter-spacing: .2em;
	}

	#r360pb .r360pb__headline {
		letter-spacing: .06em;
	}

	.r360pb__rule {
		display: none;
	}

	#r360pb .r360pb__btn {
		padding: 7px 12px;
		font-size: 10px;
		letter-spacing: .14em;
	}

	#r360pb .r360pb__badge ~ .r360pb__btn {
		margin-left: auto;
	}

	#r360pb .r360pb__close {
		top: 9px;
		right: 10px;
		width: 28px;
		height: 28px;
		margin: 0;
	}

	.r360pb__close svg {
		width: 11px;
		height: 11px;
	}
}

/* Mobile options */
@media (max-width: 767px) {
	#r360pb.r360pb--m-hide-fine .r360pb__fine,
	#r360pb.r360pb--m-hide-fine .r360pb__rule,
	#r360pb.r360pb--m-hide-badge .r360pb__badge,
	#r360pb.r360pb--m-hide-btn .r360pb__btn {
		display: none;
	}

	/* Whole banner clickable: the button's ::after covers the banner. With the
	   button hidden it stays in the DOM at zero size, so it is still a real,
	   focusable link for keyboard and screen reader users. */
	#r360pb.r360pb--m-click .r360pb__btn::after {
		content: "";
		position: absolute;
		inset: 0;
	}

	#r360pb.r360pb--m-click.r360pb--m-hide-btn .r360pb__btn {
		display: block;
		width: 0;
		height: 0;
		padding: 0;
		border: 0;
		overflow: hidden;
		font-size: 0;
	}

	#r360pb.r360pb--m-click .r360pb__btn:focus-visible {
		outline: none;
	}

	#r360pb.r360pb--m-click .r360pb__btn:focus-visible::after {
		outline: 2px solid var(--r360pb-focus, #013a42);
		outline-offset: -4px;
	}

	#r360pb.r360pb--m-click .r360pb__close,
	#r360pb.r360pb--m-click .r360pb__fine a {
		position: relative;
		z-index: 1;
	}

	#r360pb.r360pb--m-click .r360pb__close {
		position: absolute;
	}
}
