/* Программа лояльности в корзине и на оформлении (loyalty.php). Mobile-first. */

.mc-loyal {
	font-family: 'Jost', system-ui, sans-serif;
	background: var(--mc-pink-box, #FCF4F7);
	border: 1px solid rgba(199, 106, 138, 0.18);
	border-radius: 14px;
	padding: 14px 16px;
	margin: 0 0 16px;
	font-size: 0.95rem;
	line-height: 1.45;
	color: var(--mc-ink, #16161A);
}
.mc-loyal__line { margin: 0 0 8px; }
.mc-loyal__line:last-child { margin-bottom: 0; }
.mc-loyal__line--ok { font-weight: 500; color: var(--mc-pink-deep, #8A3A52); }
.mc-loyal__line small { display: block; font-weight: 400; color: var(--mc-gray, #6B7186); }
.mc-loyal__more { margin: 8px 0 0; font-size: 0.85rem; }
.mc-loyal__more a { color: var(--mc-gray, #6B7186); }

.mc-loyal__gifts { margin: 12px 0 4px; }
.mc-loyal__title { margin: 0 0 8px; font-weight: 600; }
.mc-loyal__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.mc-loyal__gift {
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	padding: 8px; border: 1px solid var(--mc-line, #F0E6EC); border-radius: 12px;
	background: #fff; cursor: pointer; font: inherit; font-size: 0.85rem; line-height: 1.25;
	color: inherit; text-align: center; min-width: 0;
}
.mc-loyal__gift img { width: 100%; max-width: 110px; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 8px; }
.mc-loyal__gift span { overflow-wrap: anywhere; }
.mc-loyal__gift em { font-style: normal; font-weight: 600; color: var(--mc-pink, #C76A8A); }
.mc-loyal__gift:hover { border-color: var(--mc-pink, #C76A8A); }
.mc-loyal__gift.is-chosen { border-color: var(--mc-green, #6FB97F); box-shadow: 0 0 0 2px rgba(111, 185, 127, 0.25); cursor: default; }
.mc-loyal__gift.is-chosen em { color: var(--mc-green, #6FB97F); }
.mc-loyal__nogift {
	grid-column: 1 / -1; justify-self: start; padding: 6px 0; border: 0; background: none;
	font: inherit; font-size: 0.85rem; color: var(--mc-gray, #6B7186); text-decoration: underline; cursor: pointer;
}

@media (min-width: 640px) {
	.mc-loyal__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
