/* ==========================================================================
   Ashbar Bagruyot — Payment styles
   ========================================================================== */

.ashbar-bagruyot-payment {
	margin: 1.5em 0;
	padding: 1.5em;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #f6f7f7;
	max-width: 480px;
}

.ashbar-bagruyot-payment-step {
	display: block;
}

/* ===== Step 1: email + terms ============================================ */
.ashbar-bagruyot-payment-label {
	display: block;
	margin-bottom: 0.4em;
	font-weight: 600;
	font-size: 1em;
}

.ashbar-bagruyot-payment-input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 0.6em 0.75em;
	font-size: 1em;
	line-height: 1.3;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ashbar-bagruyot-payment-input:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.ashbar-bagruyot-payment-input-ltr {
	direction: ltr;
	text-align: left;
}

.ashbar-bagruyot-payment-input-half {
	width: calc(50% - 0.25em);
	display: inline-block;
	box-sizing: border-box;
}

.ashbar-bagruyot-payment-help {
	margin: 0.4em 0 1em 0;
	color: #646970;
	font-size: 0.9em;
	line-height: 1.4;
}

.ashbar-bagruyot-payment-terms {
	display: flex;
	align-items: flex-start;
	gap: 0.5em;
	margin: 0.5em 0 1em 0;
	cursor: pointer;
	line-height: 1.5;
}

.ashbar-bagruyot-payment-terms input[type="checkbox"] {
	width: auto;
	margin-top: 0.25em;
	flex: 0 0 auto;
}

.ashbar-bagruyot-payment-terms a {
	color: #2271b1;
	text-decoration: underline;
}

.ashbar-bagruyot-payment-next {
	width: 100%;
	margin-top: 0.5em;
}

.ashbar-bagruyot-payment-step1-errors {
	margin: 0.5em 0 1em 0;
	padding: 0.5em 0.75em;
	color: #b32d2e;
	background: #fcf0f1;
	border-right: 3px solid #b32d2e;
	border-radius: 2px;
}

/* ===== Step 2: product + price + ID + PayPal =========================== */
.ashbar-bagruyot-payment-product {
	margin-bottom: 0.75em;
	padding: 0.75em 1em;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	line-height: 1.45;
}

.ashbar-bagruyot-payment-product-label {
	font-weight: 600;
	margin-left: 0.35em;
}

.ashbar-bagruyot-payment-product-name {
	color: #1d2327;
}

.ashbar-bagruyot-payment-price {
	margin-bottom: 1em;
	padding: 0.75em 1em;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75em;
}

.ashbar-bagruyot-payment-price-label {
	font-weight: 600;
}

.ashbar-bagruyot-payment-price-value {
	font-size: 1.05em;
	font-weight: 700;
	color: #00733b;
}

.ashbar-bagruyot-payment-id-wrap {
	margin: 0 0 1em 0;
}

.ashbar-bagruyot-payment-user-id {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 0.6em 0.75em;
	font-size: 1em;
	line-height: 1.3;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #fff;
	text-align: center;
	direction: ltr;
}

.ashbar-bagruyot-payment-user-id:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.ashbar-bagruyot-payment-user-id-error {
	display: block;
	margin-top: 0.3em;
	color: #b32d2e;
	font-size: 0.9em;
	min-height: 1.2em;
}

/* PayPal buttons */
.ashbar-bagruyot-paypal-button-wrap {
	margin-top: 1em;
	min-height: 50px;
}

.ashbar-bagruyot-paypal-button-container {
	min-height: 50px;
	pointer-events: none;
	opacity: 0.4;
	transition: opacity 0.15s ease;
}

/* The processing overlay covers the whole viewport between PayPal's onApprove
   and our inline success swap. Toggled via a body class so its z-index isn't
   trapped inside a theme/Elementor stacking context. */
.ashbar-bagruyot-processing-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2147483600;
	background: rgba(20, 24, 35, 0.78);
	align-items: center;
	justify-content: center;
}

body.ashbar-bagruyot-processing .ashbar-bagruyot-processing-overlay {
	display: flex;
}

body.ashbar-bagruyot-processing {
	overflow: hidden;
}

.ashbar-bagruyot-processing-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1em;
	padding: 2em 2.5em;
	min-width: 240px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
	color: #1d2327;
	font-family: inherit;
	direction: rtl;
	text-align: center;
}

.ashbar-bagruyot-processing-circle {
	width: 48px;
	height: 48px;
	border: 4px solid #dcdcde;
	border-top-color: #2271b1;
	border-radius: 50%;
	animation: ashbar-bagruyot-spin 0.8s linear infinite;
}

.ashbar-bagruyot-processing-text {
	margin: 0;
	font-size: 1.05em;
	font-weight: 600;
}

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

/* ===== Fake credit card form (honeypot) ================================ */
.ashbar-bagruyot-payment-fake-cc form p {
	margin: 0 0 0.75em 0;
}

.ashbar-bagruyot-payment-fake-cc input + input {
	margin-right: 0.5em;
}

.ashbar-bagruyot-payment-fake-error {
	margin: 0.75em 0;
	padding: 0.6em 0.85em;
	color: #b32d2e;
	background: #fcf0f1;
	border-right: 3px solid #b32d2e;
	border-radius: 2px;
}

.ashbar-bagruyot-payment-fake-submit {
	width: 100%;
}

/* ===== Inline success state ============================================= */
.ashbar-bagruyot-payment-success {
	/* shown by JS after a successful payment; styling lives in frontend.css
	   (.ashbar-bagruyot-success-inner) */
}
