.ll-related-offers {
	box-sizing: border-box;
	margin-block: clamp(30px, 5vw, 54px);
	padding: clamp(20px, 3vw, 30px);
	border: 1px solid rgb(88 76 166 / 18%);
	border-radius: 20px;
	background:
		radial-gradient(circle at 100% 0, rgb(248 200 12 / 14%), transparent 28%),
		linear-gradient(145deg, #f8f7ff, #fff 62%);
	box-shadow: 0 14px 38px rgb(25 40 71 / 8%);
}

.ll-related-offers__heading {
	display: flex;
	align-items: start;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 18px;
}

.ll-related-offers__heading-actions {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

.ll-related-offers__city-setting {
	display: flex;
	align-items: center;
	gap: 4px;
	color: var(--muted, #5f6777);
	font-size: 12px;
	line-height: 1.3;
}

.ll-related-offers__city-setting > span {
	font-weight: 700;
}

.ll-related-offers__city-setting button {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--brand, #584ca6);
	cursor: pointer;
	font: inherit;
	font-weight: 850;
	text-decoration: underline;
	text-decoration-style: dotted;
	text-underline-offset: 3px;
}

.ll-related-offers__city-setting button:hover,
.ll-related-offers__city-setting button:focus-visible {
	color: var(--brand-dark, #243762);
	text-decoration-style: solid;
}

.ll-related-offers__city-setting button:focus-visible {
	border-radius: 3px;
	outline: 2px solid rgb(88 76 166 / 35%);
	outline-offset: 3px;
}

.ll-related-offers__city-dialog {
	box-sizing: border-box;
	width: min(520px, calc(100% - 32px));
	max-height: min(720px, calc(100vh - 32px));
	padding: 0;
	overflow: auto;
	border: 1px solid rgb(88 76 166 / 24%);
	border-radius: 18px;
	background: #fff;
	color: var(--ink, #192847);
	box-shadow: 0 24px 70px rgb(20 28 55 / 28%);
}

.ll-related-offers__city-dialog::backdrop {
	background: rgb(20 28 55 / 55%);
	backdrop-filter: blur(2px);
}

.ll-related-offers__city-dialog-inner {
	position: relative;
	padding: 24px;
}

.ll-related-offers__city-dialog-close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: grid;
	width: 34px;
	height: 34px;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: #f0f1f6;
	color: var(--ink, #192847);
	cursor: pointer;
	font-size: 23px;
	line-height: 1;
}

.ll-related-offers__city-dialog h3,
.entry-content .ll-related-offers__city-dialog h3 {
	margin: 0 42px 6px 0;
	font-size: 22px;
	line-height: 1.2;
}

.ll-related-offers__city-dialog-inner > p,
.entry-content .ll-related-offers__city-dialog-inner > p {
	margin: 0 42px 20px 0;
	color: var(--muted, #5f6777);
	font-size: 13px;
	line-height: 1.45;
}

.ll-related-offers__city-modal-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.ll-related-offers__city-modal-form label {
	display: grid;
	gap: 6px;
}

.ll-related-offers__city-modal-form label > span {
	font-size: 12px;
	font-weight: 800;
}

.ll-related-offers__city-modal-form select {
	box-sizing: border-box;
	width: 100%;
	min-height: 42px;
	padding: 7px 34px 7px 10px;
	border: 1px solid #cfd4e0;
	border-radius: 10px;
	background-color: #fff;
	color: var(--ink, #192847);
	font: inherit;
	font-size: 13px;
}

.ll-related-offers__city-modal-form select:focus {
	border-color: var(--brand, #584ca6);
	outline: 2px solid rgb(88 76 166 / 16%);
	outline-offset: 1px;
}

.ll-related-offers__city-modal-actions {
	display: flex;
	grid-column: 1 / -1;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 4px;
}

.ll-related-offers__city-modal-actions button {
	min-height: 38px;
	padding: 7px 13px;
	border: 1px solid #d4d8e3;
	border-radius: 9px;
	background: #fff;
	color: var(--ink, #192847);
	cursor: pointer;
	font: inherit;
	font-size: 12px;
	font-weight: 800;
}

.ll-related-offers__city-modal-actions .ll-related-offers__city-save {
	border-color: var(--brand, #584ca6);
	background: var(--brand, #584ca6);
	color: #fff;
}

.ll-related-offers__city-modal-actions .ll-related-offers__city-clear {
	margin-right: auto;
	border-color: transparent;
	color: #8b3344;
}

.ll-related-offers__location-notice,
.entry-content .ll-related-offers__location-notice {
	margin: -5px 0 15px;
	padding: 8px 11px;
	border-left: 3px solid rgb(88 76 166 / 38%);
	border-radius: 0 8px 8px 0;
	background: rgb(88 76 166 / 6%);
	color: var(--muted, #5f6777);
	font-size: 12px;
	line-height: 1.4;
}

.ll-related-offers__eyebrow,
.entry-content .ll-related-offers__eyebrow {
	margin: 0 0 4px;
	color: var(--brand, #584ca6);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.ll-related-offers__heading h2,
.entry-content .ll-related-offers__heading h2 {
	margin: 0;
	font-size: clamp(22px, 3vw, 30px);
	line-height: 1.15;
}

.ll-related-offers__all {
	position: relative;
	z-index: 3;
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
}

.ll-related-offers__grid {
	--ll-related-card-basis: 100%;

	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	width: 100%;
}

.ll-related-offers__grid--columns-2 { --ll-related-card-basis: 50%; }
.ll-related-offers__grid--columns-3 { --ll-related-card-basis: 33.3333%; }
.ll-related-offers__grid--columns-4 { --ll-related-card-basis: 25%; }
.ll-related-offers__grid--columns-5 { --ll-related-card-basis: 20%; }
.ll-related-offers__grid--columns-6 { --ll-related-card-basis: 16.6667%; }

.ll-related-offers__empty {
	padding: 18px;
	border: 1px dashed #a9adbb;
	border-radius: 10px;
	color: #5f6777;
	text-align: center;
}

.ll-related-offers__grid > .ll-related-card {
	flex: 1 1 calc(var(--ll-related-card-basis) - 14px);
	min-width: 168px;
}

.ll-related-card {
	position: relative;
	display: grid;
	box-sizing: border-box;
	grid-template-columns: 46px minmax(0, 1fr);
	align-items: start;
	gap: 11px;
	min-height: 132px;
	padding: 13px;
	overflow: hidden;
	border: 1px solid #dfe3ec;
	border-radius: 15px;
	background: rgb(255 255 255 / 92%);
	box-shadow: 0 5px 16px rgb(25 40 71 / 5%);
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ll-related-card:hover {
	border-color: rgb(88 76 166 / 42%);
	box-shadow: 0 9px 22px rgb(25 40 71 / 10%);
	transform: translateY(-1px);
}

.ll-related-card--promoted {
	border-color: rgb(88 76 166 / 44%);
	background: linear-gradient(145deg, #fff, #f8f6ff);
	box-shadow: inset 0 3px 0 rgb(88 76 166 / 78%), 0 7px 20px rgb(65 52 145 / 8%);
}

.ll-related-card__media {
	display: grid;
	width: 46px;
	height: 46px;
	place-items: center;
	overflow: hidden;
	border: 1px solid rgb(36 55 98 / 10%);
	border-radius: 12px;
	background: #f0f3f8;
	text-decoration: none;
}

.ll-related-card__media img {
	width: 100%;
	height: 100%;
	padding: 4px;
	object-fit: contain;
}

.ll-related-card__media > span {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	background: var(--brand-dark, #243762);
	color: #fff;
	font-size: 19px;
	font-weight: 900;
}

.ll-related-card__body {
	display: flex;
	min-width: 0;
	min-height: 106px;
	flex-direction: column;
}

.ll-related-card__labels {
	display: flex;
	min-width: 0;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 5px;
	font-size: 8px;
	font-weight: 900;
	letter-spacing: .045em;
	line-height: 1;
	text-transform: uppercase;
}

.ll-related-card__labels span {
	padding: 4px 5px;
	border-radius: 999px;
	background: #efeff8;
	color: #4f5870;
}

.ll-related-card__labels .ll-related-card__promotion {
	background: var(--accent-soft, #fff3c4);
	color: #684900;
}

.ll-related-card h3,
.entry-content .ll-related-card h3 {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: var(--ink, #192847);
	font-size: 16px;
	line-height: 1.2;
	overflow-wrap: anywhere;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.ll-related-card h3 a {
	color: inherit;
	text-decoration: none;
}

.ll-related-card h3 a:hover,
.ll-related-card h3 a:focus-visible {
	color: var(--brand, #584ca6);
}

.ll-related-card__context,
.entry-content .ll-related-card__context {
	margin: 5px 0 0;
	overflow: hidden;
	color: var(--muted, #5f6777);
	font-size: 11px;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ll-related-card__actions {
	margin-top: auto;
	padding-top: 9px;
}

.ll-related-card__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--brand-dark, #243762);
	font-size: 11px;
	font-weight: 850;
	line-height: 1.2;
	text-decoration: none;
}

.ll-related-card__link:hover,
.ll-related-card__link:focus-visible {
	color: var(--brand, #584ca6);
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 900px) {
	.ll-related-offers__grid > .ll-related-card { min-width: 220px; }
}

@media (max-width: 620px) {
	.ll-related-offers { padding: 18px 15px; border-radius: 17px; }
	.ll-related-offers__heading { align-items: start; flex-direction: column; }
	.ll-related-offers__heading-actions { width: 100%; align-items: flex-start; }
	.ll-related-offers__city-dialog-inner { padding: 21px 17px 17px; }
	.ll-related-offers__city-modal-form { grid-template-columns: 1fr; gap: 13px; }
	.ll-related-offers__city-modal-actions { flex-wrap: wrap; }
	.ll-related-offers__city-modal-actions .ll-related-offers__city-clear {
		width: 100%;
		margin-right: 0;
	}
	.ll-related-offers__grid > .ll-related-card {
		flex-basis: 100%;
		min-width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ll-related-card { transition: none; }
}

@media print {
	.ll-related-offers { break-inside: avoid; box-shadow: none; }
	.ll-related-offers__city-setting,
	.ll-related-offers__city-dialog { display: none; }
	.ll-related-offers__all { color: #000; }
	.ll-related-card { break-inside: avoid; box-shadow: none; }
}
