/* Easy Website Online Blocks — frontend and shared editor styles. */

.ewo-has-custom-max-width {
	width: 100%;
	max-width: var(--ewo-block-max-width);
	margin-right: auto !important;
	margin-left: auto !important;
	box-sizing: border-box;
}

.ewo-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--ewo-grid-min, 260px)), 1fr));
	gap: var(--ewo-grid-gap, 20px);
	align-items: stretch;
	width: 100%;
}

.ewo-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	padding: clamp(22px, 3vw, 34px);
	color: var(--ewo-card-text, var(--ewo-text, #33475b));
	background: var(--ewo-card-background, var(--ewo-background, #fff));
	border: 1px solid var(--ewo-border, #dbe3ea);
	border-top: 5px solid var(--ewo-card-accent, var(--ewo-primary, #168bff));
	border-radius: var(--ewo-card-radius, 10px);
	box-shadow: 0 6px 20px rgba(11, 31, 51, 0.08);
	box-sizing: border-box;
}

.ewo-card.is-featured {
	border-width: 2px;
	border-top-width: 5px;
	box-shadow: 0 12px 32px rgba(11, 31, 51, 0.14);
}

.ewo-card > :first-child {
	margin-top: 0;
}

.ewo-card > :last-child {
	margin-bottom: 0;
}

.ewo-card h2,
.ewo-card h3,
.ewo-card h4 {
	color: inherit;
	line-height: 1.2;
}

.ewo-card p,
.ewo-card li {
	color: inherit;
}

.ewo-card ul,
.ewo-card ol {
	padding-left: 1.3em;
}

.ewo-card li + li {
	margin-top: 0.45em;
}

.ewo-card .ewo-card__label {
	margin: 0 0 12px;
	color: var(--ewo-card-accent, var(--ewo-primary, #168bff));
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.ewo-card .ewo-card__price {
	margin: 4px 0 18px;
	color: var(--ewo-navy, #0b1f33);
	font-size: clamp(1.8rem, 5vw, 2.5rem);
	font-weight: 800;
	line-height: 1;
}

.ewo-card > .ewo-button-wrap:last-child,
.ewo-card > .wp-block-buttons:last-child {
	margin-top: auto;
	padding-top: 18px;
}

.ewo-button-wrap {
	display: flex;
	align-items: center;
	margin: 1rem 0;
}

.ewo-button-wrap.aligncenter {
	justify-content: center;
}

.ewo-button-wrap.alignright {
	justify-content: flex-end;
}

.ewo-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.8rem 1.35rem;
	color: var(--ewo-button-text, var(--ewo-navy, #0b1f33));
	background: var(--ewo-button-background, var(--ewo-primary, #168bff));
	border: 2px solid var(--ewo-button-background, var(--ewo-primary, #168bff));
	border-radius: var(--ewo-button-radius, 6px);
	box-shadow: none;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
	transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.ewo-button.is-outline {
	color: var(--ewo-button-text, var(--ewo-navy, #0b1f33));
	background: transparent;
}

.ewo-button:hover {
	color: var(--ewo-button-text, var(--ewo-navy, #0b1f33));
	box-shadow: 0 6px 16px rgba(11, 31, 51, 0.16);
	transform: translateY(-1px);
}

.ewo-button:focus-visible {
	outline: 3px solid var(--ewo-navy, #0b1f33);
	outline-offset: 3px;
}

.ewo-cta {
	position: relative;
	padding: var(--ewo-cta-padding, 48px);
	color: var(--ewo-cta-text, #fff);
	background: var(--ewo-cta-background, var(--ewo-navy, #0b1f33));
	border-top: 5px solid var(--ewo-cta-accent, var(--ewo-secondary, #f28c28));
	border-radius: var(--ewo-card-radius, 10px);
	box-sizing: border-box;
}

.ewo-cta > :first-child {
	margin-top: 0;
}

.ewo-cta > :last-child {
	margin-bottom: 0;
}

.ewo-cta h2,
.ewo-cta h3,
.ewo-cta p {
	color: inherit;
}

.ewo-cta.has-text-align-center > .ewo-button-wrap,
.ewo-cta.has-text-align-center > .wp-block-buttons {
	justify-content: center;
}


.ewo-responsive-iframe {
	position: relative;
	width: 100%;
	aspect-ratio: var(--ewo-iframe-ratio, 16 / 9);
	overflow: hidden;
	background: #f5f8fb;
	box-sizing: border-box;
}

.ewo-responsive-iframe__frame {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.ewo-responsive-iframe__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	height: 100%;
	min-height: 180px;
	padding: 24px;
	color: var(--ewo-text, #33475b);
	background: #f5f8fb;
	border: 1px dashed var(--ewo-border, #dbe3ea);
	text-align: center;
	box-sizing: border-box;
}

.ewo-slider {
	position: relative;
	width: 100%;
	color: var(--ewo-navy, #0b1f33);
	background: var(--ewo-background, #fff);
	border-radius: var(--ewo-card-radius, 10px);
	overflow: hidden;
	box-sizing: border-box;
}

.ewo-slider__viewport {
	overflow: hidden;
}

.ewo-slider:not(.is-editor) .ewo-slider__track {
	display: block;
}

.ewo-slider:not(.is-initialized):not(.is-editor) .ewo-slide:not(:first-child),
.ewo-slider.is-initialized .ewo-slide[hidden] {
	display: none !important;
}

.ewo-slide {
	position: relative;
	display: flex;
	align-items: var(--ewo-slide-align, center);
	min-height: var(--ewo-slide-min-height, 440px);
	padding: clamp(32px, 7vw, 90px);
	color: var(--ewo-slide-text, #fff);
	background-color: var(--ewo-slide-background, var(--ewo-navy, #0b1f33));
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	box-sizing: border-box;
}

.ewo-slide__overlay {
	display: none;
	position: absolute;
	inset: 0;
	background: var(--ewo-slide-overlay, #0b1f33);
	opacity: var(--ewo-slide-overlay-opacity, 0.45);
	pointer-events: none;
}

.ewo-slide.has-background-image .ewo-slide__overlay {
	display: block;
}

.ewo-slide__content {
	position: relative;
	z-index: 1;
	width: min(100%, 760px);
}

.ewo-slide h2,
.ewo-slide h3,
.ewo-slide p,
.ewo-slide li {
	color: inherit;
}

.ewo-slider__arrow,
.ewo-slider__pause,
.ewo-slider__dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: rgba(11, 31, 51, 0.82);
	border: 1px solid rgba(255, 255, 255, 0.45);
	cursor: pointer;
}

.ewo-slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 46px;
	height: 46px;
	padding: 0;
	border-radius: 50%;
	font-size: 2rem;
	line-height: 1;
	transform: translateY(-50%);
}

.ewo-slider__arrow.is-previous {
	left: 16px;
}

.ewo-slider__arrow.is-next {
	right: 16px;
}

.ewo-slider__dots {
	position: absolute;
	left: 50%;
	bottom: 18px;
	z-index: 3;
	display: flex;
	gap: 9px;
	transform: translateX(-50%);
}

.ewo-slider__dot {
	width: 13px;
	height: 13px;
	padding: 0;
	border-radius: 50%;
	font-size: 0;
}

.ewo-slider__dot[aria-current="true"] {
	background: var(--ewo-primary, #168bff);
}

.ewo-slider__pause {
	position: absolute;
	right: 18px;
	bottom: 16px;
	z-index: 3;
	min-height: 34px;
	padding: 4px 10px;
	border-radius: var(--ewo-button-radius, 6px);
	font-size: 0.78rem;
	font-weight: 700;
}

.ewo-slider__arrow:focus-visible,
.ewo-slider__pause:focus-visible,
.ewo-slider__dot:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

@media (max-width: 639px) {
	.ewo-card-grid {
		grid-template-columns: 1fr;
	}

	.ewo-card {
		padding: 24px 20px;
	}

	.ewo-cta {
		padding: min(var(--ewo-cta-padding, 48px), 32px);
	}

	.ewo-slide {
		min-height: min(var(--ewo-slide-min-height, 440px), 72vh);
		padding: 64px 24px 78px;
	}

	.ewo-slider__arrow {
		width: 40px;
		height: 40px;
	}
}

@media (max-width: 980px) {
	.ewo-button-wrap.is-full-mobile,
	.ewo-button-wrap.is-full-mobile .ewo-button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ewo-button {
		transition: none;
	}

	.ewo-button:hover {
		transform: none;
	}
}
