/* BoxAPI Wallet — Frontend Styles */
.bxw-wallet-widget,
.bxw-tx-history {
	font-family: Tahoma, "Vazirmatn", Arial, sans-serif;
	box-sizing: border-box;
}
.bxw-wallet-widget *,
.bxw-tx-history *,
.bxw-modal * {
	box-sizing: border-box;
}

/* [bxw_wallet_balance] intentionally outputs plain, unstyled text + a bare
   "+" button per request — no card/box styling applied to it. */

.bxw-notice {
	background: #fef3c7;
	color: #92400e;
	padding: 14px 18px;
	border-radius: 10px;
	font-size: 14px;
}

/* Modal */
.bxw-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, .55);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 16px;
}
.bxw-modal-overlay.is-open {
	display: flex;
}
.bxw-modal {
	background: #fff;
	border-radius: 16px;
	padding: 28px;
	width: 100%;
	max-width: 420px;
	position: relative;
	max-height: 90vh;
	overflow-y: auto;
	animation: bxw-pop .18s ease-out;
}
.bxw-modal-wide {
	max-width: 720px;
}
@keyframes bxw-pop {
	from { transform: scale(.95); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}
.bxw-modal-close {
	position: absolute;
	top: 14px;
	left: 14px;
	background: none;
	border: none;
	font-size: 22px;
	cursor: pointer;
	color: #64748b;
	line-height: 1;
}
.bxw-modal h3 {
	margin: 0 0 18px;
	font-size: 18px;
	color: #0f172a;
}
.bxw-modal-body label {
	display: block;
	font-size: 13px;
	color: #475569;
	margin-bottom: 6px;
	margin-top: 14px;
}
.bxw-input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	font-size: 15px;
	font-family: inherit;
}
.bxw-input:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.bxw-hint {
	font-size: 12px;
	color: #94a3b8;
	margin-top: 6px;
}
.bxw-quick-amounts {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	flex-wrap: wrap;
}
.bxw-quick-amt {
	flex: 1 1 auto;
	min-width: 70px;
	padding: 8px 6px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	cursor: pointer;
	font-size: 13px;
	transition: background .15s, border-color .15s;
}
.bxw-quick-amt:hover,
.bxw-quick-amt.is-selected {
	background: #eff6ff;
	border-color: #2563eb;
	color: #1d4ed8;
}
.bxw-gateway-list {
	margin-top: 16px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
}
.bxw-gateway-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	cursor: pointer;
	margin: 0 !important;
	font-size: 14px;
}
.bxw-gateway-item input {
	margin: 0;
}
.bxw-error {
	color: #dc2626;
	font-size: 13px;
	min-height: 18px;
	margin-top: 10px;
}
.bxw-pay-btn {
	width: 100%;
	margin-top: 14px;
	padding: 13px;
	background: #2563eb;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: background .15s;
}
.bxw-pay-btn:hover {
	background: #1d4ed8;
}
.bxw-pay-btn:disabled {
	opacity: .7;
	cursor: not-allowed;
}
.bxw-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255,255,255,.4);
	border-top-color: #fff;
	border-radius: 50%;
	display: none;
	animation: bxw-spin .7s linear infinite;
}
.bxw-pay-btn.is-loading .bxw-spinner {
	display: inline-block;
}
@keyframes bxw-spin {
	to { transform: rotate(360deg); }
}

/* Transaction history */
.bxw-tx-title {
	margin-bottom: 16px;
	font-size: 18px;
	color: #0f172a;
}
.bxw-table-wrap {
	overflow-x: auto;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
}
.bxw-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.bxw-table th,
.bxw-table td {
	padding: 12px 14px;
	text-align: right;
	border-bottom: 1px solid #f1f5f9;
	white-space: nowrap;
}
.bxw-table thead th {
	background: #f8fafc;
	color: #475569;
	font-weight: 600;
}
.bxw-status {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}
.bxw-status-success { background: #dcfce7; color: #15803d; }
.bxw-status-pending { background: #fef9c3; color: #a16207; }
.bxw-status-failed  { background: #fee2e2; color: #b91c1c; }
.bxw-status-manual  { background: #e0e7ff; color: #4338ca; }

.bxw-pagination {
	display: flex;
	gap: 6px;
	margin-top: 16px;
	flex-wrap: wrap;
}
.bxw-page-link {
	padding: 6px 12px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	color: #334155;
	text-decoration: none;
	font-size: 13px;
}
.bxw-page-link.is-active {
	background: #2563eb;
	border-color: #2563eb;
	color: #fff;
}


