/* PXS Recent Instant Winners Elementor widget */

.pxs-riw {
	--pxs-riw-line: #dc2626;
	--pxs-riw-badge-bg: #1e293b;
	box-sizing: border-box;
}

.pxs-riw *,
.pxs-riw *::before,
.pxs-riw *::after {
	box-sizing: border-box;
}

.pxs-riw--missing {
	padding: 1rem;
	color: #94a3b8;
}

.pxs-riw__search-wrap {
	margin: 0 0 16px;
}

.pxs-riw__search-wrap-inner {
	position: relative;
	display: block;
	max-width: 420px;
	margin: 0 auto;
}

.pxs-riw__search-input {
	width: 100%;
	margin: 0;
	padding: 12px 44px 12px 18px;
	border: 1px solid #334155;
	border-radius: 999px;
	background: #1a1a1a;
	color: #e2e8f0;
	font-size: 0.95rem;
	line-height: 1.3;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pxs-riw__search-input:focus {
	border-color: #64748b;
	box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.25);
}

.pxs-riw__search-input::placeholder {
	color: #64748b;
	opacity: 1;
}

.pxs-riw__search-icon {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 18px;
	width: 18px;
	height: 18px;
	pointer-events: none;
	color: #64748b;
}

.pxs-riw__panel {
	background: #0a0a0a;
	border: 1px solid #1e293b;
	border-radius: 12px;
	padding: 24px 20px 20px;
}

.pxs-riw__header {
	margin-bottom: 20px;
}

.pxs-riw__title {
	margin: 0 0 8px;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
}

.pxs-riw__subtitle {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.4;
	opacity: 0.9;
}

.pxs-riw__timeline {
	position: relative;
	padding-left: 8px;
	min-height: 48px;
}

.pxs-riw__loading-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(10, 10, 10, 0.5);
	backdrop-filter: blur(2px);
	pointer-events: none;
}

.pxs-riw__loading-overlay[hidden] {
	display: none !important;
}

.pxs-riw__loading-overlay::after {
	content: "";
	width: 32px;
	height: 32px;
	border: 3px solid rgba(255, 255, 255, 0.2);
	border-top-color: #dc2626;
	border-radius: 50%;
	animation: pxs-riw-spin 0.65s linear infinite;
}

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

.pxs-riw__list {
	position: relative;
	list-style: none;
	margin: 0;
	padding: 0 0 0 4px;
}

.pxs-riw__list::before {
	content: "";
	position: absolute;
	left: 19px;
	top: 12px;
	bottom: 12px;
	width: 2px;
	background: var(--pxs-riw-line);
	border-radius: 2px;
}

.pxs-riw__item {
	position: relative;
	display: grid;
	grid-template-columns: 40px 1fr auto;
	align-items: center;
	gap: 12px 16px;
	padding: 10px 8px;
	margin: 0;
	border-radius: 8px;
	transition: background-color 0.2s ease;
}

.pxs-riw__item + .pxs-riw__item {
	margin-top: 4px;
}

.pxs-riw__badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--pxs-riw-badge-bg);
	color: #dc2626;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1;
	z-index: 1;
}

.pxs-riw__badge svg {
	width: 1.15em;
	height: 1.15em;
	max-width: 22px;
	max-height: 22px;
	fill: currentColor;
	flex-shrink: 0;
}

.pxs-riw__badge i {
	line-height: 1;
}

.pxs-riw__body {
	min-width: 0;
}

.pxs-riw__line {
	display: block;
	font-size: 0.95rem;
	line-height: 1.45;
}

.pxs-riw__name {
	font-weight: 700;
}

.pxs-riw__prize,
.pxs-riw__amount {
	font-weight: 700;
}

.pxs-riw__time {
	font-size: 0.85rem;
	white-space: nowrap;
	color: #64748b;
}

.pxs-riw__empty {
	list-style: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 24px 12px;
	text-align: center;
	color: #94a3b8;
	margin: 0;
}

.pxs-riw__empty-title {
	display: block;
	font-weight: 600;
	font-size: 1rem;
	color: #cbd5e1;
}

.pxs-riw__empty-sub {
	display: block;
	font-size: 0.9rem;
	line-height: 1.4;
	opacity: 0.9;
}

.pxs-riw__pagination {
	margin-top: 20px;
	text-align: center;
}

.pxs-riw__pg-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 12px;
}

.pxs-riw__pg-btn {
	margin: 0;
	padding: 8px 14px;
	border: 1px solid #334155;
	border-radius: 8px;
	background: #1e293b;
	color: #e2e8f0;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.pxs-riw__pg-btn:hover:not(:disabled) {
	background: #334155;
	border-color: #475569;
}

.pxs-riw__pg-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.pxs-riw__pg-btn.is-active {
	background: #dc2626;
	border-color: #dc2626;
	color: #fff;
}

.pxs-riw__pg-ellipsis {
	padding: 0 4px;
	color: #64748b;
	font-weight: 700;
	user-select: none;
}

.pxs-riw__pg-summary {
	margin: 0;
	font-size: 0.8rem;
	line-height: 1.4;
	color: #64748b;
}
