/* Bridge Road: Offer single page pieces. Matches the Trader page and sliders. */

:root {
	--brs-o-accent: #233D6E;
	--brs-o-text: #1C1B18;
	--brs-o-body: #34312B;
	--brs-o-muted: #5E5A52;
	--brs-o-border: #E2DCD1;
	--brs-o-line: #EEE9E0;
	--brs-o-tile: #E7E1D6;
	--brs-o-radius: 30px;
}

.brs-o-image, .brs-o-trader, .brs-o-meta, .brs-o-actions { box-sizing: border-box; }
.brs-o-image *, .brs-o-trader *, .brs-o-actions * { box-sizing: border-box; }

/* Image: kept near its natural size, so small images stay sharp */
.brs-o-image {
	margin: 0;
	aspect-ratio: 16 / 9;
	border-radius: var(--brs-o-radius);
	overflow: hidden;
	background: var(--brs-o-tile);
	box-shadow: 0 1px 2px rgba(28, 27, 24, .05), 0 8px 24px rgba(28, 27, 24, .06);
}
.brs-o-image .brs-o-image__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border-radius: 0;
}

/* Trader name above the title */
.brs-o-eyebrow {
	margin: 0;
	color: var(--brs-o-accent);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	line-height: 1.3;
	text-transform: uppercase;
}
.brs-o-eyebrow a { color: inherit; text-decoration: none; }
.brs-o-eyebrow a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Date pills */
.brs-o-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.brs-o-meta li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 34px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--brs-o-border);
	border-radius: 999px;
	background: #fff;
	color: var(--brs-o-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
}
.brs-o-meta li::before { content: none; }
.brs-o-meta .brs-icon { width: 16px; height: 16px; color: var(--brs-o-accent); flex: none; }
.brs-o-meta li.is-urgent { background: var(--brs-o-accent); border-color: var(--brs-o-accent); color: #fff; }
.brs-o-meta li.is-urgent .brs-icon { color: #fff; }
.brs-o-meta li.is-ended { background: #F6E4E1; border-color: transparent; color: #8A1F11; }
.brs-o-meta li.is-ended .brs-icon { color: #8A1F11; }

/* Buttons */
.brs-o-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.brs-o-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 0 22px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .2s, color .2s, border-color .2s;
}
.brs-o-btn .brs-icon { width: 17px; height: 17px; flex: none; }
.brs-o-btn--primary, .brs-o-btn--primary:visited { background: var(--brs-o-accent); color: #fff; border: 1px solid var(--brs-o-accent); }
.brs-o-btn--primary:hover, .brs-o-btn--primary:focus { background: #1A2E54; border-color: #1A2E54; color: #fff; }
.brs-o-btn--ghost, .brs-o-btn--ghost:visited { background: transparent; color: var(--brs-o-text); border: 1px solid var(--brs-o-text); }
.brs-o-btn--ghost:hover, .brs-o-btn--ghost:focus { background: var(--brs-o-text); color: #fff; }
.brs-o-btn:focus-visible { outline: 3px solid var(--brs-o-accent); outline-offset: 2px; }

/* Terms */
.brs-o-terms {
	margin: 0;
	padding-top: 16px;
	border-top: 1px solid var(--brs-o-line);
	color: var(--brs-o-muted);
	font-size: 13px;
	line-height: 1.55;
}
.brs-o-terms strong { color: var(--brs-o-text); font-weight: 600; }

/* Trader card */
.brs-o-trader {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr) auto;
	align-items: center;
	gap: 22px;
	padding: 20px 24px 20px 20px;
	border-radius: var(--brs-o-radius);
	background: #fff;
	box-shadow: 0 1px 2px rgba(28, 27, 24, .05), 0 8px 24px rgba(28, 27, 24, .06);
}
.brs-o-trader__media {
	position: relative;
	display: block;
	width: 112px;
	height: 112px;
	border-radius: 20px;
	overflow: hidden;
	background: var(--brs-o-tile);
}
.brs-o-trader__media .brs-o-trader__img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; }
.brs-o-trader__letter {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--brs-o-accent);
	font-size: 48px;
	font-weight: 700;
}
.brs-o-label {
	margin: 0;
	color: var(--brs-o-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.brs-o-trader .brs-o-trader__name { margin: 4px 0 8px; font-size: 22px; font-weight: 700; line-height: 1.2; }
.brs-o-trader__name a { color: var(--brs-o-text); text-decoration: none; }
.brs-o-trader__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.brs-o-trader__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.brs-o-trader__list li { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--brs-o-muted); font-size: 15px; line-height: 1.4; }
.brs-o-trader__list li::before { content: none; }
.brs-o-trader__list .brs-icon { width: 17px; height: 17px; color: var(--brs-o-accent); flex: none; }
.brs-o-trader__list a { color: var(--brs-o-text); text-decoration: none; font-weight: 500; }
.brs-o-trader__list a:hover { text-decoration: underline; }

/* "More offers" grid (Elementor Posts widget with CSS class brs-o-more) */
.brs-o-more .elementor-post__card {
	border: 0 !important;
	border-radius: var(--brs-o-radius) !important;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 2px rgba(28, 27, 24, .05), 0 8px 24px rgba(28, 27, 24, .06) !important;
	transition: transform .25s, box-shadow .25s;
}
.brs-o-more .elementor-post__card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(28, 27, 24, .06), 0 16px 32px rgba(28, 27, 24, .1) !important; }
.brs-o-more .elementor-post__thumbnail img { object-fit: cover; }
.brs-o-more .elementor-post__text { padding: 20px 22px 0 !important; }
.brs-o-more .elementor-post__title, .brs-o-more .elementor-post__title a { color: var(--brs-o-text); font-size: 18px; font-weight: 700; line-height: 1.3; }
.brs-o-more .elementor-post__excerpt p { color: var(--brs-o-muted); font-size: 15px; line-height: 1.5; }
.brs-o-more .elementor-post__read-more { color: var(--brs-o-accent) !important; font-size: 15px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.brs-o-more .elementor-post__meta-data, .brs-o-more .elementor-post__avatar, .brs-o-more .elementor-post__badge { display: none; }

/* Editor-only hint */
.brs-editor-note {
	padding: 14px 18px;
	border: 1px dashed #CFC7B8;
	border-radius: 14px;
	background: #FBF9F5;
	color: #5E5A52;
	font-size: 13px;
	line-height: 1.5;
}

@media (max-width: 767px) {
	.brs-o-trader { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 18px; }
	.brs-o-trader__media { width: 72px; height: 72px; border-radius: 16px; }
	.brs-o-trader__letter { font-size: 32px; }
	.brs-o-trader__btn { grid-column: 1 / -1; width: 100%; }
	.brs-o-trader .brs-o-trader__name { font-size: 19px; }
	.brs-o-actions .brs-o-btn { flex: 1 1 100%; }
}

/* Screen-reader-only text */
.brs-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
