.hagor-pa-addons {
	margin: 1.25rem 0;
	padding: 0;
	border: none;
	background: transparent;
	unicode-bidi: isolate;
}

.hagor-pa--rtl {
	text-align: start;
}

.hagor-pa-title {
	margin: 0 0 0.75rem;
	padding: 0 2px;
	font-size: 1.05em;
	text-align: start;
	color: inherit;
}

.hagor-pa-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.hagor-pa-item {
	margin: 0;
	list-style: none;
}

/* דסקטופ: צ'קבוקס → תמונה → שם → מחיר */
.hagor-pa-label {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.85rem;
	width: 100%;
	margin: 0;
	padding: 0.85rem 1rem;
	box-sizing: border-box;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	text-align: start;
}

.hagor-pa-label:hover {
	border-color: rgba(0, 0, 0, 0.18);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.hagor-pa-cb {
	flex-shrink: 0;
	width: 1.15rem;
	height: 1.15rem;
	min-width: 1.15rem;
	min-height: 1.15rem;
	margin: 0;
	accent-color: currentColor;
	align-self: center;
}

.hagor-pa-thumb {
	flex-shrink: 0;
	line-height: 0;
	border-radius: 8px;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.04);
	align-self: center;
}

.hagor-pa-thumb img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
}

.hagor-pa-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	align-self: center;
	gap: 0.35rem;
}

.hagor-pa-name {
	font-size: 1em;
	line-height: 1.45;
	font-weight: 600;
	word-break: normal;
	overflow-wrap: break-word;
	unicode-bidi: isolate;
}

.hagor-pa-badge {
	flex-shrink: 0;
	align-self: center;
	font-size: 0.95em;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	direction: ltr;
	unicode-bidi: isolate;
	text-align: start;
	padding: 0;
	background: transparent;
	border-radius: 0;
}

.hagor-pa-badge--has-regular {
	white-space: normal;
}

.hagor-pa-badge-prices {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: wrap;
	flex-direction: row;
	gap: 0.35em 0.5em;
	direction: ltr;
	unicode-bidi: isolate;
	isolation: isolate;
	flex-direction: row-reverse;
}

/* רגיל תמיד לפני מחיר התוספת (מונע היפוך ויזואלי ב־RTL) */
.hagor-pa-badge-prices .hagor-pa-price-regular {
	order: 1;
}

.hagor-pa-badge-prices .hagor-pa-badge-inner {
	order: 2;
}

.hagor-pa-price-regular {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	opacity: 0.55;
	-webkit-text-decoration: line-through;
	text-decoration: line-through;
	text-decoration-thickness: 1px;
	text-decoration-skip-ink: none;
	font-weight: 500;
	color: inherit;
}

.hagor-pa-price-regular-inner {
	direction: ltr;
	unicode-bidi: isolate;
	display: inline-block;
}

.hagor-pa-price-regular .woocommerce-Price-amount,
.hagor-pa-price-regular .woocommerce-Price-currencySymbol {
	unicode-bidi: isolate;
	direction: ltr;
}

.hagor-pa-badge-inner {
	direction: ltr;
	unicode-bidi: isolate;
	display: inline-block;
}

.hagor-pa-badge-inner .woocommerce-Price-amount,
.hagor-pa-badge-inner .woocommerce-Price-currencySymbol {
	unicode-bidi: isolate;
	direction: ltr;
}

.hagor-pa-link {
	display: inline-block;
	align-self: flex-start;
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.4;
	text-decoration: underline;
	text-underline-offset: 2px;
	opacity: 0.9;
}

.hagor-pa-link:hover {
	opacity: 1;
}

.hagor-pa-total {
	margin: 1rem 0 0;
	padding: 0.75rem 1rem 0;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	text-align: start;
	direction: inherit;
	font-size: 1em;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25em 0.35em;
}

.hagor-pa-total .hagor-pa-total-amount {
	direction: ltr;
	unicode-bidi: isolate;
	display: inline-block;
	text-align: left;
	font-weight: 600;
}

/* ——— נייד / טאבלט קטן ——— */
@media (max-width: 640px) {
	.hagor-pa-addons {
		margin-inline: 0;
	}

	.hagor-pa-title {
		font-size: 1rem;
		margin-bottom: 0.6rem;
	}

	.hagor-pa-list {
		gap: 0.5rem;
	}

	.hagor-pa-label {
		display: grid;
		align-items: start;
		column-gap: 0.65rem;
		row-gap: 0.45rem;
		padding: 0.75rem 0.85rem;
		cursor: pointer;
	}

	/* עם תמונה: עמודות [צ'קבוקס] [תמונה] [תוכן] */
	.hagor-pa-label:has(.hagor-pa-thumb) {
		grid-template-columns: auto 64px minmax(0, 1fr);
		grid-template-rows: auto auto;
	}

	.hagor-pa-label:has(.hagor-pa-thumb) .hagor-pa-cb {
		grid-column: 1;
		grid-row: 1;
		align-self: start;
		margin-top: 2px;
	}

	.hagor-pa-label:has(.hagor-pa-thumb) .hagor-pa-thumb {
		grid-column: 2;
		grid-row: 1 / -1;
		align-self: start;
	}

	.hagor-pa-label:has(.hagor-pa-thumb) .hagor-pa-thumb img {
		width: 64px;
		height: 64px;
	}

	.hagor-pa-label:has(.hagor-pa-thumb) .hagor-pa-body {
		grid-column: 3;
		grid-row: 1;
		align-self: start;
		min-width: 0;
	}

	.hagor-pa-label:has(.hagor-pa-thumb) .hagor-pa-badge {
		grid-column: 3;
		grid-row: 2;
		justify-self: start;
		align-self: start;
		margin: 0;
		white-space: normal;
		max-width: 100%;
	}

	/* בלי תמונה */
	.hagor-pa-label:not(:has(.hagor-pa-thumb)) {
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-rows: auto auto;
	}

	.hagor-pa-label:not(:has(.hagor-pa-thumb)) .hagor-pa-cb {
		grid-column: 1;
		grid-row: 1;
		align-self: start;
		margin-top: 2px;
	}

	.hagor-pa-label:not(:has(.hagor-pa-thumb)) .hagor-pa-body {
		grid-column: 2;
		grid-row: 1;
		min-width: 0;
	}

	.hagor-pa-label:not(:has(.hagor-pa-thumb)) .hagor-pa-badge {
		grid-column: 2;
		grid-row: 2;
		justify-self: start;
		margin: 0;
	}

	.hagor-pa-name {
		font-size: 0.95rem;
		line-height: 1.4;
	}

	.hagor-pa-badge {
		font-size: 0.9em;
	}

	.hagor-pa-total {
		padding-left: 0;
		padding-right: 0;
		font-size: 0.95rem;
	}
}
