/* Role-Based Portal — frontend styles */

.rbp-wrap {
	--rbp-header: #0b3d91;
	--rbp-primary: #0b3d91;
	--rbp-primary-dark: #082a66;
	--rbp-text: #1f2937;
	--rbp-muted: #6b7280;
	--rbp-border: #e5e7eb;
	--rbp-bg-card: #ffffff;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px clamp(16px, 4vw, 32px) 60px;
	color: var(--rbp-text);
	box-sizing: border-box;
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}

.rbp-wrap *:not(.dashicons) {
	box-sizing: border-box;
	font-family: inherit !important;
}

/* ---------- Login card ---------- */

.rbp-login-card {
	width: 100%;
	max-width: 400px;
	margin: clamp(-26px, calc(8vh - 50px), 10px) auto 0;
	background: var(--rbp-bg-card);
	border: 1px solid var(--rbp-border);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.rbp-register-card {
	max-width: 500px;
}

.rbp-login-header {
	background: var(--rbp-header);
	padding: clamp(24px, 5vw, 34px) 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rbp-login-logo-img {
	display: block;
	max-width: 65%;
	background: #fff;
	border-radius: 50%;
	padding: 10px 22px;
}

.rbp-login-logo-text {
	background: #fff;
	color: var(--rbp-header);
	font-weight: 800;
	font-size: 18px;
	letter-spacing: 0.02em;
	padding: 14px 28px;
	border-radius: 999px;
	text-align: center;
}

.rbp-login-body {
	padding: clamp(18px, 4vw, 24px) clamp(18px, 5vw, 28px) 28px;
}

.rbp-login-title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	color: var(--rbp-text);
}

.rbp-login-intro {
	margin: 0 0 20px;
	font-size: 13px;
	color: var(--rbp-muted);
	line-height: 1.5;
}

.rbp-login-intro a {
	color: var(--rbp-text);
	text-decoration: underline;
}

.rbp-login-error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 13px;
	margin-bottom: 16px;
}

.rbp-field {
	margin: 0 0 16px;
}

.rbp-field label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 6px;
	color: #374151;
}

.rbp-field input[type="text"],
.rbp-field input[type="email"],
.rbp-field input[type="password"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--rbp-border);
	background: #f9fafb;
	border-radius: 8px;
	font-size: 14px;
	box-sizing: border-box;
}

.rbp-field input:focus {
	outline: none;
	border-color: var(--rbp-primary);
	box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.12);
	background: #fff;
}

.rbp-password-wrap {
	position: relative;
	display: block;
}

.rbp-password-wrap input {
	padding-right: 40px !important;
}

.rbp-toggle-password {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	color: var(--rbp-muted);
	padding: 4px;
	display: flex;
	align-items: center;
}

.rbp-toggle-password:hover {
	color: var(--rbp-text);
}

.rbp-toggle-password .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.rbp-remember {
	margin: 4px 0 20px;
	font-size: 13px;
	color: var(--rbp-text);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}

.rbp-remember a {
	color: var(--rbp-primary);
	text-decoration: none;
}

.rbp-remember label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.rbp-remember input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 0;
}

.rbp-submit {
	margin: 0;
}

.rbp-btn-block {
	width: 100%;
	display: block;
}

.rbp-footer-text {
	text-align: center;
	font-size: 12px;
	color: var(--rbp-muted);
	margin-top: 20px;
}

/* ---------- Dashboard ---------- */

.rbp-dashboard-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 32px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--rbp-border);
}

.rbp-dashboard-title {
	margin: 0 0 4px;
	font-size: 26px;
	font-weight: 700;
}

.rbp-dashboard-sub {
	margin: 0;
	color: var(--rbp-muted);
	font-size: 14px;
	text-transform: capitalize;
}

.rbp-btn {
	display: inline-block;
	background: var(--rbp-primary, #004fa3);
	color: #fff !important;
	padding: 9px 18px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	transition: background 0.15s ease;
}

.rbp-btn:hover {
	background: var(--rbp-primary-dark);
}

.rbp-btn-secondary {
	background: #f3f4f6;
	color: var(--rbp-text) !important;
}

.rbp-btn-secondary:hover {
	background: #e5e7eb;
}

.rbp-tile-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 18px;
}

.rbp-tile {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	background: var(--rbp-bg-card);
	border: 1px solid var(--rbp-border);
	border-radius: 14px;
	padding: 22px 20px;
	text-decoration: none !important;
	color: var(--rbp-text) !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.rbp-tile:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
	border-color: var(--rbp-primary);
}

.rbp-tile-icon.dashicons {
	font-size: 30px;
	width: 30px;
	height: 30px;
	color: var(--rbp-primary);
}

.rbp-tile-title {
	font-size: 16px;
	font-weight: 700;
	overflow-wrap: break-word;
	word-break: break-word;
	min-width: 0;
}

.rbp-tile-desc {
	font-size: 13px;
	color: var(--rbp-muted);
	line-height: 1.4;
}

.rbp-tile-snippet {
	font-size: 13px;
	color: var(--rbp-muted);
	line-height: 1.5;
	margin-top: 4px;
	overflow-wrap: break-word;
	word-break: break-word;
	max-width: 100%;
	min-width: 0;
}

.rbp-tile-snippet mark {
	background: #fef3c7 !important;
	color: #1f2937 !important;
	padding: 0 2px;
	border-radius: 2px;
}

.rbp-empty {
	color: var(--rbp-muted);
	font-style: italic;
}

@media (max-width: 380px) {
	.rbp-login-card {
		border-radius: 12px;
	}
	.rbp-login-body {
		padding: 16px 16px 22px;
	}
}

/* ================= Resource Hub Home Page ================= */

.rbp-home {
	--rbp-header: #0b3d91;
	--rbp-primary: #0b3d91;
	--rbp-text: #1f2937;
	--rbp-muted: #6b7280;
	--rbp-border: #e5e7eb;
	--rbp-bg-card: #ffffff;
	color: var(--rbp-text);
	background: #f3f4f6;
	/* The theme's own wrapper (e.g. #content) has its own top padding
	   (~100px), meant for the theme's own now-hidden header — the
	   negative margin here cancels that out, then padding-top below adds
	   back just enough space to clear our own fixed navbar instead. */
	margin: -100px -32px -20px;
	padding-top: 123px;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}

.rbp-home *:not(.dashicons) {
	font-family: inherit !important;
}

.rbp-home-footer {
	margin-top: auto;
}

.rbp-navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 200;
	background: #fff;
	border-bottom: 1px solid var(--rbp-border);
}

.rbp-navbar-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 59px clamp(16px, 4vw, 32px) 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(12px, 3vw, 20px);
}

.rbp-navbar-logo a {
	display: inline-flex;
	text-decoration: none;
}

.rbp-navbar-logo img {
	max-height: 48px;
	display: block;
}

.rbp-navbar-brand {
	font-weight: 800;
	color: var(--rbp-header);
	font-size: 16px;
}

.rbp-navbar-links {
	display: flex;
	gap: 28px;
	flex: 1;
	justify-content: center;
}

.rbp-navbar-links a {
	color: #374151;
	text-decoration: none;
	font-size: 15px;
}

.rbp-navbar-links a:hover {
	color: var(--rbp-header);
}

.rbp-navbar-user {
	position: relative;
}

.rbp-user-toggle {
	background: none;
	border: none;
	cursor: pointer;
	color: #6b7280;
	padding: 6px;
	display: flex;
}

.rbp-user-toggle .dashicons {
	font-size: 22px;
	width: 22px;
	height: 22px;
}

.rbp-user-menu {
	display: none;
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	background: #fff;
	border: 1px solid var(--rbp-border);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	min-width: 170px;
	padding: 8px;
	z-index: 20;
}

.rbp-user-menu.is-open {
	display: block;
}

.rbp-user-menu-name {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: var(--rbp-muted);
	padding: 6px 10px;
	border-bottom: 1px solid var(--rbp-border);
	margin-bottom: 4px;
}

.rbp-user-menu a {
	display: block;
	padding: 8px 10px;
	border-radius: 6px;
	text-decoration: none;
	color: var(--rbp-text);
	font-size: 14px;
}

.rbp-user-menu a:hover {
	background: #f3f4f6;
}

.rbp-hero {
	background: linear-gradient(135deg, var(--rbp-header), #4d7fc4 55%, var(--rbp-header));
	padding: clamp(40px, 8vw, 70px) clamp(16px, 4vw, 32px) clamp(60px, 10vw, 90px);
	text-align: center;
}

.rbp-hero-title {
	color: #fff !important;
	font-size: clamp(24px, 5vw, 42px);
	font-weight: 800;
	line-height: 1.25;
	margin: 0 auto 16px;
	max-width: 900px;
}

.rbp-hero-subtitle {
	color: rgba(255, 255, 255, 0.9) !important;
	font-size: clamp(14px, 2vw, 17px);
	margin: 0;
}

.rbp-hero-compact .rbp-search-bar {
	margin: 24px auto 0;
}

.rbp-search-bar {
	max-width: 780px;
	width: calc(100% - 32px);
	margin: 36px auto -55px;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
	padding: clamp(12px, 2.5vw, 18px) clamp(14px, 3vw, 20px);
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	outline: 2px solid transparent;
	transition: outline-color 0.1s ease;
}

.rbp-search-bar:focus-within {
	outline-color: var(--rbp-primary);
}

.rbp-search-icon {
	color: var(--rbp-muted);
	flex-shrink: 0;
}

.rbp-search-input {
	flex: 1 1 160px;
	border: none;
	outline: none;
	font-size: 15px;
	background: transparent;
	color: var(--rbp-text);
	min-width: 0;
}

.rbp-search-input::placeholder {
	color: #9ca3af;
}

.rbp-mic-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	background: none;
	border: none;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.rbp-mic-btn:hover {
	background: #f0f2f5;
}

.rbp-mic-btn.is-listening {
	background: #fde8e8;
	animation: rbp-mic-pulse 1.4s ease-in-out infinite;
}

.rbp-mic-btn.is-listening .rbp-mic-icon {
	color: #d13438;
}

@keyframes rbp-mic-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(209, 52, 56, 0.35); }
	50% { box-shadow: 0 0 0 8px rgba(209, 52, 56, 0.12); }
}

.rbp-mic-icon {
	color: var(--rbp-muted);
	flex-shrink: 0;
}

.rbp-search-btn {
	background: var(--rbp-primary);
	color: #fff;
	border: none;
	padding: 12px 26px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	flex-shrink: 0;
}

.rbp-search-btn:hover {
	opacity: 0.92;
}

.rbp-tiles-section {
	/* Always the full available width, up to a maximum. Without "width: 100%" a centred (margin: auto) box inside
	   the page's column layout shrinks to fit its content, so the area got narrower and shifted sideways whenever
	   there were only a few results or tiles. 1264px = the old 1200px content width plus 2 x 32px padding. */
	box-sizing: border-box;
	width: 100%;
	max-width: 1264px;
	margin: 0 auto;
	padding: clamp(70px, 12vw, 95px) clamp(16px, 4vw, 32px) 60px;
}

.rbp-live-search-results {
	box-sizing: border-box;
	width: 100%;
	max-width: 1264px;
	margin: 0 auto;
	padding: clamp(70px, 12vw, 95px) clamp(16px, 4vw, 32px) 60px;
}

.rbp-tiles-section .rbp-tile-grid,
.rbp-live-search-results .rbp-tile-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rbp-tiles-section .rbp-tile,
.rbp-live-search-results .rbp-tile {
	align-items: flex-start;
	gap: 14px;
	padding: 26px 24px;
	border: none;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.rbp-tiles-section .rbp-tile:hover {
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
	transform: translateY(-3px);
	border-color: transparent;
}

.rbp-tile-icon-circle {
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background: var(--rbp-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.rbp-tile-icon-circle .lucide {
	color: #fff;
	width: 20px;
	height: 20px;
	stroke-width: 2;
}

.rbp-home-footer {
	background: linear-gradient(135deg, var(--rbp-header), #4d7fc4 55%, var(--rbp-header));
	padding: 22px clamp(16px, 4vw, 32px);
	text-align: center;
}

.rbp-home-footer p {
	margin: 0;
	color: rgba(255, 255, 255, 0.9) !important;
	font-size: 13px;
}

/* ---- Large tablet / small laptop ---- */
@media (max-width: 1024px) {
	.rbp-tiles-section .rbp-tile-grid,
	.rbp-live-search-results .rbp-tile-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---- Tablet ---- */
@media (max-width: 768px) {
	.rbp-navbar-links {
		gap: 16px;
	}
	.rbp-search-bar {
		margin: 28px auto -60px;
	}
	.rbp-tiles-section {
		padding-top: clamp(80px, 14vw, 100px);
	}
}

/* ---- Phone (portrait & landscape) ---- */
@media (max-width: 600px) {
	.rbp-home {
		margin: -20px -16px;
	}
	.rbp-navbar-inner {
		flex-wrap: wrap;
	}
	.rbp-navbar-links {
		order: 3;
		width: 100%;
		justify-content: flex-start;
		gap: 14px;
		overflow-x: auto;
	}
	.rbp-search-bar {
		border-radius: 16px;
		margin-bottom: -70px;
	}
	.rbp-search-btn {
		width: 100%;
	}
	.rbp-tiles-section .rbp-tile-grid,
	.rbp-live-search-results .rbp-tile-grid {
		grid-template-columns: 1fr;
	}
}

/* ---- Small phone ---- */
@media (max-width: 400px) {
	.rbp-navbar-logo img {
		max-height: 36px;
	}
	.rbp-hero-title {
		line-height: 1.2;
	}
	.rbp-tile-icon-circle {
		width: 38px;
		height: 38px;
	}
}

/* ---- Large desktop: keep the hero/search visually anchored, don't stretch edge-to-edge ---- */
@media (min-width: 1600px) {
	.rbp-navbar-inner,
	.rbp-tiles-section {
		max-width: 1320px;
	}
	.rbp-search-bar {
		max-width: 860px;
	}
}

/* Desktop: center the portal at 3/4 width within its own container.
   Deliberately NOT trying to break out of the theme's wrapper here — that
   depends on theme internals (overflow, positioning context) we can't see
   from CSS/JS alone and was causing inconsistent results. This simple
   version reliably centers within whatever space the theme gives it. */
@media (min-width: 1024px) {
	.rbp-home {
		width: 100vw;
		max-width: 100vw;
		position: relative;
		left: 50%;
		right: 50%;
		margin-left: -50vw;
		margin-right: -50vw;
	}
}

/* Prevent the full-bleed trick above from causing a horizontal scrollbar. */
body {
	overflow-x: hidden;
}

/* ================= Contact Page ================= */

.rbp-hero-compact {
	padding-bottom: clamp(30px, 5vw, 44px);
}

.rbp-hero-compact .rbp-hero-title {
	margin-bottom: 0;
}

.rbp-contact-subheading {
	text-align: center;
	padding: clamp(20px, 4vw, 32px) clamp(16px, 4vw, 32px) 0;
}

.rbp-contact-subheading h2 {
	margin: 0;
	font-size: clamp(20px, 3vw, 26px);
	font-weight: 700;
	color: var(--rbp-text);
}

.rbp-contact-tabs {
	max-width: 1200px;
	margin: clamp(16px, 3vw, 24px) auto 0;
	padding: 0 clamp(16px, 4vw, 32px);
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	border-bottom: 1px solid var(--rbp-border);
}

.rbp-contact-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	padding: 12px 14px;
	font-size: 14px;
	font-weight: 600;
	color: var(--rbp-muted);
	cursor: pointer;
}

.rbp-contact-tab .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.rbp-contact-tab:hover {
	color: var(--rbp-text);
}

.rbp-contact-tab.is-active {
	color: var(--rbp-primary);
	border-bottom-color: var(--rbp-primary);
	background: #eef2fb;
	border-radius: 8px 8px 0 0;
}

.rbp-contact-body {
	/* Always the full available width, up to a maximum. Without "width: 100%" a centred (margin: auto) box inside the
	   page's column layout shrinks to fit its content, so the white card was a different width on every tab depending
	   on what was inside it (a Pardot frame, a Gravity Forms form, a short list of offices). 1264px = the old 1200px
	   content width plus 2 x 32px padding. (The tab bar above keeps shrinking to fit, which is what centres the tabs.) */
	box-sizing: border-box;
	width: 100%;
	max-width: 1264px;
	margin: 0 auto;
	padding: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 32px) 60px;
}

.rbp-contact-success {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #047857;
	padding: 14px 18px;
	border-radius: 10px;
	margin-bottom: 24px;
	font-size: 14px;
	font-weight: 600;
}

.rbp-contact-panel {
	display: none;
}

.rbp-contact-panel.is-active {
	display: block;
}

.rbp-contact-columns {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 24px;
	background: #fff;
	border: 1px solid var(--rbp-border);
	border-radius: 16px;
	padding: clamp(20px, 3vw, 32px);
}

.rbp-contact-form-col h3,
.rbp-contact-info-col h3 {
	margin: 0 0 18px;
	font-size: 18px;
	font-weight: 700;
}

.rbp-contact-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 16px;
}

.rbp-contact-field {
	margin: 0;
}

.rbp-field-full {
	flex: 1 1 100%;
}

.rbp-field-half {
	flex: 1 1 calc(50% - 8px);
	min-width: 180px;
}

.rbp-contact-field select,
.rbp-contact-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--rbp-border);
	background: #f9fafb;
	border-radius: 8px;
	font-size: 14px;
	box-sizing: border-box;
	font-family: inherit;
}

.rbp-contact-field select:focus,
.rbp-contact-field textarea:focus {
	outline: none;
	border-color: var(--rbp-primary);
	box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.12);
	background: #fff;
}

.rbp-contact-submit-btn {
	max-width: 100%;
	margin-top: 20px;
}

.rbp-contact-info-item {
	display: flex;
	gap: 12px;
	margin-bottom: 18px;
	align-items: flex-start;
}

.rbp-contact-info-icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: #eef2fb;
	color: var(--rbp-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
}

.rbp-contact-info-item strong {
	display: block;
	font-size: 14px;
	margin-bottom: 2px;
}

.rbp-contact-info-item p {
	margin: 0;
	font-size: 14px;
	color: var(--rbp-muted);
	line-height: 1.5;
}

.rbp-contact-info-item a {
	color: var(--rbp-text);
	text-decoration: none;
}

.rbp-contact-info-item a:hover {
	text-decoration: underline;
}

.rbp-contact-hours {
	background: #dbe6f7;
	border-radius: 10px;
	padding: 14px 16px;
	margin-top: 8px;
}

.rbp-contact-hours strong {
	display: block;
	font-size: 14px;
	margin-bottom: 4px;
}

.rbp-contact-hours p {
	margin: 0;
	font-size: 13px;
	color: #374151;
	line-height: 1.5;
}

.rbp-locations-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	align-items: start;
}

.rbp-locations-layout:has(.rbp-locations-shortcode-area) {
	grid-template-columns: 1.3fr 1fr;
}

.rbp-locations-shortcode-area {
	background: #fff;
	border: 1px solid var(--rbp-border);
	border-radius: 14px;
	padding: 20px;
}

@media (max-width: 768px) {
	.rbp-locations-layout:has(.rbp-locations-shortcode-area) {
		grid-template-columns: 1fr;
	}
}

.rbp-locations-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 18px;
}

.rbp-location-card {
	background: #fff;
	border: 1px solid var(--rbp-border);
	border-radius: 14px;
	padding: 20px;
}

.rbp-location-card h3 {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 700;
}

.rbp-location-card p {
	margin: 0 0 6px;
	font-size: 14px;
	color: var(--rbp-muted);
	line-height: 1.5;
}

.rbp-location-card a {
	color: var(--rbp-text);
	text-decoration: none;
}

.rbp-location-card a:hover {
	text-decoration: underline;
}

@media (max-width: 768px) {
	.rbp-contact-columns {
		grid-template-columns: 1fr;
	}
	.rbp-contact-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
	}
	.rbp-contact-tab {
		flex-shrink: 0;
	}
}

/* ---- Support Requests tab extras ---- */

.rbp-contact-intro p {
	margin: 0 0 8px;
	font-size: 13px;
	color: var(--rbp-muted);
	line-height: 1.5;
}

.rbp-contact-intro a {
	color: var(--rbp-primary);
	text-decoration: underline;
}

.rbp-file-dropzone {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	border: 1px dashed var(--rbp-border);
	border-radius: 10px;
	padding: 22px 14px;
	background: #fafafa;
	cursor: pointer;
	text-align: center;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.rbp-file-dropzone:hover,
.rbp-file-dropzone.is-dragover {
	border-color: var(--rbp-primary);
	background: #f3f6fc;
}

.rbp-file-dropzone .dashicons {
	font-size: 22px;
	width: 22px;
	height: 22px;
	color: var(--rbp-muted);
}

.rbp-file-dropzone-text {
	font-size: 13px;
	font-weight: 600;
	color: var(--rbp-text);
}

.rbp-file-dropzone-hint {
	font-size: 12px;
	color: var(--rbp-muted);
}

.rbp-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

.rbp-recaptcha-box {
	background: #f9fafb;
	border: 1px solid var(--rbp-border);
	border-radius: 8px;
	padding: 12px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.rbp-recaptcha-label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.rbp-recaptcha-label input {
	width: 22px;
	height: 22px;
	margin: 0;
}

.rbp-recaptcha-note {
	font-size: 10px;
	color: var(--rbp-muted);
	letter-spacing: 0.05em;
}

.rbp-support-cta {
	text-align: left;
}

.rbp-support-cta p {
	margin: 0 0 12px;
}

.rbp-support-cta .rbp-btn {
	display: table;
	margin: 0 auto;
	width: auto;
}

/* ---- Request Service tab extras: radio groups, checkbox groups, etc. ---- */

.rbp-field-group-heading {
	font-size: 12px;
	font-weight: 700;
	color: #374151;
	margin: 4px 0 -6px;
}

.rbp-field-label-text {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: #374151;
	margin-bottom: 6px;
}

.rbp-field-hint {
	display: block;
	font-size: 11px;
	color: var(--rbp-muted);
	margin-top: 4px;
}

.rbp-radio-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.rbp-radio-option {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--rbp-text);
	cursor: pointer;
}

.rbp-radio-option input {
	width: 16px;
	height: 16px;
	margin: 0;
}

.rbp-checkbox-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.rbp-checkbox-option {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--rbp-text);
	cursor: pointer;
}

.rbp-checkbox-option input {
	width: 15px;
	height: 15px;
	margin: 0;
	flex-shrink: 0;
}

/* ---- About page ---- */

.rbp-about-body {
	max-width: 800px;
	margin: 0 auto;
	padding: clamp(30px, 5vw, 50px) clamp(16px, 4vw, 32px) 70px;
}

.rbp-about-content p {
	font-size: 16px;
	line-height: 1.7;
	color: var(--rbp-text);
	margin: 0 0 18px;
}

/* ---- Breadcrumb (gallery pages) ---- */

.rbp-breadcrumb {
	background: #fff;
	border-bottom: 1px solid var(--rbp-border);
}

.rbp-breadcrumb-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 8px clamp(16px, 4vw, 32px);
	font-size: 12px;
	color: var(--rbp-muted);
}

.rbp-breadcrumb-inner a {
	color: var(--rbp-muted);
	text-decoration: none;
}

.rbp-breadcrumb-inner a:hover {
	text-decoration: underline;
}

.rbp-breadcrumb-sep {
	margin: 0 6px;
}

/* ---- Gallery grid (Sales Tools style pages) ---- */

.rbp-gallery-section {
	max-width: 1200px;
	margin: 0 auto;
	padding: clamp(30px, 5vw, 50px) clamp(16px, 4vw, 32px) 70px;
}

.rbp-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.rbp-gallery-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 14px;
	background: #fff;
	border: 1px solid var(--rbp-border);
	border-radius: 14px;
	padding: 22px 18px 24px;
	text-decoration: none !important;
	color: var(--rbp-text) !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.rbp-gallery-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
	border-color: var(--rbp-primary);
}

.rbp-gallery-card-img {
	width: 100%;
	height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rbp-gallery-card-img img {
	max-width: 100%;
	max-height: 120px;
	object-fit: contain;
}

.rbp-gallery-card-img .dashicons {
	font-size: 44px;
	width: 44px;
	height: 44px;
	color: #d1d5db;
}

.rbp-gallery-card-title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

@media (max-width: 1024px) {
	.rbp-gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.rbp-gallery-grid {
		grid-template-columns: 1fr;
	}
}

/* ================= Product Detail template ================= */

.rbp-product-detail {
	max-width: 900px;
	width: 100%;
	box-sizing: border-box;
	margin: 0 auto;
	padding: clamp(30px, 5vw, 50px) clamp(16px, 4vw, 32px) 70px;
}

.rbp-product-title {
	font-size: clamp(28px, 4vw, 38px);
	font-weight: 800;
	margin: 0 0 8px;
	color: var(--rbp-text);
}

.rbp-product-subtitle {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rbp-primary);
	margin: 0 0 16px;
}

.rbp-product-description {
	font-size: 15px;
	line-height: 1.6;
	color: var(--rbp-muted);
	max-width: 640px;
	margin: 0 0 24px;
}

.rbp-product-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 28px;
}

.rbp-product-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid var(--rbp-border);
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 13px;
	color: var(--rbp-text);
}

.rbp-product-badge .lucide {
	width: 15px;
	height: 15px;
	color: var(--rbp-primary);
	stroke-width: 2;
}

.rbp-product-image-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	padding: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 460px;
	margin: 0 0 28px;
}

.rbp-product-image-card img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.rbp-product-tabs {
	display: flex;
	gap: 24px;
	border-bottom: 1px solid var(--rbp-border);
	margin-bottom: 24px;
	scroll-margin-top: 96px; /* clear the sticky navbar when a ?tab= link scrolls here */
}

.rbp-product-tab {
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	padding: 10px 2px;
	font-size: 14px;
	font-weight: 600;
	color: var(--rbp-muted);
	cursor: pointer;
}

.rbp-product-tab:hover {
	color: var(--rbp-text);
}

/* A tab label that wraps onto two lines (several tabs in a narrow column) should look like one compact label.
   Tabs are <button>s, and some themes give every button a tall line height (nearly twice the text size), which
   put a wide gap between the lines. Set the tabs' own, tight line height instead, firmly enough to hold against
   a theme that insists. */
.rbp-product-tabs .rbp-product-tab {
	line-height: 1.3 !important;
}

.rbp-product-tab.is-active {
	color: var(--rbp-primary);
	border-bottom-color: var(--rbp-primary);
}

.rbp-product-panel {
	display: none;
}

.rbp-product-panel.is-active {
	display: block;
}

.rbp-resource-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.rbp-resource-card,
.rbp-resource-card:visited,
.rbp-resource-card:active {
	background: #fff;
	border: 1px solid var(--rbp-border);
	border-radius: 14px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	text-decoration: none !important;
	color: var(--rbp-text) !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.rbp-resource-card h3,
.rbp-resource-card:visited h3,
.rbp-resource-card:active h3 {
	color: var(--rbp-text) !important;
}

.rbp-resource-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
	border-color: var(--rbp-primary);
}

.rbp-resource-icon {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: #eef2fb;
	color: var(--rbp-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	margin-bottom: 12px;
}

.rbp-resource-icon .lucide {
	width: 18px;
	height: 18px;
	stroke-width: 2;
}

.rbp-resource-card h3 {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 700;
}

.rbp-resource-card p {
	margin: 0;
	font-size: 13px;
	color: var(--rbp-muted);
	line-height: 1.5;
	flex: 1;
}

.rbp-resource-card p a,
.rbp-product-panel-text a,
.rbp-product-description a {
	color: var(--rbp-primary);
	text-decoration: underline;
}

.rbp-resource-card p a:visited,
.rbp-product-panel-text a:visited,
.rbp-product-description a:visited {
	color: #dc2626;
}

.rbp-resource-card p a:active,
.rbp-product-panel-text a:active,
.rbp-product-description a:active {
	color: var(--rbp-primary);
}

.rbp-product-panel-text {
	font-size: 15px;
	line-height: 1.7;
	color: var(--rbp-text);
}

.rbp-product-panel-text p {
	margin: 0 0 14px;
}

.rbp-product-panel-text.rbp-two-column {
	column-count: 2;
	column-gap: 40px;
}

@media (max-width: 700px) {
	.rbp-product-panel-text.rbp-two-column {
		column-count: 1;
	}
}

.rbp-resource-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 14px;
	padding-top: 10px;
	font-size: 12px;
	color: var(--rbp-muted);
}

.rbp-resource-footer a {
	color: var(--rbp-primary);
	text-decoration: none;
	font-weight: 700;
}

@media (max-width: 900px) {
	.rbp-resource-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.rbp-resource-grid {
		grid-template-columns: 1fr;
	}
	.rbp-product-tabs {
		gap: 16px;
		overflow-x: auto;
	}
}

/* ---- Product Detail: Image Gallery tab ---- */

.rbp-image-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.rbp-image-gallery-item {
	display: block;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--rbp-border);
	aspect-ratio: 4 / 3;
	padding: 0;
	background: none;
	cursor: pointer;
	width: 100%;
}

.rbp-image-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.2s ease;
}

.rbp-image-gallery-item:hover img {
	transform: scale(1.04);
}

@media (max-width: 700px) {
	.rbp-image-gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 420px) {
	.rbp-image-gallery-grid {
		grid-template-columns: 1fr;
	}
}

/* ---- Lightbox overlay ---- */

body.rbp-lightbox-locked {
	overflow: hidden;
}

.rbp-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.9);
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 40px;
}

.rbp-lightbox.is-open {
	display: flex;
}

.rbp-lightbox-image {
	max-width: 100%;
	max-height: 100%;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.rbp-lightbox-close {
	position: absolute;
	top: 20px;
	right: 24px;
	background: rgba(255, 255, 255, 0.12);
	border: none;
	border-radius: 999px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #fff;
	transition: background 0.15s ease;
}

.rbp-lightbox-close:hover {
	background: rgba(255, 255, 255, 0.25);
}

.rbp-lightbox-close .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
}

/* ---- Product Detail: FAQ accordion tab ---- */

.rbp-faq-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rbp-faq-item {
	border: 1px solid var(--rbp-border);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.rbp-faq-question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: none;
	border: none;
	text-align: left;
	padding: 14px 16px;
	font-size: 15px;
	font-weight: 600;
	color: var(--rbp-text);
	cursor: pointer;
}

.rbp-faq-icon {
	flex-shrink: 0;
	transition: transform 0.15s ease;
	color: var(--rbp-muted);
}

.rbp-faq-question.is-open .rbp-faq-icon {
	transform: rotate(180deg);
	color: var(--rbp-primary);
}

.rbp-faq-answer {
	display: none;
	padding: 0 16px 16px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--rbp-muted);
}

.rbp-faq-answer.is-open {
	display: block;
}

.rbp-faq-answer a {
	color: var(--rbp-primary);
	text-decoration: underline;
}

.rbp-faq-answer a:visited {
	color: #dc2626;
}

.rbp-faq-answer a:active {
	color: var(--rbp-primary);
}

/* ---- About page video ---- */

.rbp-about-video {
	margin-top: 30px;
}

.rbp-about-video iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border-radius: 12px;
	border: none;
	display: block;
}

.rbp-about-video video {
	width: 100%;
	border-radius: 12px;
	display: block;
}

/* ---- Hide the theme's own page title banner on portal pages ---- */
/* Our own hero section already covers this role, so the theme's default
   title would just be redundant. Covers common conventions across many
   popular themes; use the "Additional selectors to hide" setting under
   Portal Tiles > Page Settings for anything a specific theme uses instead. */

body.rbp-portal-page .entry-header,
body.rbp-portal-page .page-header,
body.rbp-portal-page .entry-title,
body.rbp-portal-page .page-title,
body.rbp-portal-page .entry-title-wrap,
body.rbp-portal-page .site-content > .page-title-wrap,
body.rbp-portal-page .ast-container > .page-header,
body.rbp-portal-page .elementor-page-title,
body.rbp-portal-page div.transparent_head,
body.rbp-portal-page div.menu-area,
body.rbp-portal-page h1.entry-title,
body.rbp-portal-page header.page-header {
	display: none !important;
}

/* The theme's own page wrapper (e.g. .main-container) can have its own
   min-height meant to keep ITS footer pinned to the bottom — but our
   plugin's content already handles that itself (see .rbp-home above),
   so on portal pages this just adds extra blank space below our footer.
   Scoped to portal pages only so nothing else on the site is affected. */
body.rbp-portal-page .main-container,
body.rbp-portal-page #main-container,
body.rbp-portal-page main,
body.rbp-portal-page .site-content,
body.rbp-portal-page #content {
	min-height: 0 !important;
	height: auto !important;
	max-height: none !important;
	padding-bottom: 0 !important;
}

/* ---- Search Results page ---- */

.rbp-search-results-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rbp-search-result {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #fff;
	border: 1px solid var(--rbp-border);
	border-radius: 10px;
	padding: 14px 18px;
	text-decoration: none;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.rbp-search-result:hover {
	border-color: var(--rbp-primary);
	transform: translateY(-1px);
}

.rbp-search-result-type {
	flex-shrink: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--rbp-primary);
	background: #eef2fb;
	border-radius: 999px;
	padding: 4px 10px;
}

.rbp-search-result-title {
	flex: 1;
	font-size: 15px;
	font-weight: 600;
	color: var(--rbp-text);
}

.rbp-search-result .dashicons {
	color: var(--rbp-muted);
}


/* ---- Video links tab (Product Detail) ---- */

.rbp-video-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 720px;
}

.rbp-video-item {
	display: flex;
	flex-direction: column;
}

.rbp-video-thumb-link {
	position: relative;
	display: block;
	width: 100%;
	border: none;
	padding: 0;
	border-radius: 10px;
	overflow: hidden;
	background: #000;
	line-height: 0;
	cursor: pointer;
}

.rbp-video-thumb {
	width: 100%;
	display: block;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.rbp-video-embed {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	display: block;
}

.rbp-video-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 64px;
	height: 64px;
	background: #ff0000;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
	transition: transform 0.15s ease;
}

.rbp-video-thumb-link:hover .rbp-video-play-btn {
	transform: translate(-50%, -50%) scale(1.08);
}

.rbp-video-play-btn .lucide {
	width: 28px;
	height: 28px;
	color: #fff;
	fill: #fff;
	stroke-width: 0;
	margin-left: 2px;
}

.rbp-video-youtube-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--rbp-muted);
	text-decoration: none;
}

.rbp-video-youtube-link:hover {
	color: var(--rbp-primary);
}

.rbp-video-youtube-link .lucide {
	width: 15px;
	height: 15px;
	color: #ff0000;
	fill: #ff0000;
	stroke-width: 0;
}

.rbp-video-title {
	margin: 10px 0 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--rbp-text);
}

/* ---- Floating feedback widget ---- */

.rbp-feedback-btn {
	position: fixed;
	top: 135px;
	right: 24px;
	z-index: 9998;
	width: 56px;
	height: 56px;
	padding: 0;
	box-sizing: border-box;
	border-radius: 999px;
	background: var(--rbp-primary, #004fa3);
	color: #fff;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	cursor: pointer;
	transition: transform 0.15s ease;
}

.rbp-feedback-btn:hover {
	transform: scale(1.06);
}

.rbp-feedback-btn svg {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	color: inherit;
}

.rbp-feedback-panel {
	position: fixed;
	top: 203px;
	right: 24px;
	z-index: 9999;
	width: min(340px, calc(100vw - 32px));
}

.rbp-feedback-panel-inner {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
	padding: 20px;
	position: relative;
}

.rbp-feedback-panel-inner h3 {
	margin: 0 0 14px;
	font-size: 16px;
	padding-right: 28px;
}

.rbp-feedback-close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--rbp-muted, #6b7280);
	display: flex;
}

.rbp-feedback-close svg {
	width: 18px;
	height: 18px;
}

#rbp-feedback-submit {
	background: #004fa3;
}

.rbp-feedback-rating {
	display: flex;
	gap: 4px;
	margin-bottom: 14px;
}

.rbp-feedback-star {
	background: none;
	border: none;
	cursor: pointer;
	padding: 2px;
	color: #d1d5db;
}

.rbp-feedback-star svg {
	width: 24px;
	height: 24px;
}

.rbp-feedback-star.is-selected {
	color: #f5b301;
}

.rbp-feedback-star.is-selected svg {
	fill: #f5b301;
}

.rbp-feedback-panel textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--rbp-border, #e5e7eb);
	border-radius: 8px;
	padding: 10px;
	font-size: 14px;
	font-family: inherit;
	margin-bottom: 12px;
	resize: vertical;
}

#rbp-feedback-thanks p {
	margin: 0;
	text-align: center;
	color: var(--rbp-text, #1f2937);
}

.rbp-request-access-btn {
	background: #004fa3 !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	padding: 14px 28px !important;
	letter-spacing: 0.02em;
	box-shadow: 0 6px 18px rgba(0, 79, 163, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rbp-request-access-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0, 79, 163, 0.45);
}

.rbp-request-access-link {
	color: #004fa3 !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	text-decoration: underline;
}

.rbp-request-access-link:hover {
	text-decoration: none;
}

/* ---- Inline PDF viewer (search results) ---- */

.rbp-pdf-viewer {
	display: flex;
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.9);
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.rbp-pdf-viewer-inner {
	background: #fff;
	border-radius: 10px;
	width: 100%;
	max-width: 900px;
	height: 100%;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.rbp-pdf-viewer-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--rbp-border, #e5e7eb);
	flex-shrink: 0;
}

.rbp-pdf-viewer-title {
	font-weight: 600;
	font-size: 14px;
	color: var(--rbp-text, #1f2937);
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rbp-pdf-viewer-download {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--rbp-primary, #004fa3);
	text-decoration: none;
	flex-shrink: 0;
}

.rbp-pdf-viewer-download:hover {
	text-decoration: underline;
}

.rbp-pdf-viewer-download .lucide {
	width: 16px;
	height: 16px;
}

.rbp-pdf-viewer-close {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--rbp-muted, #6b7280);
	display: flex;
	flex-shrink: 0;
}

.rbp-pdf-viewer-close .lucide {
	width: 20px;
	height: 20px;
}

.rbp-pdf-viewer-frame {
	flex: 1 1 auto;
	width: 100%;
	border: none;
}

@media (max-width: 600px) {
	.rbp-pdf-viewer {
		padding: 0;
	}
	.rbp-pdf-viewer-inner {
		max-width: 100%;
		max-height: 100%;
		border-radius: 0;
	}
}

/* ---- Dedicated PDF viewer page ---- */

.rbp-pdf-viewer-page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.rbp-pdf-viewer-page-body {
	flex: 1 1 auto;
	display: flex;
}

.rbp-pdf-viewer-page-frame {
	flex: 1 1 auto;
	width: 100%;
	border: none;
	min-height: 600px;
}

.rbp-pdf-viewer-page-notice {
	background: #fef9c3;
	color: #713f12;
	font-size: 13px;
	padding: 10px 20px;
	text-align: center;
}

.rbp-pdf-viewer-page-notice a {
	color: #713f12;
	font-weight: 600;
}

.rbp-product-panel-description {
	font-size: 14px;
	line-height: 1.6;
	color: var(--rbp-muted, #6b7280);
	margin-bottom: 18px;
}

.rbp-section-switcher {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	padding: 20px 24px;
	background: var(--rbp-bg, #f4f5f7);
}

.rbp-section-pill {
	font-size: 13px;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 999px;
	text-decoration: none;
	color: var(--rbp-muted, #6b7280);
	border: 1px solid var(--rbp-border, #e5e7eb);
	background: #fff;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.rbp-section-pill:hover {
	border-color: var(--rbp-primary, #004fa3);
	color: var(--rbp-primary, #004fa3);
}

.rbp-section-pill-active {
	background: var(--rbp-primary, #004fa3);
	border-color: var(--rbp-primary, #004fa3);
	color: #fff !important;
}

.rbp-search-filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.rbp-filter-chip {
	font-size: 13px;
	font-weight: 600;
	padding: 7px 16px;
	border-radius: 999px;
	border: 1px solid var(--rbp-border, #e5e7eb);
	background: #fff;
	color: var(--rbp-muted, #6b7280);
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.rbp-filter-chip:hover {
	border-color: var(--rbp-primary, #004fa3);
	color: var(--rbp-primary, #004fa3);
}

.rbp-filter-chip.is-active {
	background: var(--rbp-primary, #004fa3);
	border-color: var(--rbp-primary, #004fa3);
	color: #fff;
}


/* "Trouble logging in?" fold-out under the login forms */
.rbp-trouble {
	margin-top: 18px;
	padding-top: 12px;
	border-top: 1px solid #e5e7eb;
	font-size: 14px;
}

.rbp-trouble summary {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--rbp-primary, #0b3d91);
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.rbp-trouble summary::-webkit-details-marker {
	display: none;
}

.rbp-trouble summary::before {
	content: "";
	flex: none;
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform 0.15s;
}

.rbp-trouble[open] summary::before {
	transform: rotate(45deg);
}

.rbp-trouble summary:focus-visible {
	outline: 2px solid var(--rbp-primary, #0b3d91);
	outline-offset: 3px;
}

.rbp-trouble ul {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.rbp-trouble li,
.rbp-trouble .rbp-trouble-item {
	margin: 8px 0 0;
}

.rbp-trouble .rbp-trouble-item p {
	margin: 0 0 6px;
}

.rbp-trouble .rbp-link-button {
	padding: 0;
	background: none;
	border: 0;
	color: var(--rbp-primary, #0b3d91);
	font: inherit;
	text-align: left;
	text-decoration: underline;
	cursor: pointer;
}

.rbp-trouble .rbp-link-button:focus-visible {
	outline: 2px solid var(--rbp-primary, #0b3d91);
	outline-offset: 2px;
}

/* A quiet "all good" message inside the login card (used by the emailed-code and authenticator-reset screens). */
.rbp-login-notice {
	background: #ecfdf5;
	color: #047857;
	border: 1px solid #a7f3d0;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 16px;
}

.rbp-trouble a {
	color: var(--rbp-primary, #0b3d91);
}

/* Bold text on a product page must look bold. The portal's body text is a light weight, and the browser's default
   "bolder" would only step it up one notch (300 to 400), which is hard to see. */
.rbp-product-detail strong,
.rbp-product-detail b {
	font-weight: 700;
}

/* Text that was given a colour in the editor sits in a <mark>. Browsers (and some themes) paint a <mark> with a
   coloured background, so unless a background was chosen on purpose (it is then set on the text itself, which wins
   over this rule) keep it clear. */
.rbp-product-detail mark.has-inline-color {
	background-color: transparent;
	/* Some themes style <mark> like a label: padding, margins, a different size or weight, rounded corners. Text that
	   was only given a colour should look exactly like the text around it, in another colour, so undo all of that
	   (the size, weight and style come from whatever surrounds it, so bold and italic applied to it still show). */
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: 0 !important;
	text-shadow: none !important;
	font: inherit !important;
	letter-spacing: inherit !important;
	text-transform: inherit !important;
	display: inline !important;
	float: none !important;
	vertical-align: baseline !important;
}

/* If the colour rules saved on the text were lost (an account that is not allowed to save styles), there is no
   background to keep, so clear the theme's even if it insists with "!important". */
.rbp-product-detail mark.has-inline-color:not([style*="background-color"]) {
	background: transparent !important;
}


/* A Pardot (or other) form embedded in place of a Contact Us tab's built-in form. */
.rbp-contact-embed {
	width: 100%;
}

.rbp-contact-embed iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	height: var(--rbp-embed-h, 700px);
	border: 0;
	background: transparent;
}

.rbp-contact-embed-fallback {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--rbp-muted, #6b7280);
}

@media (max-width: 640px) {
	/* Forms wrap onto more lines on a phone, so give them more room. */
	.rbp-contact-embed iframe {
		height: calc(var(--rbp-embed-h, 700px) * 1.3);
	}
}

/* A form plugin's form (Gravity Forms, for example) shown in place of a Contact Us tab's built-in form. */
.rbp-contact-shortcode {
	min-width: 0;
	max-width: 100%;
}
