/* „Цяла ролка“ / „По размер“ (477) — плочките като количествените (475), но в зелено:
   преливка от светло листно към тъмнозелено, 15 → 25 % (той, 29 окт.). Избраната — рамка. */

html body.sp-produkt .sp-rr {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
}

/* Отстоянията в блока за купуване: 430 нулира полетата на всичко в него (.sp-p-kupuvane > *),
   а там, където блокът не е flex с gap, всичко опира едно в друго — затова тук изрично. */
html body.sp-produkt .sp-p-kupuvane > .sp-rr {
	margin-bottom: 20px !important;
}

html body.sp-produkt .sp-p-kupuvane > .sp-rr__podskazka {
	margin-top: 14px !important;
}

html body.sp-produkt .sp-rr__belezhka {
	margin-top: 4px;
}

/* Калкулаторът в своята форма (на страницата на ролката) — на цялата ширина, като на продукта по размер. */
html body.sp-produkt form.cart.sp-rr-forma.ssc-active-product-form {
	display: block !important;
	width: 100%;
}

html body.sp-produkt form.cart.sp-rr-forma > .ssc-calculator {
	width: 100%;
	box-sizing: border-box;
}

html body.sp-produkt .sp-rr__zaglavie {
	color: var(--sp-grafit, #3D4248);
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
}

html body.sp-produkt .sp-rr__plochki {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

html body.sp-produkt .sp-rr__p {
	min-height: 80px;
	box-sizing: border-box;
	margin: 0 !important;
	padding: 10px 14px !important;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 4px 12px;
	align-content: center;
	border: 2px solid transparent !important;
	border-radius: 8px !important;
	color: #16181B !important;
	font-family: var(--sp-shrift);
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none !important;
	cursor: pointer;
}

html body.sp-produkt .sp-rr__p--rolka {
	background: linear-gradient(90deg, #EEF5E2, #DDEAD9) !important;
}

html body.sp-produkt .sp-rr__p--razmer {
	background: linear-gradient(90deg, #DDEAD9, #C7DAD0) !important;
}

html body.sp-produkt .sp-rr__p[aria-pressed="true"] {
	border-color: #1F6B44 !important;
}

html body.sp-produkt .sp-rr__p:focus-visible {
	outline: 2px solid var(--sp-marka, #003F7A);
	outline-offset: 2px;
}

html body.sp-produkt .sp-rr__ime,
html body.sp-produkt .sp-rr__cena {
	font-size: 18px;
	line-height: 24px;
	font-weight: 700;
}

html body.sp-produkt .sp-rr__p[aria-pressed="true"] .sp-rr__ime {
	color: #1F6B44;
}

html body.sp-produkt .sp-rr__cena {
	white-space: nowrap;
}

html body.sp-produkt .sp-rr__cena small {
	color: #3D4248;
	font-size: 15px;
	font-weight: 500;
}

html body.sp-produkt .sp-rr__pod {
	grid-column: 1 / -1;
	color: #3D4248;
	font-size: 14px;
	line-height: 20px;
	font-weight: 400;
}

/* Бележката (само при „Цяла ролка“) и подсказките под бутона. */
html body.sp-produkt .sp-rr__belezhka,
html body.sp-produkt .sp-rr__podskazka {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	color: #3D4248;
	font-size: 14px;
	line-height: 20px;
}

html body.sp-produkt .sp-rr__podskazka {
	display: block;
}

html body.sp-produkt .sp-rr__podskazka:has(.sp-rr__ik) {
	display: flex;
}

html body.sp-produkt .sp-rr__belezhka b {
	color: #16181B;
}

html body.sp-produkt .sp-rr__ik {
	flex-shrink: 0;
	margin-top: 1px;
	fill: none;
	stroke: #1F6B44;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

html body.sp-produkt .sp-rr__vrazka {
	display: inline;
	min-height: 0;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	color: var(--sp-marka, #003F7A) !important;
	font: inherit;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-transform: none;
	box-shadow: none !important;
	cursor: pointer;
}

/* Цената за кг под цената на ролката. */
html body.sp-produkt .sp-rr-kg {
	margin: 4px 0 0;
	color: #3D4248;
	font-size: 15px;
	line-height: 22px;
}

html body.sp-produkt .sp-rr-kg b {
	color: #16181B;
}

/* Скритото от избора. Формите имат display: grid !important от 430 — затова по-силно. */
html body.sp-produkt form.cart.cart.cart.cart[data-sp-rr-za][hidden],
html body.sp-produkt [data-sp-rr-za][hidden] {
	display: none !important;
}

/* Лентата долу на телефона води към родния бутон (430). */
html body.sp-rr-drugo .sp-p-lenta {
	display: none !important;
}

@media (max-width: 1023px) {
	html body.sp-produkt .sp-rr__plochki {
		gap: 8px;
	}

	html body.sp-produkt .sp-rr__p {
		min-height: 96px;
		padding: 10px 12px !important;
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}

	html body.sp-produkt .sp-rr__ime,
	html body.sp-produkt .sp-rr__cena {
		font-size: 16px;
		line-height: 22px;
	}

	html body.sp-produkt .sp-rr__pod {
		font-size: 13px;
		line-height: 18px;
	}

	html body.sp-produkt .sp-rr__belezhka,
	html body.sp-produkt .sp-rr__podskazka {
		font-size: 13px;
		line-height: 19px;
	}
}
