/* Bit Form PhonePe Payment Gateway — front-end + admin styles */

:root {
	--bfpp-primary: #5f259f;
	--bfpp-primary-dark: #4a1c7d;
	--bfpp-success: #1f9d55;
	--bfpp-danger: #d64545;
	--bfpp-warning: #d6a745;
	--bfpp-bg: #f7f5fb;
	--bfpp-text: #232028;
	--bfpp-border: #e3ddef;
}

/* ---------- Pay button ---------- */

.bfpp-pay-button-wrap {
	margin-top: 16px;
}

.bfpp-pay-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 14px 28px;
	font-size: 16px;
	font-weight: 600;
	color: #000 !important;
	background: white !important;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
	box-shadow: 0 6px 16px rgba(95, 37, 159, 0.25);
}

.bfpp-pay-button:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(95, 37, 159, 0.32);
}

.bfpp-pay-button:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

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

.bfpp-pay-button.is-loading .bfpp-spinner {
	display: inline-block;
}

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

.bfpp-error-message {
	margin-top: 10px;
	padding: 10px 14px;
	border-radius: 6px;
	background: #fdeceb;
	color: var(--bfpp-danger);
	font-size: 14px;
	display: none;
}

.bfpp-error-message.is-visible {
	display: block;
}

.bfpp-field-error {
	color: var(--bfpp-danger);
	font-size: 13px;
	margin-top: 4px;
}

/* ---------- Success / Failed result pages ---------- */

.bfpp-result-page {
	display: flex;
	justify-content: center;
	padding: 60px 20px;
	background: var(--bfpp-bg);
}

.bfpp-result-card {
	max-width: 560px;
	width: 100%;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
	padding: 48px 40px;
	text-align: center;
}

.bfpp-result-icon {
	width: 72px;
	height: 72px;
	line-height: 72px;
	border-radius: 50%;
	font-size: 32px;
	margin: 0 auto 20px;
}

.bfpp-icon-success {
	background: #e6f7ec;
	color: var(--bfpp-success);
}

.bfpp-icon-failed {
	background: #fdeceb;
	color: var(--bfpp-danger);
}

.bfpp-result-card h1 {
	font-size: 24px;
	margin-bottom: 12px;
	color: var(--bfpp-text);
}

.bfpp-result-lead {
	font-size: 16px;
	color: #55505c;
	margin-bottom: 24px;
}

.bfpp-summary-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 24px;
	text-align: left;
}

.bfpp-summary-table th,
.bfpp-summary-table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--bfpp-border);
	font-size: 14px;
}

.bfpp-summary-table th {
	color: #7a7484;
	font-weight: 600;
	width: 45%;
}

.bfpp-result-note {
	font-size: 13px;
	color: #8a8391;
	margin-bottom: 28px;
}

.bfpp-btn {
	display: inline-block;
	padding: 12px 28px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
}

.bfpp-btn-primary {
	background: var(--bfpp-primary);
	color: #fff;
}

.bfpp-btn-primary:hover {
	background: var(--bfpp-primary-dark);
	color: #fff;
}

/* ---------- Admin dashboard ---------- */

.bfpp-stat-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	margin: 20px 0 28px;
}

.bfpp-stat-card {
	background: #fff;
	border: 1px solid var(--bfpp-border);
	border-radius: 10px;
	padding: 18px 20px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.bfpp-stat-card-warning {
	border-color: #f3ddb0;
	background: #fffaf0;
}

.bfpp-stat-label {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #8a8391;
	margin-bottom: 6px;
}

.bfpp-stat-value {
	display: block;
	font-size: 26px;
	font-weight: 700;
	color: var(--bfpp-text);
}

.bfpp-filter-form {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.bfpp-filter-form input[type="search"] {
	min-width: 280px;
}

.bfpp-status {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.bfpp-status-success {
	background: #e6f7ec;
	color: var(--bfpp-success);
}

.bfpp-status-pending {
	background: #fff6e5;
	color: var(--bfpp-warning);
}

.bfpp-status-failed {
	background: #fdeceb;
	color: var(--bfpp-danger);
}

.bfpp-pagination {
	margin-top: 16px;
}
