.storaby-story-preview-open {
	overflow: hidden;
}

.storaby-story-preview {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	box-sizing: border-box;
}

.storaby-story-preview[hidden] {
	display: none !important;
}

.storaby-story-preview__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(25, 26, 46, 0.55);
	backdrop-filter: blur(2px);
}

.storaby-story-preview__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 640px);
	outline: none;
}

.storaby-story-preview__close,
.storaby-story-preview__close:hover,
.storaby-story-preview__close:focus,
.storaby-story-preview__close:focus-visible,
.storaby-story-preview__close:active {
	position: absolute;
	top: -10px;
	right: -6px;
	z-index: 3;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	min-height: 36px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #ea7a1e !important;
	background-color: #ea7a1e !important;
	background-image: none !important;
	color: #ffffff !important;
	fill: #ffffff !important;
	line-height: 0 !important;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(234, 122, 30, 0.35) !important;
	appearance: none !important;
	-webkit-appearance: none !important;
}

.storaby-story-preview__close:hover,
.storaby-story-preview__close:focus-visible {
	background: #f08a35 !important;
	background-color: #f08a35 !important;
	color: #ffffff !important;
}

.storaby-story-preview__close svg {
	display: block !important;
	width: 14px !important;
	height: 14px !important;
	flex: 0 0 auto;
	pointer-events: none;
}

.storaby-story-preview__close svg path {
	stroke: #ffffff !important;
}

.storaby-story-preview__shell {
	position: relative;
	padding: 0 56px;
}

.storaby-story-preview__card {
	overflow: hidden;
	border-radius: 32px;
	border: 1px solid rgba(234, 122, 30, 0.1);
	background: #ffffff;
	box-shadow: 0 16px 40px rgba(25, 26, 46, 0.1);
}

.storaby-story-preview__media {
	position: relative;
	aspect-ratio: 5 / 4;
	overflow: hidden;
	background: #fdf5f0;
}

.storaby-story-preview__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.storaby-story-preview__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 24px;
	box-sizing: border-box;
	text-align: center;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	color: #79797c;
	background: #fdf5f0;
}

.storaby-story-preview__placeholder[hidden],
.storaby-story-preview__image[hidden],
.storaby-story-preview__loading[hidden] {
	display: none !important;
}

.storaby-story-preview__fade {
	pointer-events: none;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 80px;
	background: linear-gradient(to top, #ffffff, transparent);
}

.storaby-story-preview__loading {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(1px);
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	color: #79797c;
}

.storaby-story-preview__spinner {
	width: 28px;
	height: 28px;
	border: 2px solid rgba(234, 122, 30, 0.25);
	border-top-color: #ea7a1e;
	border-radius: 50%;
	animation: storaby-spin 0.7s linear infinite;
}

.storaby-story-preview__badge {
	position: absolute;
	top: 16px;
	right: 16px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 4px 12px rgba(25, 26, 46, 0.08);
	backdrop-filter: blur(4px);
	font-family: 'Poppins', sans-serif;
	font-size: 12px;
	font-weight: 500;
	color: #79797c;
}

.storaby-story-preview__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 12px 32px 28px;
	text-align: center;
}

.storaby-story-preview__title {
	margin: 0;
	max-width: 36em;
	font-family: 'Poppins', sans-serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.35;
	color: #191a2e;
}

.storaby-story-preview__text {
	margin: 0;
	max-width: 36em;
	font-family: 'Poppins', sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.6;
	color: #79797c;
}

.storaby-story-preview__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 4px;
}

.storaby-story-preview__dot {
	width: 6px;
	height: 6px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(234, 122, 30, 0.25);
	cursor: pointer;
	transition: width 0.2s ease, background-color 0.2s ease;
}

.storaby-story-preview__dot.is-active {
	width: 20px;
	background: #ea7a1e;
}

.storaby-story-preview__nav,
.storaby-story-preview__nav:hover,
.storaby-story-preview__nav:focus,
.storaby-story-preview__nav:focus-visible,
.storaby-story-preview__nav:active {
	position: absolute;
	top: 38%;
	z-index: 2;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 44px !important;
	height: 44px !important;
	min-width: 44px !important;
	min-height: 44px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #ea7a1e !important;
	background-color: #ea7a1e !important;
	background-image: none !important;
	color: #ffffff !important;
	fill: #ffffff !important;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(234, 122, 30, 0.35) !important;
	transform: translateY(-50%);
	appearance: none !important;
	-webkit-appearance: none !important;
}

.storaby-story-preview__nav:hover,
.storaby-story-preview__nav:focus-visible {
	background: #f08a35 !important;
	background-color: #f08a35 !important;
	color: #ffffff !important;
}

.storaby-story-preview__nav:disabled,
.storaby-story-preview__nav:disabled:hover,
.storaby-story-preview__nav:disabled:focus {
	background: #ea7a1e !important;
	background-color: #ea7a1e !important;
	color: #ffffff !important;
	opacity: 0.4 !important;
	cursor: not-allowed !important;
	box-shadow: 0 10px 24px rgba(234, 122, 30, 0.35) !important;
}

.storaby-story-preview__nav svg {
	display: block;
	pointer-events: none;
}

.storaby-story-preview__nav svg path {
	stroke: #ffffff !important;
}

.storaby-story-preview__nav--prev {
	left: 0;
}

.storaby-story-preview__nav--next {
	right: 0;
}

.storaby-stories-card--api .storaby-btn-primary .elementor-button,
.storaby-stories-card--api .storaby-btn-primary button.elementor-button,
.storaby-stories-card--api .storaby-btn-primary button.elementor-button:hover,
.storaby-stories-card--api .storaby-btn-primary button.elementor-button:focus,
.storaby-stories-card--api .storaby-btn-primary button.elementor-button:focus-visible,
.storaby-stories-card--api .storaby-btn-primary button.elementor-button:active {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px !important;
	gap: 0;
	border-radius: 200px !important;
	border: 0.5px solid #fdf5f0 !important;
	background: #ea7a1e !important;
	background-color: #ea7a1e !important;
	background-image: none !important;
	color: #fff !important;
	font-family: 'Poppins', sans-serif !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: normal !important;
	text-decoration: none !important;
	white-space: nowrap;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	box-shadow:
		0 1px 1px rgba(234, 122, 30, 0.2),
		inset 0 -2px 1px rgba(0, 0, 0, 0.06),
		inset 0 1px 1px rgba(255, 255, 255, 0.35) !important;
}

.storaby-stories-card--api .storaby-btn-primary button.elementor-button:hover,
.storaby-stories-card--api .storaby-btn-primary button.elementor-button:focus-visible {
	background: #f08a35 !important;
	background-color: #f08a35 !important;
	color: #fff !important;
	filter: none;
}

.storaby-stories-card--api .storaby-btn-primary .elementor-button:disabled,
.storaby-stories-card--api .storaby-btn-primary button.elementor-button:disabled,
.storaby-stories-card--api .storaby-btn-primary .elementor-button.is-loading {
	opacity: 0.75;
	cursor: wait;
}

.storaby-stories-card--api .storaby-btn-primary .elementor-button.is-loading .elementor-button-text {
	opacity: 0.85;
}

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

@media (max-width: 767px) {
	.storaby-story-preview {
		padding: 16px 12px;
		align-items: flex-end;
	}

	.storaby-story-preview__dialog {
		width: 100%;
	}

	.storaby-story-preview__close {
		top: 8px;
		right: 8px;
	}

	.storaby-story-preview__shell {
		padding: 0;
	}

	.storaby-story-preview__card {
		border-radius: 28px;
	}

	.storaby-story-preview__media {
		aspect-ratio: 4 / 3;
	}

	.storaby-story-preview__body {
		padding: 10px 20px 22px;
		gap: 12px;
	}

	.storaby-story-preview__title {
		font-size: 18px;
	}

	.storaby-story-preview__text {
		font-size: 14px;
	}

	.storaby-story-preview__nav {
		top: auto;
		bottom: 118px;
		width: 40px;
		height: 40px;
		transform: none;
	}

	.storaby-story-preview__nav--prev {
		left: 10px;
	}

	.storaby-story-preview__nav--next {
		right: 10px;
	}
}
