/* Amra Ababil Donations — front-end styles, MASTUL-style layout (spec §33/§34) */

.aab-donation-block {
	--aab-primary: #4ba7c4;   /* active preset / accent teal */
	--aab-preset-bg: #dff6fb; /* inactive preset background */
	--aab-heading: #2547e0;   /* bold blue heading */
	--aab-donate: #e67e22;    /* orange Donate button */
	--aab-card-bg: #eaf2ff;   /* light blue container */
	--aab-radius: 10px;
	font-family: inherit;
	max-width: 720px;
}

.aab-card-frame {
	background: var(--aab-card-bg);
	border-radius: 14px;
	padding: 28px 32px;
}

.aab-heading {
	text-align: center;
	color: var(--aab-heading);
	font-weight: 800;
	font-size: 1.9rem;
	margin: 0 0 24px;
}

.aab-field-group { margin-bottom: 18px; }

.aab-label {
	display: block;
	font-weight: 500;
	margin-bottom: 8px;
	color: #222;
	font-size: 1.05rem;
}
.aab-required { color: #e0483e; }

.aab-input,
select.aab-input,
textarea.aab-input {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid #d6dee8;
	border-radius: 8px;
	font-size: 1rem;
	box-sizing: border-box;
	background: #fff;
	color: #222;
}
.aab-input::placeholder { color: #9aa5b1; }

select.aab-select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23555'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 18px;
	padding-right: 40px;
}

.aab-checkbox { display: flex; align-items: center; gap: 8px; font-size: .9rem; margin-bottom: 18px; cursor: pointer; }

/* Honeypot: visually and functionally hidden from real visitors, but present
   in the DOM/tab order for naive bots that auto-fill every input. */
.aab-hp {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	height: 0 !important;
	width: 0 !important;
	overflow: hidden !important;
}

.aab-form-message { color: #c0392b; font-size: .9rem; margin: 0 0 14px; }

/* --- Amount row: presets + Or + custom input + Donate, single wrapping row --- */
.aab-amount-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 4px;
}

.aab-amount-btn {
	background: var(--aab-preset-bg);
	color: #16323d;
	border: none;
	border-radius: 8px;
	padding: 16px 22px;
	font-size: 1.1rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}
.aab-amount-btn.aab-active {
	background: var(--aab-primary);
	color: #fff;
}

.aab-or {
	font-size: 1.2rem;
	color: #333;
	padding: 0 2px;
}

.aab-amount-input.aab-input {
	width: 110px;
	flex: 0 0 auto;
	padding: 16px 14px;
	font-size: 1.05rem;
	text-align: left;
}

.aab-amount-input-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
}
.aab-amount-input-wrap .aab-amount-prefix {
	position: absolute;
	left: 14px;
	color: #667;
	font-weight: 600;
	pointer-events: none;
}
.aab-amount-input-wrap .aab-amount-input {
	width: 130px;
	padding-left: 32px;
}

.aab-btn.aab-submit-donation,
.aab-btn.aab-open-popup {
	background: var(--aab-donate);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 16px 32px;
	font-weight: 700;
	font-size: 1.05rem;
	cursor: pointer;
	white-space: nowrap;
}
.aab-btn.aab-open-popup { width: 100%; }
.aab-btn:hover { opacity: .92; }
.aab-btn:disabled { opacity: .6; cursor: not-allowed; }

/* --- Popup chrome --- */
.aab-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 16px;
}

.aab-popup {
	background: transparent;
	border-radius: var(--aab-radius);
	max-width: 640px;
	width: 100%;
	max-height: 92vh;
	overflow-y: auto;
	position: relative;
}

.aab-popup-close {
	position: absolute;
	top: 6px;
	right: 10px;
	background: rgba(255,255,255,.8);
	border: none;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	color: #444;
	z-index: 2;
}

/* --- Post-payment status banner (shown after returning from EPS checkout) --- */
.aab-status-banner {
	position: fixed;
	top: 16px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 100001;
	max-width: 90%;
	padding: 14px 42px 14px 20px;
	border-radius: 8px;
	font-size: .95rem;
	font-weight: 600;
	box-shadow: 0 6px 20px rgba(0,0,0,.15);
	color: #fff;
}
.aab-banner-success { background: #2e9e5b; }
.aab-banner-error { background: #d94b3e; }
.aab-banner-warning { background: #e6a13a; }
.aab-banner-close {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	color: #fff;
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
	opacity: .85;
}
.aab-banner-close:hover { opacity: 1; }

/* --- Responsive: amount row wraps into stacked rows on mobile, matching the reference --- */
@media (max-width: 640px) {
	.aab-card-frame { padding: 22px 18px; }
	.aab-heading { font-size: 1.4rem; }

	.aab-amount-row { gap: 12px; }
	.aab-amount-btn { flex: 1 1 28%; text-align: center; padding: 16px 8px; }
	.aab-or { flex: 0 0 auto; }
	.aab-amount-input-wrap { flex: 1 1 auto; }
	.aab-amount-input-wrap .aab-amount-input { width: 100%; }
	.aab-btn.aab-submit-donation { flex: 1 1 100%; }

	.aab-popup-overlay { padding: 0; align-items: flex-end; }
	.aab-popup { max-width: 100%; width: 100%; border-radius: 16px 16px 0 0; max-height: 96vh; }
	.aab-popup .aab-card-frame { border-radius: 16px 16px 0 0; }
}
