/* Journal UFE - isolated discount styles */
.ufe-discount {
	align-items: center;
	box-sizing: border-box;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 7px;
	line-height: 1.35;
	margin: 8px 0;
	max-width: 100%;
	vertical-align: middle;
	width: auto;
}
.ufe-discount-icon {
	align-items: center;
	display: inline-flex;
	justify-content: center;
}
.ufe-discount-label,
.ufe-discount-parts,
.ufe-discount-prices {
	align-items: center;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
}
.ufe-discount-value,
.ufe-discount-save-value {
	font-weight: 800;
}
.ufe-discount-percent,
.ufe-discount-save,
.ufe-discount-new {
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	padding: 4px 8px;
}
.ufe-discount-old {
	color: #7b7b85;
	text-decoration: line-through;
}
.ufe-discount-new {
	background: #1d9e75;
	color: #fff;
}
.ufe-discount-style-solid_badge {
	background: #e24b4a;
	border-radius: 6px;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	padding: 7px 11px;
}
.ufe-discount-style-solid_badge .ufe-discount-percent,
.ufe-discount-style-solid_badge .ufe-discount-save {
	background: rgba(255,255,255,.16);
	color: #fff;
}
.ufe-discount-style-soft_pill {
	background: #fcebeb;
	border: 1px solid #f09595;
	border-radius: 999px;
	color: #a32d2d;
	font-size: 12px;
	font-weight: 800;
	padding: 7px 13px;
}
.ufe-discount-style-soft_pill .ufe-discount-percent,
.ufe-discount-style-soft_pill .ufe-discount-save {
	background: #fff;
	color: #e24b4a;
}
.ufe-discount-style-saving_card {
	align-items: flex-start;
	background: #fff;
	border: 1px solid #d3d1c7;
	border-radius: 10px;
	box-shadow: 0 8px 20px rgba(26,26,46,.08);
	color: #1a1a2e;
	flex-direction: column;
	font-size: 13px;
	padding: 11px 14px;
}
.ufe-discount-style-saving_card .ufe-discount-icon {
	background: #e1f5ee;
	border-radius: 8px;
	color: #0f6e56;
	height: 28px;
	width: 28px;
}
.ufe-discount-style-saving_card .ufe-discount-percent,
.ufe-discount-style-saving_card .ufe-discount-save {
	background: #e1f5ee;
	color: #0f6e56;
}
.ufe-discount-style-price_line {
	background: transparent;
	border-bottom: 1px solid #d3d1c7;
	color: #444441;
	font-size: 13px;
	padding: 4px 0 7px;
}
.ufe-discount-style-price_line .ufe-discount-icon {
	color: #ef9f27;
}
.ufe-discount-style-price_line .ufe-discount-percent,
.ufe-discount-style-price_line .ufe-discount-save {
	background: transparent;
	color: #d85a30;
	padding: 0;
}
.ufe-discount-style-ribbon {
	background: linear-gradient(135deg,#ef9f27,#e24b4a);
	border-radius: 4px;
	color: #fff;
	font-size: 12px;
	font-weight: 900;
	padding: 7px 13px;
	position: relative;
}
.ufe-discount-style-ribbon:after {
	border-bottom: 8px solid transparent;
	border-top: 8px solid transparent;
	content: "";
	position: absolute;
	right: -8px;
	top: 50%;
	transform: translateY(-50%);
	border-left: 8px solid #e24b4a;
}
html[dir="rtl"] .ufe-discount-style-ribbon:after,
body[dir="rtl"] .ufe-discount-style-ribbon:after {
	border-left: 0;
	border-right: 8px solid #e24b4a;
	left: -8px;
	right: auto;
}
.ufe-discount-style-ribbon .ufe-discount-percent,
.ufe-discount-style-ribbon .ufe-discount-save {
	background: rgba(255,255,255,.18);
	color: #fff;
}
.ufe-discount-style-dark_deal {
	background: #1a1a2e;
	border: 1px solid #3a3a5c;
	border-radius: 10px;
	color: #f7f2df;
	font-size: 12px;
	font-weight: 800;
	padding: 8px 13px;
}
.ufe-discount-style-dark_deal .ufe-discount-icon,
.ufe-discount-style-dark_deal .ufe-discount-value,
.ufe-discount-style-dark_deal .ufe-discount-save-value {
	color: #fac775;
}
.ufe-discount-style-dark_deal .ufe-discount-percent,
.ufe-discount-style-dark_deal .ufe-discount-save {
	background: rgba(250,199,117,.14);
	color: #fac775;
}
.ufe-discount-surface-grid {
	font-size: 11px;
	line-height: 1.25;
	margin: 5px 0;
	max-width: 100%;
	position: relative;
	z-index: 32;
}
.ufe-image-item .ufe-discount-surface-grid,
.ufe-image-slot .ufe-discount-surface-grid {
	margin: 0;
}
.ufe-discount-style-grid_pill {
	background: #fcebeb;
	border: 1px solid #f09595;
	border-radius: 999px;
	color: #a32d2d;
	font-weight: 800;
	padding: 5px 10px;
}
.ufe-discount-style-grid_pill .ufe-discount-icon {
	color: #e24b4a;
}
.ufe-discount-style-grid_badge {
	background: #e24b4a;
	border-radius: 5px;
	box-shadow: 0 5px 14px rgba(226,75,74,.22);
	color: #fff;
	font-weight: 900;
	padding: 5px 9px;
}
.ufe-discount-style-grid_badge .ufe-discount-value,
.ufe-discount-style-grid_badge .ufe-discount-save-value {
	color: #fff;
}
.ufe-discount-style-grid_strip {
	background: linear-gradient(90deg,#e24b4a,#ef9f27);
	border-radius: 4px;
	color: #fff;
	font-weight: 900;
	justify-content: center;
	padding: 6px 10px;
	text-align: center;
	width: 100%;
}
.ufe-discount-style-grid_strip .ufe-discount-label {
	justify-content: center;
}
.ufe-discount-style-grid_minimal {
	background: transparent;
	border-bottom: 1px solid #f09595;
	color: #a32d2d;
	font-weight: 800;
	padding: 2px 0 4px;
}
.ufe-discount-style-grid_minimal .ufe-discount-icon {
	color: #ef9f27;
}

/* v1.1.0: never clip badge text below name/price (wrap instead). */
html body .ufe-discount-surface-grid,
html body .ufe-discount-surface-grid .ufe-discount-label {
  max-width: 100%;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  word-break: break-word;
}
html body .ufe-discount-surface-grid .ufe-discount-label {
  display: inline;
}

