.nobex-wallet {
	max-width: 560px;
	margin: 0 auto;
	padding: var(--nobex-form-padding, 24px 20px);
	border-radius: var(--nobex-panel-radius, 12px);
	box-sizing: border-box;
	direction: rtl;
	font-family: var(--nobex-font, 'IRANYekan', Tahoma, Arial, sans-serif);
}

.nobex-wallet__balance {
	padding: 20px;
	border-radius: 12px;
	background: linear-gradient(135deg, #2563eb, #1d4ed8);
	color: #fff;
	text-align: center;
	margin-bottom: 16px;
}

.nobex-wallet__balance-label {
	font-size: 14px;
	opacity: 0.9;
}

.nobex-wallet__balance-amount {
	font-size: 28px;
	font-weight: 700;
	margin-top: 6px;
}

.nobex-wallet__balance-meta {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 10px;
	font-size: 13px;
	opacity: 0.95;
}

.nobex-wallet__tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 16px;
	padding: 4px;
	border-radius: 12px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	overflow: hidden;
}

.nobex-wallet__tab {
	flex: 1 1 0;
	min-width: 0;
	border: none;
	background: transparent;
	color: #64748b;
	border-radius: 9px;
	padding: 10px 8px;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nobex-wallet__tab-label {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nobex-wallet__tab:hover:not(.is-active) {
	color: #334155;
	background: rgba(255, 255, 255, 0.55);
}

.nobex-wallet__tab.is-active {
	color: #1e40af;
	background: #fff;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.nobex-wallet__tab:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(37, 99, 235, 0.45);
}

.nobex-wallet__panel[hidden] {
	display: none !important;
}

.nobex-wallet__panel.is-active {
	display: block;
}

.nobex-wallet__section--hint {
	background: #f8fafc;
	border-style: dashed;
}

.nobex-wallet__overview-hint {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
	color: #475569;
}

.nobex-wallet__section {
	padding: 16px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	margin-bottom: 16px;
	background: #fff;
}

.nobex-wallet__section-title {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 700;
	font-family: var(--nobex-font, 'IRANYekan', Tahoma, Arial, sans-serif);
}

.nobex-wallet__field {
	margin-bottom: 12px;
}

.nobex-wallet__field label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	font-size: 14px;
}

.nobex-wallet__input,
.nobex-wallet__textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-family: inherit;
	font-size: 14px;
}

.nobex-wallet__textarea {
	min-height: 72px;
	resize: vertical;
}

.nobex-wallet__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border: none;
	border-radius: 8px;
	background: #2563eb;
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	font-family: inherit;
}

.nobex-wallet__btn:hover {
	background: #1d4ed8;
}

.nobex-wallet__btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.nobex-wallet__btn--secondary {
	background: #0f766e;
}

.nobex-wallet__btn--secondary:hover {
	background: #0d9488;
}

.nobex-wallet__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nobex-wallet__item {
	padding: 10px 0;
	border-bottom: 1px solid #f3f4f6;
	font-size: 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	align-items: center;
}

.nobex-wallet__item--empty {
	color: #64748b;
}

.nobex-wallet__item-amount {
	font-weight: 700;
	color: #0f172a;
}

.nobex-wallet__item-desc {
	color: #334155;
}

.nobex-wallet__item-date {
	color: #64748b;
	font-size: 12px;
	margin-right: auto;
}

.nobex-wallet__withdraw-item {
	padding: 12px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	margin-bottom: 8px;
	background: #f8fafc;
}

.nobex-wallet__withdraw-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}

.nobex-wallet__withdraw-status {
	font-size: 12px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 999px;
	background: #e2e8f0;
	color: #334155;
}

.nobex-wallet__withdraw-item--pending .nobex-wallet__withdraw-status {
	background: #fef3c7;
	color: #92400e;
}

.nobex-wallet__withdraw-item--paid .nobex-wallet__withdraw-status {
	background: #dcfce7;
	color: #166534;
}

.nobex-wallet__withdraw-item--rejected .nobex-wallet__withdraw-status {
	background: #fee2e2;
	color: #991b1b;
}

.nobex-wallet__withdraw-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	font-size: 13px;
	color: #475569;
}

.nobex-wallet__note {
	margin: 8px 0 0;
	font-size: 13px;
	color: #334155;
	line-height: 1.5;
}

.nobex-wallet__note--admin {
	color: #1e40af;
}

.nobex-wallet__message {
	padding: 12px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 14px;
}

.nobex-wallet__message--error {
	background: #fef2f2;
	color: #b91c1c;
}

.nobex-wallet__message--success {
	background: #f0fdf4;
	color: #166534;
}

.nobex-my-bookings__wallet-panel .nobex-wallet {
	max-width: none;
	padding: 0;
	overflow: hidden;
}

@media (max-width: 480px) {
	.nobex-wallet__tab {
		font-size: 12px;
		padding: 9px 6px;
	}

	.nobex-wallet__tab-label {
		white-space: normal;
		text-align: center;
		line-height: 1.3;
	}
}
