/* RiasVanta WP — donation UI
   Tokens can be overridden globally (Settings → colors) or per widget in Elementor. */
:root {
	--rv-primary: #2BA84A;
	--rv-secondary: #1593D1;
	--rv-ink: #12302a;
	--rv-muted: #5d6f6a;
	--rv-line: #dfe8e5;
	--rv-surface: #ffffff;
	--rv-soft: #f2f7f5;
	--rv-danger: #d64545;
	--rv-radius: 18px;
	--rv-radius-sm: 12px;
	--rv-shadow: 0 1px 2px rgba(16, 48, 42, .04), 0 8px 28px rgba(16, 48, 42, .08);
	--rv-shadow-lg: 0 24px 64px rgba(10, 30, 26, .22);
	--rv-font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
	--rv-grad: linear-gradient(120deg, var(--rv-primary), var(--rv-secondary));
	--rv-tint: color-mix(in srgb, var(--rv-primary) 9%, transparent);
	--rv-ring: 0 0 0 4px color-mix(in srgb, var(--rv-primary) 20%, transparent);
}

.rvwp { font-family: var(--rv-font); color: var(--rv-ink); line-height: 1.6; -webkit-font-smoothing: antialiased; text-align: start; }
.rvwp *, .rvwp *::before, .rvwp *::after { box-sizing: border-box; }
.rvwp svg { width: 1.15em; height: 1.15em; flex: none; }
.rvwp button { font-family: inherit; cursor: pointer; white-space: normal; text-transform: none; letter-spacing: normal; }
.rvwp [hidden] { display: none !important; }
[dir="rtl"] .rvwp-flip, .rvwp[dir="rtl"] .rvwp-flip { transform: scaleX(-1); }
.rvwp-missing { padding: 14px 16px; border: 2px dashed #e0a100; border-radius: 12px; background: #fff8e1; color: #7a5800; font: 600 14px/1.5 system-ui, sans-serif; }

/* ------------------------------------------------------------------ Buttons */
.rvwp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	border: 0; border-radius: 999px; padding: .85em 1.6em; font-weight: 700; font-size: 16px; line-height: 1.2;
	text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, filter .2s ease, background .2s ease; white-space: nowrap;
}
.rvwp-btn--primary { color: #fff; background: var(--rv-grad); box-shadow: 0 8px 22px color-mix(in srgb, var(--rv-primary) 35%, transparent); }
.rvwp-btn--primary:hover { color: #fff; transform: translateY(-1px); filter: saturate(1.1) brightness(1.04); box-shadow: 0 12px 28px color-mix(in srgb, var(--rv-primary) 42%, transparent); }
.rvwp-btn--primary:active { transform: translateY(0); }
.rvwp-btn--outline { color: var(--rv-primary); background: transparent; box-shadow: inset 0 0 0 2px var(--rv-primary); }
.rvwp-btn--outline:hover { background: var(--rv-tint); color: var(--rv-primary); }
.rvwp-btn--light { color: var(--rv-primary); background: #fff; box-shadow: var(--rv-shadow); }
.rvwp-btn--lg { font-size: 18px; padding: 1em 1.8em; }
.rvwp-btn--md { font-size: 15px; }
.rvwp-btn--block { display: flex; width: 100%; }
.rvwp-btn[disabled], .rvwp-btn.is-loading { opacity: .75; pointer-events: none; }
.rvwp-btn.is-loading::after { content: ""; width: 1em; height: 1em; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: rvwp-spin .7s linear infinite; }
.rvwp-btn--primary svg { animation: rvwp-beat 2.4s ease-in-out infinite; }
.rvwp-inline { display: inline-block; }
@keyframes rvwp-spin { to { transform: rotate(360deg); } }
@keyframes rvwp-beat { 0%, 100% { transform: scale(1); } 8% { transform: scale(1.18); } 16% { transform: scale(1); } 24% { transform: scale(1.12); } 32% { transform: scale(1); } }

/* ---------------------------------------------------------------- Form card */
.rvwp-form, .rvwp-card {
	background: var(--rv-surface); border: 1px solid var(--rv-line); border-radius: var(--rv-radius); box-shadow: var(--rv-shadow);
}
.rvwp-form { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.rvwp-form__head { display: flex; flex-direction: column; gap: 2px; }
.rvwp-form__title { margin: 0; font-size: 20px; font-weight: 700; color: var(--rv-ink); line-height: 1.4; }
.rvwp-form__sub { margin: 0; color: var(--rv-muted); font-size: 14px; }

.rvwp-amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rvwp-amount {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	min-width: 0; min-height: 62px; padding: 10px 6px; background: var(--rv-surface); color: var(--rv-ink);
	border: 1.5px solid var(--rv-line); border-radius: var(--rv-radius-sm); transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}
.rvwp-amount:hover { border-color: color-mix(in srgb, var(--rv-primary) 55%, var(--rv-line)); transform: translateY(-1px); }
.rvwp-amount__val { font-size: 20px; font-weight: 700; letter-spacing: -.01em; direction: ltr; }
.rvwp-amount__hint { font-size: 11.5px; color: var(--rv-muted); line-height: 1.35; text-align: center; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
.rvwp-amount.is-selected { border-color: var(--rv-primary); background: var(--rv-tint); box-shadow: inset 0 0 0 1px var(--rv-primary); }
.rvwp-amount.is-selected .rvwp-amount__val { color: var(--rv-primary); }
.rvwp-amount.is-selected::after {
	content: ""; position: absolute; top: -7px; inset-inline-end: -7px; width: 20px; height: 20px; border-radius: 50%;
	background: var(--rv-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='m9.5 16.6-4.1-4.1L4 13.9l5.5 5.5L20 8.9l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
	box-shadow: 0 0 0 2px var(--rv-surface);
}

.rvwp-custom {
	display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 14px; height: 52px;
	border: 1.5px solid var(--rv-line); border-radius: var(--rv-radius-sm); background: var(--rv-surface); transition: border-color .15s, box-shadow .15s;
	direction: ltr;
}
.rvwp-custom:focus-within { border-color: var(--rv-primary); box-shadow: var(--rv-ring); }
.rvwp-custom.is-active { border-color: var(--rv-primary); background: var(--rv-tint); }
.rvwp-custom__cur { font-weight: 700; color: var(--rv-muted); font-size: 18px; }
.rvwp-custom__code { font-size: 12px; font-weight: 700; color: var(--rv-muted); background: var(--rv-soft); border-radius: 6px; padding: 3px 7px; }
.rvwp .rvwp-custom input {
	flex: 1; min-width: 0; height: 100%; border: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important;
	font: 600 17px var(--rv-font); color: var(--rv-ink); padding: 0 !important; -moz-appearance: textfield;
}
[dir="rtl"] .rvwp-custom input::placeholder { text-align: right; }
.rvwp-custom input::-webkit-outer-spin-button, .rvwp-custom input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.rvwp-approx {
	margin: -4px 0 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
	font-size: 14.5px; font-weight: 600; color: var(--rv-ink); background: var(--rv-soft); border-radius: 10px; padding: 8px 12px;
}
.rvwp-approx small { font-weight: 500; color: var(--rv-muted); font-size: 12px; }
.rvwp-approx::before { content: "🌍"; }

.rvwp-secure { margin: 0; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--rv-muted); font-size: 13px; }
.rvwp-secure svg { color: var(--rv-primary); }

/* Impact style */
.rvwp-impact { display: flex; flex-direction: column; gap: 8px; }
.rvwp-impact__row {
	display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; padding: 13px 14px;
	background: var(--rv-surface); color: var(--rv-ink); border: 1.5px solid var(--rv-line); border-radius: var(--rv-radius-sm); transition: border-color .15s, background .15s;
}
.rvwp-impact__row:hover { border-color: color-mix(in srgb, var(--rv-primary) 55%, var(--rv-line)); }
.rvwp-impact__radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--rv-line); flex: none; transition: all .15s; }
.rvwp-impact__text { flex: 1; font-size: 15px; font-weight: 500; line-height: 1.45; }
.rvwp-impact__amount { font-weight: 700; font-size: 17px; direction: ltr; }
.rvwp-impact__row.is-selected { border-color: var(--rv-primary); background: var(--rv-tint); }
.rvwp-impact__row.is-selected .rvwp-impact__radio { border-color: var(--rv-primary); box-shadow: inset 0 0 0 4px var(--rv-surface); background: var(--rv-primary); }
.rvwp-impact__row.is-selected .rvwp-impact__amount { color: var(--rv-primary); }

/* --------------------------------------------------------------- Goal meter */
.rvwp-goal { display: flex; flex-direction: column; gap: 10px; }
.rvwp-goal--bar:not(.rvwp-goal--compact) { background: var(--rv-surface); border: 1px solid var(--rv-line); border-radius: var(--rv-radius); box-shadow: var(--rv-shadow); padding: 20px; }
.rvwp-goal__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.rvwp-goal__raised { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rvwp-goal__raised strong { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; direction: ltr; background: var(--rv-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rvwp-goal--compact .rvwp-goal__raised strong { font-size: 22px; }
.rvwp-goal__of { color: var(--rv-muted); font-size: 14px; }
.rvwp-goal__pct { font-weight: 700; font-size: 15px; color: var(--rv-primary); background: var(--rv-tint); padding: 3px 10px; border-radius: 999px; }
.rvwp-goal__meta { display: flex; justify-content: space-between; gap: 10px; color: var(--rv-muted); font-size: 13.5px; }
.rvwp-goal__donors { display: inline-flex; align-items: center; gap: 6px; }
.rvwp-goal__donors svg { color: var(--rv-secondary); }

.rvwp-bar { display: block; position: relative; height: 12px; background: var(--rv-soft); border-radius: 999px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.06); }
.rvwp-bar--thin { height: 7px; }
.rvwp-bar__fill {
	position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; border-radius: inherit; background: var(--rv-grad);
	transition: width 1.4s cubic-bezier(.22, 1, .36, 1); overflow: hidden;
}
.rvwp-bar__fill::after {
	content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
	transform: translateX(-100%); animation: rvwp-shine 2.6s ease-in-out 1.4s infinite;
}
@keyframes rvwp-shine { 60%, 100% { transform: translateX(100%); } }

.rvwp-goal--circle { flex-direction: row; align-items: center; gap: 20px; background: var(--rv-surface); border: 1px solid var(--rv-line); border-radius: var(--rv-radius); box-shadow: var(--rv-shadow); padding: 20px; }
.rvwp-ring { position: relative; width: 128px; height: 128px; flex: none; }
.rvwp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rvwp-ring__track { fill: none; stroke: var(--rv-soft); stroke-width: 11; }
.rvwp-ring__bar { fill: none; stroke-width: 11; stroke-linecap: round; transition: stroke-dashoffset 1.6s cubic-bezier(.22, 1, .36, 1); }
.rvwp-ring__label { position: absolute; inset: 0; display: grid; place-items: center; }
.rvwp-ring__label strong { font-size: 26px; font-weight: 700; color: var(--rv-ink); }
.rvwp-goal--circle .rvwp-goal__numbers { display: flex; flex-direction: column; gap: 4px; }
.rvwp-goal__kicker { display: block; font-size: 13px; color: var(--rv-muted); }

/* -------------------------------------------------------------- Donor walls */
.rvwp-wall { background: var(--rv-surface); border: 1px solid var(--rv-line); border-radius: var(--rv-radius); box-shadow: var(--rv-shadow); padding: 18px; }
.rvwp-wall__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rvwp-wall__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--rv-grad); }
.rvwp-wall__title { margin: 0; flex: 1; font-size: 17px; font-weight: 700; color: var(--rv-ink); }
.rvwp-live { display: inline-flex; align-items: center; gap: 6px; font: 700 11px/1 system-ui, sans-serif; letter-spacing: .08em; color: var(--rv-danger); background: color-mix(in srgb, var(--rv-danger) 10%, transparent); padding: 5px 8px; border-radius: 999px; }
.rvwp-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: rvwp-pulse 1.6s ease-out infinite; }
@keyframes rvwp-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--rv-danger) 60%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }
.rvwp-wall__empty { margin: 8px 0 0; color: var(--rv-muted); font-size: 14px; text-align: center; padding: 14px; background: var(--rv-soft); border-radius: 12px; }
.rvwp-wall__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rvwp-donor { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--rv-line); animation: rvwp-in .5s ease both; }
.rvwp-donor:first-child { border-top: 0; }
.rvwp-donor:nth-child(2) { animation-delay: .05s; } .rvwp-donor:nth-child(3) { animation-delay: .1s; } .rvwp-donor:nth-child(4) { animation-delay: .15s; }
@keyframes rvwp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rvwp-donor__avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; color: var(--rv-primary); background: var(--rv-tint); border: 1.5px solid color-mix(in srgb, var(--rv-primary) 25%, transparent); }
.rvwp-donor__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rvwp-donor__name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rvwp-donor__flag { font-size: 14px; }
.rvwp-donor__time { font-size: 12.5px; color: var(--rv-muted); }
.rvwp-donor__amount { font-weight: 700; color: var(--rv-primary); background: var(--rv-tint); border-radius: 999px; padding: 4px 11px; font-size: 14px; direction: ltr; }
.rvwp-donor__rank { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--rv-muted); background: var(--rv-soft); flex: none; }
.rvwp-donor__rank--1 { color: #fff; background: linear-gradient(135deg, #f6c445, #e09b12); }
.rvwp-donor__rank--2 { color: #fff; background: linear-gradient(135deg, #c3cbd3, #8d98a3); }
.rvwp-donor__rank--3 { color: #fff; background: linear-gradient(135deg, #e3a06c, #b8693a); }

/* ----------------------------------------------------------- Floating donate */
.rvwp-floating__tab {
	position: fixed; z-index: 9990; top: 50%; inset-inline-end: 0; transform: translateY(-50%);
	display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 12px; border: 0;
	color: #fff; background: var(--rv-grad); font-weight: 700; font-size: 14px; line-height: 1.2; max-width: 92px; text-align: center;
	border-start-start-radius: 16px; border-end-start-radius: 16px; box-shadow: -6px 10px 30px rgba(10, 40, 30, .22);
	transition: padding .2s ease, filter .2s;
}
.rvwp-floating__tab:hover { padding-inline-end: 18px; filter: brightness(1.05); }
.rvwp-floating__tab svg { width: 24px; height: 24px; animation: rvwp-beat 2.4s ease-in-out infinite; }
.rvwp-floating--start .rvwp-floating__tab { inset-inline-end: auto; inset-inline-start: 0; border-radius: 0 16px 16px 0; }
[dir="rtl"].rvwp-floating--start .rvwp-floating__tab { border-radius: 16px 0 0 16px; }
.rvwp-floating__bar { display: none; }
@media (max-width: 767px) {
	.rvwp-floating__tab { display: none; }
	.rvwp-floating__bar {
		position: fixed; z-index: 9990; inset-inline: 0; bottom: 0; display: flex; align-items: center; gap: 12px;
		padding: 11px 14px calc(11px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
		border-top: 1px solid var(--rv-line); box-shadow: 0 -8px 24px rgba(10, 40, 30, .1); transform: translateY(110%); transition: transform .35s ease;
	}
	.rvwp-floating.is-visible .rvwp-floating__bar { transform: none; }
	.rvwp-floating--no-mobile .rvwp-floating__bar { display: none; }
	.rvwp-floating__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
	.rvwp-floating__title { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.rvwp-floating__info .rvwp-bar--thin { height: 8px; }
	.rvwp-floating__bar .rvwp-btn { padding: .85em 1.45em !important; font-size: 16.5px; font-weight: 800; min-height: 0 !important; line-height: 1.2; }
	.rvwp-floating__bar .rvwp-btn svg { width: 19px; height: 19px; }
	body.rvwp-has-bar { padding-bottom: 84px; }

	/* Default skin: glossy red glass button (top highlight, inner depth, soft red glow, light sweep). */
	.rvwp-floating--s1 .rvwp-floating__bar .rvwp-btn--primary {
		position: relative; overflow: hidden; isolation: isolate; color: #fff !important;
		background:
			linear-gradient(180deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,.12) 46%, rgba(255,255,255,0) 54%),
			linear-gradient(135deg, #ff5a68 0%, #e3192c 48%, #a80d1c 100%) !important;
		border: 1px solid rgba(255,255,255,.45);
		box-shadow: 0 12px 28px -8px rgba(227,25,44,.7), 0 0 0 4px rgba(227,25,44,.12), inset 0 1px 0 rgba(255,255,255,.75), inset 0 -3px 8px rgba(110,0,12,.35);
		text-shadow: 0 1px 2px rgba(90,0,10,.4);
		animation: rvwp-red-glow 2.8s ease-in-out infinite;
	}
	.rvwp-floating--s1 .rvwp-floating__bar .rvwp-btn--primary::before {
		content: ""; position: absolute; z-index: -1; top: 0; left: -80%; width: 55%; height: 100%; transform: skewX(-20deg);
		background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: rvwp-red-shine 3.4s ease-in-out infinite;
	}
	.rvwp-floating--s1 .rvwp-floating__bar .rvwp-btn--primary:hover { filter: brightness(1.06) saturate(1.05); }
	body.rvwp-has-bar .rvwp-floating--s1 .rvwp-floating__bar { border-top-color: rgba(227,25,44,.18); }
}
@keyframes rvwp-red-glow { 0%, 100% { box-shadow: 0 12px 28px -8px rgba(227,25,44,.7), 0 0 0 4px rgba(227,25,44,.12), inset 0 1px 0 rgba(255,255,255,.75), inset 0 -3px 8px rgba(110,0,12,.35); } 50% { box-shadow: 0 14px 34px -6px rgba(227,25,44,.85), 0 0 0 7px rgba(227,25,44,.08), inset 0 1px 0 rgba(255,255,255,.75), inset 0 -3px 8px rgba(110,0,12,.35); } }
@keyframes rvwp-red-shine { 0%, 55% { left: -80%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .rvwp-floating__bar .rvwp-btn--primary, .rvwp-floating__bar .rvwp-btn--primary::before { animation: none !important; } }
@media (min-width: 768px) { .rvwp-floating--no-desktop .rvwp-floating__tab { display: none; } }

/* -------------------------------------------------------------------- Modal */
html.rvwp-lock, html.rvwp-lock body { overflow: hidden; }
.rvwp-modal { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.rvwp-modal__backdrop { position: absolute; inset: 0; background: rgba(9, 28, 24, .55); backdrop-filter: blur(4px); animation: rvwp-fade .25s ease both; }
.rvwp-modal__panel {
	position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
	background: var(--rv-surface); border-radius: 24px; box-shadow: var(--rv-shadow-lg); animation: rvwp-pop .32s cubic-bezier(.2, .9, .3, 1.15) both;
}
.rvwp-modal.is-closing .rvwp-modal__panel { animation: rvwp-pop-out .2s ease both; }
.rvwp-modal.is-closing .rvwp-modal__backdrop { animation: rvwp-fade-out .2s ease both; }
@keyframes rvwp-fade { from { opacity: 0; } }
@keyframes rvwp-fade-out { to { opacity: 0; } }
@keyframes rvwp-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes rvwp-pop-out { to { opacity: 0; transform: translateY(10px) scale(.98); } }
.rvwp-modal__bar { height: 5px; background: var(--rv-grad); }
.rvwp-modal__close {
	position: absolute; top: 14px; inset-inline-end: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0;
	display: grid; place-items: center; background: var(--rv-soft); color: var(--rv-ink); font-size: 22px; line-height: 1; transition: background .15s;
}
.rvwp-modal__close:hover { background: var(--rv-line); }
.rvwp-modal__head { display: flex; align-items: center; gap: 14px; padding: 22px 22px 6px; padding-inline-end: 60px; }
.rvwp-modal__img { width: 58px; height: 58px; border-radius: 14px; object-fit: cover; flex: none; box-shadow: var(--rv-shadow); }
.rvwp-eyebrow { display: block; font-size: 12.5px; font-weight: 600; color: var(--rv-primary); letter-spacing: .01em; }
.rvwp-modal__title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--rv-ink); }
.rvwp-modal__body { padding: 14px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.rvwp-label { font-size: 13.5px; font-weight: 600; color: var(--rv-ink); margin: 0 0 6px; display: block; }
.rvwp-modal .rvwp-amounts { gap: 8px; }
.rvwp-modal .rvwp-amount { min-height: 54px; }
.rvwp-modal .rvwp-amount__val { font-size: 18px; }
.rvwp-modal .rvwp-amount__hint { display: none; }
.rvwp-divider { height: 1px; background: var(--rv-line); margin: 2px 0; }
.rvwp-fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rvwp-field { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.rvwp-field--wide { grid-column: 1 / -1; }
.rvwp-field > span { font-size: 13px; font-weight: 600; color: var(--rv-ink); }
.rvwp .rvwp-input, .rvwp-phone {
	width: 100%; height: 50px; padding: 0 14px; border: 1.5px solid var(--rv-line); border-radius: var(--rv-radius-sm);
	background: var(--rv-surface); color: var(--rv-ink); font: 500 16px var(--rv-font); outline: 0; box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.rvwp .rvwp-input:focus, .rvwp-phone:focus-within { border-color: var(--rv-primary); box-shadow: var(--rv-ring); }
.rvwp-field.has-error .rvwp-input, .rvwp-field.has-error .rvwp-phone { border-color: var(--rv-danger); }
.rvwp-field__err { font-size: 12.5px; color: var(--rv-danger); }
.rvwp-phone { display: flex; align-items: stretch; padding: 0; direction: ltr; overflow: hidden; }
.rvwp .rvwp-phone select {
	border: 0 !important; background: var(--rv-soft) !important; padding: 0 8px 0 12px !important; height: 100% !important; font: 600 14px var(--rv-font);
	color: var(--rv-ink); outline: 0; max-width: 112px; border-radius: 0 !important; box-shadow: none !important; margin: 0;
}
.rvwp .rvwp-phone input { flex: 1; min-width: 0; border: 0 !important; outline: 0; padding: 0 12px !important; font: 500 16px var(--rv-font); background-color: transparent !important; height: 100%; box-shadow: none !important; margin: 0; }
.rvwp-hp { position: absolute !important; inset-inline-start: 0 !important; top: 0 !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap; opacity: 0; pointer-events: none; }
.rvwp-form-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--rv-danger) 9%, transparent); color: var(--rv-danger); font-size: 14px; font-weight: 600; }
.rvwp-order-note { margin: 10px 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 10px; background: #fff4e0; border: 1px solid #f5b54a; color: #7a4300 !important; font-size: 14px; font-weight: 700; line-height: 1.5; text-align: center; }
.rvwp-order-note__icon { flex: none; font-size: 16px; line-height: 1; }
.rvwp-consent { margin: 0; font-size: 12px; line-height: 1.6; color: var(--rv-muted); text-align: center; }
.rvwp-paybadges { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.rvwp-paybadges span { font: 700 11px/1 system-ui, sans-serif; color: var(--rv-muted); border: 1px solid var(--rv-line); border-radius: 6px; padding: 5px 7px; background: var(--rv-surface); }
.rvwp-paybadges .rvwp-paybadges__lock { border: 0; display: inline-flex; gap: 4px; align-items: center; color: var(--rv-primary); }

@media (max-width: 600px) {
	.rvwp-modal { align-items: flex-end; padding: 0; }
	.rvwp-modal__panel { max-width: none; border-radius: 22px 22px 0 0; max-height: 94vh; animation: rvwp-sheet .38s cubic-bezier(.2, .9, .3, 1) both; padding-bottom: env(safe-area-inset-bottom); }
	.rvwp-modal.is-closing .rvwp-modal__panel { animation: rvwp-sheet-out .22s ease both; }
	.rvwp-modal__panel::before { content: ""; display: block; width: 42px; height: 5px; border-radius: 99px; background: var(--rv-line); margin: 8px auto 0; }
	.rvwp-modal__bar { display: none; }
	.rvwp-modal__head { padding-top: 10px; }
	.rvwp-modal__close { top: 16px; }
}
@keyframes rvwp-sheet { from { transform: translateY(100%); } }
@keyframes rvwp-sheet-out { to { transform: translateY(100%); } }
@media (max-width: 370px) { .rvwp-amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rvwp-fields-grid { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- Checkout */
body.rvwp-flow .entry-title, body.rvwp-flow .page-header, body.rvwp-flow .woocommerce-breadcrumb { display: none; }
body.rvwp-flow { background: #f4f8f7; }
body.rvwp-flow .site-main, body.rvwp-flow main#content { max-width: none; padding-inline: 0; }
.rvwp-checkout { max-width: 1120px; margin: 0 auto; padding: 24px 16px 140px; }
.rvwp-co-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; padding: 14px; background: var(--rv-surface); border: 1px solid var(--rv-line); border-radius: var(--rv-radius); box-shadow: var(--rv-shadow); }
.rvwp-co-hero__img { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; flex: none; }
.rvwp-co-hero__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rvwp-co-hero__title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.35; color: var(--rv-ink); }
.rvwp-co-hero__meter { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.rvwp-co-hero__pct { font-size: 13px; color: var(--rv-muted); }
.rvwp-co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.rvwp-co-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rvwp-co-side { position: sticky; top: 20px; }
.rvwp-co-section, .rvwp-co-pay { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.rvwp-co-h { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--rv-ink); line-height: 1.3; }
.rvwp-step { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 14px; color: #fff; background: var(--rv-grad); }
.rvwp-co-sub { margin: -8px 0 0; color: var(--rv-muted); font-size: 14px; }
.rvwp-field-error { margin: 0; color: var(--rv-danger); font-size: 13.5px; font-weight: 600; }

.rvwp-spread { border: 1.5px solid color-mix(in srgb, var(--rv-primary) 35%, var(--rv-line)); background: linear-gradient(180deg, var(--rv-tint), var(--rv-surface) 70%); }
.rvwp-spread__amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rvwp-spread__amt {
	position: relative; min-width: 0; min-height: 52px; padding: 8px 4px; border: 1.5px solid var(--rv-line); border-radius: var(--rv-radius-sm);
	background: var(--rv-surface); color: var(--rv-ink); font: inherit; font-size: 18px; font-weight: 700; direction: ltr; cursor: pointer;
	transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}
.rvwp-spread__amt:hover { border-color: color-mix(in srgb, var(--rv-primary) 55%, var(--rv-line)); transform: translateY(-1px); }
.rvwp-spread__amt.is-selected { border-color: var(--rv-primary); background: var(--rv-tint); color: var(--rv-primary); box-shadow: inset 0 0 0 1px var(--rv-primary); }
.rvwp-spread__est { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; animation: rvwp-in .35s ease both; }
.rvwp-spread__est[hidden] { display: none; }
.rvwp-spread__stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border-radius: 14px; background: var(--rv-surface); border: 1px solid var(--rv-line); text-align: center; font-size: 13px; color: var(--rv-muted); }
.rvwp-spread__stat strong { font-size: 19px; color: var(--rv-ink); letter-spacing: -.01em; }
.rvwp-spread__ico { font-size: 20px; line-height: 1; }
.rvwp-spread__note { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--rv-muted); text-align: center; }
.rvwp-spread__none {
	grid-column: 1 / -1; justify-self: center; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 18px;
	border: 1.5px solid var(--rv-line); border-radius: 999px; background: var(--rv-surface); color: var(--rv-ink);
	font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s;
}
.rvwp-spread__none:hover { border-color: var(--rv-danger); color: var(--rv-danger); }
@media (max-width: 420px) { .rvwp-spread__amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Support an orphan in Gaza: red box (fixed colours, not the brand palette). */
.rvwp-orphan { --rv-orp: #047857; --rv-orp-dark: #064e3b; --rv-orp-grad: linear-gradient(135deg, #10b981 0%, #047857 55%, #064e3b 100%); --rv-orp-soft: #ecfdf5; border: 2px solid #6ee7b7; background: linear-gradient(180deg, #effcf6, var(--rv-surface) 75%); box-shadow: 0 14px 34px -22px rgba(4, 120, 87, .55); }
.rvwp-orphan .rvwp-step { background: var(--rv-orp); }
.rvwp-orphan .rvwp-co-h { color: var(--rv-orp); }
.rvwp-orphan__top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: stretch; }
.rvwp-orphan__count { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 112px; padding: 10px 12px; border-radius: 14px; background: var(--rv-orp-grad); color: #fff; text-align: center; box-shadow: 0 10px 22px -10px rgba(4, 120, 87, .75), inset 0 1px 0 rgba(255, 255, 255, .25); }
.rvwp-orphan__count strong { font-size: 26px; line-height: 1.1; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.rvwp-orphan__count span { font-size: 12.5px; font-weight: 600; opacity: .95; }
.rvwp-orphan__hadith { margin: 0; padding: 10px 14px; border-inline-start: 4px solid #10b981; border-radius: 12px; background: linear-gradient(90deg, #ecfdf5, #f6fefa); display: grid; gap: 4px; align-content: center; quotes: none; }
.rvwp-orphan__hadith::before, .rvwp-orphan__hadith::after { content: none; }
.rvwp-orphan__hadith p { margin: 0; font-size: 15.5px; font-weight: 700; line-height: 1.6; color: #064e3b; }
.rvwp-orphan__hadith cite { font-style: normal; font-size: 12.5px; color: #3f7d68; }
.rvwp-orphan .rvwp-spread__amt:hover { border-color: #34d399; }
.rvwp-orphan .rvwp-spread__amt.is-selected { border-color: var(--rv-orp); background: var(--rv-orp-grad); color: #fff; box-shadow: 0 6px 16px -8px rgba(4, 120, 87, .8); }
.rvwp-orphan__done { grid-template-columns: 1fr; }
.rvwp-orphan__thanks { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--rv-orp-soft); color: #064e3b; font-weight: 700; text-align: center; }
@media (max-width: 480px) {
	.rvwp-orphan__top { grid-template-columns: 1fr; }
	.rvwp-orphan__count { flex-direction: row; gap: 8px; min-width: 0; }
}

.rvwp-upsells { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.rvwp-upsell { display: flex; flex-direction: column; border: 1.5px solid var(--rv-line); border-radius: 14px; background: var(--rv-surface); transition: border-color .15s, background .15s, box-shadow .15s; overflow: hidden; }
.rvwp-upsell:hover { border-color: color-mix(in srgb, var(--rv-primary) 50%, var(--rv-line)); }
.rvwp-upsell.is-on { border-color: var(--rv-primary); background: var(--rv-tint); box-shadow: inset 0 0 0 1px var(--rv-primary); }
.rvwp-upsell__toggle { display: flex; align-items: center; gap: 12px; padding: 12px; width: 100%; border: 0; background: transparent; color: inherit; text-align: start; }
.rvwp-upsell__media { position: relative; width: 52px; height: 52px; border-radius: 12px; background: var(--rv-soft); flex: none; display: grid; place-items: center; overflow: hidden; }
.rvwp-upsell__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rvwp-upsell__icon { position: relative; font-size: 26px; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.rvwp-upsell__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rvwp-upsell__label { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.rvwp-upsell__price { font-weight: 700; color: var(--rv-primary); font-size: 15px; }
.rvwp-upsell__check { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; color: transparent; border: 2px solid var(--rv-line); transition: all .15s; }
.rvwp-upsell.is-on .rvwp-upsell__check { color: #fff; background: var(--rv-primary); border-color: var(--rv-primary); }
.rvwp-qty { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 12px 12px; direction: ltr; }
.rvwp-qty__btn { width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid var(--rv-line); background: var(--rv-surface); color: var(--rv-ink); font-size: 18px; font-weight: 700; line-height: 1; }
.rvwp-qty__btn:hover { border-color: var(--rv-primary); color: var(--rv-primary); }
.rvwp-qty__val { min-width: 36px; text-align: center; font-weight: 700; font-size: 16px; }

/* WooCommerce fields inside our layout */
.rvwp-checkout .woocommerce-billing-fields h3 { display: none; }
.rvwp-checkout .rvwp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rvwp-checkout .rvwp-fields .form-row { margin: 0; padding: 0; width: auto; float: none; grid-column: 1 / -1; }
.rvwp-checkout .rvwp-fields .form-row-first { grid-column: 1; }
.rvwp-checkout .rvwp-fields .form-row-last { grid-column: 2; }
.rvwp-checkout .form-row label { display: block; font-size: 13px; font-weight: 600; color: var(--rv-ink); margin-bottom: 5px; line-height: 1.4; }
.rvwp-checkout .form-row .required { color: var(--rv-danger); text-decoration: none; border: 0; }
.rvwp-checkout .form-row .optional { display: none; }
.rvwp-checkout .form-row input.input-text, .rvwp-checkout .form-row textarea {
	width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--rv-line); border-radius: var(--rv-radius-sm);
	background: var(--rv-surface); color: var(--rv-ink); font: 500 16px var(--rv-font); box-shadow: none; outline: 0; transition: border-color .15s, box-shadow .15s;
}
.rvwp-checkout .form-row textarea { min-height: 76px; resize: vertical; }
.rvwp-checkout .form-row input.input-text:focus, .rvwp-checkout .form-row textarea:focus { border-color: var(--rv-primary); box-shadow: var(--rv-ring); }
.rvwp-checkout .form-row.woocommerce-invalid input.input-text { border-color: var(--rv-danger); }
.rvwp-checkout #billing_phone, .rvwp-checkout #billing_email { direction: ltr; }
[dir="rtl"].rvwp-checkout #billing_phone, [dir="rtl"].rvwp-checkout #billing_email { text-align: right; }

/* Switch, checkbox, segmented */
.rvwp-switch, .rvwp-check, .rvwp-fee { position: relative; display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14.5px; line-height: 1.5; margin: 0; }
.rvwp-switch input, .rvwp-check input, .rvwp-fee input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rvwp-switch__ui { width: 42px; height: 24px; border-radius: 99px; background: var(--rv-line); position: relative; flex: none; transition: background .2s; }
.rvwp-switch__ui::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: inset-inline-start .2s; }
.rvwp-switch input:checked + .rvwp-switch__ui, .rvwp-switch input:checked ~ .rvwp-switch__ui { background: var(--rv-primary); }
.rvwp-switch input:checked ~ .rvwp-switch__ui::after { inset-inline-start: 21px; }
.rvwp-switch input:focus-visible ~ .rvwp-switch__ui, .rvwp-check input:focus-visible + .rvwp-check__ui, .rvwp-fee input:focus-visible + .rvwp-check__ui { box-shadow: var(--rv-ring); }
.rvwp-check__ui { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--rv-line); background: var(--rv-surface); flex: none; display: grid; place-items: center; transition: all .15s; margin-top: 1px; }
.rvwp-check input:checked + .rvwp-check__ui, .rvwp-fee input:checked + .rvwp-check__ui {
	border-color: var(--rv-primary);
	background: var(--rv-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='m9.5 16.6-4.1-4.1L4 13.9l5.5 5.5L20 8.9l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
}
.rvwp-fee { padding: 14px; border-radius: 14px; background: var(--rv-tint); border: 1.5px dashed color-mix(in srgb, var(--rv-primary) 45%, transparent); font-weight: 600; }
.rvwp-dedication { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 14px; background: var(--rv-soft); }
.rvwp-dedication__fields { display: none; flex-direction: column; gap: 10px; }
.rvwp-dedication.is-open .rvwp-dedication__fields { display: flex; animation: rvwp-in .25s ease both; }
.rvwp-dedication .form-row { margin: 0; padding: 0; }
.rvwp-seg { display: flex; gap: 6px; padding: 4px; background: var(--rv-surface); border: 1px solid var(--rv-line); border-radius: 12px; }
.rvwp-seg__opt { flex: 1; margin: 0; }
.rvwp-seg__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rvwp-seg__opt span { display: block; text-align: center; padding: 8px 6px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--rv-muted); cursor: pointer; transition: all .15s; }
.rvwp-seg__opt input:checked + span { background: var(--rv-grad); color: #fff; box-shadow: 0 4px 10px color-mix(in srgb, var(--rv-primary) 30%, transparent); }
.rvwp-seg__opt input:focus-visible + span { box-shadow: var(--rv-ring); }

/* Summary */
.rvwp-summary { display: flex; flex-direction: column; gap: 6px; border: 0 !important; margin: 0 !important; }
.rvwp-summary__items { list-style: none; margin: 0; padding: 0; }
.rvwp-summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14.5px; border-bottom: 1px dashed var(--rv-line); }
.rvwp-summary__name { color: var(--rv-ink); }
.rvwp-summary__qty { color: var(--rv-muted); font-size: 13px; }
.rvwp-summary__val { font-weight: 600; white-space: nowrap; direction: ltr; }
.rvwp-summary__row--fee .rvwp-summary__name, .rvwp-summary__row--fee .rvwp-summary__val { color: var(--rv-muted); }
.rvwp-summary__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; font-weight: 700; font-size: 16px; }
.rvwp-summary__total strong { font-size: 26px; direction: ltr; letter-spacing: -.02em; }
.rvwp-summary__total small { font-size: 12px; color: var(--rv-muted); font-weight: 600; }

/* Payment block (WooCommerce + Square) */
.rvwp-checkout #payment { background: transparent !important; border-radius: 0; }
.rvwp-checkout #payment ul.payment_methods { padding: 0 !important; border: 0 !important; margin: 0 0 12px !important; list-style: none; }
.rvwp-checkout #payment ul.payment_methods li { padding: 12px 14px; border: 1.5px solid var(--rv-line); border-radius: 14px; margin-bottom: 8px; background: var(--rv-surface); list-style: none; }
.rvwp-checkout #payment ul.payment_methods li > label { font-weight: 600; font-size: 15px; }
.rvwp-checkout #payment div.payment_box { background: var(--rv-soft) !important; border-radius: 12px; margin: 10px 0 0 !important; padding: 12px !important; font-size: 14px; color: var(--rv-ink); }
.rvwp-checkout #payment div.payment_box::before { display: none; }
.rvwp-checkout #payment .place-order { padding: 0 !important; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rvwp-checkout #payment .woocommerce-privacy-policy-text { font-size: 12px; color: var(--rv-muted); }
.rvwp-checkout #place_order {
	width: 100%; float: none; border: 0; border-radius: 999px; padding: 18px 24px; font: 700 18px var(--rv-font); color: #fff;
	background: var(--rv-grad); box-shadow: 0 10px 26px color-mix(in srgb, var(--rv-primary) 38%, transparent); transition: transform .15s, filter .2s;
}
.rvwp-checkout #place_order:hover { transform: translateY(-1px); filter: brightness(1.05); }
.rvwp-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--rv-muted); }
.rvwp-trust li { display: flex; align-items: center; gap: 8px; }
.rvwp-trust svg { color: var(--rv-primary); }
.rvwp-trust__emoji { flex: none; width: 1.25em; text-align: center; font-size: 15px; line-height: 1; }
/*
 * Facebook / Instagram in-app browsers report the phone's navigation-bar inset as
 * safe-area-inset-bottom although the page does not reach under it: bottom bars got a
 * blank strip below the button. Those browsers get the plain padding (body.rvwp-iab).
 */
body.rvwp-iab .rvwp-floating__bar { padding-bottom: 11px !important; }
body.rvwp-iab .rvwp-sticky-pay, body.rvwp-iab .rvwp-xbar { padding-bottom: 10px !important; }
body.rvwp-iab .rvwp-modal__panel { padding-bottom: 0 !important; }
.rvwp-checkout .woocommerce-NoticeGroup, .rvwp-checkout .woocommerce-error { grid-column: 1 / -1; }
.woocommerce-checkout .rvwp-checkout ~ .woocommerce-error, .rvwp-checkout .woocommerce-error { border-radius: 14px; }

/* Sticky express pay */
.rvwp-sticky-pay {
	position: fixed; z-index: 9995; inset-inline: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
	background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--rv-line); box-shadow: 0 -10px 30px rgba(10, 40, 30, .12);
}
.rvwp-sticky-pay { transition: transform .3s ease, opacity .3s ease; }
.rvwp-sticky-pay.is-hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }
.rvwp-sticky-pay__inner { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.rvwp-sticky-pay__total { display: flex; flex-direction: column; line-height: 1.2; flex: none; }
.rvwp-sticky-pay__total span { font-size: 12px; color: var(--rv-muted); }
.rvwp-sticky-pay__total strong { font-size: 22px; direction: ltr; }
.rvwp-sticky-pay__wallets { flex: 1; min-width: 0; }
.rvwp-sticky-pay__wallets #wc-square-digital-wallet { display: flex; gap: 8px; margin: 0 !important; }
.rvwp-sticky-pay__wallets #wc-square-digital-wallet > div { flex: 1; min-width: 0; margin: 0 !important; height: 48px !important; border-radius: 999px !important; overflow: hidden; }
.rvwp-sticky-pay__wallets #wc-square-wallet-divider { display: none; }
.rvwp-sticky-pay__wallets #wc-stripe-express-checkout-element { margin: 0 !important; }
.rvwp-sticky-pay__wallets #wc-stripe-express-checkout-button-separator,
.rvwp-checkout #wc-stripe-express-checkout-button-separator { display: none !important; }
.rvwp-wallet--stripe { min-height: 50px; }
.rvwp-sticky-pay__fallback { flex: 1; }
.rvwp-sticky-pay.has-wallet .rvwp-sticky-pay__fallback { display: none; }
.rvwp-sticky-pay:not(.has-wallet) .rvwp-sticky-pay__wallets { display: none; }
@media (min-width: 981px) {
	.rvwp-sticky-pay.is-hidden { transform: translate(-50%, 140%); }
	.rvwp-sticky-pay { inset-inline: auto; left: 50%; transform: translateX(-50%); bottom: 18px; width: min(760px, calc(100% - 32px)); border: 1px solid var(--rv-line); border-radius: 22px; padding: 12px 16px; }
	.rvwp-sticky-pay:not(.has-wallet) { display: none; }
}
@media (max-width: 980px) {
	.rvwp-co-grid { grid-template-columns: 1fr; }
	.rvwp-co-side { position: static; }
	.rvwp-co-hero__img { width: 72px; height: 72px; }
	.rvwp-co-hero__title { font-size: 18px; }
}
@media (max-width: 480px) {
	.rvwp-checkout { padding: 12px 10px 130px; }
	.rvwp-co-section, .rvwp-co-pay { padding: 16px; }
	.rvwp-checkout .rvwp-fields { grid-template-columns: 1fr; }
	.rvwp-checkout .rvwp-fields .form-row-first, .rvwp-checkout .rvwp-fields .form-row-last { grid-column: 1 / -1; }
	.rvwp-upsells { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- Thank you */
.rvwp-ty { max-width: 1040px; margin: 0 auto; padding: 32px 16px 60px; }
.rvwp-ty-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 26px; }
.rvwp-ty-check { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: var(--rv-grad); box-shadow: 0 16px 40px color-mix(in srgb, var(--rv-primary) 40%, transparent); animation: rvwp-pop .5s cubic-bezier(.2, .9, .3, 1.3) both; }
.rvwp-ty-check svg { width: 56px; height: 56px; }
.rvwp-ty-check circle { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 2; }
.rvwp-ty-check path { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: rvwp-draw .6s .35s ease forwards; }
@keyframes rvwp-draw { to { stroke-dashoffset: 0; } }
.rvwp-ty-title { margin: 8px 0 0; font-size: 30px; font-weight: 700; line-height: 1.3; color: var(--rv-ink); }
.rvwp-ty-sub { margin: 0; color: var(--rv-muted); font-size: 16px; max-width: 520px; }
.rvwp-ty-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.rvwp-ty-summary { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.rvwp-ty-summary__img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 14px; }
.rvwp-ty-meta { margin: 6px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rvwp-ty-meta div { background: var(--rv-soft); border-radius: 12px; padding: 10px 12px; }
.rvwp-ty-meta__wide { grid-column: 1 / -1; }
.rvwp-ty-meta dt { font-size: 12px; color: var(--rv-muted); }
.rvwp-ty-meta dd { margin: 0; font-weight: 700; }
.rvwp-ty-side { display: flex; flex-direction: column; gap: 18px; }
.rvwp-ty-monthly, .rvwp-ty-share { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.rvwp-ty-monthly { background: linear-gradient(160deg, color-mix(in srgb, var(--rv-primary) 10%, #fff), color-mix(in srgb, var(--rv-secondary) 10%, #fff)); border-color: color-mix(in srgb, var(--rv-primary) 25%, var(--rv-line)); }
.rvwp-ty-monthly h2, .rvwp-ty-share h2 { margin: 0; font-size: 19px; font-weight: 700; color: var(--rv-ink); }
.rvwp-ty-monthly p, .rvwp-ty-share p { margin: 0; color: var(--rv-muted); font-size: 14.5px; }
.rvwp-ty-monthly.is-done .rvwp-btn { display: none; }
.rvwp-ty-monthly__done { font-weight: 600; color: var(--rv-primary) !important; }
.rvwp-share { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rvwp-share__btn { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 12px; border: 0; font: 700 14.5px var(--rv-font); color: #fff !important; text-decoration: none !important; transition: transform .15s, filter .15s; }
.rvwp-share__btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.rvwp-share__btn--wa { background: #25D366; }
.rvwp-share__btn--fb { background: #1877F2; }
.rvwp-share__btn--x { background: #111; }
.rvwp-share__btn--copy { background: var(--rv-soft); color: var(--rv-ink) !important; border: 1.5px solid var(--rv-line); }
.rvwp-ty-tax { margin: 22px auto 0; max-width: 760px; text-align: center; font-size: 12.5px; color: var(--rv-muted); }
.rvwp-ty-back { text-align: center; margin: 10px 0 0; }
.rvwp-ty-back a { color: var(--rv-primary); font-weight: 600; }
@media (max-width: 820px) { .rvwp-ty-grid { grid-template-columns: 1fr; } .rvwp-ty-title { font-size: 24px; } }

@media (prefers-reduced-motion: reduce) {
	.rvwp *, .rvwp *::before, .rvwp *::after { animation: none !important; transition: none !important; }
	.rvwp-ty-check path { stroke-dashoffset: 0; }
}

/* ------------------------------------------------- Express pay (Apple / Google Pay) */
.rvwp-xbar {
	position: fixed; z-index: 9991; inset-inline: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
	background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.92) 35%); pointer-events: none;
}
.rvwp-xbar__btn {
	pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; max-width: 560px; margin: 0 auto;
	padding: 10px 12px 10px 18px; border: 0; border-radius: 18px; background: #0b0b0c; color: #fff; text-align: start;
	box-shadow: 0 14px 34px rgba(0, 0, 0, .28); transition: transform .15s ease, box-shadow .2s ease; animation: rvwp-sheet .5s cubic-bezier(.2, .9, .3, 1) .6s both;
}
[dir="rtl"] .rvwp-xbar__btn { padding: 10px 18px 10px 12px; }
.rvwp-xbar__btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0, 0, 0, .32); }
.rvwp-xbar__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.rvwp-xbar__text strong { font-size: 16px; font-weight: 700; }
.rvwp-xbar__text small { font-size: 12px; color: rgba(255,255,255,.65); }
.rvwp-xbar__text small::before { content: "🔒 "; }
.rvwp-xbar__marks { display: flex; gap: 8px; flex: none; }
.rvwp-mark { direction: ltr; display: inline-flex; align-items: center; gap: 3px; height: 36px; padding: 0 12px; border-radius: 10px; background: #fff; color: #000; font: 600 16px/1 -apple-system, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif; letter-spacing: -.01em; }
.rvwp-mark svg { width: 17px; height: 17px; }
.rvwp-mark--apple svg { width: 19px; height: 19px; margin-top: -2px; }
.rvwp-mark--google { color: #5f6368; }
.rvwp-mark--lg { height: 50px; flex: 1; justify-content: center; border-radius: 12px; background: #000; color: #fff; font-size: 19px; }
.rvwp-mark--lg.rvwp-mark--google { color: #fff; }
.rvwp-mark--lg svg { width: 21px; height: 21px; }
body.rvwp-has-xbar { padding-bottom: 86px; }
body.rvwp-has-xbar .rvwp-floating__bar { display: none !important; }
body.rvwp-has-xbar .rvwp-floating__tab { top: 42%; }

.rvwp-field__note { font-size: 12px; color: var(--rv-muted); font-weight: 400; }
.rvwp-wallets { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: var(--rv-soft); border: 1px solid var(--rv-line); }
.rvwp-wallet-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 14px; color: var(--rv-muted); }
.rvwp-wallet-total strong { font-size: 22px; color: var(--rv-ink); }
.rvwp-wallet { width: 100%; }
.rvwp-applepay {
	display: block; width: 100%; height: 50px; border-radius: 12px; cursor: pointer;
	-webkit-appearance: -apple-pay-button; -apple-pay-button-type: donate; -apple-pay-button-style: black;
}
#rvwp-gpay { min-height: 50px; border-radius: 12px; overflow: hidden; }
.rvwp-wallet-demo { display: flex; gap: 10px; opacity: .55; pointer-events: none; }
.rvwp-wallet-loading { display: flex; justify-content: center; padding: 10px; }
.rvwp-wallet-loading i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--rv-line); border-top-color: var(--rv-primary); animation: rvwp-spin .8s linear infinite; }
.rvwp-wallet-note { margin: 0; font-size: 13px; line-height: 1.6; color: var(--rv-muted); text-align: center; }
.rvwp-modal--express form.is-paying .rvwp-wallets { opacity: .6; pointer-events: none; }
@media (max-width: 600px) {
	.rvwp-xbar__btn { border-radius: 16px; }
	.rvwp-xbar__text strong { font-size: 15px; }
	.rvwp-mark { height: 34px; padding: 0 10px; font-size: 15px; }
}

/* Phone field with country code on the checkout */
.rvwp-checkout .rvwp-phone--enhanced { height: 50px; }
.rvwp-checkout .rvwp-phone--enhanced:focus-within { border-color: var(--rv-primary); box-shadow: var(--rv-ring); }
.rvwp-checkout .woocommerce-invalid .rvwp-phone--enhanced { border-color: var(--rv-danger); }

/* ------------------------------------------------------------ Input polish + icons */
.rvwp {
	--rv-field-bg: #f8fbfa;
	--rv-i-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239fb0ab'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-4.4 0-8 2.2-8 5v1a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-1c0-2.8-3.6-5-8-5z'/%3E%3C/svg%3E");
	--rv-i-user-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232BA84A'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-4.4 0-8 2.2-8 5v1a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-1c0-2.8-3.6-5-8-5z'/%3E%3C/svg%3E");
	--rv-i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239fb0ab'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v.5l-10 6.3L2 6.5V6a2 2 0 0 1 2-2zm-2 4.8 9.5 6a1 1 0 0 0 1 0l9.5-6V18a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8.8z'/%3E%3C/svg%3E");
	--rv-i-mail-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232BA84A'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v.5l-10 6.3L2 6.5V6a2 2 0 0 1 2-2zm-2 4.8 9.5 6a1 1 0 0 0 1 0l9.5-6V18a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8.8z'/%3E%3C/svg%3E");
	--rv-i-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239fb0ab'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.1.37 2.3.57 3.6.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1L6.6 10.8z'/%3E%3C/svg%3E");
	--rv-i-phone-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232BA84A'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.1.37 2.3.57 3.6.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1L6.6 10.8z'/%3E%3C/svg%3E");
	--rv-i-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239fb0ab'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.7 4.5c2.1 0 3.6 1.1 4.3 2.4.7-1.3 2.2-2.4 4.3-2.4 3.7 0 5.8 3.9 4.3 7.3C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E");
	--rv-i-heart-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232BA84A'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.7 4.5c2.1 0 3.6 1.1 4.3 2.4.7-1.3 2.2-2.4 4.3-2.4 3.7 0 5.8 3.9 4.3 7.3C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E");
}

/* Soft fields: tinted at rest, white with a glow on focus. */
.rvwp .rvwp-input,
.rvwp-checkout .form-row input.input-text,
.rvwp-checkout .form-row textarea,
.rvwp .rvwp-phone,
.rvwp .rvwp-custom {
	background-color: var(--rv-field-bg) !important;
	border-color: var(--rv-line);
	box-shadow: inset 0 1px 2px rgba(16, 48, 42, .04);
	transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.rvwp .rvwp-input:hover,
.rvwp-checkout .form-row input.input-text:hover,
.rvwp-checkout .form-row textarea:hover,
.rvwp .rvwp-phone:hover,
.rvwp .rvwp-custom:hover { border-color: color-mix(in srgb, var(--rv-primary) 35%, var(--rv-line)); }
.rvwp .rvwp-input:focus,
.rvwp-checkout .form-row input.input-text:focus,
.rvwp-checkout .form-row textarea:focus,
.rvwp .rvwp-phone:focus-within,
.rvwp .rvwp-custom:focus-within {
	background-color: #fff !important;
	border-color: var(--rv-primary);
	box-shadow: var(--rv-ring), 0 6px 16px -8px color-mix(in srgb, var(--rv-primary) 45%, transparent);
}
.rvwp .rvwp-input::placeholder,
.rvwp-checkout .form-row input.input-text::placeholder,
.rvwp .rvwp-phone input::placeholder,
.rvwp .rvwp-custom input::placeholder { color: #a7b5b1; font-weight: 400; }
.rvwp .rvwp-phone select { background-color: color-mix(in srgb, var(--rv-primary) 7%, #fff) !important; font-weight: 700; }
.rvwp .rvwp-phone input { background-color: transparent !important; }
.rvwp .rvwp-field > span:first-child, .rvwp-checkout .form-row label { letter-spacing: .01em; }

/* Icons inside fields (start side: right in Arabic, left in English). */
.rvwp .rvwp-ico { background-repeat: no-repeat !important; background-size: 18px 18px !important; }
.rvwp[dir="rtl"] .rvwp-ico { background-position: right 14px center !important; padding-right: 44px !important; }
.rvwp[dir="ltr"] .rvwp-ico { background-position: left 14px center !important; padding-left: 44px !important; }
.rvwp .rvwp-phone .rvwp-ico { background-color: transparent !important; }
.rvwp .rvwp-ico.rvwp-ico--user { background-image: var(--rv-i-user) !important; }
.rvwp .rvwp-ico.rvwp-ico--user:focus { background-image: var(--rv-i-user-on) !important; }
.rvwp .rvwp-ico.rvwp-ico--mail { background-image: var(--rv-i-mail) !important; }
.rvwp .rvwp-ico.rvwp-ico--mail:focus { background-image: var(--rv-i-mail-on) !important; }
.rvwp .rvwp-ico.rvwp-ico--phone { background-image: var(--rv-i-phone) !important; }
.rvwp .rvwp-ico.rvwp-ico--phone:focus { background-image: var(--rv-i-phone-on) !important; }
.rvwp .rvwp-ico.rvwp-ico--heart { background-image: var(--rv-i-heart) !important; }
.rvwp .rvwp-ico.rvwp-ico--heart:focus { background-image: var(--rv-i-heart-on) !important; }
.rvwp .rvwp-custom__cur { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 14px; background: color-mix(in srgb, var(--rv-primary) 12%, #fff); color: var(--rv-primary); }
.rvwp .rvwp-custom.is-active .rvwp-custom__cur, .rvwp .rvwp-custom:focus-within .rvwp-custom__cur { background: var(--rv-primary); color: #fff; }
.rvwp .has-error .rvwp-input, .rvwp .has-error .rvwp-phone { background-color: color-mix(in srgb, var(--rv-danger) 5%, #fff) !important; }

/* ------------------------------------------------------- Country picker (flags) */
.rvwp-cc-host { position: relative; display: block; }
.rvwp .rvwp-cc {
	flex: none; display: inline-flex; align-items: center; gap: 7px; height: 100%; margin: 0; padding: 0 10px 0 12px;
	border: 0; border-right: 1px solid var(--rv-line); border-radius: 0; cursor: pointer;
	background: color-mix(in srgb, var(--rv-primary) 7%, #fff); color: var(--rv-ink); font: 700 14.5px var(--rv-font); direction: ltr;
	transition: background-color .15s ease;
}
.rvwp .rvwp-cc:hover, .rvwp .rvwp-cc[aria-expanded="true"] { background: color-mix(in srgb, var(--rv-primary) 14%, #fff); }
.rvwp .rvwp-cc:focus-visible { outline: 2px solid var(--rv-primary); outline-offset: -2px; }
.rvwp-flag { width: 22px; height: 16px; flex: none; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); background: var(--rv-soft); }
.rvwp-cc__caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--rv-muted); transition: transform .15s; }
.rvwp-cc[aria-expanded="true"] .rvwp-cc__caret { transform: rotate(180deg); }

.rvwp-cc-menu {
	position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; padding: 8px;
	background: #fff; border: 1px solid var(--rv-line); border-radius: 14px; box-shadow: var(--rv-shadow-lg);
	animation: rvwp-pop .18s ease both;
}
.rvwp .rvwp-cc-search {
	width: 100%; height: 42px; margin: 0 0 6px; padding: 0 12px; border: 1.5px solid var(--rv-line); border-radius: 10px;
	background: var(--rv-field-bg); font: 500 15px var(--rv-font); color: var(--rv-ink); outline: 0; box-shadow: none;
}
.rvwp .rvwp-cc-search:focus { border-color: var(--rv-primary); background: #fff; box-shadow: var(--rv-ring); }
.rvwp-cc-list { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow-y: auto; overscroll-behavior: contain; }
.rvwp .rvwp-cc-opt {
	display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px;
	background: transparent; color: var(--rv-ink); font: 500 14.5px var(--rv-font); text-align: start; cursor: pointer;
}
.rvwp .rvwp-cc-opt:hover, .rvwp .rvwp-cc-opt:focus { background: var(--rv-soft); outline: 0; }
.rvwp .rvwp-cc-opt.is-on { background: var(--rv-tint); color: var(--rv-primary); font-weight: 700; }
.rvwp-cc-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rvwp-cc-dial { color: var(--rv-muted); font-weight: 600; font-size: 13.5px; }
.rvwp-cc-opt.is-on .rvwp-cc-dial { color: var(--rv-primary); }
.rvwp-cc-empty { padding: 12px; text-align: center; color: var(--rv-muted); }
.rvwp-checkout .rvwp-cc { font-size: 14px; }

/* ------------------------------------------------- Local currency card (≈) */
.rvwp .rvwp-approx {
	position: relative; display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px;
	border-radius: 16px; border: 1.5px solid color-mix(in srgb, var(--rv-primary) 32%, transparent);
	background: linear-gradient(120deg, color-mix(in srgb, var(--rv-primary) 11%, #fff), color-mix(in srgb, var(--rv-secondary) 11%, #fff));
	box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--rv-primary) 70%, transparent);
	overflow: hidden;
}
.rvwp .rvwp-approx::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
	transform: translateX(-120%); animation: rvwp-shine 3.2s ease-in-out 1s infinite;
}
.rvwp .rvwp-approx .rvwp-flag { width: 36px; height: 27px; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,.15), 0 0 0 1px rgba(0,0,0,.06); }
.rvwp-approx__body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.rvwp-approx__label { font-size: 12.5px; font-weight: 600; color: var(--rv-muted); }
.rvwp-approx__value { font-size: 23px; font-weight: 800; letter-spacing: -.01em; color: var(--rv-ink); text-align: start; }
[dir="rtl"] .rvwp-approx__value { text-align: right; }
.rvwp-approx__usd {
	flex: none; display: flex; flex-direction: column; align-items: center; line-height: 1.2;
	padding: 6px 10px; border-radius: 12px; background: rgba(255,255,255,.75); border: 1px dashed color-mix(in srgb, var(--rv-primary) 40%, transparent);
}
.rvwp-approx__usd b { font-size: 15.5px; font-weight: 800; color: var(--rv-primary); }
.rvwp-approx__usd small { font-size: 10.5px; font-weight: 600; color: var(--rv-muted); }
.rvwp .rvwp-approx.is-bump .rvwp-approx__value { animation: rvwp-bump .45s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes rvwp-bump { 0% { transform: scale(1); } 40% { transform: scale(1.08); color: var(--rv-primary); } 100% { transform: scale(1); } }
@media (max-width: 380px) { .rvwp-approx__value { font-size: 20px; } .rvwp .rvwp-approx .rvwp-flag { width: 30px; height: 22px; } }

/* ------------------------------------------------- Thank-you: documents + offer */
.rvwp-ty a.rvwp-btn, .rvwp-ty a.rvwp-btn:hover, .rvwp-ty a.rvwp-btn:visited { text-decoration: none; color: #fff; }
.rvwp-ty-docs, .rvwp-ty-offer { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.rvwp-ty-docs h2, .rvwp-ty-offer h2 { margin: 0; font-size: 19px; font-weight: 700; color: var(--rv-ink); }
.rvwp-doc { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--rv-line); border-radius: 14px; background: var(--rv-surface); flex-wrap: wrap; }
.rvwp-doc--cert { background: linear-gradient(150deg, #fffaf0, #fff); border-color: #ecd9ae; }
.rvwp-doc__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; flex: none; background: var(--rv-tint); }
.rvwp-doc--cert .rvwp-doc__icon { background: #f8ecd0; }
.rvwp-doc__body { flex: 1; min-width: 140px; display: flex; flex-direction: column; gap: 2px; }
.rvwp-doc__body b { font-size: 15px; color: var(--rv-ink); }
.rvwp-doc__body small { color: var(--rv-muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rvwp-doc__actions { display: flex; gap: 8px; }
.rvwp-ty .rvwp-doc__btn, .rvwp-ty .rvwp-doc__ghost { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 13.5px; text-decoration: none !important; white-space: nowrap; transition: transform .2s, box-shadow .2s; }
.rvwp-ty .rvwp-doc__btn { background: var(--rv-ink); color: #fff !important; box-shadow: 0 8px 18px -10px rgba(10, 30, 26, .6); }
.rvwp-ty .rvwp-doc--cert .rvwp-doc__btn { background: linear-gradient(120deg, #c99a3c, #b8892b); }
.rvwp-ty .rvwp-doc__ghost { background: transparent; color: var(--rv-ink) !important; border: 1px solid var(--rv-line); }
.rvwp-ty .rvwp-doc__btn:hover, .rvwp-ty .rvwp-doc__ghost:hover { transform: translateY(-1px); }
.rvwp-ty-offer { padding: 0; overflow: hidden; border-color: color-mix(in srgb, var(--rv-primary) 25%, var(--rv-line)); }
.rvwp-ty-offer__img { width: 100%; height: 150px; object-fit: cover; display: block; }
.rvwp-ty-offer__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.rvwp-ty-offer__body p { margin: 0; color: var(--rv-muted); font-size: 14.5px; }
.rvwp-ty-offer__amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rvwp-ty .rvwp-ty-offer__amount { display: grid; place-items: center; padding: 11px 6px; border: 1.5px solid var(--rv-line); border-radius: 12px; font-weight: 800; font-size: 16px; color: var(--rv-ink) !important; text-decoration: none !important; direction: ltr; transition: border-color .2s, background .2s; }
.rvwp-ty .rvwp-ty-offer__amount:hover { border-color: var(--rv-primary); background: var(--rv-tint); }

/* Order fields at checkout */
.rvwp-ofields { margin-top: 18px; padding: 16px; border: 1px solid var(--rv-line); border-radius: 16px; background: var(--rv-soft, #f6faf8); display: flex; flex-direction: column; gap: 12px; }
.rvwp-ofields__title { margin: 0; font-size: 16px; font-weight: 700; color: var(--rv-ink); }
.rvwp-ofield { margin: 0 !important; display: flex; flex-direction: column; gap: 6px; }
.rvwp-ofield > label { font-weight: 600; font-size: 14px; }
.rvwp-ofield select, .rvwp-ofield input.input-text, .rvwp-ofield textarea { width: 100%; }
.rvwp-seg--wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.rvwp-seg--wrap .rvwp-seg__opt { flex: 0 1 auto; }

/* Thank-you: WhatsApp */
.rvwp-ty-wa { padding: 22px; display: flex; flex-direction: column; gap: 10px; border-color: #bfe9cf; background: linear-gradient(160deg, #effbf3, #fff); }
.rvwp-ty-wa h2 { margin: 0; font-size: 19px; font-weight: 700; color: var(--rv-ink); }
.rvwp-ty-wa p { margin: 0; color: var(--rv-muted); font-size: 14.5px; }
.rvwp-ty a.rvwp-wa-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 18px; border-radius: 999px; background: #25d366; color: #fff !important; font-weight: 800; font-size: 16px; text-decoration: none !important; box-shadow: 0 12px 24px -12px rgba(37, 211, 102, .7); transition: transform .2s; }
.rvwp-ty a.rvwp-wa-btn:hover { transform: translateY(-1px); }
.rvwp-wa-btn svg { width: 22px; height: 22px; }
.rvwp-ofield__label { font-weight: 600; font-size: 14px; }
.rvwp-ofields .rvwp-seg--wrap { background: transparent; border: 0; padding: 0; gap: 8px; }
.rvwp-ofields .rvwp-seg--wrap .rvwp-seg__opt span { border: 1.5px solid var(--rv-line); border-radius: 999px; padding: 9px 16px; background: var(--rv-surface); color: var(--rv-ink); font-weight: 600; }
.rvwp-ofields .rvwp-seg--wrap .rvwp-seg__opt span:hover { border-color: var(--rv-primary); }
.rvwp-ofields .rvwp-seg--wrap .rvwp-seg__opt input:checked + span { border-color: transparent; color: #fff; background: var(--rv-grad, var(--rv-primary)); }
.rvwp-ofields select, .rvwp-ofields textarea, .rvwp-ofields input.input-text { border: 1.5px solid var(--rv-line) !important; border-radius: 12px !important; background: var(--rv-field-bg, #f6f9f8) !important; padding: 12px 14px !important; font: inherit; font-size: 15px; color: var(--rv-ink); box-shadow: none !important; outline: none; }
.rvwp-ofields select:focus, .rvwp-ofields textarea:focus, .rvwp-ofields input.input-text:focus { border-color: var(--rv-primary) !important; box-shadow: 0 0 0 4px var(--rv-tint) !important; background: #fff !important; }
.rvwp-ofields select { appearance: auto; min-height: 48px; }

/* ------------------------------------------------- Theme guard
   Many themes (Hello Elementor, Astra…) paint EVERY <button> on hover/focus, e.g.
   `button:hover, button:focus { background-color: #c36; color: #fff }`. A clicked amount
   keeps focus, so it turned pink/white. Each of our buttons keeps its own colours here. */
.rvwp .rvwp-amount:is(:hover, :focus, :active),
.rvwp .rvwp-impact__row:is(:hover, :focus, :active) { background-color: var(--rv-surface); color: var(--rv-ink); }
.rvwp .rvwp-amount.is-selected:is(:hover, :focus, :active),
.rvwp .rvwp-impact__row.is-selected:is(:hover, :focus, :active) { background-color: var(--rv-tint); color: var(--rv-ink); }
.rvwp .rvwp-form--s2 .rvwp-amount:not(.is-selected):is(:hover, :focus, :active) { background-color: transparent; }
.rvwp .rvwp-qty__btn:is(:focus, :active) { background-color: var(--rv-surface); color: var(--rv-ink); }
.rvwp .rvwp-qty__btn:hover { background-color: var(--rv-surface); color: var(--rv-primary); }
.rvwp .rvwp-modal__close:is(:focus, :active) { background-color: var(--rv-soft); color: var(--rv-ink); }
.rvwp .rvwp-modal__close:hover { background-color: var(--rv-line); color: var(--rv-ink); }
.rvwp .rvwp-xi__later:is(:hover, :focus, :active) { background: none; color: var(--rv-ink); }
.rvwp .rvwp-xi__close:is(:hover, :focus, :active) { background-color: #fff; color: #23302d; }
.rvwp .rvwp-xbar__btn:is(:hover, :focus, :active) { background-color: #0b0b0c; color: #fff; }
.rvwp .rvwp-upsell__toggle:is(:hover, :focus, :active) { background-color: transparent; color: inherit; }
.rvwp .rvwp-spread__amt:is(:hover, :focus, :active) { background-color: var(--rv-surface); color: var(--rv-ink); }
.rvwp .rvwp-spread__amt.is-selected:is(:hover, :focus, :active) { background-color: var(--rv-tint); color: var(--rv-primary); }
.rvwp .rvwp-spread__none:is(:focus, :active) { background-color: var(--rv-surface); color: var(--rv-ink); }
.rvwp .rvwp-spread__none:hover { background-color: var(--rv-surface); color: var(--rv-danger); }
.rvwp .rvwp-orphan .rvwp-spread__amt:is(:hover, :focus, :active) { background-color: var(--rv-surface); color: var(--rv-ink); }
.rvwp .rvwp-orphan .rvwp-spread__amt.is-selected:is(:hover, :focus, :active) { background: var(--rv-orp-grad); background-color: #047857; color: #fff; }
.rvwp .rvwp-share__btn--copy:is(:hover, :focus, :active) { background-color: var(--rv-soft); }
.rvwp .rvwp-msgbar__close:is(:hover, :focus, :active) { background-color: rgba(255, 255, 255, .25); color: inherit; }
.rvwp.rvwp-msgbar--s3 .rvwp-msgbar__close:is(:hover, :focus, :active) { background-color: var(--rv-line); }
.rvwp .rvwp-btn--light:is(:hover, :focus, :active) { background-color: #fff; color: var(--rv-primary); }
.rvwp .rvwp-cc:is(:focus, :active) { background-color: color-mix(in srgb, var(--rv-primary) 7%, #fff); color: var(--rv-ink); }
.rvwp .rvwp-cc:hover { color: var(--rv-ink); }
.rvwp .rvwp-cc-opt:is(:hover, :focus, :active) { color: var(--rv-ink); }
.rvwp .rvwp-cc-opt.is-on:is(:hover, :focus, :active) { background-color: var(--rv-tint); color: var(--rv-primary); }
.rvwp .rvwp-donor__match:is(:focus, :active):not(:hover):not(:focus-visible) { background-color: transparent; color: var(--rv-btn-bg, var(--rv-primary)); }
.rvwp .rvwp-btn--primary:is(:focus, :active) { color: var(--rv-btn-text, #fff); }

/* Quick-pay popup: required details */
.rvwp-ofields--express { margin-top: 12px; padding: 14px; gap: 10px; }
.rvwp-ofields--express .rvwp-ofield__label { font-size: 13.5px; }

/* People of a dedication (checkout + quick pay) */
.rvwp-people { display: flex; flex-direction: column; gap: 10px; margin: 8px 0; }
.rvwp-people__rows { display: flex; flex-direction: column; gap: 10px; }
.rvwp-person { display: flex; flex-direction: column; gap: 8px; }
.rvwp-people.is-multi .rvwp-person { padding: 12px; border: 1px solid var(--rv-line); border-radius: 14px; background: var(--rv-surface); }
.rvwp-person__head { display: flex; align-items: center; justify-content: space-between; min-height: 0; }
.rvwp-people:not(.is-multi) .rvwp-person__head { display: none; }
.rvwp-person__n { font-weight: 700; font-size: 13.5px; color: var(--rv-primary); }
.rvwp .rvwp-person__del, .rvwp .rvwp-person__del:is(:hover, :focus, :active) { width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 1px solid var(--rv-line); background: var(--rv-surface); color: #c2410c; font-size: 18px; line-height: 1; cursor: pointer; }
.rvwp-person__g .rvwp-seg__opt span { padding: 6px 14px !important; font-size: 13px; }
.rvwp .rvwp-people__add, .rvwp .rvwp-people__add:is(:hover, :focus, :active) { align-self: flex-start; border: 1.5px dashed var(--rv-primary); background: var(--rv-tint); color: var(--rv-primary); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.rvwp-people__hint { margin: 0; font-size: 13px; color: var(--rv-muted); }
.rvwp-person .rvwp-seg--wrap { background: transparent; border: 0; padding: 0; gap: 8px; }
.rvwp-person .rvwp-seg--wrap .rvwp-seg__opt span { border: 1.5px solid var(--rv-line); border-radius: 999px; padding: 8px 14px; background: var(--rv-surface); color: var(--rv-ink); font-weight: 600; }
.rvwp-person .rvwp-seg--wrap .rvwp-seg__opt input:checked + span { border-color: transparent; color: #fff; background: var(--rv-grad, var(--rv-primary)); }
.rvwp-person__name { width: 100%; border: 1.5px solid var(--rv-line) !important; border-radius: 12px !important; background: var(--rv-field-bg, #f6f9f8) !important; padding: 12px 14px !important; font: inherit; font-size: 15px; box-shadow: none !important; }
.rvwp-person__name:focus { border-color: var(--rv-primary) !important; box-shadow: 0 0 0 4px var(--rv-tint) !important; background: #fff !important; outline: none; }

/* PayPal button in the donation popup */
.rvwp .rvwp-btn--paypal, .rvwp .rvwp-btn--paypal:is(:hover, :focus, :active, :visited) { margin-top: 10px; background: #ffc439; color: #111; box-shadow: none; border: 0; gap: 8px; }
.rvwp .rvwp-btn--paypal:hover { background: #f2ba36; color: #111; transform: translateY(-1px); }
.rvwp .rvwp-btn--paypal:focus-visible { outline: 3px solid #003087; outline-offset: 2px; }
.rvwp .rvwp-btn--paypal.is-loading::after { border-color: rgba(0, 0, 0, .25); border-top-color: #111; }
.rvwp-pp-logo { display: inline-flex; font: italic 800 21px/1 Verdana, "Helvetica Neue", Arial, sans-serif; letter-spacing: -.5px; }
.rvwp-pp-logo i { font-style: italic; color: #003087; }
.rvwp-pp-logo i + i { color: #009cde; }

/* Checkout: Apple Pay / Google Pay inside the payment card, shown once the wallet SDK reveals a button. */
.rvwp-co-wallet { display: none; margin: 0 0 16px; }
.rvwp-co-wallet.is-on { display: block; }
.rvwp-co-wallet #wc-square-digital-wallet { flex-direction: column; gap: 10px; margin: 0 !important; }
.rvwp-co-wallet.is-on #wc-square-digital-wallet { display: flex !important; } /* Square reveals it with display:block */
.rvwp-co-wallet #wc-square-digital-wallet > div { width: 100%; min-height: 48px; margin: 0 !important; border-radius: 12px !important; overflow: hidden; }
.rvwp-co-wallet #wc-square-wallet-divider,
.rvwp-co-wallet #wc-stripe-express-checkout-button-separator { display: none !important; }
.rvwp-co-wallet #wc-stripe-express-checkout-element { margin: 0 !important; }
.rvwp-co-wallet__or { display: flex; align-items: center; gap: 12px; margin-top: 16px; color: var(--rv-muted); font-size: 13px; }
.rvwp-co-wallet__or::before, .rvwp-co-wallet__or::after { content: ""; flex: 1; height: 1px; background: var(--rv-line); }

/* Country (checkout): same look as the other fields, native select or selectWoo. */
.rvwp-checkout .rvwp-co-country select,
.rvwp-checkout .rvwp-co-country .select2-container .select2-selection--single {
	width: 100%; min-height: 50px; height: 50px; padding: 0 14px; border: 1.5px solid var(--rv-line); border-radius: var(--rv-radius-sm);
	background-color: var(--rv-field-bg) !important; color: var(--rv-ink); font: 500 16px var(--rv-font); box-shadow: inset 0 1px 2px rgba(16, 48, 42, .04);
	display: flex; align-items: center; outline: 0;
}
.rvwp-checkout .rvwp-co-country .select2-container { width: 100% !important; }
.rvwp-checkout .rvwp-co-country .select2-selection__rendered { padding: 0 !important; line-height: 46px !important; color: var(--rv-ink) !important; }
.rvwp-checkout .rvwp-co-country .select2-selection__arrow { height: 48px !important; top: 0 !important; width: 24px !important; }
/* Arrow on the end side with room for it: in RTL it sat on top of the country name. */
.rvwp-checkout .rvwp-co-country .select2-container .select2-selection--single { position: relative; padding-inline-end: 42px; }
.rvwp-checkout .rvwp-co-country select { padding-inline-end: 42px; }
.rvwp-checkout .rvwp-co-country .select2-selection__arrow { right: 12px !important; left: auto !important; }
[dir="rtl"] .rvwp-checkout .rvwp-co-country .select2-selection__arrow,
.rvwp-checkout[dir="rtl"] .rvwp-co-country .select2-selection__arrow,
.rtl .rvwp-checkout .rvwp-co-country .select2-selection__arrow,
.rvwp-checkout .rvwp-co-country .select2-container--default[dir="rtl"] .select2-selection__arrow { left: 12px !important; right: auto !important; }
.rvwp-checkout .rvwp-co-country select:hover,
.rvwp-checkout .rvwp-co-country .select2-selection--single:hover { border-color: color-mix(in srgb, var(--rv-primary) 35%, var(--rv-line)); }
.rvwp-checkout .rvwp-co-country select:focus,
.rvwp-checkout .rvwp-co-country .select2-container--focus .select2-selection--single,
.rvwp-checkout .rvwp-co-country .select2-container--open .select2-selection--single { background-color: #fff !important; border-color: var(--rv-primary); box-shadow: var(--rv-ring); }
