/*
 * "Hit týždňa" (assets/js/weekly-deal.js, includes/theme/inc/weekly-deal.php):
 *   - the sticker icon in front of the label (.wdeal-icon, used everywhere),
 *   - the row in the phone buy box, under the accessories; it reuses .service from the product
 *     page styles, here only the red accent of the deal,
 *   - the strip above the totals of the add-to-cart popup (.wdeal-atc; the button is .atc__add
 *     from added-to-cart.css).
 * Side cart card: minicart.css, homepage box: pages/hlavna-stranka.css.
 */

.wdeal-icon {
	display: inline-block;
	flex: none;
	width: 1.3em;
	height: 1.3em;
	margin-right: 0.3em;
	vertical-align: -0.3em;
	transform: rotate(-12deg);
}
.wdeal-pdp {
	--wdeal: #e8352b;
	--wdeal-soft: #fff1ef;
	margin-top: 8px;
}

.amtc-npp .wdeal-pdp .wdeal-pdp__row {
	border-color: rgba(232, 53, 43, 0.45);
	background: var(--wdeal-soft);
}

.amtc-npp .wdeal-pdp .wdeal-pdp__row.on {
	border-color: var(--wdeal);
}

.amtc-npp .wdeal-pdp .wdeal-pdp__row.on .cb {
	border-color: var(--wdeal);
	background: var(--wdeal);
}

.wdeal-pdp__img {
	position: relative;
	flex: 0 0 44px;
}

.wdeal-pdp__img img {
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 6px;
	background: #fff;
	object-fit: contain;
}

.wdeal-pdp__pct {
	position: absolute;
	bottom: -6px;
	left: -6px;
	padding: 0 4px;
	border-radius: 4px;
	background: var(--wdeal);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	line-height: 16px;
	white-space: nowrap;
}

.wdeal-pdp__tag {
	display: block;
	color: var(--wdeal);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.wdeal-pdp__left {
	letter-spacing: 0;
	text-transform: none;
	font-variant-numeric: tabular-nums;
}

.amtc-npp .wdeal-pdp .wdeal-pdp__price {
	color: var(--wdeal);
}

/* ------------------------------------------------------------ popup „Produkt bol pridaný“ */
.wdeal-atc {
	--wdeal: #e8352b;
	--wdeal-dark: #b8231b;
	--wdeal-soft: #fff1ef;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 20px;
	border-top: 1px solid rgba(232, 53, 43, 0.25);
	background: var(--wdeal-soft);
	font-size: 13px;
	line-height: 1.3;
}

.wdeal-atc__img {
	position: relative;
	flex: 0 0 48px;
}

.wdeal-atc__img img {
	display: block;
	width: 48px;
	height: 48px;
	border-radius: 8px;
	background: #fff;
	object-fit: contain;
}

.wdeal-atc__pct {
	position: absolute;
	bottom: -6px;
	left: -6px;
	padding: 0 4px;
	border-radius: 4px;
	background: var(--wdeal);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	line-height: 16px;
	white-space: nowrap;
}

.wdeal-atc__txt {
	flex: 1;
	min-width: 0;
}

.wdeal-atc__tag {
	display: block;
	color: var(--wdeal);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	white-space: nowrap;
}

.wdeal-atc__left {
	color: var(--wdeal-dark);
	letter-spacing: 0;
	text-transform: none;
	font-variant-numeric: tabular-nums;
}

.wdeal-atc__name {
	display: block;
	overflow: hidden;
	color: inherit;
	font-weight: 700;
	white-space: nowrap;
	text-overflow: ellipsis;
	text-decoration: none;
}

.wdeal-atc__name:hover {
	text-decoration: underline;
}

.wdeal-atc__note {
	display: block;
	overflow: hidden;
	color: var(--nd-c-muted, #6b6b6b);
	font-size: 12px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.wdeal-atc__prices {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	white-space: nowrap;
}

.wdeal-atc__prices b {
	color: var(--wdeal);
	font-size: 16px;
	font-weight: 800;
}

.wdeal-atc__prices del {
	color: var(--nd-c-muted, #6b6b6b);
	font-size: 12px;
}

.atc .wdeal-atc__add:not(.is-done) {
	border-color: var(--wdeal);
	background: var(--wdeal);
	color: #fff;
}

.atc .wdeal-atc__add:not(.is-done):hover {
	border-color: var(--wdeal-dark);
	background: var(--wdeal-dark);
}

@media (max-width: 520px) {
	.wdeal-atc {
		flex-wrap: wrap;
		gap: 8px 10px;
		padding: 8px 14px;
	}

	.wdeal-atc__txt {
		flex-basis: calc(100% - 140px);
	}

	.wdeal-atc__add {
		justify-content: center;
		width: 100%;
	}
}
