/* ranshtam - עיצוב המתנות בחזית */
.rs-gift-badge {
	display: inline-block;
	margin-inline-start: 6px;
	padding: 2px 8px;
	border-radius: 20px;
	background: var(--rs-gift-accent, #B08D4F);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
	white-space: nowrap;
}

.rs-gift-free {
	color: var(--rs-gift-accent, #B08D4F);
	font-weight: 700;
}

.rs-gift-qty {
	display: inline-block;
	min-width: 32px;
	text-align: center;
	font-weight: 600;
}

/* פאנל המתנות בעגלה ובעגלה הצפה */
.rs-gifts-panel {
	margin: 16px 0;
	padding: 14px 16px;
	border: 1px dashed var(--rs-gift-accent, #B08D4F);
	border-radius: 12px;
	background: rgba(255, 255, 255, .6);
}

.rs-gifts-panel__title {
	font-weight: 700;
	margin-bottom: 10px;
	color: var(--rs-gift-accent, #B08D4F);
}

.rs-gifts-panel__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rs-gifts-panel__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 0;
	border-top: 1px solid rgba(0, 0, 0, .06);
}

.rs-gifts-panel__item:first-child {
	border-top: 0;
}

.rs-gifts-panel__media img,
.rs-gift-notice__media img {
	width: 54px;
	height: 54px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

.rs-gift-thumb--empty {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 8px;
	background: rgba(0, 0, 0, .05);
	font-size: 22px;
}

.rs-gifts-panel__text {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.rs-gifts-panel__name {
	font-weight: 600;
}

.rs-gifts-panel__meta {
	font-size: 13px;
	opacity: .8;
}

.rs-gifts-panel__free {
	color: var(--rs-gift-accent, #B08D4F);
	font-weight: 700;
}

.rs-gifts-panel--mini {
	margin: 10px 0;
	padding: 10px;
}

.rs-gifts-panel--mini .rs-gifts-panel__media img,
.rs-gifts-panel--mini .rs-gift-thumb--empty {
	width: 40px;
	height: 40px;
}

/* שורת מתנה בסיכום ההזמנה */
.rs-gift-review-row .rs-gifts-panel__media {
	display: inline-block;
	vertical-align: middle;
	margin-inline-end: 8px;
}

.rs-gift-review-row .rs-gifts-panel__media img,
.rs-gift-review-row .rs-gift-thumb--empty {
	width: 40px;
	height: 40px;
}

/* הודעה בעמוד המוצר */
.rs-gift-notice {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 12px 0;
	padding: 12px 14px;
	border: 1px dashed var(--rs-gift-accent, #B08D4F);
	border-radius: 10px;
	background: rgba(0, 0, 0, .02);
	font-size: 15px;
	line-height: 1.45;
}

.rs-gift-notice__text {
	flex: 1;
}

/* שורת המצב החיה בהודעת עמוד המוצר */
.rs-gift-notice__status {
	display: block;
	margin-top: 0.4vw;
	font-weight: 600;
	font-size: clamp(13px, 1.05vw, 16px);
	color: var(--rs-gift-accent, #B08D4F);
	opacity: .85;
}

.rs-gift-notice.is-earned {
	background: color-mix(in srgb, var(--rs-gift-accent, #B08D4F) 8%, transparent);
	border-style: solid;
}

.rs-gift-notice.is-earned .rs-gift-notice__status {
	opacity: 1;
}

.rs-gift-notice.is-earned .rs-gift-notice__status::before {
	content: "✓ ";
}

/* אבחון למנהלי חנות בלבד */
.rs-gift-debug {
	margin: 1vw 0;
	padding: 0.9vw 1.1vw;
	border: 1px dashed #d63638;
	border-radius: 0.6vw;
	background: rgba(214, 54, 56, .05);
	font-size: clamp(12px, 0.95vw, 15px);
	line-height: 1.5;
	color: #7a2426;
}

.rs-gift-debug ul {
	margin: 0.5vw 0 0;
	padding-inline-start: 1.2vw;
}
