/* ─────────────────────────────────────
   DOLCELA SPIN WIDGET v4
   ───────────────────────────────────── */

.ds-widget {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* ── Carousel ────────────────────────── */

.ds-carousel-wrap {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: visible;
	min-height: 320px;
}

.ds-cards-track {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ── Card ────────────────────────────── */

.ds-card {
	position: absolute;
	flex-shrink: 0;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	will-change: transform, opacity, filter;
	/* Fallback dimensions — Elementor selectors override */
	width: 320px;
	height: 420px;
	border-radius: 16px;
	background-color: #ffffff;
}

@media (max-width: 768px) {
	.ds-card {
		width: 260px;
		height: 360px;
	}
	.ds-carousel-wrap {
		min-height: 280px;
	}
}

.ds-card__text {
	font-weight: 700;
	word-break: break-word;
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	padding: 30px 24px;
}

.ds-card__placeholder {
	font-size: 5rem;
	font-weight: 900;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	position: relative;
	z-index: 2;
}

/* ── Actions ─────────────────────────── */

.ds-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.ds-spin-btn,
.ds-reset-btn {
	cursor: pointer;
	border: none;
	outline: none;
	font-family: inherit;
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1.2;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	-webkit-appearance: none;
	-webkit-touch-callout: none;
	user-select: none;
	opacity: 1;
}

/* Force full opacity on all interactive states */
.ds-spin-btn:hover,
.ds-spin-btn:active,
.ds-spin-btn:focus,
.ds-spin-btn:focus-visible,
.ds-reset-btn:hover,
.ds-reset-btn:active,
.ds-reset-btn:focus,
.ds-reset-btn:focus-visible {
	opacity: 1 !important;
	outline: none !important;
}

.ds-spin-btn.ds-btn-disabled {
	pointer-events: none;
	opacity: 0.7 !important;
}

.ds-spin-btn__icon,
.ds-reset-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ds-spin-btn__icon img,
.ds-reset-btn__icon img {
	display: block;
	object-fit: contain;
}

.ds-step {
	display: flex;
	justify-content: center;
	width: 100%;
}

.ds-step--spin,
.ds-step--reset {
	flex-direction: column;
	align-items: center;
}

/* ── Hover Animations ────────────────── */

.ds-hover-grow:hover  { transform: scale(1.08); }
.ds-hover-pulse       { animation: none; }
.ds-hover-pulse:hover { animation: ds-pulse 1s ease infinite; }
.ds-hover-bounce:hover{ animation: ds-bounce 0.5s ease; }
.ds-hover-shake:hover { animation: ds-shake 0.4s ease; }

@keyframes ds-pulse {
	0%, 100% { transform: scale(1); }
	50%      { transform: scale(1.06); }
}

@keyframes ds-bounce {
	0%, 100% { transform: translateY(0); }
	40%      { transform: translateY(-8px); }
	60%      { transform: translateY(-3px); }
}

@keyframes ds-shake {
	0%, 100% { transform: translateX(0); }
	20%      { transform: translateX(-4px); }
	40%      { transform: translateX(4px); }
	60%      { transform: translateX(-3px); }
	80%      { transform: translateX(3px); }
}

/* ── Fade transitions ────────────────── */

.ds-step { transition: opacity 0.35s ease; }
.ds-step.ds-fade-out { opacity: 0; }
.ds-step.ds-fade-in  { opacity: 1; }
