/* OC Monthly Price */
.ocmp[hidden],
.ocmp-fallback[hidden] {
	display: none !important;
}

.summary .price:has(+ .ocmp:not([hidden])),
.entry-summary .price:has(+ .ocmp:not([hidden])) {
	display: inline-block;
	vertical-align: middle;
	margin-bottom: 0;
}

.ocmp {
	display: inline-flex;
	align-items: stretch;
	gap: 14px;
	vertical-align: middle;
	margin: 0 14px 28px 0;
	color: #212121;
	font-size: 15px;
	line-height: 1.45;
	text-align: start;
}

/* Vertical rule with the word "או" sitting on it. */
.ocmp__or {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	flex: 0 0 auto;
	min-width: 18px;
}

.ocmp__or::before,
.ocmp__or::after {
	content: "";
	flex: 1 1 auto;
	width: 1px;
	min-height: 8px;
	background: currentColor;
	opacity: .55;
}

.ocmp__or > span {
	font-size: 14px;
	line-height: 1;
}

.ocmp__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
}

.ocmp__amount,
.ocmp__amount .amount {
	font-weight: 700;
}

.ocmp__note {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	font-size: 14px;
}

.ocmp .ocmp__help {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 17px;
	height: 17px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50% !important;
	background: #6b6b6b;
	color: #fff;
	font-family: inherit;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	box-shadow: none;
	cursor: pointer;
}

.ocmp__help:focus-visible {
	outline: 2px solid #212121;
	outline-offset: 2px;
}

.ocmp__tip {
	position: absolute;
	bottom: calc(100% + 8px);
	/* Anchored to the button's left edge and opening rightwards, so it never runs off the
	   left side of a narrow screen (the box sits on the left in RTL). */
	left: -6px;
	right: auto;
	z-index: 20;
	width: max-content;
	max-width: min(260px, calc(100vw - 40px));
	padding: 8px 10px;
	border-radius: 4px;
	background: #212121;
	color: #fff;
	font-size: 12.5px;
	font-weight: 400;
	line-height: 1.45;
	text-align: start;
	white-space: normal;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .15s ease;
}

.ocmp__help:hover .ocmp__tip,
.ocmp__help:focus-visible .ocmp__tip,
.ocmp__help[aria-expanded="true"] .ocmp__tip {
	opacity: 1;
	visibility: visible;
}

/* Shop / category cards */
.ocmp-loop {
	display: block;
	margin-top: 2px;
	font-size: .85em;
	font-weight: 400;
	opacity: .8;
}

.ocmp-loop .amount {
	font-weight: 600;
}
