/**
 * Widget template styles (moved from templates/widgets/*.php).
 *
 * @package NOWPayments For WooCommerce Pro
 */

/*
 * Utility
 */
.npwc-widget-hidden {
	display: none !important;
}

/**
 * Crypto box
 * @since 1.0
 * @version 1.0
 */
.npwc-crypto-box {
	background: white;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	max-width: 400px;
	margin: 20px 0;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.npwc-crypto-box:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.npwc-box-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
}

.npwc-box-header::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url("data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\"><defs><pattern id=\"grain\" x=\"0\" y=\"0\" width=\"100\" height=\"100\" patternUnits=\"userSpaceOnUse\"><circle cx=\"25\" cy=\"25\" r=\"1\" fill=\"white\" opacity=\"0.05\"/><circle cx=\"75\" cy=\"75\" r=\"1\" fill=\"white\" opacity=\"0.05\"/><circle cx=\"50\" cy=\"10\" r=\"1\" fill=\"white\" opacity=\"0.03\"/></pattern></defs><rect width=\"100\" height=\"100\" fill=\"url(%23grain)\"/></svg>") repeat;
	pointer-events: none;
}

.npwc-crypto-box .npwc-coin-info {
	display: flex;
	align-items: center;
	gap: 12px;
	position: relative;
	z-index: 1;
}

.npwc-crypto-box .npwc-coin-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.3);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.npwc-crypto-box .npwc-coin-name {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.npwc-crypto-box .npwc-coin-symbol {
	font-size: 14px;
	opacity: 0.9;
	text-transform: uppercase;
	font-weight: 500;
}

.npwc-crypto-box .npwc-coin-rank {
	background: rgba(255, 255, 255, 0.2);
	padding: 6px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	backdrop-filter: blur(10px);
	position: relative;
	z-index: 1;
}

.npwc-box-body {
	padding: 24px;
}

.npwc-crypto-box .npwc-price-section {
	text-align: center;
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid #f0f0f0;
}

.npwc-crypto-box .npwc-current-price {
	font-size: 32px;
	font-weight: 700;
	color: #212529;
	margin-bottom: 8px;
	letter-spacing: -0.5px;
}

.npwc-crypto-box .npwc-price-change {
	font-size: 16px;
	font-weight: 600;
}

.npwc-chart-section {
	margin-bottom: 24px;
	text-align: center;
	padding: 16px;
	background: #f8f9fa;
	border-radius: 8px;
}

.npwc-box-chart {
	width: 100%;
	height: 80px;
	cursor: pointer;
	border-radius: 4px;
}

.npwc-quick-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.npwc-quick-stat {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px;
	background: #f8f9fa;
	border-radius: 8px;
	transition: background-color 0.2s ease;
}

.npwc-quick-stat:hover {
	background: #e9ecef;
}

.npwc-stat-icon {
	font-size: 20px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: white;
	border-radius: 50%;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.npwc-stat-info {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.npwc-crypto-box .npwc-stat-label {
	font-size: 11px;
	color: #6c757d;
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 0.5px;
	margin-bottom: 2px;
}

.npwc-crypto-box .npwc-stat-value {
	font-size: 13px;
	font-weight: 600;
	color: #212529;
}

.npwc-box-footer {
	background: #f8f9fa;
	padding: 16px 24px;
	border-top: 1px solid #dee2e6;
	text-align: center;
}

.npwc-view-more {
	color: #667eea;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: color 0.2s ease;
}

.npwc-view-more:hover {
	color: #5a6fd8;
	text-decoration: underline;
}

.npwc-crypto-box.dark {
	background: #1a1a1a;
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.1);
}

.npwc-crypto-box.dark .npwc-current-price,
.npwc-crypto-box.dark .npwc-stat-value {
	color: #ffffff;
}

.npwc-crypto-box.dark .npwc-box-footer {
	background: #2d2d2d;
	border-color: #404040;
}

.npwc-crypto-box.dark .npwc-stat-label {
	color: #adb5bd;
}

.npwc-crypto-box.dark .npwc-quick-stat {
	background: #2d2d2d;
}

.npwc-crypto-box.dark .npwc-quick-stat:hover {
	background: #404040;
}

.npwc-crypto-box.dark .npwc-chart-section {
	background: #2d2d2d;
}

.npwc-crypto-box.dark .npwc-price-section {
	border-color: #404040;
}

.npwc-crypto-box.dark .npwc-stat-icon {
	background: #343a40;
}

.npwc-crypto-box.compact {
	max-width: 320px;
}

.npwc-crypto-box.compact .npwc-box-header {
	padding: 16px;
}

.npwc-crypto-box.compact .npwc-coin-icon {
	width: 40px;
	height: 40px;
}

.npwc-crypto-box.compact .npwc-coin-name {
	font-size: 16px;
}

.npwc-crypto-box.compact .npwc-current-price {
	font-size: 24px;
}

.npwc-crypto-box.compact .npwc-box-body {
	padding: 18px;
}

.npwc-crypto-box.compact .npwc-quick-stats {
	grid-template-columns: 1fr;
	gap: 12px;
}

.npwc-crypto-box.compact .npwc-quick-stat {
	padding: 10px;
}

.npwc-crypto-box.minimal {
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	border: 1px solid #e1e5e9;
}

.npwc-crypto-box.minimal:hover {
	transform: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.npwc-crypto-box.minimal .npwc-box-header {
	background: #f8f9fa;
	color: #333;
}

.npwc-crypto-box.minimal .npwc-coin-rank {
	background: rgba(0, 0, 0, 0.1);
	color: #666;
}

@media (max-width: 768px) {
	.npwc-crypto-box {
		max-width: 100%;
		margin: 15px 0;
	}

	.npwc-quick-stats {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.npwc-crypto-box .npwc-current-price {
		font-size: 28px;
	}
}

@media (max-width: 480px) {
	.npwc-box-header {
		padding: 16px;
	}

	.npwc-box-body {
		padding: 18px;
	}

	.npwc-crypto-box .npwc-coin-icon {
		width: 40px;
		height: 40px;
	}

	.npwc-crypto-box .npwc-coin-name {
		font-size: 16px;
	}

	.npwc-crypto-box .npwc-current-price {
		font-size: 24px;
	}

	.npwc-quick-stat {
		padding: 10px;
	}

	.npwc-stat-icon {
		width: 28px;
		height: 28px;
		font-size: 16px;
	}
}

@keyframes npwc-shimmer {
	0% {
		opacity: 1;
	}
	50% {
		opacity: 0.5;
	}
	100% {
		opacity: 1;
	}
}

.npwc-crypto-box.loading {
	pointer-events: none;
}

.npwc-crypto-box.loading .npwc-current-price,
.npwc-crypto-box.loading .npwc-stat-value {
	animation: npwc-shimmer 1.5s ease-in-out infinite;
}

/*
 * Chart widget (template extras)
 */
.npwc-crypto-chart.dark {
	background: #0f1119;
	color: #ffffff;
}

.npwc-crypto-chart.dark .npwc-chart-header {
	background: #0f1119;
	border-color: transparent;
}

.npwc-crypto-chart.dark .npwc-chart-header h3 {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 600;
	color: #ffffff;
}

.npwc-crypto-chart.dark .npwc-chart-control {
	background: #0f1119;
	border-color: transparent;
	color: #f8f9fa;
}

.npwc-crypto-chart.dark .npwc-chart-control:hover,
.npwc-crypto-chart.dark .npwc-chart-control.active {
	background: #667eea;
	border-color: #667eea;
	color: white;
}

.npwc-chart-error {
	background: #fff3cd;
	border: 1px solid #ffeaa7;
	border-radius: 6px;
	padding: 20px;
	margin: 10px 0;
	color: #856404;
	text-align: center;
}

.npwc-chart-error p {
	margin: 0 0 10px 0;
	font-weight: 500;
}

.npwc-crypto-chart .npwc-loading {
	background: #e3f2fd;
	border: 1px solid #bbdefb;
	border-radius: 6px;
	padding: 15px;
	margin: 10px 0;
	color: #1976d2;
	text-align: center;
	font-weight: 500;
}

.npwc-chart-cached-badge {
	color: #856404;
	font-size: 0.8em;
	margin-left: 10px;
}

.npwc-chart-retry-btn {
	margin-top: 10px;
	padding: 5px 10px;
	background: #0073aa;
	color: white;
	border: none;
	border-radius: 3px;
	cursor: pointer;
}

.npwc-crypto-chart .npwc-chart-container {
	position: relative;
	min-height: 302px !important
}

.npwc-crypto-chart .npwc-chart-container canvas {
	display: block;
	width: 100% !important;
	height: 100% !important;
}

/**
 * Card widget (template layout / themes)
 */
.npwc-crypto-card.template-card {
	background: white;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	max-width: 100%;
	margin: 20px 0;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.npwc-crypto-card.template-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.npwc-crypto-card.template-card .npwc-card-header {
	background: linear-gradient(135deg, #9c3ff5 0%, #764ba2 100%);
	color: var(--npwc-text);
	font-family: var(--npwc-font);
	padding: 15px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.npwc-crypto-card.template-card .npwc-coin-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.npwc-crypto-card.template-card .npwc-coin-icon {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.3);
}

.npwc-crypto-card.template-card .npwc-coin-name {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: var(--npwc-text);
}

.npwc-crypto-card.template-card .npwc-coin-symbol {
	font-size: 14px;
	opacity: 0.8;
	text-transform: uppercase;
	color: var(--npwc-muted);
}

.npwc-crypto-card.template-card .npwc-coin-rank {
	background: rgba(255, 255, 255, 0.2);
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
}

.npwc-crypto-card.template-card .npwc-card-body {
	padding: 20px;
}

.npwc-crypto-card.template-card .npwc-price-section {
	text-align: center;
	margin-bottom: 20px;
}

.npwc-crypto-card.template-card .npwc-current-price {
	font-size: 28px;
	font-weight: 700;
	color: #212529;
	margin-bottom: 8px;
}

.npwc-crypto-card.template-card .npwc-price-change {
	font-size: 14px;
	font-weight: 600;
}

.npwc-crypto-card.template-card .npwc-sparkline-section {
	margin-bottom: 20px;
	text-align: center;
}

.npwc-crypto-card.template-card .npwc-sparkline-chart {
	width: 100%;
	height: 60px;
	cursor: pointer;
}

.npwc-crypto-card.template-card .npwc-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}

.npwc-crypto-card.template-card .npwc-stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.npwc-crypto-card.template-card .npwc-stat-label {
	font-size: 12px;
	color: #6c757d;
	text-transform: uppercase;
	font-weight: 500;
	letter-spacing: 0.5px;
}

.npwc-crypto-card.template-card .npwc-stat-value {
	font-size: 14px;
	font-weight: 600;
	color: #212529;
}

.npwc-crypto-card.template-card .npwc-card-footer {
	background: #f8f9fa;
	padding: 12px 20px;
	border-top: 1px solid #dee2e6;
	text-align: center;
}

.npwc-crypto-card.template-card .npwc-last-update {
	color: #6c757d;
	font-size: 11px;
}

.npwc-crypto-card.template-card.light {
	background: #ffffff;
	color: #111827;
}

.npwc-crypto-card.template-card.light .npwc-card-header {
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	color: #334155;
}

.npwc-crypto-card.template-card.light .npwc-card-header .npwc-coin-name {
	color: #111827;
}

.npwc-crypto-card.template-card.light .npwc-card-header .npwc-coin-symbol {
	color: #64748b;
	opacity: 1;
}

.npwc-crypto-card.template-card.light .npwc-card-header .npwc-coin-rank {
	background: rgba(15, 23, 42, 0.08);
	color: #475569;
}

.npwc-crypto-card.template-card.light .npwc-card-header .npwc-coin-icon {
	border-color: rgba(15, 23, 42, 0.15);
}

.npwc-crypto-card.template-card.dark {
	background: #000000;
	color: #ffffff;
}

.npwc-crypto-card.template-card.dark .npwc-current-price,
.npwc-crypto-card.template-card.dark .npwc-stat-value {
	color: #ffffff;
}

.npwc-crypto-card.template-card.dark .npwc-card-footer {
	background: #000000;
	border-color: #ffffff;
}

.npwc-crypto-card.template-card.dark .npwc-stat-label,
.npwc-crypto-card.template-card.dark .npwc-last-update {
	color: #adb5bd;
}

.npwc-crypto-card.template-card.compact {
	max-width: 250px;
}

.npwc-crypto-card.template-card.compact .npwc-card-header {
	padding: 15px;
}

.npwc-crypto-card.template-card.compact .npwc-coin-icon {
	width: 36px;
	height: 36px;
}

.npwc-crypto-card.template-card.compact .npwc-coin-name {
	font-size: 16px;
}

.npwc-crypto-card.template-card.compact .npwc-current-price {
	font-size: 24px;
}

.npwc-crypto-card.template-card.compact .npwc-card-body {
	padding: 15px;
}

@media (max-width: 480px) {
	.npwc-crypto-card.template-card {
		max-width: 100%;
		margin: 10px 0;
	}

	.npwc-crypto-card.template-card .npwc-current-price {
		font-size: 24px !important;
	}

	.npwc-crypto-card.template-card .npwc-stats {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.npwc-crypto-card.template-card .npwc-stat {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}
}

/**
 * Ticker (shortcode / header / footer)
 */
.npwc-crypto-ticker {
	overflow: hidden;
	white-space: nowrap;
	padding: 10px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 20px;
	margin-top: 17px;
}

.npwc-crypto-ticker .npwc-ticker-container {
	position: relative;
	overflow: hidden;
}

.npwc-crypto-ticker .npwc-ticker-scroll {
	display: inline-flex;
	animation: npwc-ticker-scroll 60s linear infinite;
	gap: 30px;
	align-items: center;
}

.npwc-crypto-ticker .npwc-ticker-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	flex-shrink: 0;
}

.npwc-crypto-ticker .npwc-ticker-item .npwc-coin-icon {
	width: 20px;
	height: 20px;
	border-radius: 50%;
}

.npwc-crypto-ticker .npwc-ticker-item .npwc-coin-symbol {
	font-weight: bold;
	font-size: 14px;
}

.npwc-crypto-ticker .npwc-ticker-item .npwc-coin-price {
	font-weight: 600;
	font-size: 14px;
}

.npwc-crypto-ticker .npwc-change.positive {
	color: #00d4aa;
}

.npwc-crypto-ticker .npwc-change.negative {
	color: #ff6b6b;
}

@keyframes npwc-ticker-scroll {
	0% {
		transform: translate3d(100%, 0, 0);
	}
	100% {
		transform: translate3d(-100%, 0, 0);
	}
}

.npwc-crypto-ticker.dark {
	background-color: #1a1a1a !important;
	color: #ffffff !important;
}

.npwc-crypto-ticker.light {
	background-color: #ffffff !important;
	color: #333333 !important;
	border-color: rgba(0, 0, 0, 0.1) !important;
}

/*
 * List widget
 */
.npwc-crypto-list {
	background: white;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	margin: 20px 0;
}

.npwc-list-container {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.npwc-crypto-list[data-layout="horizontal"] .npwc-list-container {
	flex-direction: row;
	overflow-x: auto;
	padding: 20px;
	gap: 20px;
}

.npwc-list-item {
	padding: 20px;
	border-bottom: 1px solid #dee2e6;
	transition: background-color 0.2s ease;
}

.npwc-list-item:last-child {
	border-bottom: none;
}

.npwc-list-item:hover {
	background: #f8f9fa;
}

.npwc-crypto-list[data-layout="horizontal"] .npwc-list-item {
	min-width: 300px;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	border-bottom: 1px solid #dee2e6;
}

.npwc-list-header {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
}

.npwc-crypto-list .npwc-coin-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	margin-right: 12px;
}

.npwc-crypto-list .npwc-coin-info {
	flex: 1;
}

.npwc-crypto-list .npwc-coin-name {
	margin: 0 0 4px 0;
	font-size: 16px;
	font-weight: 600;
	color: #212529;
}

.npwc-crypto-list .npwc-coin-symbol {
	font-size: 12px;
	color: #6c757d;
	text-transform: uppercase;
}

.npwc-crypto-list .npwc-price-info {
	text-align: right;
}

.npwc-crypto-list .npwc-current-price {
	font-size: 18px;
	font-weight: 700;
	color: #212529;
	margin-bottom: 4px;
}

.npwc-crypto-list .npwc-price-change {
	font-size: 14px;
}

.npwc-list-chart {
	margin: 15px 0;
	text-align: center;
}

.npwc-list-sparkline {
	width: 100%;
	max-width: 200px;
	height: 50px;
	cursor: pointer;
	border-radius: 4px;
}

.npwc-crypto-list .npwc-list-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}

.npwc-crypto-list .npwc-list-stats .npwc-stat {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 12px;
	background: #f8f9fa;
	border-radius: 4px;
}

.npwc-crypto-list .npwc-list-stats .npwc-stat-label {
	font-size: 12px;
	color: #6c757d;
	font-weight: 500;
}

.npwc-crypto-list .npwc-list-stats .npwc-stat-value {
	font-size: 12px;
	font-weight: 600;
	color: #212529;
}

.npwc-crypto-list.dark {
	background: #1a1a1a;
	color: #ffffff;
}

.npwc-crypto-list.dark .npwc-list-item {
	border-color: #404040;
}

.npwc-crypto-list.dark .npwc-list-item:hover {
	background: #2d2d2d;
}

.npwc-crypto-list.dark .npwc-coin-name,
.npwc-crypto-list.dark .npwc-current-price,
.npwc-crypto-list.dark .npwc-stat-value {
	color: #ffffff;
}

.npwc-crypto-list.dark .npwc-coin-symbol,
.npwc-crypto-list.dark .npwc-stat-label {
	color: #adb5bd;
}

.npwc-crypto-list.dark .npwc-stat {
	background: #2d2d2d;
}

.npwc-crypto-list.compact .npwc-list-item {
	padding: 12px 15px;
}

.npwc-crypto-list.compact .npwc-coin-icon {
	width: 32px;
	height: 32px;
}

.npwc-crypto-list.compact .npwc-coin-name {
	font-size: 14px;
}

.npwc-crypto-list.compact .npwc-current-price {
	font-size: 16px;
}

.npwc-crypto-list.compact .npwc-list-chart {
	margin: 10px 0;
}

.npwc-crypto-list.compact .npwc-list-sparkline {
	height: 30px;
}

@media (max-width: 768px) {
	.npwc-crypto-list[data-layout="horizontal"] .npwc-list-container {
		flex-direction: column;
		padding: 0;
	}

	.npwc-crypto-list[data-layout="horizontal"] .npwc-list-item {
		min-width: auto;
		border: none;
		border-bottom: 1px solid #dee2e6;
		border-radius: 0;
	}

	.npwc-crypto-list .npwc-list-stats {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.npwc-list-header {
		margin-bottom: 10px;
	}
}

@media (max-width: 480px) {
	.npwc-list-item {
		padding: 15px;
	}

	.npwc-crypto-list .npwc-current-price {
		font-size: 16px;
	}

	.npwc-crypto-list .npwc-coin-name {
		font-size: 14px;
	}

	.npwc-crypto-list .npwc-coin-icon {
		width: 32px;
		height: 32px;
	}
}

/**
 * Table widget (template refinements)
 */
.npwc-crypto-table.template-table {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	margin: 20px 0;
}

.npwc-crypto-table.template-table .npwc-table-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	background: linear-gradient(135deg, #9c3ff5 0%, #764ba2 100%);
	color: var(--npwc-text);
	font-family: var(--npwc-font);
}

.npwc-crypto-table.template-table .npwc-table-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

.npwc-crypto-table.template-table .npwc-live-indicator {
	font-size: 12px;
	padding: 4px 8px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	animation: npwc-pulse 2s infinite;
	color: var(--npwc-text);
	font-family: var(--npwc-font);
	color: var(--npwc-text);
}

.npwc-crypto-table.template-table .npwc-price-table {
	width: 100%;
	border-collapse: collapse;
	background: white;
}

.npwc-crypto-table.template-table .npwc-price-table th {
	padding: 15px 10px;
	text-align: left;
	font-weight: 600;
	background: #f8f9fa;
	border-bottom: 2px solid #dee2e6;
	font-size: 14px;
	color: #495057;
}

.npwc-crypto-table.template-table .npwc-price-table td {
	padding: 12px 10px;
	border-bottom: 1px solid #dee2e6;
	font-size: 14px;
}

.npwc-crypto-table.template-table .npwc-coin-row:hover {
	background: #f8f9fa;
}

.npwc-crypto-table.template-table .npwc-coin-info {
	display: flex;
	align-items: center;
	gap: 10px;
}

.npwc-crypto-table.template-table .npwc-coin-icon {
	width: 32px;
	height: 32px;
	border-radius: 50%;
}

.npwc-crypto-table.template-table .npwc-coin-name {
	font-weight: 600;
	color: var(--npwc-text);
}

.npwc-crypto-table.template-table .npwc-coin-symbol {
	font-size: 12px;
	color: var(--npwc-muted);
	text-transform: uppercase;
}

.npwc-crypto-table.template-table .npwc-price {
	font-weight: 600;
	color: #212529;
}

.npwc-crypto-table.template-table .npwc-change.positive {
	color: #28a745;
}

.npwc-crypto-table.template-table .npwc-change.negative {
	color: #dc3545;
}

.npwc-crypto-table.template-table .npwc-rank {
	color: #6c757d;
	font-weight: 500;
}

.npwc-crypto-table.template-table .npwc-mini-chart {
	cursor: pointer;
}

.npwc-crypto-table.template-table .npwc-pagination {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	background: #f8f9fa;
	border-top: 1px solid #dee2e6;
}

.npwc-crypto-table.template-table .npwc-pagination button {
	padding: 8px 16px;
	border: 1px solid #dee2e6;
	background: white;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
}

.npwc-crypto-table.template-table .npwc-pagination button:hover:not(:disabled) {
	background: #e9ecef;
}

.npwc-crypto-table.template-table .npwc-pagination button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.npwc-crypto-table.template-table.dark {
	background: var(--npwc-bg);
	color: var(--npwc-text);
}

.npwc-crypto-table.template-table.dark .npwc-price-table {
	background: var(--npwc-bg);
	color: var(--npwc-text);
}

.npwc-crypto-table.template-table.dark .npwc-price-table th {
	background: var(--npwc-bg-alt);
	color: #ffffff;
	border-color: var(--npwc-border);
}

.npwc-crypto-table.template-table.dark .npwc-price-table td {
	border-color: var(--npwc-border);
}

.npwc-crypto-table.template-table.dark .npwc-coin-row:hover {
	background: var(--npwc-bg-alt);
}

.npwc-crypto-table.template-table.light {
	background: var(--npwc-bg);
	color: var(--npwc-text);
}

.npwc-crypto-table.template-table.light .npwc-table-header {
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	color: #334155;
}

.npwc-crypto-table.template-table.light .npwc-table-header h3 {
	color: #111827;
}

.npwc-crypto-table.template-table.light .npwc-table-header .npwc-live-indicator {
	background: rgba(15, 23, 42, 0.08);
	color: #64748b;
}

@media (max-width: 768px) {
	.npwc-crypto-table.template-table .npwc-price-table th,
	.npwc-crypto-table.template-table .npwc-price-table td {
		padding: 8px 5px;
		font-size: 12px;
	}

	.npwc-crypto-table.template-table .npwc-coin-icon {
		width: 24px;
		height: 24px;
	}

	.npwc-crypto-table.template-table .npwc-table-header {
		padding: 10px 15px;
	}

	.npwc-crypto-table.template-table .npwc-table-header h3 {
		font-size: 16px;
	}
}

/**
 * Label widget (template themes)
 */
.npwc-crypto-label.template-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f1f5f9;
	padding: 8px 14px;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 15px;
	font-weight: 500;
	color: #0f172a;
	transition: all 0.2s ease;
	margin-top: 0;
}

.npwc-crypto-label.template-label .npwc-label-icon {
	width: 18px;
	height: 18px;
	border-radius: 50%;
}

.npwc-label-link {
	color: inherit;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 6px;
}

.npwc-label-link:hover {
	text-decoration: underline;
}

.npwc-crypto-label.template-label .npwc-change.positive {
	color: #28a745;
}

.npwc-crypto-label.template-label .npwc-change.negative {
	color: #dc3545;
}

.npwc-crypto-label.template-label.dark {
	background: #343a40;
	border-color: #495057;
	color: #f8f9fa;
}

.npwc-crypto-label.template-label.dark:hover {
	background: #495057;
	border-color: #6c757d;
}

.npwc-crypto-label.template-label.minimal {
	background: transparent;
	border: none;
	padding: 4px 8px;
}

.npwc-crypto-label.template-label.minimal:hover {
	background: rgba(0, 0, 0, 0.05);
}

.npwc-crypto-label.template-label.badge {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	font-weight: 600;
}

.npwc-crypto-label.template-label.badge:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.npwc-crypto-label.template-label.badge .npwc-change {
	color: rgba(255, 255, 255, 0.9) !important;
}

/**
 * Converter widget (template layout)
 */
.npwc-crypto-converter.template-converter {
	max-width: 100%;
	margin: 22 auto;
}

.npwc-crypto-converter.template-converter .npwc-converter-header {
	text-align: center;
	margin-bottom: 25px;
}

.npwc-crypto-converter.template-converter .npwc-converter-header h3 {
	margin: 0 0 8px 0;
	color: #333;
	font-size: 20px;
}

.npwc-crypto-converter.template-converter .npwc-converter-header p {
	margin: 0;
	color: #666;
	font-size: 14px;
}

.npwc-crypto-converter.template-converter.light .npwc-converter-header {
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	padding: 18px 16px 22px;
	margin: 0 0 25px;
	border-radius: 8px 8px 0 0;
}

.npwc-crypto-converter.template-converter.light .npwc-converter-header h3 {
	color: #111827;
}

.npwc-crypto-converter.template-converter.light .npwc-converter-header p {
	color: #64748b;
}

.npwc-crypto-converter.template-converter .npwc-converter-row {
	display: grid;
	grid-template-columns: 2fr 2fr;
	gap: 15px;
	margin-bottom: 15px;
}

.npwc-crypto-converter.template-converter .npwc-converter-swap-row {
	display: flex;
	justify-content: center;
	margin: 10px 0;
}

.npwc-crypto-converter.template-converter .npwc-converter-input {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.npwc-crypto-converter.template-converter .npwc-converter-input label {
	font-size: 12px;
	color: #666;
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 0.5px;
}

.npwc-crypto-converter.template-converter .npwc-converter-input input,
.npwc-crypto-converter.template-converter .npwc-converter-input select {
	padding: 12px;
	border: 2px solid #e1e5e9;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	transition: border-color 0.2s ease;
	background: white;
}

.npwc-crypto-converter.template-converter .npwc-converter-input input:focus,
.npwc-crypto-converter.template-converter .npwc-converter-input select:focus {
	outline: none;
	border-color: #667eea;
}

.npwc-crypto-converter.template-converter .npwc-converter-input input[readonly] {
	background: #f8f9fa;
	color: #495057;
}

.npwc-crypto-converter.template-converter .npwc-converter-swap {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	border-radius: 50%;
	width: 45px;
	height: 45px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: bold;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.npwc-crypto-converter.template-converter .npwc-converter-swap:hover {
	transform: rotate(180deg) scale(1.1);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.npwc-crypto-converter.template-converter .npwc-convert-btn {
	width: 100%;
	padding: 15px;
	background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	margin-top: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.npwc-crypto-converter.template-converter .npwc-convert-btn:hover {
	background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
	transform: translateY(-1px);
	box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.npwc-crypto-converter.template-converter .npwc-converter-info {
	margin-top: 20px;
	padding-top: 15px;
	border-top: 1px solid #e1e5e9;
	display: flex;
	flex-direction: column;
	gap: 5px;
	text-align: center;
}

.npwc-crypto-converter.template-converter .npwc-converter-info small {
	color: #666;
	font-size: 12px;
}

.npwc-crypto-converter.template-converter .npwc-exchange-rate {
	font-weight: 600;
	color: #333 !important;
}

.npwc-crypto-converter.template-converter.dark {
	background: #0f1119;
	color: #ffffff;
}

.npwc-crypto-converter.template-converter.dark .npwc-converter-header h3 {
	color: #ffffff;
}

.npwc-crypto-converter.template-converter.dark .npwc-converter-header p {
	color: #adb5bd;
}

.npwc-crypto-converter.template-converter.dark .npwc-converter-input label {
	color: #adb5bd;
}

.npwc-crypto-converter.template-converter.dark .npwc-converter-input input,
.npwc-crypto-converter.template-converter.dark .npwc-converter-input select {
	background: #151723;
	border-color: transparent;
	color: #ffffff;
}

.npwc-crypto-converter.template-converter.dark .npwc-converter-input input[readonly] {
	background: #151723;
	color: #ffffff;
}

.npwc-crypto-converter.template-converter.dark .npwc-converter-info {
	border-color: #404040;
}

.npwc-crypto-converter.template-converter.dark .npwc-converter-info small {
	color: #adb5bd;
}

.npwc-crypto-converter.template-converter.dark .npwc-exchange-rate {
	color: #ffffff !important;
}

@media (max-width: 480px) {
	.npwc-crypto-converter.template-converter .npwc-converter-row {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.npwc-crypto-converter.template-converter .npwc-converter-swap {
		transform: rotate(90deg);
	}

	.npwc-crypto-converter.template-converter .npwc-converter-swap:hover {
		transform: rotate(270deg) scale(1.1);
	}

	.npwc-crypto-converter.template-converter {
		max-width: 100%;
		padding: 0 10px;
	}
}

/**
 * News widget
 */
.npwc-crypto-news.template-news {
	background: white;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	margin: 20px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.npwc-crypto-news.template-news .npwc-news-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.npwc-crypto-news.template-news .npwc-news-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

.npwc-crypto-news.template-news .npwc-category-filter {
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: white;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 14px;
	cursor: pointer;
}

.npwc-crypto-news.template-news .npwc-category-filter option {
	background: #333;
	color: white;
}

.npwc-news-container {
	min-height: 200px;
	position: relative;
}

.npwc-news-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	color: #666;
}

.npwc-loading-spinner {
	width: 32px;
	height: 32px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #667eea;
	border-radius: 50%;
	animation: npwc-news-spin 1s linear infinite;
	margin-bottom: 15px;
}

@keyframes npwc-news-spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

.npwc-news-list {
	padding: 0;
}

.npwc-news-item {
	display: flex;
	gap: 15px;
	padding: 20px;
	border-bottom: 1px solid #f0f0f0;
	transition: background-color 0.2s ease;
}

.npwc-news-item:last-child {
	border-bottom: none;
}

.npwc-news-item:hover {
	background: #f8f9fa;
}

.npwc-news-image {
	flex-shrink: 0;
}

.npwc-news-image img {
	width: 80px;
	height: 60px;
	object-fit: cover;
	border-radius: 6px;
	background: #f0f0f0;
}

.npwc-news-content {
	flex: 1;
}

.npwc-news-title {
	margin: 0 0 8px 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

.npwc-news-title a {
	color: #333;
	text-decoration: none;
	transition: color 0.2s ease;
}

.npwc-news-title a:hover {
	color: #667eea;
}

.npwc-news-excerpt {
	margin: 0 0 12px 0;
	color: #666;
	font-size: 14px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.npwc-news-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	color: #999;
}

.npwc-news-meta .npwc-news-source {
	font-weight: 600;
	color: #667eea;
}

.npwc-news-time {
	font-style: italic;
}

.npwc-news-error {
	text-align: center;
	padding: 40px 20px;
	color: #666;
}

.npwc-news-footer {
	background: #f8f9fa;
	padding: 12px 20px;
	border-top: 1px solid #e9ecef;
	text-align: center;
}

.npwc-news-footer .npwc-news-source {
	color: #667eea;
	text-decoration: none;
	font-size: 12px;
	font-weight: 500;
}

.npwc-news-footer .npwc-news-source:hover {
	text-decoration: underline;
}

.npwc-crypto-news.template-news.dark {
	background: #1a1a1a;
	color: #ffffff;
}

.npwc-crypto-news.template-news.dark .npwc-news-item {
	border-color: #404040;
}

.npwc-crypto-news.template-news.dark .npwc-news-item:hover {
	background: #2d2d2d;
}

.npwc-crypto-news.template-news.dark .npwc-news-title a {
	color: #ffffff;
}

.npwc-crypto-news.template-news.dark .npwc-news-excerpt {
	color: #adb5bd;
}

.npwc-crypto-news.template-news.dark .npwc-news-meta {
	color: #6c757d;
}

.npwc-crypto-news.template-news.dark .npwc-news-footer {
	background: #2d2d2d;
	border-color: #404040;
}

.npwc-crypto-news.template-news.dark .npwc-category-filter {
	background: rgba(0, 0, 0, 0.3);
	border-color: rgba(255, 255, 255, 0.2);
}

.npwc-crypto-news.template-news.compact .npwc-news-item {
	padding: 15px;
}

.npwc-crypto-news.template-news.compact .npwc-news-image img {
	width: 60px;
	height: 45px;
}

.npwc-crypto-news.template-news.compact .npwc-news-title {
	font-size: 14px;
}

.npwc-crypto-news.template-news.compact .npwc-news-excerpt {
	font-size: 13px;
	-webkit-line-clamp: 1;
}

@media (max-width: 768px) {
	.npwc-crypto-news.template-news .npwc-news-header {
		flex-direction: column;
		gap: 15px;
		align-items: stretch;
	}

	.npwc-news-item {
		flex-direction: column;
		gap: 10px;
	}

	.npwc-news-image {
		align-self: center;
	}

	.npwc-news-meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 5px;
	}
}

@media (max-width: 480px) {
	.npwc-news-item {
		padding: 15px;
	}

	.npwc-crypto-news.template-news .npwc-news-header {
		padding: 15px;
	}

	.npwc-crypto-news.template-news .npwc-news-header h3 {
		font-size: 16px;
	}

	.npwc-news-image img {
		width: 100%;
		height: 120px;
		max-width: 200px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.npwc-crypto-ticker .npwc-ticker-scroll {
		animation: none;
	}

	.npwc-crypto-box.loading .npwc-current-price,
	.npwc-crypto-box.loading .npwc-stat-value {
		animation: none;
	}

	.npwc-loading-spinner {
		animation: none;
	}
}
