/**
 * Keminyan Gematria Donations - front-end styles.
 *
 * These are the design defaults. Every value here is overridable from the
 * Elementor style tab, so nothing is marked !important.
 */

.kgd-widget {
	--kgd-ink: #211449;
	--kgd-gold: #dfa54c;
	--kgd-on-ink: #ffffff;
	--kgd-muted: rgba(255, 255, 255, .72);
	--kgd-surface: #ffffff;
	--kgd-line: rgba(33, 20, 73, .16);
	--kgd-danger: #c0392b;
	--kgd-radius: 18px;

	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	width: 100%;
	max-width: 620px;
	margin-inline: auto;
	box-sizing: border-box;
	direction: rtl;
	text-align: center;
}

.kgd-widget *,
.kgd-widget *::before,
.kgd-widget *::after {
	box-sizing: border-box;
}

/* ---------------------------------------------------------------- Intro -- */

.kgd-intro {
	width: 100%;
	margin: 0;
	color: var(--kgd-ink);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.5;
}

/* ---------------------------------------------------------------- Field -- */

.kgd-field {
	position: relative;
	width: 100%;
}

.kgd-input {
	width: 100%;
	height: 58px;
	padding: 0 22px;
	border: 0;
	border-radius: var(--kgd-radius);
	background-color: var(--kgd-ink);
	color: var(--kgd-on-ink);
	font-family: inherit;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
	text-align: right;
	outline: none;
	appearance: none;
	transition: box-shadow .2s ease, background-color .2s ease;
}

.kgd-input::placeholder {
	color: var(--kgd-muted);
	opacity: 1;
}

.kgd-input:focus {
	box-shadow: 0 0 0 3px rgba(223, 165, 76, .55);
}

/* --------------------------------------------------------- Autocomplete -- */

.kgd-suggestions {
	position: absolute;
	z-index: 30;
	inset-inline: 0;
	top: calc(100% + 8px);
	max-height: 300px;
	margin: 0;
	padding: 6px;
	overflow-y: auto;
	list-style: none;
	background-color: var(--kgd-surface);
	border-radius: 14px;
	box-shadow: 0 18px 44px rgba(20, 12, 45, .22);
	text-align: right;
}

.kgd-suggestions[hidden] {
	display: none;
}

.kgd-suggestion {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 14px;
	border-radius: 10px;
	color: var(--kgd-ink);
	font-size: 16px;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}

.kgd-suggestion:hover,
.kgd-suggestion.is-active {
	background-color: rgba(33, 20, 73, .07);
}

.kgd-suggestion__name {
	font-weight: 600;
}

.kgd-suggestion__name mark {
	background: none;
	color: var(--kgd-gold);
	font-weight: 800;
}

.kgd-suggestion__amount {
	flex: none;
	color: var(--kgd-gold);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.kgd-suggestion--empty {
	color: rgba(33, 20, 73, .6);
	cursor: default;
}

.kgd-suggestion--empty:hover {
	background: none;
}

/* -------------------------------------------------------------- Notice --- */

.kgd-notice {
	width: 100%;
	padding: 8px 14px;
	border-radius: 10px;
	background-color: rgba(223, 165, 76, .16);
	color: var(--kgd-ink);
	font-size: 14px;
	font-weight: 600;
}

.kgd-notice[hidden] {
	display: none;
}

.kgd-notice.is-error {
	background-color: rgba(192, 57, 43, .12);
	color: var(--kgd-danger);
}

/* ------------------------------------------------------------- Buttons --- */

.kgd-actions[hidden] {
	display: none;
}

.kgd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-width: 210px;
	padding: 12px 22px;
	border: 0;
	border-radius: 999px;
	background-color: var(--kgd-ink);
	color: var(--kgd-on-ink);
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.kgd-btn:focus-visible {
	outline: 3px solid var(--kgd-gold);
	outline-offset: 3px;
}

.kgd-btn[disabled] {
	opacity: .55;
	cursor: not-allowed;
}

.kgd-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--kgd-icon-size, 30px);
	height: var(--kgd-icon-size, 30px);
	flex: none;
	border-radius: 999px;
	background-color: var(--kgd-on-ink);
	color: var(--kgd-ink);
	font-size: var(--kgd-glyph-size, 15px);
	line-height: 1;
}

.kgd-btn__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.kgd-icon-calc-after .kgd-btn--calc,
.kgd-icon-donate-after .kgd-btn--donate {
	flex-direction: row-reverse;
}

/* -------------------------------------------------------- Result boxes --- */

.kgd-result {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 18px;
	width: 100%;
}

.kgd-result[hidden] {
	display: none;
}

.kgd-box {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 150px;
	min-height: 108px;
	padding: 16px 20px;
	border-radius: var(--kgd-radius);
	background-color: var(--kgd-ink);
	text-align: center;
}

.kgd-box__label {
	color: var(--kgd-on-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
}

.kgd-box__value {
	color: var(--kgd-gold);
	font-size: 34px;
	font-weight: 800;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	word-break: break-word;
}

.kgd-box__hebrew {
	display: block;
	font-size: .45em;
	font-weight: 700;
	opacity: .85;
}

.kgd-equals {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	color: var(--kgd-ink);
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
}

/* --------------------------------------------------------------- Modal --- */

.kgd-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	direction: rtl;
}

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

.kgd-modal__overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(16, 10, 34, .55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	animation: kgd-fade .22s ease;
}

.kgd-modal__panel {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 40px);
	padding: 26px 26px 24px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 26px;
	background-color: var(--kgd-surface);
	box-shadow: 0 30px 80px rgba(12, 7, 30, .45);
	text-align: right;
	/* No "both": an entrance that has not started yet must not hold the panel
	   off-screen if the animation is ever delayed or dropped. */
	animation: kgd-rise .28s cubic-bezier(.22, 1, .36, 1);
}

.kgd-modal__grabber {
	display: none;
	width: 42px;
	height: 5px;
	margin: -8px auto 14px;
	border-radius: 999px;
	background-color: rgba(33, 20, 73, .2);
}

.kgd-modal__close {
	position: absolute;
	inset-inline-start: 18px;
	top: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background-color: rgba(33, 20, 73, .08);
	color: var(--kgd-ink);
	cursor: pointer;
	transition: background-color .15s ease;
}

.kgd-modal__close:hover {
	background-color: rgba(33, 20, 73, .16);
}

.kgd-modal__header {
	margin-bottom: 16px;
	padding-inline-end: 44px;
	text-align: center;
}

.kgd-modal__title {
	margin: 0;
	color: var(--kgd-ink);
	font-size: 22px;
	font-weight: 800;
	line-height: 1.3;
}

.kgd-modal__subtitle {
	margin: 6px 0 0;
	color: rgba(33, 20, 73, .65);
	font-size: 15px;
}

.kgd-modal__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
	padding: 14px 18px;
	border-radius: 16px;
	background-color: var(--kgd-ink);
}

.kgd-summary__salvation {
	color: var(--kgd-on-ink);
	font-size: 17px;
	font-weight: 700;
}

.kgd-summary__amount {
	display: inline-flex;
	align-items: baseline;
	gap: 5px;
	color: var(--kgd-gold);
	font-size: 26px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.kgd-summary__currency {
	font-size: .6em;
}

/* Currency switch */

/* The bar is the sticky one: it paints the opaque strip that hides the form
   scrolling past, so the switch itself keeps whatever background it is given
   in Elementor. */
.kgd-currency-bar {
	position: sticky;
	top: 0;
	z-index: 4;
	margin: 0 -26px 16px;
	padding: 0 26px 10px;
	background-color: var(--kgd-surface);
}

/* Only once it is actually pinned: the shadow is a solid copy of the bar
   drawn above itself, which hides the form sliding through the panel's own
   top padding. Painting it earlier would clip the summary above. */
.kgd-currency-bar.is-stuck {
	box-shadow: 0 -40px 0 0 var(--kgd-surface);
}

.kgd-currency {
	display: flex;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background-color: rgba(33, 20, 73, .07);
}

.kgd-currency__btn {
	flex: 1 1 0;
	padding: 9px 14px;
	border: 0;
	border-radius: 999px;
	background: none;
	color: rgba(33, 20, 73, .7);
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease;
}

.kgd-currency__btn.is-active {
	background-color: var(--kgd-ink);
	color: var(--kgd-on-ink);
}

/* Form */

.kgd-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}

.kgd-form__row {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

/* An author display always outranks the browser's own [hidden] rule, so a
   row hidden for the Toremet route has to be told again here. */
.kgd-form__row[hidden] {
	display: none;
}

.kgd-form__row--wide {
	grid-column: 1 / -1;
}

.kgd-form__label {
	color: rgba(33, 20, 73, .75);
	font-size: 13px;
	font-weight: 700;
}

.kgd-form__req {
	color: var(--kgd-danger);
}

.kgd-form__control {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--kgd-line);
	border-radius: 12px;
	background-color: #fff;
	color: var(--kgd-ink);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.3;
	outline: none;
	appearance: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.kgd-form__control:focus {
	border-color: var(--kgd-gold);
	box-shadow: 0 0 0 3px rgba(223, 165, 76, .22);
}

.kgd-form__control.is-invalid {
	border-color: var(--kgd-danger);
}

textarea.kgd-form__control {
	min-height: 62px;
	resize: vertical;
}

/* Payment */

.kgd-payment {
	margin-bottom: 14px;
}

.kgd-payment[hidden] {
	display: none;
}

.kgd-payment__label {
	margin-bottom: 6px;
	color: rgba(33, 20, 73, .75);
	font-size: 13px;
	font-weight: 700;
}

.kgd-payment__frame {
	position: relative;
	padding: 6px;
	border-radius: 14px;
	background-color: rgba(33, 20, 73, .04);
}

.kgd-payment__frame iframe {
	display: block;
	width: 100%;
	height: 0;
	border: 0;
	transition: height .2s ease;
}

/*
 * Needs to outrank ".kgd-payment__frame iframe { height: 0 }", which exists so
 * the Nedarim frame can grow from its own postMessage. Toremet sends no such
 * message, so it gets a fixed height of its own.
 */
.kgd-payment__frame .kgd-toremet-frame {
	height: 760px;
}

@media (max-width: 767px) {
	.kgd-payment__frame .kgd-toremet-frame {
		height: 620px;
	}
}

.kgd-payment__loading {
	padding: 18px 0;
	color: rgba(33, 20, 73, .6);
	font-size: 14px;
	text-align: center;
}

.kgd-payment__loading[hidden] {
	display: none;
}

.kgd-form__error {
	margin: 0 0 12px;
	color: var(--kgd-danger);
	font-size: 14px;
	font-weight: 700;
	text-align: center;
}

.kgd-form__error[hidden] {
	display: none;
}

.kgd-btn--submit {
	width: 100%;
	padding: 14px 22px;
	font-size: 18px;
}

.kgd-btn__spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 999px;
	animation: kgd-spin .7s linear infinite;
}

.kgd-form.is-busy .kgd-btn__spinner {
	display: inline-block;
}

.kgd-form.is-busy .kgd-btn--submit {
	opacity: .75;
	pointer-events: none;
}

/* Success */

.kgd-modal__success {
	padding: 26px 10px 12px;
	color: #1f8f4a;
	text-align: center;
}

.kgd-modal__success[hidden] {
	display: none;
}

.kgd-success__mark {
	margin-bottom: 12px;
}

.kgd-success__text {
	margin: 0;
	color: var(--kgd-ink);
	font-size: 19px;
	font-weight: 800;
}

.kgd-success__reference {
	margin: 8px 0 0;
	color: rgba(33, 20, 73, .6);
	font-size: 14px;
}

/* ------------------------------------------------------------ Keyframes -- */

@keyframes kgd-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes kgd-rise {
	from { opacity: 0; transform: translateY(24px) scale(.97); }
	to   { opacity: 1; transform: none; }
}

@keyframes kgd-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.kgd-modal__panel,
	.kgd-modal__overlay {
		animation: none;
	}

	.kgd-btn {
		transition: none;
	}
}

/* ----------------------------------------------------------- Responsive -- */

@media (max-width: 767px) {
	.kgd-input {
		height: 52px;
		font-size: 18px;
	}

	.kgd-box {
		min-width: 0;
		min-height: 92px;
		padding: 14px;
	}

	.kgd-box__value {
		font-size: 26px;
	}

	.kgd-box__label {
		font-size: 13px;
	}

	.kgd-equals {
		font-size: 22px;
	}

	.kgd-btn {
		min-width: 0;
		width: 100%;
	}

	.kgd-actions {
		width: 100%;
	}

	/* iOS-style bottom sheet on phones. */
	.kgd-modal {
		align-items: flex-end;
		padding: 0;
	}

	.kgd-modal__panel {
		max-width: none;
		max-height: 92vh;
		padding: 18px 18px 24px;
		border-radius: 26px 26px 0 0;
		animation-name: kgd-sheet;
	}

	.kgd-modal__grabber {
		display: block;
	}

	.kgd-modal__header {
		padding-inline-end: 0;
	}

	/* Panel padding is 18px on phones, so the sticky strip narrows to match. */
	.kgd-currency-bar {
		margin: 0 -18px 16px;
		padding: 0 18px 10px;
	}

	.kgd-form__grid {
		grid-template-columns: 1fr;
	}
}

@keyframes kgd-sheet {
	from { transform: translateY(100%); }
	to   { transform: none; }
}

/* ------------------------------------------------- Edge icon + hover swap -- */

/*
 * The icon sits pinned at one end of the button instead of next to the text.
 * On hover the two trade places: the icon slides across and the text slides
 * the other way. The icon is taken out of flow, so its offset is measured from
 * the button's padding box - a negative "מרחק מהקצה" pulls it nearer the edge.
 */

.kgd-btn--swap {
	--kgd-icon-gap: 12px;
	/* Not 0: at 0 the circle sits flush in the corner of the pill. */
	--kgd-icon-edge: 10px;
	--kgd-swap-speed: .38s;

	position: relative;
	justify-content: center;
	gap: 0;
}

.kgd-btn--swap .kgd-btn__icon {
	position: absolute;
	top: 50%;
	inset-inline-start: calc(100% - var(--kgd-icon-size, 30px) - var(--kgd-icon-edge));
	margin-top: calc(var(--kgd-icon-size, 30px) / -2);
	transition: inset-inline-start var(--kgd-swap-speed) cubic-bezier(.65, 0, .35, 1);
}

.kgd-btn--swap .kgd-btn__text {
	margin-inline-end: calc(var(--kgd-icon-size, 30px) + var(--kgd-icon-gap));
	transition: margin var(--kgd-swap-speed) cubic-bezier(.65, 0, .35, 1);
}

.kgd-btn--swap:hover .kgd-btn__icon,
.kgd-btn--swap:focus-visible .kgd-btn__icon {
	inset-inline-start: var(--kgd-icon-edge);
}

.kgd-btn--swap:hover .kgd-btn__text,
.kgd-btn--swap:focus-visible .kgd-btn__text {
	margin-inline-start: calc(var(--kgd-icon-size, 30px) + var(--kgd-icon-gap));
	margin-inline-end: 0;
}

/* Icon starts at the beginning instead, and swaps to the end. */
.kgd-btn--swap.kgd-btn--swap-start .kgd-btn__icon {
	inset-inline-start: var(--kgd-icon-edge);
}

.kgd-btn--swap.kgd-btn--swap-start .kgd-btn__text {
	margin-inline-start: calc(var(--kgd-icon-size, 30px) + var(--kgd-icon-gap));
	margin-inline-end: 0;
}

.kgd-btn--swap.kgd-btn--swap-start:hover .kgd-btn__icon,
.kgd-btn--swap.kgd-btn--swap-start:focus-visible .kgd-btn__icon {
	inset-inline-start: calc(100% - var(--kgd-icon-size, 30px) - var(--kgd-icon-edge));
}

.kgd-btn--swap.kgd-btn--swap-start:hover .kgd-btn__text,
.kgd-btn--swap.kgd-btn--swap-start:focus-visible .kgd-btn__text {
	margin-inline-start: 0;
	margin-inline-end: calc(var(--kgd-icon-size, 30px) + var(--kgd-icon-gap));
}

@media (prefers-reduced-motion: reduce) {
	.kgd-btn--swap .kgd-btn__icon,
	.kgd-btn--swap .kgd-btn__text {
		transition: none;
	}
}

/* -------------------------------------------- Editor preview of the popup -- */

/*
 * Only rendered inside the Elementor editor, so the popup can be designed
 * without having to trigger it. Never present on the live site.
 */

.kgd-modal--editor .kgd-modal__panel,
.kgd-modal--editor .kgd-modal__overlay {
	animation: none;
}

.kgd-modal--editor-inline {
	position: static;
	display: block;
	padding: 0;
	margin-top: 22px;
}

.kgd-modal--editor-inline .kgd-modal__overlay {
	display: none;
}

.kgd-modal--editor-inline .kgd-modal__panel {
	max-width: none;
	max-height: none;
	margin-inline: auto;
	overflow: visible;
}

/* The PCI iframe stays blank until the popup is really opened, so give the
   payment box a height in the editor - otherwise there is nothing to style. */
.kgd-modal--editor .kgd-payment__frame {
	min-height: 90px;
}

.kgd-modal--editor .kgd-payment__loading {
	display: block;
}

/* ------------------------------------------- Guard against theme resets --- */

/*
 * hello-elementor's reset paints every <button> pink on :hover and :focus
 * ([type="button"]:hover etc). That is the same specificity as a plain
 * .kgd-btn:hover, so it was winning by source order and turning our buttons
 * pink. Scoping by .kgd-widget raises us above it, while still sitting below
 * anything Elementor writes per widget - so the user's own hover settings
 * keep priority.
 */

.kgd-widget .kgd-btn:hover,
.kgd-widget .kgd-btn:focus {
	background-color: var(--kgd-ink);
	color: var(--kgd-on-ink);
}

.kgd-widget .kgd-currency__btn:hover,
.kgd-widget .kgd-currency__btn:focus {
	background-color: rgba(33, 20, 73, .1);
	color: var(--kgd-ink);
}

.kgd-widget .kgd-currency__btn.is-active,
.kgd-widget .kgd-currency__btn.is-active:hover,
.kgd-widget .kgd-currency__btn.is-active:focus {
	background-color: var(--kgd-ink);
	color: var(--kgd-on-ink);
}

.kgd-widget .kgd-modal__close:hover,
.kgd-widget .kgd-modal__close:focus {
	background-color: rgba(33, 20, 73, .16);
	color: var(--kgd-ink);
}

/* ---------------------------------------------- Small screens, hardened -- */

/*
 * A phone must never end up with a sheet narrower than the screen or a form
 * squeezed into columns. The widget's responsive controls carry mobile
 * defaults for this, but these rules keep the layout sane even when a value
 * is set by hand.
 */

@media (max-width: 767px) {
	.kgd-widget {
		max-width: 100%;
	}

	.kgd-box {
		min-width: 0;
		flex: 1 1 0;
	}

	.kgd-modal__panel {
		margin-inline: auto;
	}

	/* Reachable thumb targets and no iOS zoom-on-focus (needs >= 16px). */
	.kgd-form__control,
	.kgd-input {
		font-size: 16px;
	}

	.kgd-btn--submit {
		position: sticky;
		bottom: 0;
		z-index: 2;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.kgd-modal__panel {
		max-width: 620px;
	}
}

/*
 * Elementor inherits a desktop value into tablet and mobile when those slots
 * are empty, so a width set for desktop cannot be undone by a mobile default.
 * min-width sidesteps the argument entirely: it clamps whatever width is in
 * force, without competing on specificity and without !important.
 */

@media (max-width: 767px) {
	.kgd-modal__panel {
		min-width: 100%;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.kgd-modal__panel {
		min-width: min(620px, 92vw);
	}
}

/*
 * iOS zooms the whole page when a field under 16px takes focus, which throws
 * the visitor out of the sheet mid-donation. This has to outrank the widget's
 * own typography rule, but only on phones - desktop typography is untouched.
 */

@media (max-width: 767px) {
	.kgd-widget .kgd-modal .kgd-modal__panel .kgd-form .kgd-form__control,
	/* Repeated class on purpose: Elementor's own typography rule for this
	   widget is four classes deep, so three are needed here to clear it. */
	.kgd-widget .kgd-field .kgd-input.kgd-input.kgd-input {
		font-size: 16px;
	}
}

.kgd-payment__note {
	margin-bottom: 10px;
	padding: 10px 14px;
	border-radius: 12px;
	background-color: rgba(223, 165, 76, .16);
	color: var(--kgd-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
}

/* --------------------------------------------------- Payments (two modes) --- */

.kgd-payments {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.kgd-payments__opt {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.kgd-payments__opt input[type="radio"] {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--kgd-gold);
	cursor: pointer;
}

/* הטקסט יורש את הטיפוגרפיה של תוויות הטופס, ולכן הוא נשאר בפונט של
   האתר וניתן לעריכה מלשונית העיצוב של הווידג'ט, כמו כל שאר התוויות. */
.kgd-payments__text {
	color: var(--kgd-ink);
	font-family: inherit;
	font-weight: 600;
}

.kgd-payments,
.kgd-payments__opt {
	font-family: inherit;
}

.kgd-payments__count {
	flex: none;
	width: auto;
	min-width: 120px;
	margin-inline-start: auto;
	transition: opacity .2s ease;
}

.kgd-payments__count:disabled {
	opacity: .45;
	cursor: not-allowed;
}

/* המצב שלא נבחר נשאר קריא, אבל ברור מי פעיל. */
.kgd-payments.is-hk .kgd-payments__opt:not(.kgd-payments__opt--hk) .kgd-payments__text,
.kgd-payments:not(.is-hk) .kgd-payments__opt--hk .kgd-payments__text {
	opacity: .6;
}

@media (max-width: 480px) {
	.kgd-payments__count {
		margin-inline-start: 0;
		width: 100%;
	}

	.kgd-payments__opt {
		flex-wrap: wrap;
	}
}
