/**
 * Member price presentation: regular price on top, club member price beneath it.
 *
 * The site is Hebrew and RTL. Nothing here sets a direction - the block inherits it, so
 * it stays correct if a page is ever rendered LTR by TranslatePress.
 */

.tmrg-price {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	line-height: 1.25;
}

/* The price they are not paying. Struck through and quiet, matching the grey the theme
   already uses for a superseded price (style.css lines 1264, 1545, 3136, 3224). */
.tmrg-price__regular,
.tmrg-price__regular .woocommerce-Price-amount {
	color: #b7b7b7;
	font-size: 0.75em;
	font-weight: 600;
	text-decoration: line-through;
}

/* The price they are paying. */
.tmrg-price__member {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px;
}

.tmrg-price__member .woocommerce-Price-amount {
	font-weight: 700;
}

.tmrg-price__label {
	font-size: 0.6em;
	font-weight: 600;
	letter-spacing: 0.02em;
	white-space: nowrap;
	padding: 2px 8px;
	border-radius: 999px;
	background: #f2f5f2;
	color: #4a6b4f;
}

/* Product listings are tighter than the single product page. */
.woocommerce ul.products li.product .tmrg-price,
.productPriceWrapper .tmrg-price {
	gap: 1px;
}

.woocommerce ul.products li.product .tmrg-price__label {
	font-size: 0.65em;
	padding: 1px 6px;
}

/* The theme styles `.price del` for the old inline presentation. Our regular price is not
   a <del>, so those rules no longer apply and the margin they added is not inherited.
   Nothing to undo - noted so the next person does not go looking. */

/* ---------------------------------------------------------------------------
   "No double promotions" modal. RTL-safe: no left/right, only logical layout.
   --------------------------------------------------------------------------- */

.tmrg-modal[hidden] {
	display: none;
}

.tmrg-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.tmrg-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, 0.55);
}

.tmrg-modal__panel {
	position: relative;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
	padding: 28px 26px 22px;
	max-width: 420px;
	width: 100%;
	text-align: center;
}

.tmrg-modal__text {
	margin: 0 0 20px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.5;
	color: #222;
}

.tmrg-modal__ok {
	min-width: 120px;
}
