/**
 * NexaShop Wallet - Frontend Stylesheet
 * Digikala-grade aesthetic, full RTL support & responsive layout
 */

.nexashop-wallet-dashboard {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* Alert Notification */
.nexashop-wallet-alert {
	padding: 14px 18px;
	border-radius: 12px;
	margin-bottom: 20px;
	font-size: 14px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 10px;
}
.nexashop-wallet-alert.is-success {
	background-color: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}
.nexashop-wallet-alert.is-error {
	background-color: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* 1. Hero Balance Card */
.nexashop-wallet-hero-card {
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	border-radius: 20px;
	padding: 30px;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25);
	margin-bottom: 24px;
	position: relative;
	overflow: hidden;
}
.nexashop-wallet-hero-card::after {
	content: '';
	position: absolute;
	top: -50%;
	left: -20%;
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, rgba(249, 115, 22, 0.2) 0%, rgba(249, 115, 22, 0) 70%);
	border-radius: 50%;
	pointer-events: none;
}
.nexashop-wallet-hero-info {
	display: flex;
	align-items: center;
	gap: 20px;
	z-index: 1;
}
.nexashop-wallet-icon-box {
	width: 64px;
	height: 64px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(8px);
	border-radius: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #f97316;
}
.nexashop-wallet-balance-wrap {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.nexashop-wallet-balance-label {
	font-size: 14px;
	color: #94a3b8;
	font-weight: 500;
}
.nexashop-wallet-balance-amount {
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.5px;
	color: #ffffff;
}
.nexashop-wallet-btn-topup-scroll {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: #f97316;
	color: #ffffff !important;
	padding: 12px 24px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	transition: all 0.2s ease;
	z-index: 1;
	box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}
.nexashop-wallet-btn-topup-scroll:hover {
	background-color: #ea580c;
	transform: translateY(-2px);
}

/* 2. Action Grid (Topup & Voucher) */
.nexashop-wallet-action-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 24px;
	margin-bottom: 24px;
}

.nexashop-wallet-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	padding: 24px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
.nexashop-wallet-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 16px;
	border-bottom: 1px solid #f1f5f9;
	margin-bottom: 20px;
}
.nexashop-wallet-card-header .card-title-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #0f172a;
}
.nexashop-wallet-card-header h4 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
}

/* Presets */
.nexashop-field-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #475569;
	margin-bottom: 10px;
}
.nexashop-topup-presets {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin-bottom: 18px;
}
.nexashop-preset-btn {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
}
.nexashop-preset-btn:hover {
	background: #f1f5f9;
	border-color: #cbd5e1;
	color: #0f172a;
}
.nexashop-preset-btn.active {
	background: #fff7ed;
	border-color: #f97316;
	color: #c2410c;
	font-weight: 700;
}

/* Custom Amount Input */
.nexashop-form-group {
	margin-bottom: 18px;
}
.nexashop-input-with-symbol {
	position: relative;
	display: flex;
	align-items: center;
}
.nexashop-input-with-symbol input,
.nexashop-voucher-form input {
	width: 100%;
	height: 48px;
	border: 1.5px solid #cbd5e1;
	border-radius: 12px;
	padding: 0 45px 0 16px;
	font-size: 15px;
	font-weight: 600;
	color: #0f172a;
	background: #ffffff;
	transition: all 0.2s ease;
	box-sizing: border-box;
}
.nexashop-input-with-symbol input:focus,
.nexashop-voucher-form input:focus {
	outline: none;
	border-color: #f97316;
	box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}
.nexashop-input-with-symbol .currency-symbol {
	position: absolute;
	right: 14px;
	font-size: 13px;
	font-weight: 600;
	color: #94a3b8;
}

/* Submit Buttons */
.nexashop-wallet-submit-btn {
	width: 100%;
	height: 48px;
	background-color: #f97316;
	color: #ffffff;
	border: none;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all 0.2s ease;
}
.nexashop-wallet-submit-btn:hover {
	background-color: #ea580c;
}
.nexashop-wallet-submit-btn.secondary-btn {
	background-color: #0f172a;
}
.nexashop-wallet-submit-btn.secondary-btn:hover {
	background-color: #1e293b;
}
.nexashop-wallet-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Spinner */
.btn-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: nexashop-spin 0.6s linear infinite;
}
@keyframes nexashop-spin {
	to { transform: rotate(360deg); }
}

.nexashop-card-desc {
	font-size: 13px;
	color: #64748b;
	line-height: 1.7;
	margin: 0 0 16px 0;
}

/* 3. Transactions Table (Modern SaaS & Responsive Mobile Cards) */
.nexashop-transactions-card {
	padding: 26px;
}

.nexashop-tx-card-header {
	padding-bottom: 18px;
	border-bottom: 1px solid #f1f5f9;
	margin-bottom: 20px;
}

.tx-header-icon-badge {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: #fff7ed;
	color: #f97316;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.tx-header-subtitle {
	display: block;
	font-size: 12px;
	color: #64748b;
	font-weight: 500;
	margin-top: 3px;
}

.nexashop-tx-count-pill {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	color: #475569;
	font-size: 12px;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 20px;
}

.nexashop-tx-table-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #ffffff;
}

.nexashop-tx-table,
.nexashop-tx-table thead,
.nexashop-tx-table tbody,
.nexashop-tx-table tr,
.nexashop-tx-table th,
.nexashop-tx-table td {
	border: none !important;
	box-shadow: none !important;
}

.nexashop-tx-table {
	width: 100%;
	border-collapse: collapse !important;
	border-spacing: 0 !important;
	font-size: 13px;
	margin: 0 !important;
}

.nexashop-tx-table thead tr {
	background: #f8fafc !important;
	border-bottom: 1px solid #e2e8f0 !important;
}

.nexashop-tx-table th {
	background: #f8fafc !important;
	color: #475569 !important;
	font-weight: 800 !important;
	font-size: 12.5px !important;
	padding: 15px 16px !important;
	text-align: right !important;
	border-bottom: 1px solid #e2e8f0 !important;
	white-space: nowrap;
}

.nexashop-tx-table tbody tr {
	border-bottom: 1px solid #f1f5f9 !important;
	transition: background-color 0.2s ease;
}

.nexashop-tx-table tbody tr:last-child {
	border-bottom: none !important;
}

.nexashop-tx-table td {
	padding: 16px !important;
	border-bottom: 1px solid #f1f5f9 !important;
	vertical-align: middle !important;
	color: #1e293b;
	text-align: right !important;
}

.nexashop-tx-table tbody tr:last-child td {
	border-bottom: none !important;
}

.nexashop-tx-table tbody tr:hover td {
	background: #f8fafc !important;
}

.tx-id-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #f1f5f9;
	color: #475569;
	font-weight: 800;
	font-size: 12px;
	padding: 4px 10px;
	border-radius: 8px;
	font-family: monospace, inherit;
}

.nexashop-tx-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.tx-topup { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.tx-purchase { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.tx-refund { background: #fff7ed; color: #ea580c; border: 1px solid #fed7aa; }
.tx-cashback { background: #f5f3ff; color: #7c3aed; border: 1px solid #ddd6fe; }
.tx-voucher { background: #fdf2f8; color: #db2777; border: 1px solid #fbcfe8; }
.tx-manual_credit { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.tx-manual_debit { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.tx-withdrawal { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }

.tx-amount {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 900;
	font-size: 14px;
	padding: 4px 10px;
	border-radius: 8px;
}

.tx-amount.is-credit {
	color: #059669;
	background: #f0fdf4;
}

.tx-amount.is-debit {
	color: #e11d48;
	background: #fff1f2;
}

.tx-balance-after {
	font-weight: 700;
	font-size: 13.5px;
	color: #334155;
}

.tx-desc {
	font-size: 13px;
	font-weight: 600;
	color: #1e293b;
	line-height: 1.6;
}

.tx-order-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 4px;
	font-size: 12px;
	color: #f97316 !important;
	font-weight: 700;
	text-decoration: none !important;
	background: #fff7ed;
	padding: 2px 8px;
	border-radius: 6px;
}

.tx-order-link:hover {
	background: #ffedd5;
}

.tx-datetime-box {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.tx-date-day {
	font-size: 12.5px;
	font-weight: 700;
	color: #334155;
}

.tx-date-clock {
	font-size: 11.5px;
	color: #94a3b8;
	font-weight: 600;
}

@media (max-width: 768px) {
	.nexashop-transactions-card {
		padding: 18px 14px;
	}
	.nexashop-tx-table-wrap {
		border: none;
		background: transparent;
	}
	.nexashop-tx-table thead {
		display: none;
	}
	.nexashop-tx-table,
	.nexashop-tx-table tbody,
	.nexashop-tx-table tr,
	.nexashop-tx-table td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}
	.nexashop-tx-table tbody tr {
		background: #ffffff;
		border: 1px solid #e2e8f0 !important;
		border-radius: 14px;
		padding: 14px;
		margin-bottom: 12px;
		box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
	}
	.nexashop-tx-table td {
		display: flex !important;
		align-items: center;
		justify-content: space-between;
		padding: 8px 0 !important;
		border-bottom: 1px dashed #f1f5f9 !important;
		text-align: left !important;
	}
	.nexashop-tx-table td:last-child {
		border-bottom: none !important;
		padding-bottom: 0 !important;
	}
	.nexashop-tx-table td::before {
		content: attr(data-label);
		font-size: 12px;
		font-weight: 700;
		color: #64748b;
		text-align: right;
		margin-left: 10px;
	}
	.tx-datetime-box {
		flex-direction: row;
		align-items: center;
		gap: 8px;
	}
}

/* Empty State */
.nexashop-wallet-empty {
	text-align: center;
	padding: 40px 20px;
}
.nexashop-wallet-empty .empty-icon {
	margin-bottom: 16px;
}
.nexashop-wallet-empty h5 {
	font-size: 16px;
	font-weight: 700;
	color: #334155;
	margin: 0 0 8px 0;
}
.nexashop-wallet-empty p {
	font-size: 13px;
	color: #64748b;
	margin: 0;
}

/* ==========================================================================
   NexaShop Golden Premium Checkout & Payment Redesign (Matching Reference Image)
   ========================================================================== */

/* 1. Custom Radio Button Component */
.nexashop-custom-radio {
	width: 24px !important;
	height: 24px !important;
	min-width: 24px !important;
	max-width: 24px !important;
	border-radius: 50% !important;
	border: 2px solid #cbd5e1 !important;
	background: #ffffff !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
	flex-shrink: 0 !important;
	position: relative !important;
	margin: 0 !important;
	padding: 0 !important;
}

.nexashop-custom-radio .radio-dot {
	width: 11px !important;
	height: 11px !important;
	min-width: 11px !important;
	max-width: 11px !important;
	border-radius: 50% !important;
	background: #e5a11a !important;
	transform: scale(0) !important;
	transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
	box-sizing: border-box !important;
}

/* Radio Checked State */
.is-selected .nexashop-custom-radio,
.is-active .nexashop-custom-radio,
.nexashop-custom-radio.is-checked,
:has(input[type="radio"]:checked) .nexashop-custom-radio {
	border-color: #e5a11a !important;
	border-width: 2px !important;
}

.is-selected .nexashop-custom-radio .radio-dot,
.is-active .nexashop-custom-radio .radio-dot,
.nexashop-custom-radio.is-checked .radio-dot,
:has(input[type="radio"]:checked) .nexashop-custom-radio .radio-dot {
	transform: scale(1) !important;
}

/* 2. Wallet Payment Card (.nexashop-checkout-wallet-box) */
.nexashop-checkout-wallet-box {
	background: #ffffff !important;
	border: 2px solid #e4e8f0 !important;
	border-radius: 22px !important;
	padding: 22px 22px 20px 22px !important;
	margin: 0 0 16px 0 !important;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
	box-sizing: border-box !important;
	width: 100% !important;
	cursor: pointer !important;
	position: relative !important;
	direction: rtl !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
}

.nexashop-checkout-wallet-box:hover {
	border-color: #cbd5e1 !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

.nexashop-checkout-wallet-box.is-selected,
.nexashop-checkout-wallet-box.is-active {
	border-color: #e5a11a !important;
	box-shadow: 0 8px 24px rgba(229, 161, 26, 0.12) !important;
}

.nexashop-checkout-wallet-box.is-insufficient {
	opacity: 0.85 !important;
	cursor: default !important;
}

/* Wallet Card Header */
.nexashop-checkout-wallet-box .wallet-card-header {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	width: 100% !important;
	margin-bottom: 20px !important;
}

.nexashop-checkout-wallet-box .wallet-card-header-right {
	display: flex !important;
	align-items: center !important;
	gap: 14px !important;
}

.nexashop-checkout-wallet-box .wallet-card-title-group {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	line-height: 1.25 !important;
}

.nexashop-checkout-wallet-box .wallet-card-title-group .title-main {
	font-size: 18px !important;
	font-weight: 800 !important;
	color: #17213b !important;
	display: block !important;
	letter-spacing: -0.2px !important;
}

.nexashop-checkout-wallet-box .wallet-card-title-group .title-sub {
	font-size: 18px !important;
	font-weight: 800 !important;
	color: #e5a11a !important;
	display: block !important;
	letter-spacing: -0.2px !important;
}

.nexashop-checkout-wallet-box .wallet-card-header-left {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.nexashop-checkout-wallet-box .wallet-card-icon-box {
	width: 58px !important;
	height: 58px !important;
	border-radius: 18px !important;
	background: #fff8ed !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-shadow: inset 0 0 0 1px rgba(229, 161, 26, 0.12) !important;
	flex-shrink: 0 !important;
	transition: transform 0.25s ease !important;
}

.nexashop-checkout-wallet-box:hover .wallet-card-icon-box {
	transform: scale(1.04) !important;
}

/* Wallet Card Details Rows */
.nexashop-checkout-wallet-box .wallet-card-details {
	display: flex !important;
	flex-direction: column !important;
	gap: 12px !important;
	width: 100% !important;
	margin-bottom: 20px !important;
	box-sizing: border-box !important;
}

.nexashop-checkout-wallet-box .wallet-detail-row {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	width: 100% !important;
}

.nexashop-checkout-wallet-box .wallet-detail-row .detail-label {
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #5a677d !important;
}

.nexashop-checkout-wallet-box .wallet-detail-row .detail-value {
	font-size: 16px !important;
	font-weight: 800 !important;
	color: #17213b !important;
}

.nexashop-checkout-wallet-box .wallet-detail-row.is-split-info .color-emerald {
	color: #059669 !important;
}

.nexashop-checkout-wallet-box .wallet-detail-row.is-split-info .color-amber {
	color: #d97706 !important;
}

/* Wallet Green Notification Banner */
.nexashop-checkout-wallet-box .wallet-card-notice-banner {
	background: #e8f8ef !important;
	border-radius: 16px !important;
	padding: 16px 18px !important;
	width: 100% !important;
	box-sizing: border-box !important;
	margin-top: 4px !important;
	transition: all 0.25s ease !important;
}

.nexashop-checkout-wallet-box .wallet-card-notice-banner .notice-banner-header {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	width: 100% !important;
	margin-bottom: 8px !important;
}

.nexashop-checkout-wallet-box .wallet-card-notice-banner .notice-title {
	font-size: 14.5px !important;
	font-weight: 800 !important;
	color: #176b45 !important;
}

.nexashop-checkout-wallet-box .wallet-card-notice-banner .notice-check-badge {
	width: 24px !important;
	height: 24px !important;
	border-radius: 50% !important;
	background: #22c55e !important;
	color: #ffffff !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-shadow: 0 2px 6px rgba(34, 197, 94, 0.35) !important;
	flex-shrink: 0 !important;
}

.nexashop-checkout-wallet-box .wallet-card-notice-banner .notice-banner-text {
	font-size: 12.5px !important;
	font-weight: 600 !important;
	color: #176b45 !important;
	line-height: 1.65 !important;
	margin: 0 !important;
}

.nexashop-checkout-wallet-box .wallet-card-notice-banner.is-insufficient {
	background: #fef2f2 !important;
	color: #991b1b !important;
}
.nexashop-checkout-wallet-box .wallet-card-notice-banner.is-insufficient .notice-banner-text {
	color: #991b1b !important;
}

/* 3. Gateway Cards (BitPay & Online Gateways) */
#payment ul.payment_methods,
ul.payment_methods {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 14px !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

#payment ul.payment_methods li.wc_payment_method.nexashop-gateway-card,
ul.payment_methods li.wc_payment_method.nexashop-gateway-card {
	background: #ffffff !important;
	border: 1.5px solid #e4e8f0 !important;
	border-radius: 20px !important;
	padding: 18px 22px !important;
	margin: 0 !important;
	cursor: pointer !important;
	transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
	position: relative !important;
	box-sizing: border-box !important;
	list-style: none !important;
	width: 100% !important;
	direction: rtl !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
}

#payment ul.payment_methods li.wc_payment_method.nexashop-gateway-card:hover,
ul.payment_methods li.wc_payment_method.nexashop-gateway-card:hover {
	border-color: #cbd5e1 !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

#payment ul.payment_methods li.wc_payment_method.nexashop-gateway-card.is-selected,
#payment ul.payment_methods li.wc_payment_method.nexashop-gateway-card:has(input[type="radio"]:checked),
ul.payment_methods li.wc_payment_method.nexashop-gateway-card.is-selected,
ul.payment_methods li.wc_payment_method.nexashop-gateway-card:has(input[type="radio"]:checked) {
	border-color: #e5a11a !important;
	border-width: 2px !important;
	box-shadow: 0 8px 24px rgba(229, 161, 26, 0.12) !important;
}

#payment ul.payment_methods li.wc_payment_method .nexashop-gateway-card-label,
ul.payment_methods li.wc_payment_method .nexashop-gateway-card-label {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	cursor: pointer !important;
	user-select: none !important;
	box-sizing: border-box !important;
}

.nexashop-gateway-card .gateway-card-right {
	display: flex !important;
	align-items: center !important;
	gap: 14px !important;
	flex: 1 !important;
	min-width: 0 !important;
}

.nexashop-gateway-card .gateway-card-text {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	line-height: 1.3 !important;
}

.nexashop-gateway-card .gateway-title {
	font-size: 17px !important;
	font-weight: 800 !important;
	color: #17213b !important;
	display: block !important;
	letter-spacing: -0.2px !important;
}

.nexashop-gateway-card .gateway-subtitle {
	font-size: 12.5px !important;
	font-weight: 500 !important;
	color: #718096 !important;
	margin-top: 4px !important;
	display: block !important;
	line-height: 1.4 !important;
}

.nexashop-gateway-card .gateway-card-left {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0 !important;
	margin-right: 12px !important;
}

.nexashop-gateway-card .gateway-logo-badge {
	width: 76px !important;
	height: 56px !important;
	border-radius: 14px !important;
	background: #ffffff !important;
	border: 1.5px solid #edf2f7 !important;
	box-shadow: 0 4px 12px rgba(23, 33, 59, 0.05) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0 !important;
	overflow: hidden !important;
	padding: 4px !important;
	box-sizing: border-box !important;
	transition: transform 0.22s ease !important;
}

.nexashop-gateway-card:hover .gateway-logo-badge {
	transform: scale(1.04) !important;
}

/* BitPay Branding Content */
.bitpay-logo-content {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 4px !important;
	width: 100% !important;
}

.bitpay-brand-name {
	font-size: 16px !important;
	font-weight: 900 !important;
	font-style: italic !important;
	color: #17213b !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	letter-spacing: -0.5px !important;
	line-height: 1 !important;
}

.bitpay-mini-card {
	width: 42px !important;
	height: 22px !important;
	border-radius: 4px !important;
	background: linear-gradient(135deg, #3b5998 0%, #203660 100%) !important;
	position: relative !important;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

.bitpay-mini-card .card-chip {
	position: absolute !important;
	left: 5px !important;
	top: 7px !important;
	width: 8px !important;
	height: 7px !important;
	border-radius: 1px !important;
	background: #e5a11a !important;
}

.gateway-icon-wrap img {
	max-height: 36px !important;
	max-width: 64px !important;
	object-fit: contain !important;
}

/* Gateway Payment Box (Form fields / Description) */
#payment ul.payment_methods li.wc_payment_method .payment_box {
	background: #fffdfa !important;
	border: 1px dashed #fed7aa !important;
	border-radius: 12px !important;
	padding: 14px 18px !important;
	margin: 14px 0 4px 0 !important;
	font-size: 13px !important;
	color: #9a3412 !important;
	line-height: 1.65 !important;
	position: relative !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

/* Hide duplicate wallet gateway item */
#payment ul.payment_methods li.wc_payment_method.payment_method_nexashop_wallet,
ul.payment_methods li.wc_payment_method.payment_method_nexashop_wallet {
	display: none !important;
}

/* 4. Golden Submit Order Bar matching reference design */
.nexashop-place-order-wrapper {
	width: 100% !important;
	margin-top: 20px !important;
	box-sizing: border-box !important;
}

.nexashop-submit-order-bar {
	background: linear-gradient(135deg, #e5a11a 0%, #d88e09 100%) !important;
	border-radius: 22px !important;
	box-shadow: 0 10px 24px rgba(229, 161, 26, 0.35) !important;
	padding: 10px 14px !important;
	margin-top: 20px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100% !important;
	box-sizing: border-box !important;
	direction: rtl !important;
	min-height: 64px !important;
}

.nexashop-submit-order-bar .submit-bar-total-info {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	justify-content: center !important;
	gap: 2px !important;
	flex: 1 !important;
	min-width: 0 !important;
}

.nexashop-submit-order-bar .submit-bar-total-label {
	font-size: 12.5px !important;
	font-weight: 600 !important;
	color: rgba(255, 255, 255, 0.92) !important;
	line-height: 1.2 !important;
}

.nexashop-submit-order-bar .submit-bar-total-amount {
	font-size: 18.5px !important;
	font-weight: 900 !important;
	color: #ffffff !important;
	line-height: 1.25 !important;
	white-space: nowrap !important;
}

.nexashop-submit-order-bar .submit-bar-total-amount .woocommerce-Price-amount {
	color: #ffffff !important;
	font-weight: 900 !important;
	font-size: 18.5px !important;
}

.nexashop-submit-order-bar .submit-bar-total-amount .woocommerce-Price-currencySymbol {
	font-size: 14px !important;
	font-weight: 700 !important;
	color: rgba(255, 255, 255, 0.95) !important;
	margin-right: 3px !important;
}

.nexashop-submit-order-bar .submit-bar-divider {
	width: 1px !important;
	height: 34px !important;
	background: rgba(255, 255, 255, 0.28) !important;
	margin: 0 14px !important;
	flex-shrink: 0 !important;
}

.nexashop-submit-order-bar .submit-bar-btn-wrap {
	display: flex !important;
	align-items: center !important;
	flex-shrink: 0 !important;
}

/* Glassmorphic Submit Order Button matching reference */
.nexashop-place-order-btn,
button#place_order.nexashop-place-order-btn,
#payment #place_order.nexashop-place-order-btn {
	background: rgba(255, 255, 255, 0.22) !important;
	backdrop-filter: blur(14px) !important;
	-webkit-backdrop-filter: blur(14px) !important;
	border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
	border-radius: 18px !important;
	padding: 8px 18px 8px 8px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 12px !important;
	cursor: pointer !important;
	transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), inset 0 1px 1.5px rgba(255, 255, 255, 0.5) !important;
	flex-shrink: 0 !important;
	outline: none !important;
	color: #ffffff !important;
}

.nexashop-place-order-btn:hover,
button#place_order.nexashop-place-order-btn:hover,
#payment #place_order.nexashop-place-order-btn:hover {
	background: rgba(255, 255, 255, 0.34) !important;
	border-color: rgba(255, 255, 255, 0.85) !important;
	transform: translateY(-1.5px) !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16), inset 0 1px 2px rgba(255, 255, 255, 0.7) !important;
}

.nexashop-place-order-btn .btn-text,
#payment #place_order.nexashop-place-order-btn .btn-text {
	font-size: 16px !important;
	font-weight: 900 !important;
	color: #ffffff !important;
	font-family: inherit !important;
	line-height: 1 !important;
	white-space: nowrap !important;
	text-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.35) !important;
	letter-spacing: -0.2px !important;
}

.nexashop-place-order-btn .btn-arrow-circle,
#payment #place_order.nexashop-place-order-btn .btn-arrow-circle {
	width: 34px !important;
	height: 34px !important;
	border-radius: 50% !important;
	background: #ffffff !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: #b45309 !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
	flex-shrink: 0 !important;
	transition: transform 0.2s ease !important;
}

.nexashop-place-order-btn:hover .btn-arrow-circle {
	transform: scale(1.08) !important;
}

.nexashop-place-order-btn .btn-spinner {
	width: 22px !important;
	height: 22px !important;
	border: 2.5px solid rgba(255, 255, 255, 0.35) !important;
	border-top-color: #ffffff !important;
	border-radius: 50% !important;
	animation: nxBtnSpin 0.7s linear infinite !important;
	display: inline-block !important;
	flex-shrink: 0 !important;
}

@keyframes nxBtnSpin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* Collapsed Gateways (Limit 2 with smooth accordion) */
ul.payment_methods li.wc_payment_method.nexashop-gateway-collapsed {
	display: none !important;
}
ul.payment_methods.is-expanded li.wc_payment_method.nexashop-gateway-collapsed {
	display: block !important;
	animation: nexaGatewayFadeIn 0.25s ease-out;
}
@keyframes nexaGatewayFadeIn {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Show More Gateways Button */
.nexashop-more-gateways-wrap {
	margin-top: 4px;
	margin-bottom: 16px;
	width: 100%;
}
.nexashop-btn-more-gateways {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	width: 100% !important;
	padding: 11px 16px !important;
	background: #f8fafc !important;
	border: 1.5px dashed #cbd5e1 !important;
	border-radius: 12px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	color: #475569 !important;
	cursor: pointer !important;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
	box-sizing: border-box !important;
	outline: none !important;
}
.nexashop-btn-more-gateways:hover {
	background: #fff7ed !important;
	border-color: #e5a11a !important;
	color: #d88e09 !important;
	border-style: solid !important;
}
.nexashop-btn-more-gateways .chevron-icon {
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
	flex-shrink: 0 !important;
}
.nexashop-btn-more-gateways .chevron-icon.is-rotated {
	transform: rotate(180deg) !important;
}

/* 5. Mobile & Screen Responsiveness */
@media (max-width: 640px) {
	.nexashop-checkout-wallet-box {
		padding: 18px 16px 16px 16px !important;
		border-radius: 18px !important;
	}

	.nexashop-checkout-wallet-box .wallet-card-title-group .title-main,
	.nexashop-checkout-wallet-box .wallet-card-title-group .title-sub {
		font-size: 16px !important;
	}

	.nexashop-checkout-wallet-box .wallet-card-icon-box {
		width: 50px !important;
		height: 50px !important;
		border-radius: 14px !important;
	}

	.nexashop-checkout-wallet-box .wallet-card-icon-box svg {
		width: 32px !important;
		height: 32px !important;
	}

	.nexashop-checkout-wallet-box .wallet-detail-row .detail-label {
		font-size: 13px !important;
	}

	.nexashop-checkout-wallet-box .wallet-detail-row .detail-value {
		font-size: 14.5px !important;
	}

	.nexashop-checkout-wallet-box .wallet-card-notice-banner {
		padding: 12px 14px !important;
		border-radius: 12px !important;
	}

	.nexashop-checkout-wallet-box .wallet-card-notice-banner .notice-title {
		font-size: 13px !important;
	}

	.nexashop-checkout-wallet-box .wallet-card-notice-banner .notice-banner-text {
		font-size: 11.5px !important;
	}

	#payment ul.payment_methods li.wc_payment_method.nexashop-gateway-card,
	ul.payment_methods li.wc_payment_method.nexashop-gateway-card {
		padding: 14px 16px !important;
		border-radius: 16px !important;
	}

	.nexashop-gateway-card .gateway-title {
		font-size: 15.5px !important;
	}

	.nexashop-gateway-card .gateway-subtitle {
		font-size: 11.5px !important;
	}

	.nexashop-gateway-card .gateway-logo-badge {
		width: 66px !important;
		height: 48px !important;
		border-radius: 12px !important;
	}

	.bitpay-brand-name {
		font-size: 14px !important;
	}

	.bitpay-mini-card {
		width: 36px !important;
		height: 18px !important;
	}

	.nexashop-submit-order-bar {
		padding: 8px 12px !important;
		border-radius: 18px !important;
		min-height: 56px !important;
	}

	.nexashop-submit-order-bar .submit-bar-total-label {
		font-size: 11.5px !important;
	}

	.nexashop-submit-order-bar .submit-bar-total-amount,
	.nexashop-submit-order-bar .submit-bar-total-amount .woocommerce-Price-amount {
		font-size: 16px !important;
	}

	.nexashop-submit-order-bar .submit-bar-divider {
		height: 28px !important;
		margin: 0 10px !important;
	}

	.nexashop-place-order-btn,
	button#place_order.nexashop-place-order-btn {
		padding: 6px 12px 6px 6px !important;
		gap: 8px !important;
		border-radius: 14px !important;
	}

	.nexashop-place-order-btn .btn-text {
		font-size: 14px !important;
	}

	.nexashop-place-order-btn .btn-arrow-circle {
		width: 30px !important;
		height: 30px !important;
	}

	.nexashop-place-order-btn .btn-arrow-circle svg {
		width: 15px !important;
		height: 15px !important;
	}
}

@media (max-width: 360px) {
	.nexashop-checkout-wallet-box .wallet-card-header-right,
	.nexashop-gateway-card .gateway-card-right {
		gap: 8px !important;
	}

	.nexashop-checkout-wallet-box .wallet-card-title-group .title-main,
	.nexashop-checkout-wallet-box .wallet-card-title-group .title-sub {
		font-size: 14.5px !important;
	}

	.nexashop-submit-order-bar {
		padding: 6px 10px !important;
	}

	.nexashop-submit-order-bar .submit-bar-total-amount {
		font-size: 14.5px !important;
	}

	.nexashop-place-order-btn .btn-text {
		font-size: 13px !important;
	}
}


/* ==========================================================================
   NexaShop Premium Checkout Refinements - Coupons, Shipping & Split Wallet
   ========================================================================== */

/* 1. Custom Toggle Switch for Partial Wallet Deduction */
.nexashop-custom-toggle-switch {
	position: relative !important;
	display: inline-flex !important;
	align-items: center !important;
	width: 44px !important;
	height: 24px !important;
	flex-shrink: 0 !important;
	cursor: pointer !important;
	user-select: none !important;
}

.nexashop-custom-toggle-switch .toggle-track {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	background: #cbd5e1 !important;
	border-radius: 24px !important;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nexashop-custom-toggle-switch .toggle-thumb {
	position: absolute !important;
	top: 2px !important;
	right: 2px !important;
	width: 20px !important;
	height: 20px !important;
	background: #ffffff !important;
	border-radius: 50% !important;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

.nexashop-custom-toggle-switch.is-active .toggle-track {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
	box-shadow: 0 0 10px rgba(16, 185, 129, 0.35) !important;
}

.nexashop-custom-toggle-switch.is-active .toggle-thumb {
	transform: translateX(-20px) !important;
}

/* Split mode wallet card styling */
.nexashop-checkout-wallet-box.is-split-active {
	border-color: #10b981 !important;
	background: #f0fdf4 !important;
	box-shadow: 0 4px 18px rgba(16, 185, 129, 0.12) !important;
}

.nexashop-checkout-wallet-box .wallet-card-notice-banner.is-split-hint {
	background: #f8fafc !important;
	border: 1px dashed #cbd5e1 !important;
	color: #64748b !important;
}

/* 2. Coupon Toggle Card & Form */
.nexashop-coupon-toggle-wrapper {
	margin: 0 0 20px 0 !important;
	padding: 0 !important;
	width: 100% !important;
}

.nexashop-coupon-toggle-card {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	background: #ffffff !important;
	border: 1.5px solid #f1f5f9 !important;
	border-radius: 16px !important;
	padding: 14px 20px !important;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03) !important;
	transition: all 0.25s ease !important;
}

.nexashop-coupon-toggle-card:hover {
	border-color: #fde68a !important;
	box-shadow: 0 6px 22px rgba(229, 161, 26, 0.08) !important;
}

.coupon-toggle-right {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
}

.coupon-icon-badge {
	width: 44px !important;
	height: 44px !important;
	border-radius: 12px !important;
	background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
	color: #d97706 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0 !important;
	box-shadow: 0 2px 8px rgba(217, 119, 6, 0.12) !important;
}

.coupon-toggle-title-wrap {
	display: flex !important;
	flex-direction: column !important;
	gap: 2px !important;
}

.coupon-toggle-title {
	font-size: 14.5px !important;
	font-weight: 800 !important;
	color: #0f172a !important;
}

.coupon-toggle-subtitle {
	font-size: 12px !important;
	font-weight: 500 !important;
	color: #64748b !important;
}

.coupon-toggle-left {
	display: flex !important;
	align-items: center !important;
}

.nexashop-coupon-toggle-btn {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	background: #f8fafc !important;
	color: #0f172a !important;
	border: 1.5px solid #e2e8f0 !important;
	border-radius: 12px !important;
	padding: 8px 18px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	transition: all 0.22s ease !important;
	cursor: pointer !important;
}

.nexashop-coupon-toggle-btn:hover {
	background: #e5a11a !important;
	color: #ffffff !important;
	border-color: #e5a11a !important;
	box-shadow: 0 4px 14px rgba(229, 161, 26, 0.28) !important;
	transform: translateY(-1px) !important;
}

.nexashop-coupon-toggle-btn .btn-chevron svg {
	transition: transform 0.22s ease !important;
}

.nexashop-coupon-form-box {
	background: #ffffff !important;
	border: 1.5px solid #e2e8f0 !important;
	border-radius: 16px !important;
	padding: 16px 20px !important;
	margin: 10px 0 20px 0 !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

.coupon-form-inner {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
}

.coupon-input-wrap {
	flex: 1 1 auto !important;
}

.nexashop-coupon-input {
	width: 100% !important;
	height: 46px !important;
	background: #f8fafc !important;
	border: 1.5px solid #cbd5e1 !important;
	border-radius: 12px !important;
	padding: 0 16px !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	color: #0f172a !important;
	transition: all 0.2s ease !important;
	box-sizing: border-box !important;
}

.nexashop-coupon-input:focus {
	background: #ffffff !important;
	border-color: #e5a11a !important;
	box-shadow: 0 0 0 3px rgba(229, 161, 26, 0.15) !important;
	outline: none !important;
}

.nexashop-btn-apply-coupon {
	height: 46px !important;
	padding: 0 24px !important;
	background: linear-gradient(135deg, #e5a11a 0%, #c57e06 100%) !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 12px !important;
	font-size: 13.5px !important;
	font-weight: 800 !important;
	cursor: pointer !important;
	transition: all 0.22s ease !important;
	box-shadow: 0 4px 14px rgba(229, 161, 26, 0.25) !important;
	white-space: nowrap !important;
}

.nexashop-btn-apply-coupon:hover {
	background: linear-gradient(135deg, #f2ae2b 0%, #d88e09 100%) !important;
	box-shadow: 0 6px 18px rgba(229, 161, 26, 0.35) !important;
	transform: translateY(-1px) !important;
}

/* 3. Shipping Method Option - Natural text flow, no button box */
.woocommerce-checkout-review-order-table ul#shipping_method,
ul#shipping_method.nexashop-neon-shipping-methods,
ul.woocommerce-shipping-methods {
	display: flex !important;
	flex-direction: column !important;
	gap: 10px !important;
	padding: 0 !important;
	margin: 4px 0 !important;
	list-style: none !important;
}

li.nexashop-shipping-method-item,
ul#shipping_method li {
	display: flex !important;
	align-items: center !important;
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

.checkbox-wrapper,
.nexashop-shipping-checkbox-wrapper,
body.woocommerce-checkout ul#shipping_method li label,
ul#shipping_method li label.checkbox-wrapper {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 10px !important;
	width: max-content !important;
	max-width: 100% !important;
	min-height: auto !important;
	padding: 4px 0 !important;
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	cursor: pointer !important;
	margin: 0 !important;
	white-space: nowrap !important;
}

.checkbox-wrapper:hover,
.nexashop-shipping-checkbox-wrapper:hover,
.checkbox-wrapper:has(input:checked),
.nexashop-shipping-checkbox-wrapper:has(input:checked),
.checkbox-wrapper.is-checked,
.nexashop-shipping-checkbox-wrapper.is-checked {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	transform: none !important;
}

.checkbox-wrapper .checkmark,
.nexashop-shipping-checkbox-wrapper .checkmark {
	width: 22px !important;
	height: 22px !important;
	min-width: 22px !important;
	max-width: 22px !important;
	border-radius: 6px !important;
	flex-shrink: 0 !important;
}

.checkbox-wrapper .label,
.nexashop-shipping-checkbox-wrapper .label,
ul#shipping_method li label .label {
	display: inline-flex !important;
	align-items: center !important;
	width: auto !important;
	max-width: none !important;
	white-space: nowrap !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	color: #1e293b !important;
	margin: 0 !important;
	padding: 0 !important;
	transform: none !important;
}

@media (max-width: 640px) {
	.nexashop-coupon-toggle-card {
		padding: 12px 14px !important;
	}
	.coupon-toggle-title {
		font-size: 13.5px !important;
	}
	.coupon-toggle-subtitle {
		font-size: 11px !important;
	}
	.nexashop-coupon-toggle-btn {
		padding: 6px 12px !important;
		font-size: 12px !important;
	}
	.coupon-form-inner {
		flex-direction: column !important;
		gap: 8px !important;
	}
	.nexashop-btn-apply-coupon {
		width: 100% !important;
	}
}
