/* Arbazaar Booking Receipt Lookup — frontend styles */
.abr-wrap {
	--abr-primary: #0b7d68;
	--abr-primary-dark: #095f4f;
	--abr-ink: #1f2430;
	--abr-muted: #6b7280;
	--abr-line: #e5e7eb;
	--abr-bg: #ffffff;
	--abr-soft: #f6f8f9;
	--abr-radius: 14px;
	max-width: 760px;
	margin: 0 auto;
	padding: 4px;
	color: var(--abr-ink);
	font-family: inherit;
	box-sizing: border-box;
}

.abr-wrap *,
.abr-wrap *::before,
.abr-wrap *::after {
	box-sizing: border-box;
}

.abr-card {
	background: var(--abr-bg);
	border: 1px solid var(--abr-line);
	border-radius: var(--abr-radius);
	padding: 26px;
	box-shadow: 0 6px 24px rgba(16, 24, 40, 0.06);
}

.abr-title {
	margin: 0 0 6px;
	font-size: 1.5rem;
	line-height: 1.25;
	font-weight: 700;
}

.abr-sub {
	margin: 0 0 20px;
	color: var(--abr-muted);
	font-size: 0.95rem;
}

.abr-label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 6px;
}

.abr-input-row {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--abr-line);
	border-radius: 10px;
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	background: #fff;
}

.abr-input-row:focus-within {
	border-color: var(--abr-primary);
	box-shadow: 0 0 0 3px rgba(11, 125, 104, 0.12);
}

.abr-cc {
	display: flex;
	align-items: center;
	padding: 0 14px;
	background: var(--abr-soft);
	color: var(--abr-muted);
	font-weight: 600;
	border-right: 1px solid var(--abr-line);
}

.abr-input {
	flex: 1;
	border: 0;
	outline: 0;
	padding: 14px 14px;
	font-size: 1rem;
	background: transparent;
	color: var(--abr-ink);
	min-width: 0;
}

.abr-btn {
	appearance: none;
	border: 0;
	cursor: pointer;
	border-radius: 10px;
	font-size: 1rem;
	font-weight: 600;
	padding: 13px 18px;
	transition: background 0.15s ease, transform 0.05s ease, opacity 0.15s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	line-height: 1;
}

.abr-btn:active {
	transform: translateY(1px);
}

.abr-btn-primary {
	background: var(--abr-primary);
	color: #fff;
	width: 100%;
	margin-top: 16px;
}

.abr-btn-primary:hover {
	background: var(--abr-primary-dark);
}

.abr-btn[disabled] {
	opacity: 0.65;
	cursor: not-allowed;
}

.abr-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #fff;
	border-radius: 50%;
	display: none;
	animation: abr-spin 0.7s linear infinite;
}

.abr-btn.is-loading .abr-spinner {
	display: inline-block;
}

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

.abr-message {
	margin: 14px 0 0;
	font-size: 0.92rem;
	min-height: 1em;
}

.abr-message.is-error {
	color: #b42318;
}

.abr-message.is-info {
	color: var(--abr-muted);
}

.abr-results {
	margin-top: 20px;
	display: grid;
	gap: 16px;
}

.abr-results-head {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 4px 2px;
}

.abr-booking {
	background: var(--abr-bg);
	border: 1px solid var(--abr-line);
	border-radius: var(--abr-radius);
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(16, 24, 40, 0.05);
}

.abr-booking-top {
	background: linear-gradient(135deg, var(--abr-primary), var(--abr-primary-dark));
	color: #fff;
	padding: 16px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.abr-booking-name {
	font-weight: 700;
	font-size: 1.1rem;
}

.abr-booking-ref {
	font-size: 0.8rem;
	opacity: 0.9;
	letter-spacing: 0.02em;
}

.abr-booking-body {
	padding: 18px 20px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 20px;
}

.abr-field {
	min-width: 0;
}

.abr-field .k {
	display: block;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--abr-muted);
	margin-bottom: 3px;
}

.abr-field .v {
	font-size: 0.98rem;
	font-weight: 600;
	word-break: break-word;
}

.abr-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	background: #eef6f4;
	color: var(--abr-primary-dark);
}

.abr-booking-actions {
	display: flex;
	gap: 10px;
	padding: 0 20px 20px;
	flex-wrap: wrap;
}

.abr-btn-outline {
	background: #fff;
	color: var(--abr-primary-dark);
	border: 1px solid var(--abr-primary);
	flex: 1;
	min-width: 130px;
}

.abr-btn-outline:hover {
	background: var(--abr-soft);
}

.abr-btn-wa {
	background: #25d366;
	color: #fff;
	flex: 1;
	min-width: 130px;
}

.abr-btn-wa:hover {
	background: #1eb257;
}

.abr-btn-download {
	background: var(--abr-primary);
	color: #fff;
	flex: 1;
	min-width: 130px;
}

.abr-btn-download:hover {
	background: var(--abr-primary-dark);
}

.abr-empty {
	text-align: center;
	padding: 26px 18px;
	color: var(--abr-muted);
	border: 1px dashed var(--abr-line);
	border-radius: var(--abr-radius);
	background: var(--abr-soft);
}

@media (max-width: 560px) {
	.abr-card {
		padding: 20px;
	}
	.abr-title {
		font-size: 1.3rem;
	}
	.abr-booking-body {
		grid-template-columns: 1fr;
	}
	.abr-booking-actions .abr-btn {
		flex: 1 1 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.abr-spinner {
		animation-duration: 1.4s;
	}
}

/* ---------------------------------------------------------------------- */
/* Traditional "pavti" receipt (rendered off-screen, captured to PDF).    */
/* Uses literal colors (no CSS vars) for reliable html2canvas capture.    */
/* ---------------------------------------------------------------------- */
.abr-receipt-doc {
	width: 840px;
	background: #ffffff;
	color: #2a2320;
	font-family: "Noto Sans Devanagari", "Tiro Devanagari Marathi", sans-serif;
	box-sizing: border-box;
	padding: 18px;
}
.abr-receipt-doc * { box-sizing: border-box; }
.abr-receipt-doc .mr { font-family: "Tiro Devanagari Marathi", "Noto Sans Devanagari", serif; }
.abr-receipt-doc .en { font-family: Arial, Helvetica, sans-serif; }

.abr-r-frame {
	position: relative;
	border: 4px solid #a41818;
	padding: 24px 30px 18px;
	background: #ffffff;
}
.abr-r-frame::before {
	content: "";
	position: absolute;
	inset: 6px;
	border: 1px solid #a41818;
	pointer-events: none;
}

.abr-r-head {
	text-align: center;
	padding-bottom: 12px;
	border-bottom: 2px solid #a41818;
	margin-bottom: 12px;
	position: relative;
	z-index: 1;
}
.abr-r-logo {
	max-height: 60px;
	max-width: 140px;
	object-fit: contain;
	margin-bottom: 6px;
	display: inline-block;
}
.abr-r-title {
	color: #a41818;
	font-weight: 700;
	font-size: 30px;
	line-height: 1.15;
	letter-spacing: 0.3px;
}
.abr-r-addr { font-size: 13px; color: #5a5148; margin-top: 4px; }
.abr-r-contact { font-size: 13px; color: #5a5148; margin-top: 2px; }
.abr-r-badge {
	display: inline-block;
	margin-top: 10px;
	background: #a41818;
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	padding: 4px 20px;
	border-radius: 4px;
	letter-spacing: 1px;
}

.abr-r-topline {
	display: flex;
	gap: 32px;
	align-items: flex-end;
	margin: 4px 0 6px;
	position: relative;
	z-index: 1;
}
.abr-r-tl {
	flex: 1;
	display: flex;
	align-items: flex-end;
	gap: 6px;
	font-size: 15px;
}
.abr-r-tl .lab { white-space: nowrap; font-weight: 700; }
.abr-r-tl .lab .mr { font-size: 16px; }
.abr-r-tl .lab .en { font-weight: 400; color: #6a5f56; font-size: 13px; }
.abr-r-tl .cl { font-weight: 700; }
.abr-r-tl .uv {
	flex: 1;
	border-bottom: 1px solid #b9a9a0;
	min-height: 22px;
	font-weight: 700;
	color: #a41818;
	padding: 0 4px 3px;
}

.abr-r-body { position: relative; z-index: 1; margin-top: 2px; }
.abr-r-row {
	display: grid;
	grid-template-columns: 210px 16px 1fr;
	align-items: end;
	column-gap: 4px;
	padding: 11px 0 5px;
}
.abr-r-k { line-height: 1.12; }
.abr-r-k .mr { display: block; font-weight: 700; font-size: 18px; color: #2a2320; }
.abr-r-k .en { display: block; font-size: 11px; color: #8a7f76; }
.abr-r-colon { font-size: 18px; font-weight: 700; color: #2a2320; padding-bottom: 3px; }
.abr-r-v {
	border-bottom: 1px solid #b9a9a0;
	min-height: 26px;
	font-size: 17px;
	font-weight: 600;
	color: #2a2320;
	padding: 0 6px 4px;
	word-break: break-word;
}

.abr-r-amount {
	position: relative;
	z-index: 1;
	margin: 14px 0 4px;
	border: 2px solid #a41818;
	border-radius: 6px;
	padding: 10px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fdf3f3;
}
.abr-r-amount .mr { font-weight: 700; font-size: 17px; color: #a41818; }
.abr-r-amount .en { font-size: 11px; color: #8a7f76; }
.abr-r-amount b {
	margin-left: auto;
	font-size: 24px;
	color: #a41818;
	font-family: Arial, Helvetica, sans-serif;
}
.abr-r-amount b .dots { letter-spacing: 2px; }

.abr-r-sign {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: space-between;
	gap: 40px;
	margin-top: 34px;
}
.abr-r-sigcol { flex: 1; text-align: center; }
.abr-r-sigcol .line { border-top: 1px solid #7a6f66; margin-bottom: 4px; }
.abr-r-sigcol .mr { display: block; font-weight: 600; font-size: 14px; }
.abr-r-sigcol .en { display: block; font-size: 10px; color: #8a7f76; }

.abr-r-foot {
	position: relative;
	z-index: 1;
	text-align: center;
	margin-top: 16px;
	padding-top: 8px;
	border-top: 1px solid #e3d7d0;
	font-size: 11px;
	color: #8a7f76;
	line-height: 1.5;
}
.abr-r-foot .mr { color: #6a5f56; }

/* Signature strip (three signatories baked into one image) */
.abr-r-signimg {
	position: relative;
	z-index: 1;
	margin-top: 26px;
	text-align: center;
}
.abr-r-signimg img {
	width: 100%;
	max-width: 100%;
	height: auto;
	display: block;
}

/* Header banner (business name / deity / reg. no. baked into one image) */
.abr-r-headimg {
	position: relative;
	z-index: 1;
	text-align: center;
	padding-bottom: 10px;
	border-bottom: 2px solid #a41818;
	margin-bottom: 12px;
}
.abr-r-headimg img {
	width: 100%;
	max-width: 100%;
	height: auto;
	display: block;
}

.abr-r-amount { margin-top: 16px; }

/* Ornamental divider above the signatures */
.abr-r-sigdiv {
	position: relative;
	z-index: 1;
	height: 16px;
	margin: 18px 0 2px;
}
.abr-r-sigdiv::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 30%;
	right: 30%;
	border-top: 1px solid #e0b9b9;
}
.abr-r-sigdiv::after {
	content: "\2756";
	position: absolute;
	left: 50%;
	top: -2px;
	transform: translateX(-50%);
	background: #ffffff;
	padding: 0 10px;
	color: #a41818;
	font-size: 14px;
}
