/* ==========================================================================
   DeshipOS — CTA Banner widget
   Green pill banner: left image, centered text + buttons, right stat block.
   Depends on assets/css/base.css for design tokens.
   ========================================================================== */

/* Elementor wraps each widget in .elementor-widget-container, which defaults
   to overflow:hidden in many themes. The CTA image deliberately extends
   below the banner, so the wrapper must allow visible overflow. */
.elementor-widget-deshipos_cta_banner,
.elementor-widget-deshipos_cta_banner > .elementor-widget-container {
	overflow: visible !important;
}

.deshipos-cta {
	--dcta-brand:        #16A34A;
	--dcta-brand-light:  #22C55E;
	--dcta-brand-strong: #15803D;
	/* Subtle diagonal gradient gives the band the same lit-from-upper-left
	   sheen as the reference image, without straying from the brand green. */
	--dcta-bg:           linear-gradient(115deg, #1BA950 0%, #17A24A 55%, #138C43 100%);
	--dcta-text:         #FFFFFF;
	--dcta-text-soft:    rgba(255, 255, 255, .9);
	--dcta-ring:         rgba(255, 255, 255, .28);

	box-sizing: border-box;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto 40px;
	background: var(--dcta-bg);
	border-radius: 16px;
	padding: 36px 40px;
	display: grid;
	grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) minmax(220px, 280px);
	align-items: center;
	gap: 32px;
	color: var(--dcta-text);
	position: relative;
	overflow: visible; 
}
.deshipos-cta *,
.deshipos-cta *::before,
.deshipos-cta *::after { box-sizing: border-box; }

/* ----- Left image -----
   The image is rendered at full clarity (no blend modes, no filters) so the
   POS product photo stays sharp and color-accurate. For the cleanest look
   on the green band, upload a transparent-background PNG — any opaque white
   background in the source image will be visible as a white card. */
.deshipos-cta__image {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	position: relative;
}
.deshipos-cta__image img {
	display: block;
	width: 100%;
	max-width: 360px;
	height: auto;
	object-fit: contain;
}

/* ----- Middle content -----
   Left-aligned to match the reference: heading, description, and buttons all
   start from the same left edge of the content column. */
.deshipos-cta__content {
	min-width: 0;
	text-align: center;
}

.deshipos-cta__heading {
	margin: 0 0 12px;
	font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: var(--dew-tracking-tight);
	color: var(--dcta-text);
}

.deshipos-cta__desc {
	margin: 0 0 22px;
	font-size: clamp(.9375rem, .85rem + .25vw, 1.0625rem);
	line-height: 1.55;
	color: var(--dcta-text-soft);
	max-width: 560px;
}

/* ----- Buttons ----- */
.deshipos-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-top: 4px;
}

.deshipos-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 11px 22px;
	font-size: .9375rem;
	font-weight: 700;
	letter-spacing: var(--dew-tracking-snug);
	border-radius: 999px;
	border: 1.5px solid transparent;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition:
		background var(--dew-dur-fast, 120ms) var(--dew-ease-out, ease),
		color var(--dew-dur-fast, 120ms) var(--dew-ease-out, ease),
		border-color var(--dew-dur-fast, 120ms) var(--dew-ease-out, ease),
		transform var(--dew-dur-fast, 120ms) var(--dew-ease-out, ease),
		box-shadow var(--dew-dur-base, 220ms) var(--dew-ease-out, ease);
}
.deshipos-cta__btn:active { transform: scale(.98); }

.deshipos-cta__btn--primary {
	background: var(--dcta-brand-light);
	color: #FFFFFF;
	border-color: var(--dcta-brand-light);
	box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .35);
}
/* .deshipos-cta__btn--primary:hover {
	background: #16A34A;
	border-color: #16A34A;
	color: #FFFFFF;
} */

.deshipos-cta__btn--ghost {
	background: transparent;
	color: #FFFFFF;
	border-color: rgba(255, 255, 255, .85);
}
.deshipos-cta__btn--ghost:hover {
	background: rgba(255, 255, 255, .12);
	border-color: #FFFFFF;
}

.deshipos-cta__btn-arrow {
	flex-shrink: 0;
	transition: transform var(--dew-dur-fast, 120ms) var(--dew-ease-out, ease);
}
.deshipos-cta__btn:hover .deshipos-cta__btn-arrow {
	transform: translateX(3px);
}

/* ----- Right stats block ----- */
.deshipos-cta__stats {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	justify-content: flex-end;
}

.deshipos-cta__stat-circle {
	position: relative;
	width: 150px;
	height: 150px;
	flex-shrink: 0;
}

.deshipos-cta__stat-ring {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	border: 7px solid var(--dcta-ring);
	pointer-events: none;
}
.deshipos-cta__stat-ring--2 {
	display: none;
}

/* `--dot-orbit` is registered as an animatable angle so we can interpolate it
   inside keyframes. Without @property the var would only flip at 0%/100% and
   the dots would teleport instead of sweep. Falls back gracefully on older
   browsers — dots stay in their static start positions. */
@property --dot-orbit {
	syntax: '<angle>';
	initial-value: 0deg;
	inherits: false;
}

/* Decorative dots sitting ON the outer ring — small bright green circles
   that orbit the centre continuously. Each dot keeps its own start angle
   (--dot-start); the shared keyframe sweeps --dot-orbit from 0 → 360deg
   so all six rotate around the centre together. */
.deshipos-cta__stat-dot {
	position: absolute;
	width: 12px;
	height: 12px;
	border-radius: 999px;
	background: var(--dcta-brand-light);
	pointer-events: none;
	top: 50%;
	left: 50%;
	margin-top: -4.5px;
	margin-left: -4.5px;
	--dot-start: 0deg;
	--dot-orbit: 0deg;
	transform:
		rotate(calc(var(--dot-start) + var(--dot-orbit)))
		translate(0, calc(var(--r) * -1));
	animation: deshipos-cta-dot-orbit 8s linear infinite;
	will-change: transform;
}
/* --r is the ring radius (= half of the circle width). */
.deshipos-cta__stat-circle { --r: 72px; }
.deshipos-cta__stat-dot--top    { --dot-start:   0deg; }
.deshipos-cta__stat-dot--tr     { --dot-start:  55deg; }
.deshipos-cta__stat-dot--right  { --dot-start: 120deg; }
.deshipos-cta__stat-dot--bottom { --dot-start: 180deg; }
.deshipos-cta__stat-dot--bl     { --dot-start: 235deg; }
.deshipos-cta__stat-dot--left   { --dot-start: 300deg; }

@keyframes deshipos-cta-dot-orbit {
	to { --dot-orbit: 360deg; }
}

.deshipos-cta__stat-avatars {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.deshipos-cta__stat-avatar {
	width: 40px;
	height: 40px;
	border-radius: 999px;
	overflow: hidden;
	border: 2px solid #FFFFFF;
	background: rgba(255, 255, 255, .2);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
	position: relative;
	z-index: 1;
}
.deshipos-cta__stat-avatar + .deshipos-cta__stat-avatar {
	margin-left: -12px;
}
.deshipos-cta__stat-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
/* SVG person silhouette used when no avatar image was uploaded. `currentColor`
   on the stroke + fill lets the icon inherit white from this rule. */
.deshipos-cta__stat-avatar-fallback {
	width: 65%;
	height: 65%;
	color: #FFFFFF;
	display: block;
}

.deshipos-cta__stat-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.deshipos-cta__stat-value {
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	font-weight: 800;
	line-height: 1;
	color: #FFFFFF;
	letter-spacing: -.02em;
}

.deshipos-cta__stat-label {
	font-size: .75rem;
	font-weight: 500;
	color: var(--dcta-text-soft);
	line-height: 1.35;
	max-width: 140px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Large tablet — keep horizontal layout but tighter */
@media (max-width: 1100px) {
	.deshipos-cta {
		grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) minmax(180px, 220px);
		gap: 24px;
		padding: 32px 32px;
	}
	.deshipos-cta__image img { max-width: 220px; }
}

/* Tablet — image+content top row, stats centered below */
@media (max-width: 900px) {
	.deshipos-cta {
		grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
		grid-template-areas:
			"image content"
			"stats stats";
		gap: 24px;
		padding: 32px 28px 32px;
		margin-bottom: 30px;
	}
	.deshipos-cta__image  { grid-area: image; }
	.deshipos-cta__image img { max-width: 240px; }
	.deshipos-cta__content { grid-area: content; text-align: left; }
	.deshipos-cta__desc { margin-left: 0; margin-right: 0; }
	.deshipos-cta__actions { justify-content: flex-start; }
	.deshipos-cta__stats {
		grid-area: stats;
		justify-content: center;
		padding-top: 16px;
		border-top: 1px solid rgba(255, 255, 255, .15);
		margin-top: 4px;
	}
	.deshipos-cta__image img { max-width: 220px; }
}

/* Mobile — fully stacked, image stops overflowing */
@media (max-width: 640px) {
	.deshipos-cta {
		grid-template-columns: 1fr;
		grid-template-areas:
			"image"
			"content"
			"stats";
		gap: 20px;
		padding: 28px 22px;
		border-radius: 18px;
		text-align: center;
		margin-bottom: 0;
	}
	.deshipos-cta__image {
		justify-content: center;
		align-items: center;
	}
	.deshipos-cta__image img {
		max-width: 220px;
	}
	.deshipos-cta__content { text-align: center; }
	.deshipos-cta__desc { margin-left: auto; margin-right: auto; }
	.deshipos-cta__actions {
		justify-content: center;
		flex-direction: column;
		gap: 10px;
	}
	.deshipos-cta__btn {
		width: 100%;
		max-width: 280px;
		margin: 0 auto;
	}
	.deshipos-cta__stats {
		justify-content: center;
		flex-direction: row;
		gap: 14px;
		padding-top: 16px;
	}
	.deshipos-cta__stat-circle { width: 92px; height: 92px; --r: 46px; }
	.deshipos-cta__stat-avatar { width: 34px; height: 34px; }
	.deshipos-cta__stat-avatar + .deshipos-cta__stat-avatar { margin-left: -10px; }
	.deshipos-cta__stat-label { max-width: 160px; }
}

/* Very small phones */
@media (max-width: 380px) {
	.deshipos-cta {
		padding: 24px 18px;
	}
	.deshipos-cta__image img { max-width: 160px; }
	.deshipos-cta__heading { font-size: 1.25rem; }
	.deshipos-cta__desc { font-size: .9rem; }
	.deshipos-cta__btn { min-height: 44px; padding: 10px 18px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.deshipos-cta__btn,
	.deshipos-cta__btn-arrow {
		transition-duration: .01ms !important;
	}
	.deshipos-cta__btn:hover .deshipos-cta__btn-arrow { transform: none; }
}
