.elementor-widget-hermes-buttons,
.elementor-widget-hermes-buttons .hmw-buttons,
.elementor-widget-hermes-buttons .hmw-buttons * {
	box-sizing: border-box;
}

.elementor-widget-hermes-buttons {
	min-width: 0;
}

.elementor-widget-hermes-buttons .hmw-buttons {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	justify-content: center;
	gap: 22px;
	width: 100%;
}

.elementor-widget-hermes-buttons .hmw-buttons__button {
	--hmw-button-bg: #3a18b8;
	--hmw-button-text: #fff;
	--hmw-button-border: #3a18b8;
	--hmw-button-icon: #3a18b8;
	--hmw-button-icon-bg: #fff;
	--hmw-button-fill: #fff;
	--hmw-button-hover-bg: #3a18b8;
	--hmw-button-hover-text: #fff;
	--hmw-button-hover-icon: #3a18b8;
	--hmw-button-hover-icon-bg: #fff;
	--hmw-button-hover-border: #3a18b8;
	--hmw-button-icon-size: 25px;
	--hmw-button-icon-box: 58px;
	--hmw-button-icon-radius: 14px;
	--hmw-button-gap: 22px;
	--hmw-button-inset: 12px;
	--hmw-button-duration: 450ms;
	--hmw-button-icon-travel: calc(var(--hmw-button-icon-box) + 28px);
	position: relative;
	display: inline-flex;
	flex: 0 1 auto;
	align-items: center;
	justify-content: center;
	gap: var(--hmw-button-gap);
	width: 360px;
	min-width: 0;
	height: 82px;
	max-width: 100%;
	padding: 10px 18px;
	overflow: hidden;
	color: var(--hmw-button-text);
	background: var(--hmw-button-bg);
	border: 1px solid var(--hmw-button-border);
	border-radius: 20px;
	text-decoration: none;
	direction: rtl;
	isolation: isolate;
	transition:
		color var(--hmw-button-duration) ease,
		background-color var(--hmw-button-duration) ease,
		border-color var(--hmw-button-duration) ease,
		box-shadow var(--hmw-button-duration) ease,
		transform var(--hmw-button-duration) ease;
}

.elementor-widget-hermes-buttons .hmw-buttons__button--2 {
	--hmw-button-bg: #fff;
	--hmw-button-text: #17123f;
	--hmw-button-border: #eef0f6;
	--hmw-button-icon: #fff;
	--hmw-button-icon-bg: #3a18b8;
	--hmw-button-fill: #3a18b8;
	--hmw-button-hover-icon: #fff;
	--hmw-button-hover-icon-bg: rgba(255, 255, 255, .16);
}

.elementor-widget-hermes-buttons .hmw-buttons__button:hover,
.elementor-widget-hermes-buttons .hmw-buttons__button:focus-visible {
	color: var(--hmw-button-hover-text);
	border-color: var(--hmw-button-hover-border);
	text-decoration: none;
}

.elementor-widget-hermes-buttons .hmw-buttons__button:focus-visible {
	outline: 3px solid var(--hmw-button-hover-border);
	outline-offset: 3px;
}

.elementor-widget-hermes-buttons .hmw-buttons__text,
.elementor-widget-hermes-buttons .hmw-buttons__icon {
	position: relative;
	z-index: 3;
}

.elementor-widget-hermes-buttons .hmw-buttons__text {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	white-space: nowrap;
	text-overflow: ellipsis;
	transition: color var(--hmw-button-duration) ease, opacity var(--hmw-button-duration) ease, transform var(--hmw-button-duration) ease;
}

/* Four optional visual presets. Color controls remain authoritative. */
.elementor-widget-hermes-buttons .hmw-buttons__button--preset-gradient {
	background-image: linear-gradient(135deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, 0) 46%, rgba(18, 8, 70, .2));
	box-shadow: 0 14px 34px rgba(42, 21, 132, .2);
}

.elementor-widget-hermes-buttons .hmw-buttons__button--preset-glass {
	background-image: linear-gradient(135deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, .08));
	-webkit-backdrop-filter: blur(12px) saturate(135%);
	backdrop-filter: blur(12px) saturate(135%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 12px 30px rgba(27, 18, 80, .12);
}

.elementor-widget-hermes-buttons .hmw-buttons__button--preset-soft {
	background-image: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0));
	box-shadow: 0 9px 22px rgba(35, 24, 94, .09), inset 0 0 0 1px rgba(255, 255, 255, .16);
}

.elementor-widget-hermes-buttons .hmw-buttons__button--preset-luxe {
	background-image: linear-gradient(110deg, rgba(255, 255, 255, .05) 0 28%, rgba(255, 255, 255, .28) 42%, rgba(255, 255, 255, .06) 56% 100%);
	background-size: 220% 100%;
	background-position: 100% 50%;
	box-shadow: 0 13px 30px rgba(25, 14, 78, .18), inset 0 1px 0 rgba(255, 255, 255, .24);
	transition: color var(--hmw-button-duration) ease, background-color var(--hmw-button-duration) ease, background-position var(--hmw-button-duration) ease, border-color var(--hmw-button-duration) ease, box-shadow var(--hmw-button-duration) ease, transform var(--hmw-button-duration) ease;
}

.elementor-widget-hermes-buttons .hmw-buttons__button--preset-luxe:hover,
.elementor-widget-hermes-buttons .hmw-buttons__button--preset-luxe:focus-visible {
	background-position: 0 50%;
}

.elementor-widget-hermes-buttons .hmw-buttons__icon {
	display: inline-flex;
	flex: 0 0 var(--hmw-button-icon-box);
	align-items: center;
	justify-content: center;
	width: var(--hmw-button-icon-box);
	height: var(--hmw-button-icon-box);
	color: var(--hmw-button-icon);
	background: var(--hmw-button-icon-bg);
	border-radius: var(--hmw-button-icon-radius);
	transition:
		color var(--hmw-button-duration) ease,
		background-color var(--hmw-button-duration) ease,
		left var(--hmw-button-duration) cubic-bezier(.22, .61, .36, 1),
		right var(--hmw-button-duration) cubic-bezier(.22, .61, .36, 1),
		transform var(--hmw-button-duration) cubic-bezier(.22, .61, .36, 1);
}

.elementor-widget-hermes-buttons .hmw-buttons__button--icon-left .hmw-buttons__icon {
	order: 2;
}

.elementor-widget-hermes-buttons .hmw-buttons__button--icon-left .hmw-buttons__text {
	order: 1;
}

.elementor-widget-hermes-buttons .hmw-buttons__button--icon-right .hmw-buttons__icon {
	order: 1;
}

.elementor-widget-hermes-buttons .hmw-buttons__button--icon-right .hmw-buttons__text {
	order: 2;
}

.elementor-widget-hermes-buttons .hmw-buttons__icon svg,
.elementor-widget-hermes-buttons .hmw-buttons__icon img,
.elementor-widget-hermes-buttons .hmw-buttons__icon i {
	display: block;
	width: var(--hmw-button-icon-size);
	height: var(--hmw-button-icon-size);
	font-size: var(--hmw-button-icon-size);
	object-fit: contain;
}

.elementor-widget-hermes-buttons .hmw-buttons__icon svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.elementor-widget-hermes-buttons .hmw-buttons__button:hover .hmw-buttons__icon,
.elementor-widget-hermes-buttons .hmw-buttons__button:focus-visible .hmw-buttons__icon {
	color: var(--hmw-button-hover-icon);
	background-color: var(--hmw-button-hover-icon-bg);
}

.elementor-widget-hermes-buttons .hmw-buttons__button--icon-box-none .hmw-buttons__icon,
.elementor-widget-hermes-buttons .hmw-buttons__button--icon-box-none:hover .hmw-buttons__icon,
.elementor-widget-hermes-buttons .hmw-buttons__button--icon-box-none:focus-visible .hmw-buttons__icon {
	background: transparent !important;
	box-shadow: none !important;
}

/* Fill animation: the selected color sweeps across while the text stays in place. */
.elementor-widget-hermes-buttons .hmw-buttons__button--hover-fill::before {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0;
	background: var(--hmw-button-fill);
	transform: scaleX(0);
	transition: transform var(--hmw-button-duration) cubic-bezier(.22, .61, .36, 1);
}

.elementor-widget-hermes-buttons .hmw-buttons__button--hover-fill.hmw-buttons__button--direction-left::before {
	transform-origin: left center;
}

.elementor-widget-hermes-buttons .hmw-buttons__button--hover-fill.hmw-buttons__button--direction-right::before {
	transform-origin: right center;
}

.elementor-widget-hermes-buttons .hmw-buttons__button--hover-fill:hover::before,
.elementor-widget-hermes-buttons .hmw-buttons__button--hover-fill:focus-visible::before {
	transform: scaleX(1);
}

/* The icon exits against the fill direction and returns from the other edge. */
.elementor-widget-hermes-buttons .hmw-buttons__button--hover-fill.hmw-buttons__button--direction-left:hover .hmw-buttons__icon,
.elementor-widget-hermes-buttons .hmw-buttons__button--hover-fill.hmw-buttons__button--direction-left:focus-visible .hmw-buttons__icon {
	animation: hmw-button-icon-cycle-left var(--hmw-button-duration) cubic-bezier(.22, .61, .36, 1) both;
}

.elementor-widget-hermes-buttons .hmw-buttons__button--hover-fill.hmw-buttons__button--direction-right:hover .hmw-buttons__icon,
.elementor-widget-hermes-buttons .hmw-buttons__button--hover-fill.hmw-buttons__button--direction-right:focus-visible .hmw-buttons__icon {
	animation: hmw-button-icon-cycle-right var(--hmw-button-duration) cubic-bezier(.22, .61, .36, 1) both;
}

@keyframes hmw-button-icon-cycle-left {
	0% { opacity: 1; transform: translateX(0); }
	38% { opacity: 0; transform: translateX(calc(0px - var(--hmw-button-icon-travel))); }
	39% { opacity: 0; transform: translateX(var(--hmw-button-icon-travel)); }
	100% { opacity: 1; transform: translateX(0); }
}

@keyframes hmw-button-icon-cycle-right {
	0% { opacity: 1; transform: translateX(0); }
	38% { opacity: 0; transform: translateX(var(--hmw-button-icon-travel)); }
	39% { opacity: 0; transform: translateX(calc(0px - var(--hmw-button-icon-travel))); }
	100% { opacity: 1; transform: translateX(0); }
}

/* Open animation: the icon panel expands and the icon glides to the center. */
.elementor-widget-hermes-buttons .hmw-buttons__button--hover-open::after {
	content: "";
	position: absolute;
	z-index: 1;
	top: var(--hmw-button-inset);
	bottom: var(--hmw-button-inset);
	width: var(--hmw-button-icon-box);
	background: var(--hmw-button-fill);
	border-radius: var(--hmw-button-icon-radius);
	transition: width var(--hmw-button-duration) cubic-bezier(.22, .61, .36, 1);
}

.elementor-widget-hermes-buttons .hmw-buttons__button--hover-open.hmw-buttons__button--direction-left::after {
	left: var(--hmw-button-inset);
}

.elementor-widget-hermes-buttons .hmw-buttons__button--hover-open.hmw-buttons__button--direction-right::after {
	right: var(--hmw-button-inset);
}

.elementor-widget-hermes-buttons .hmw-buttons__button--hover-open .hmw-buttons__icon {
	position: absolute;
	top: 50%;
	margin: 0;
	background: transparent;
}

.elementor-widget-hermes-buttons .hmw-buttons__button--hover-open.hmw-buttons__button--direction-left .hmw-buttons__icon {
	left: var(--hmw-button-inset);
	transform: translateY(-50%);
}

.elementor-widget-hermes-buttons .hmw-buttons__button--hover-open.hmw-buttons__button--direction-right .hmw-buttons__icon {
	right: var(--hmw-button-inset);
	transform: translateY(-50%);
}

.elementor-widget-hermes-buttons .hmw-buttons__button--hover-open:hover::after,
.elementor-widget-hermes-buttons .hmw-buttons__button--hover-open:focus-visible::after {
	width: calc(100% - var(--hmw-button-inset) - var(--hmw-button-inset));
}

.elementor-widget-hermes-buttons .hmw-buttons__button--hover-open:hover .hmw-buttons__text,
.elementor-widget-hermes-buttons .hmw-buttons__button--hover-open:focus-visible .hmw-buttons__text {
	opacity: 0;
	transform: scale(.96);
}

.elementor-widget-hermes-buttons .hmw-buttons__button--hover-open.hmw-buttons__button--direction-left:hover .hmw-buttons__icon,
.elementor-widget-hermes-buttons .hmw-buttons__button--hover-open.hmw-buttons__button--direction-left:focus-visible .hmw-buttons__icon {
	left: 50%;
	transform: translate(-50%, -50%);
}

.elementor-widget-hermes-buttons .hmw-buttons__button--hover-open.hmw-buttons__button--direction-right:hover .hmw-buttons__icon,
.elementor-widget-hermes-buttons .hmw-buttons__button--hover-open.hmw-buttons__button--direction-right:focus-visible .hmw-buttons__icon {
	right: 50%;
	transform: translate(50%, -50%);
}

.elementor-widget-hermes-buttons .hmw-buttons__button--hover-none:hover,
.elementor-widget-hermes-buttons .hmw-buttons__button--hover-none:focus-visible {
	background: var(--hmw-button-hover-bg);
}

@media (max-width: 1024px) {
	.elementor-widget-hermes-buttons .hmw-buttons {
		gap: 16px;
	}

	.elementor-widget-hermes-buttons .hmw-buttons__button {
		width: 300px;
		height: 68px;
		--hmw-button-icon-size: 20px;
		--hmw-button-icon-box: 46px;
		--hmw-button-gap: 14px;
		--hmw-button-inset: 9px;
	}

	.elementor-widget-hermes-buttons .hmw-buttons__text {
		font-size: 16px;
	}
}

@media (max-width: 767px) {
	.elementor-widget-hermes-buttons .hmw-buttons {
		gap: 10px;
	}

	.elementor-widget-hermes-buttons .hmw-buttons__button {
		width: 150px;
		height: 46px;
		padding: 6px 8px;
		border-radius: 13px;
		--hmw-button-icon-size: 16px;
		--hmw-button-icon-box: 32px;
		--hmw-button-icon-radius: 9px;
		--hmw-button-gap: 8px;
		--hmw-button-inset: 6px;
	}

	.elementor-widget-hermes-buttons .hmw-buttons__button--2 {
		width: 186px;
	}

	.elementor-widget-hermes-buttons .hmw-buttons__text {
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.elementor-widget-hermes-buttons .hmw-buttons__button,
	.elementor-widget-hermes-buttons .hmw-buttons__button::before,
	.elementor-widget-hermes-buttons .hmw-buttons__button::after,
	.elementor-widget-hermes-buttons .hmw-buttons__text,
	.elementor-widget-hermes-buttons .hmw-buttons__icon {
		transition-duration: .01ms !important;
		animation: none !important;
	}
}
