/**
 * Offer Synchronizer for Esti CRM - front end styles.
 *
 * The layout of the offer components follows the em5.pl listing and detail
 * pages. Every colour, width and font is taken from the active theme's global
 * styles, so the plugin inherits the theme's identity instead of imposing its
 * own: with Twenty Twenty-Five that means the theme's contrast colour, its
 * content and wide sizes and its typefaces. Each custom property carries a
 * fallback for classic themes that expose no global styles.
 */

.osfec {
	--osfec-ink: var(--wp--preset--color--contrast, #111111);
	--osfec-muted: var(--wp--preset--color--accent-4, #686868);
	--osfec-soft: var(--wp--preset--color--accent-5, #f7f7f5);
	--osfec-surface: var(--wp--preset--color--base, #ffffff);
	--osfec-line: var(--wp--preset--color--accent-6, rgba(17, 17, 17, 0.18));

	/* The theme's main colour: what Twenty Twenty-Five paints its buttons with. */
	--osfec-accent: var(--wp--preset--color--contrast, #111111);
	--osfec-on-accent: var(--wp--preset--color--base, #ffffff);

	--osfec-wide: var(--wp--style--global--wide-size, 1340px);
	--osfec-content: var(--wp--style--global--content-size, 645px);
	--osfec-gutter: var(--wp--preset--spacing--50, 1.5rem);

	--osfec-radius: 16px;
	--osfec-radius-sm: 10px;

	box-sizing: border-box;
	width: 100%;

	/* The padding sits outside the wide size, exactly like the theme's own
	   global padding, so the content edge lines up with an alignwide block. */
	max-width: calc(var(--osfec-wide) + 2 * var(--osfec-gutter));
	margin-inline: auto;
	padding-inline: var(--osfec-gutter);
	color: var(--osfec-ink);
}

/* The shortcode and the block are dropped into a theme section that already
   brings its own gutter, so they carry no side padding of their own and cap
   at the plain wide size. */
.osfec.osfec-offers {
	max-width: var(--osfec-wide);
	padding-inline: 0;
}

.osfec *,
.osfec *::before,
.osfec *::after {
	box-sizing: inherit;
}

.osfec a {
	color: inherit;
}

/* -------------------------------------------------------------------------
 * Shared pieces
 * ---------------------------------------------------------------------- */

.osfec-kicker {
	margin-bottom: 0.6rem;
	color: var(--osfec-accent);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.085em;
	line-height: 1.2;
	text-transform: uppercase;
}

.osfec-kicker__sep {
	margin: 0 0.35rem;
	color: var(--osfec-muted);
}

.osfec-section {
	padding-block: clamp(2rem, 4vw, 3.25rem);
	border-top: 1px solid var(--osfec-line);
}

.osfec-section__head {
	margin-bottom: 1.5rem;
}

.osfec-section__head h2 {
	margin: 0;
	font-size: clamp(1.5rem, 2.25vw, 2.25rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.osfec-panel {
	overflow: hidden;
	border: 1px solid var(--osfec-line);
	border-radius: 14px;
	background: var(--osfec-surface);
}

.osfec-panel__body {
	padding: clamp(1.1rem, 2.2vw, 1.75rem);
}

.osfec .osfec-button {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.7rem 1.6rem;
	border: 1px solid var(--osfec-accent);
	border-radius: 999px;
	background: var(--osfec-accent);
	color: var(--osfec-on-accent);
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.osfec .osfec-button:hover,
.osfec .osfec-button:focus {
	color: var(--osfec-on-accent);
	opacity: 0.85;
}

.osfec .osfec-button--ghost {
	background: transparent;
	color: var(--osfec-ink);
}

.osfec .osfec-button--ghost:hover,
.osfec .osfec-button--ghost:focus {
	color: var(--osfec-ink);
}

.osfec-empty {
	margin: 3rem 0;
	padding: 2.5rem;
	border: 1px dashed var(--osfec-line);
	border-radius: var(--osfec-radius);
	color: var(--osfec-muted);
	text-align: center;
}

/* -------------------------------------------------------------------------
 * Archive header, toolbar and pagination
 * ---------------------------------------------------------------------- */

.osfec-archive__header {
	padding-block: clamp(1.5rem, 3vw, 2.5rem) 0;
}

.osfec-archive__title {
	margin: 0 0 0.35rem;
	font-size: clamp(1.9rem, 3.4vw, 3rem);
	line-height: 1.08;
	letter-spacing: -0.025em;
}

.osfec-archive__tagline {
	max-width: 46rem;
	margin: 0;
	color: var(--osfec-muted);
	line-height: 1.6;
}

.osfec-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem;
	margin-bottom: 1.5rem;
	font-size: 0.9rem;
}

.osfec-toolbar__label {
	color: var(--osfec-muted);
}

.osfec-toolbar__count {
	margin-inline-start: auto;
	color: var(--osfec-muted);
}

.osfec-toolbar__count strong {
	color: var(--osfec-ink);
	font-weight: 700;
}

.osfec-toolbar select {
	max-width: 14rem;
	padding: 0.35rem 0.5rem;
	border: 1px solid var(--osfec-line);
	border-radius: 8px;
	background: var(--osfec-soft);
	color: inherit;
	font: inherit;
	font-weight: 600;
	font-size: 0.9rem;
}

.osfec-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 2.5rem 0 3.5rem;
}

.osfec-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.6rem;
	height: 2.6rem;
	padding: 0 0.7rem;
	border: 1px solid var(--osfec-line);
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
}

.osfec-pagination .page-numbers.current {
	border-color: var(--osfec-accent);
	background: var(--osfec-accent);
	color: var(--osfec-on-accent);
}

.osfec-pagination .page-numbers.dots {
	border-color: transparent;
}

/* -------------------------------------------------------------------------
 * Filter bar
 * ---------------------------------------------------------------------- */

.osfec-filters {
	margin-bottom: 1.75rem;
	padding: 1.15rem;
	border: 1px solid var(--osfec-line);
	border-radius: 14px;
	background: var(--osfec-soft);
}

.osfec-filters__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
	gap: 0.85rem;
}

.osfec-filters__field--pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 0.4rem;

	/* The row gap replaces the label's own margin; keeping both would push
	   these inputs lower than the ones in the single field columns. */
	row-gap: 0.3rem;
}

.osfec-filters__field--pair .osfec-filters__label {
	grid-column: 1 / -1;
	margin-bottom: 0;
}

.osfec-filters__label {
	display: block;
	margin-bottom: 0.3rem;
	color: var(--osfec-muted);
	font-size: 0.73rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.osfec-filters__input {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.5rem 0.7rem;
	border: 1px solid var(--osfec-line);
	border-radius: var(--osfec-radius-sm);
	background: var(--osfec-surface);
	color: inherit;
	font: inherit;
	font-size: 0.92rem;
}

.osfec-filters__input:focus-visible {
	outline: 2px solid var(--osfec-accent);
	outline-offset: 1px;
}

.osfec-filters__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin-top: 1rem;
}

.osfec-filters__reset {
	color: var(--osfec-muted);
	font-size: 0.88rem;
}

/* -------------------------------------------------------------------------
 * Result card
 * ---------------------------------------------------------------------- */

.osfec-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.osfec-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.osfec-card {
	display: grid;
	grid-template-columns: minmax(220px, 33%) minmax(0, 1fr);
	height: 210px;
	overflow: hidden;
	border: 1px solid var(--osfec-line);
	border-radius: var(--osfec-radius);
	background: var(--osfec-surface);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.osfec-card__link:hover .osfec-card,
.osfec-card__link:focus-visible .osfec-card {
	box-shadow: 0 12px 32px rgba(31, 34, 38, 0.08);
	transform: translateY(-1px);
}

.osfec-card__media {
	position: relative;
	height: 100%;
	overflow: hidden;
	background: var(--osfec-soft);
}

.osfec-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.osfec-card__link:hover .osfec-card__media img {
	transform: scale(1.025);
}

.osfec-card__content {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	padding: clamp(0.9rem, 1.15vw, 1.15rem);
}

.osfec-card__topline {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 0.55rem;
}

.osfec-card__type {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	padding: 0.28rem 0.55rem;
	border-radius: 6px;
	background: var(--osfec-accent);
	color: var(--osfec-on-accent);
	font-size: 0.76rem;
	font-weight: 700;
	line-height: 1.15;
}

.osfec-card__location {
	min-width: 0;
	overflow: hidden;
	color: var(--osfec-muted);
	font-size: 0.94rem;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.osfec-card__title {
	display: -webkit-box;
	overflow: hidden;
	margin: 0 0 0.55rem;
	font-size: clamp(1.08rem, 1.18vw, 1.26rem);
	font-weight: 600;
	line-height: 1.24;
	letter-spacing: -0.015em;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.osfec-card__details {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0;
	margin: 0;
	padding: 0;
	color: var(--osfec-muted);
	font-size: 0.91rem;
	line-height: 1.45;
	list-style: none;
}

.osfec-card__detail {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
}

.osfec-card__detail:not(:last-child)::after {
	content: "\00b7";
	display: inline-block;
	margin: 0 0.58rem;
	font-weight: 700;
	opacity: 0.6;
}

.osfec-card__footer {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1rem;
	margin-top: auto;
	padding-top: 0.65rem;
}

.osfec-card__price-label {
	display: block;
	margin-bottom: 0.15rem;
	color: var(--osfec-muted);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.osfec-card__price {
	display: block;
	font-size: clamp(1.4rem, 1.85vw, 1.85rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.025em;
}

.osfec-card__price--muted {
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--osfec-muted);
}

.osfec-card__cta {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.88rem;
	font-weight: 700;
	white-space: nowrap;
}

.osfec-card__cta-arrow {
	transition: transform 0.2s ease;
}

.osfec-card__link:hover .osfec-card__cta-arrow {
	transform: translateX(3px);
}

@media (max-width: 781px) {
	.osfec-card {
		display: block;
		height: auto;
		border-radius: 14px;
	}

	.osfec-card__media {
		height: auto;
		aspect-ratio: 16 / 10;
	}

	.osfec-card__topline {
		align-items: flex-start;
	}

	.osfec-card__price-label {
		display: none;
	}

	.osfec-card__footer {
		align-items: center;
		padding-top: 1rem;
	}
}

/* -------------------------------------------------------------------------
 * Grid layout and link to the archive, used by the `columns` and `more`
 * attributes of the shortcode and of the block.
 * ---------------------------------------------------------------------- */

.osfec-list--grid {
	display: grid;
	grid-template-columns: repeat(var(--osfec-columns, 3), minmax(0, 1fr));
	gap: 1.5rem;
}

/* Cards stand side by side, so the photo moves on top of the content. */
.osfec-list--grid .osfec-card-item,
.osfec-list--grid .osfec-card__link {
	height: 100%;
}

.osfec-list--grid .osfec-card {
	display: flex;
	height: 100%;
	flex-direction: column;
}

.osfec-list--grid .osfec-card__media {
	height: auto;
	aspect-ratio: 16 / 10;
}

.osfec-list--grid .osfec-card__content {
	flex: 1 1 auto;
}

.osfec-list--grid .osfec-card__price {
	font-size: clamp(1.25rem, 1.5vw, 1.5rem);
}

@media (max-width: 980px) {
	.osfec-list--grid {
		grid-template-columns: repeat(min(var(--osfec-columns, 3), 2), minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.osfec-list--grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.osfec-offers__more {
	display: flex;
	justify-content: center;
	margin: 2rem 0 0;
}

/* -------------------------------------------------------------------------
 * Single offer
 * ---------------------------------------------------------------------- */

.osfec-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	padding-block: 1.25rem;
	color: var(--osfec-muted);
	font-size: 0.85rem;
}

.osfec-breadcrumb a {
	text-decoration: none;
}

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

.osfec-slider {
	position: relative;
	overflow: hidden;
	border-radius: var(--osfec-radius);
	background: var(--osfec-soft);
}

.osfec-slider:focus-visible {
	outline: 2px solid var(--osfec-accent);
	outline-offset: 2px;
}

/*
 * The track is moved with a transform rather than by scrolling. A horizontal
 * scroll container swallows the vertical wheel, so the page would stop
 * scrolling while the pointer sits over the gallery.
 */
.osfec-slider__track {
	display: flex;
	height: clamp(320px, 46vw, 620px);
	transition: transform 0.35s ease;
	will-change: transform;
	touch-action: pan-y;
}

.osfec-slider__track--dragging {
	transition: none;
	cursor: grabbing;
}

.osfec-slider__slide {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	margin: 0;
}

.osfec-slider__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.osfec-slider__nav {
	position: absolute;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--osfec-surface);
	color: var(--osfec-ink);
	font-size: 1.9rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(17, 17, 17, 0.18);
	transform: translateY(-50%);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.osfec-slider__nav span {
	margin-top: -0.2em;
}

.osfec-slider__nav--prev {
	left: 1rem;
}

.osfec-slider__nav--next {
	right: 1rem;
}

.osfec-slider__nav:hover {
	transform: translateY(-50%) scale(1.05);
}

.osfec-slider__nav[disabled] {
	opacity: 0.35;
	cursor: default;
	transform: translateY(-50%);
}

.osfec-slider__counter {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	margin: 0;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	background: rgba(17, 17, 17, 0.65);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 600;
}

.osfec-offer__head {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: clamp(1.5rem, 3vw, 2.25rem);
}

.osfec-offer__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.8rem, 3.2vw, 2.85rem);
	line-height: 1.08;
	letter-spacing: -0.025em;
}

.osfec-offer__location {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	color: var(--osfec-muted);
}

.osfec-offer__location svg {
	flex: 0 0 auto;
	width: 0.85rem;
	height: 1.1rem;
	fill: currentColor;
}

.osfec-offer__headline-price {
	text-align: end;
}

.osfec-offer__headline-price .osfec-card__price {
	font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.osfec-offer__price-previous {
	display: block;
	margin-top: 0.2rem;
	color: var(--osfec-muted);
	font-size: 0.95rem;
	text-decoration: line-through;
}

.osfec-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 0.7rem;
	margin-bottom: 1.2rem;
}

.osfec-fact {
	min-height: 90px;
	padding: 1rem 1.05rem;
	border-radius: var(--osfec-radius-sm);
	background: var(--osfec-soft);
}

.osfec-fact__label {
	display: block;
	margin-bottom: 0.3rem;
	color: var(--osfec-muted);
	font-size: 0.76rem;
	font-weight: 600;
}

.osfec-fact__value {
	display: block;
	font-size: clamp(1.05rem, 1.35vw, 1.28rem);
	font-weight: 700;
	line-height: 1.2;
}

.osfec-attributes {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-top: 1px solid var(--osfec-line);
}

.osfec-attributes__item {
	padding: 0.95rem 0.8rem;
	border-bottom: 1px solid var(--osfec-line);
}

.osfec-attributes__item:not(:nth-child(4n + 1)) {
	border-left: 1px solid var(--osfec-line);
}

.osfec-attributes__label {
	display: block;
	margin-bottom: 0.18rem;
	color: var(--osfec-muted);
	font-size: 0.73rem;
	font-weight: 600;
}

.osfec-attributes__value {
	display: block;
	font-size: 0.92rem;
	font-weight: 700;
}

.osfec-offer__id {
	margin: 1rem 0 0;
	color: var(--osfec-muted);
	font-size: 0.82rem;
}

.osfec-description {
	max-width: 68ch;
	line-height: 1.7;
}

.osfec-description > :first-child {
	margin-top: 0;
}

.osfec-description > :last-child {
	margin-bottom: 0;
}

.osfec-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.osfec-tags__item {
	padding: 0.3rem 0.7rem;
	border: 1px solid var(--osfec-line);
	border-radius: 999px;
	font-size: 0.82rem;
}

/* -------------------------------------------------------------------------
 * Media cards (video, virtual tour)
 * ---------------------------------------------------------------------- */

.osfec-media {
	margin-top: 2.25rem;
}

.osfec-media__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.osfec-media__card {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--osfec-radius-sm);
	background: #111;
	aspect-ratio: 16 / 10;
	text-decoration: none;
}

.osfec-media__card img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

/* The label and the badge sit on the photo, so they stay light in any theme. */
.osfec-media__card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient( 180deg, rgba(0, 0, 0, 0.02) 25%, rgba(0, 0, 0, 0.78) 100% );
	pointer-events: none;
}

.osfec-media__card:hover img,
.osfec-media__card:focus-visible img {
	transform: scale(1.025);
	opacity: 0.92;
}

.osfec-media__card:focus-visible {
	outline: 3px solid var(--osfec-accent);
	outline-offset: 3px;
}

.osfec-media__icon {
	position: absolute;
	top: 1rem;
	left: 1rem;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	height: 48px;
	padding: 0 0.7rem;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.52);
	color: #fff;
	font-size: 0.9rem;
	font-weight: 700;
}

.osfec-media__label {
	position: absolute;
	right: 1rem;
	bottom: 0.95rem;
	left: 1rem;
	z-index: 2;
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
}

.osfec-offer__body {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
	gap: 1.5rem;
	align-items: start;
	padding-block: clamp(2rem, 4vw, 3.25rem);
	border-top: 1px solid var(--osfec-line);
}

.osfec-offer__subtitle {
	margin: 0 0 1.25rem;
	font-size: clamp(1.5rem, 2.25vw, 2.25rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.osfec-offer__sidebar {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 1.5rem);
}

/*
 * Agent card, following the em5 sidebar: a small portrait tile on the left,
 * name, office and role on the right, and bordered contact rows underneath.
 */
.osfec-agent {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	column-gap: 1rem;
	align-items: center;
}

.osfec-agent--no-photo {
	grid-template-columns: minmax(0, 1fr);
}

.osfec-agent__portrait {
	width: 112px;
	height: 142px;
	overflow: hidden;
	border-radius: 10px;
	background: var(--osfec-soft);
}

.osfec-agent__portrait img {
	display: block;
	width: 100%;
	height: 100%;
	/* Esti sends framed photos rather than cut-outs, so they are cropped to
	   the tile with the head kept in view. */
	object-fit: cover;
	object-position: center top;
}

.osfec-agent__info {
	min-width: 0;
}

.osfec-agent__name {
	margin: 0 0 0.15rem;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.2;
}

.osfec-agent__position {
	margin: 0;
	color: var(--osfec-muted);
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.35;
}

.osfec-agent__actions {
	display: grid;
	gap: 0.55rem;
	margin-top: 0.9rem;
}

.osfec-agent__action {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	min-height: 42px;
	padding: 0.72rem 0.85rem;
	border: 1px solid var(--osfec-line);
	border-radius: 10px;
	background: var(--osfec-surface);
	color: var(--osfec-ink);
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
	transition: border-color 0.18s ease, background-color 0.18s ease;
}

.osfec-agent__action:hover,
.osfec-agent__action:focus-visible {
	border-color: var(--osfec-accent);
	background: var(--osfec-soft);
	color: var(--osfec-ink);
	text-decoration: none;
}

.osfec-agent__icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 18px;
	color: var(--osfec-accent);
}

.osfec-agent__icon svg {
	width: 100%;
	height: auto;
	fill: currentColor;
}

.osfec-agent__action-text {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.osfec-offer__back {
	padding-block: 2rem 3rem;
}

@media (max-width: 781px) {
	.osfec-offer__body {
		grid-template-columns: minmax(0, 1fr);
	}

	.osfec-media__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.osfec-offer__sidebar {
		position: static;
	}

	.osfec-agent {
		grid-template-columns: 92px minmax(0, 1fr);
		column-gap: 0.85rem;
	}

	.osfec-agent__portrait {
		width: 92px;
		height: 118px;
	}

	.osfec-agent__action {
		min-height: 40px;
		padding: 0.65rem 0.72rem;
		font-size: 0.82rem;
	}

	.osfec-agent__action-text {
		white-space: normal;
		word-break: break-word;
	}

	.osfec-slider__track {
		height: clamp(240px, 62vw, 420px);
	}

	.osfec-slider__nav {
		width: 2.5rem;
		height: 2.5rem;
		font-size: 1.5rem;
	}

	.osfec-attributes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.osfec-attributes__item:not(:nth-child(4n + 1)) {
		border-left: 0;
	}

	.osfec-attributes__item:nth-child(even) {
		border-left: 1px solid var(--osfec-line);
	}

	.osfec-offer__headline-price {
		text-align: start;
	}
}

@media (max-width: 575px) {
	.osfec-media__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
