/* Manual Donation (bKash/Nagad) - front-end styles */

.md-donation-widget {
	max-width: 520px;
	margin: 24px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #2b2b2b;
}

.md-card {
	background: #fff;
	border: 1px solid #e3e3e3;
	border-radius: 10px;
	padding: 28px 26px 30px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.md-step + .md-step {
	margin-top: 20px;
}

/* Currency tabs + amount input */

.md-currency-row {
	display: flex;
	align-items: stretch;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid #d8c98a;
	margin-bottom: 8px;
}

.md-currency-tabs {
	display: flex;
}

.md-currency-tab {
	border: none;
	background: #d9bd56;
	color: #5a4716;
	font-weight: 600;
	font-size: 14px;
	padding: 12px 16px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.md-currency-tab:hover {
	background: #cdb147;
}

.md-currency-tab.is-active {
	background: #8a6d0a;
	color: #fff;
}

.md-amount-input {
	flex: 1 1 auto;
	border: none;
	border-left: 1px solid #d8c98a;
	padding: 12px 14px;
	font-size: 18px;
	text-align: right;
	min-width: 0;
	background: #fff;
}

.md-amount-input:focus {
	outline: 2px solid #8a6d0a;
	outline-offset: -2px;
}

.md-amount-bdt-preview {
	text-align: right;
	font-size: 14px;
	color: #444;
	margin-bottom: 22px;
}

.md-amount-bdt-preview strong {
	font-size: 15px;
	margin-left: 4px;
}

/* Form fields */

.md-field {
	margin-bottom: 18px;
}

.md-field label {
	display: block;
	font-size: 14px;
	color: #2b2b2b;
	margin-bottom: 6px;
}

.md-req {
	color: #e0367c;
}

.md-field input[type="text"],
.md-field input[type="email"],
.md-field input[type="tel"],
.md-field select {
	width: 100%;
	box-sizing: border-box;
	background: #e9eef7;
	border: 1px solid #d9e1ee;
	border-radius: 5px;
	padding: 11px 12px;
	font-size: 15px;
	color: #2b2b2b;
}

.md-field input:focus,
.md-field select:focus {
	outline: 2px solid #8a6d0a;
	outline-offset: -1px;
	background: #e3eafb;
}

/* Buttons */

.md-btn {
	display: inline-block;
	border: none;
	border-radius: 5px;
	padding: 12px 22px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}

.md-btn-primary {
	background: #e0167e;
	color: #fff;
	width: 100%;
}

.md-btn-primary:hover {
	background: #c4106c;
}

.md-btn-primary[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

.md-btn-secondary {
	background: #ececec;
	color: #2b2b2b;
}

.md-btn-secondary:hover {
	background: #dedede;
}

.md-btn-outline {
	background: transparent;
	border: 1px solid #c9c9c9;
	color: #2b2b2b;
}

.md-error-message {
	color: #c0245e;
	font-size: 13px;
	margin: 4px 0 14px;
}

/* Review step */

.md-step-review h2 {
	margin-top: 0;
	font-size: 22px;
}

.md-review-list {
	margin: 18px 0;
}

.md-review-list dt {
	font-weight: 700;
	font-size: 14px;
	margin-top: 12px;
}

.md-review-list dd {
	margin: 2px 0 0;
	font-size: 15px;
	color: #333;
}

.md-review-actions {
	display: flex;
	gap: 12px;
	margin-top: 22px;
}

.md-review-actions .md-btn-secondary {
	flex: 0 0 auto;
}

.md-review-actions .md-btn-primary {
	flex: 1 1 auto;
}

/* Result step: payment instructions + invoice */

.md-result-wrap {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.md-payment-card h2,
.md-invoice-card h2 {
	margin-top: 0;
}

.md-muted {
	color: #666;
	font-size: 14px;
	line-height: 1.5;
}

.md-small {
	font-size: 12.5px;
}

.md-amount-due {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #fbeef5;
	border: 1px solid #f3cfe1;
	border-radius: 6px;
	padding: 14px 16px;
	margin: 16px 0;
}

.md-amount-due-label {
	font-size: 14px;
	color: #6b1d44;
}

.md-amount-due-value {
	font-size: 20px;
	font-weight: 700;
	color: #6b1d44;
}

.md-method {
	border: 1px solid #e3e3e3;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 14px;
}

.md-method-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.md-method-badge {
	font-weight: 700;
	font-size: 13px;
	padding: 4px 10px;
	border-radius: 4px;
	color: #fff;
}

.md-badge-bkash {
	background: #e2136e;
}

.md-badge-nagad {
	background: #f7931e;
}

.md-method-type {
	font-size: 13px;
	color: #666;
}

.md-method-number {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.5px;
	margin-bottom: 10px;
}

.md-method-steps {
	font-size: 13.5px;
	color: #444;
	line-height: 1.6;
}

.md-invoice-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
	border-bottom: 1px solid #eee;
	padding-bottom: 14px;
}

.md-invoice-logo {
	max-height: 48px;
	max-width: 120px;
}

.md-invoice-title {
	margin: 0 0 4px;
	font-size: 19px;
}

.md-invoice-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 16px;
}

.md-invoice-table th,
.md-invoice-table td {
	text-align: left;
	padding: 7px 4px;
	font-size: 14px;
	vertical-align: top;
	border-bottom: 1px solid #f1f1f1;
}

.md-invoice-table th {
	width: 40%;
	color: #555;
	font-weight: 600;
}

.md-status-pill {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 20px;
}

.md-status-pending,
.md-status-pending_payment {
	background: #fff3cd;
	color: #8a6d10;
}

.md-status-completed {
	background: #d8f3dc;
	color: #1d6b34;
}

.md-status-cancelled {
	background: #f8d7da;
	color: #8a1f2a;
}

.md-print-btn {
	width: 100%;
	margin-top: 6px;
}

@media print {
	.md-payment-card,
	.md-print-btn {
		display: none !important;
	}
}

@media (max-width: 480px) {
	.md-donation-widget {
		margin: 12px;
	}
	.md-card {
		padding: 20px 18px 22px;
	}
	.md-currency-tab {
		padding: 10px 10px;
		font-size: 13px;
	}
}
