.wpst-bar {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	padding: 14px 10px;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.wpst-bar::-webkit-scrollbar {
	height: 4px;
}

.wpst-circle {
	background: none;
	border: none;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	width: calc(var(--wpst-circle-size, 70px) + 10px);
}

.wpst-ring {
	display: block;
	width: var(--wpst-circle-size, 70px);
	height: var(--wpst-circle-size, 70px);
	border-radius: 50%;
	padding: 3px;
	background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}

.wpst-ring.wpst-viewed {
	background: #c7c7c7;
}

.wpst-ring img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #fff;
	display: block;
	background: #eee;
}

.wpst-label {
	font-size: 12px;
	max-width: calc(var(--wpst-circle-size, 70px) + 10px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #262626;
}

/* Viewer */
.wpst-viewer {
	position: fixed;
	inset: 0;
	background: #000;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
}

.wpst-viewer.wpst-open {
	display: flex;
}

.wpst-viewer-inner {
	position: relative;
	width: 100%;
	max-width: 420px;
	height: 100%;
	max-height: 100vh;
	background: #000;
	display: flex;
	flex-direction: column;
}

.wpst-progress-row {
	display: flex;
	gap: 4px;
	padding: 8px 8px 0;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 3;
}

.wpst-progress-track {
	flex: 1;
	height: 3px;
	background: rgba(255, 255, 255, 0.35);
	border-radius: 3px;
	overflow: hidden;
}

.wpst-progress-fill {
	height: 100%;
	width: 0%;
	background: #fff;
	transition: width linear;
}

.wpst-viewer-header {
	position: absolute;
	top: 16px;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 10px;
	z-index: 3;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.wpst-viewer-title {
	font-weight: 600;
	font-size: 14px;
}

.wpst-close {
	background: none;
	border: none;
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.wpst-media-wrap {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

.wpst-media-wrap img,
.wpst-media-wrap video {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.wpst-caption {
	position: absolute;
	bottom: 70px;
	left: 0;
	right: 0;
	text-align: center;
	color: #fff;
	font-size: 14px;
	padding: 0 20px;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
	z-index: 3;
}

.wpst-cta {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: #fff;
	color: #000 !important;
	padding: 8px 20px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	z-index: 3;
}

.wpst-nav {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 30%;
	background: none;
	border: none;
	color: transparent;
	cursor: pointer;
	z-index: 2;
}

.wpst-nav-prev {
	left: 0;
}

.wpst-nav-next {
	right: 0;
}

@media (min-width: 600px) {
	.wpst-nav {
		color: rgba(255, 255, 255, 0.6);
		font-size: 20px;
		width: 60px;
		display: flex;
		align-items: center;
		justify-content: center;
	}
}

body.wpst-noscroll {
	overflow: hidden;
}
