/* core/button: shape, sizes, icons (Button options panel) and style variations. */
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6em;
	min-height: 54px;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ne-ease);
}
.wp-block-button__link:active { transform: scale(.98); }
.wp-block-button.is-ne-small .wp-block-button__link { min-height: 44px; padding-inline: 1.15em; font-size: .93rem; }
.wp-block-button.has-custom-width .wp-block-button__link { width: 100%; }

/* Icons */
.wp-block-button.has-ne-icon .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 1.05em;
	height: 1.05em;
	background: currentColor;
	-webkit-mask: var(--ne-btn-icon) center / contain no-repeat;
	mask: var(--ne-btn-icon) center / contain no-repeat;
	transition: transform .3s var(--ne-ease);
}
.has-ne-icon-arrow { --ne-btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.has-ne-icon-down { --ne-btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v15M6 13l6 6 6-6'/%3E%3C/svg%3E"); }
.has-ne-icon-out { --ne-btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E"); }
.has-ne-icon-calendar { --ne-btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.has-ne-icon-phone { --ne-btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h3.5l1.8 4.6-2.3 1.4a11 11 0 0 0 6 6l1.4-2.3L20 15.5V19a2 2 0 0 1-2.2 2A16.5 16.5 0 0 1 3 6.2 2 2 0 0 1 5 4Z'/%3E%3C/svg%3E"); }
.has-ne-icon-mail { --ne-btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E"); }
.has-ne-icon-whatsapp { --ne-btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='black' d='M16.04 3C8.86 3 3.03 8.82 3.03 16c0 2.3.6 4.53 1.74 6.5L3 29l6.68-1.75A12.95 12.95 0 0 0 16.04 29C23.2 29 29 23.18 29 16S23.2 3 16.04 3Zm0 23.65c-1.98 0-3.92-.53-5.61-1.53l-.4-.24-3.96 1.04 1.06-3.86-.26-.4a10.6 10.6 0 0 1-1.63-5.66c0-5.88 4.8-10.67 10.8-10.67 5.87 0 10.64 4.79 10.64 10.67 0 5.87-4.77 10.65-10.64 10.65Zm5.86-7.98c-.32-.16-1.9-.94-2.2-1.04-.29-.11-.5-.16-.72.16-.21.32-.82 1.04-1 1.25-.19.21-.37.24-.69.08-.32-.16-1.36-.5-2.59-1.6-.95-.85-1.6-1.9-1.79-2.22-.19-.32-.02-.49.14-.65.14-.14.32-.37.48-.56.16-.18.21-.32.32-.53.1-.21.05-.4-.03-.56-.08-.16-.72-1.73-.98-2.37-.26-.62-.53-.54-.72-.55h-.62c-.21 0-.56.08-.85.4-.29.32-1.12 1.09-1.12 2.66 0 1.57 1.14 3.09 1.3 3.3.16.21 2.25 3.43 5.44 4.81.76.33 1.35.52 1.81.67.76.24 1.46.2 2 .12.61-.09 1.9-.78 2.16-1.52.27-.75.27-1.39.19-1.52-.08-.13-.29-.21-.61-.37Z'/%3E%3C/svg%3E"); }
.wp-block-button:is(.has-ne-icon-whatsapp, .has-ne-icon-calendar, .has-ne-icon-phone, .has-ne-icon-mail) .wp-block-button__link::after { order: -1; }
.wp-block-button.has-ne-icon-arrow .wp-block-button__link:hover::after { transform: translateX(3px); }

/* Ink */
.wp-block-button.is-style-ink .wp-block-button__link { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--paper); }
.wp-block-button.is-style-ink .wp-block-button__link:hover { background: color-mix(in srgb, var(--wp--preset--color--ink) 82%, #fff); }

/* Ghost: on photos */
.wp-block-button.is-style-ghost .wp-block-button__link {
	border-color: rgba(255, 255, 255, .55);
	background: rgba(255, 255, 255, .06);
	color: #fff;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.wp-block-button.is-style-ghost .wp-block-button__link:hover { background: rgba(255, 255, 255, .16); }

/* Line */
.wp-block-button.is-style-line .wp-block-button__link { border-color: var(--ne-line-2); background: transparent; color: inherit; }
.wp-block-button.is-style-line .wp-block-button__link:hover { border-color: currentColor; }

/* WhatsApp */
.wp-block-button.is-style-whatsapp .wp-block-button__link { background: var(--wp--preset--color--whatsapp); color: #fff; }
.wp-block-button.is-style-whatsapp .wp-block-button__link:hover { background: color-mix(in srgb, var(--wp--preset--color--whatsapp) 84%, #000); }

/* Text link */
.wp-block-button.is-style-text .wp-block-button__link {
	min-height: 0;
	padding: 8px 2px;
	border: 0;
	background: none;
	color: inherit;
	font-size: .93rem;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
}
.wp-block-button.is-style-text .wp-block-button__link:hover { text-decoration-thickness: 2px; }

@media (max-width: 660px) {
	.wp-block-buttons.is-ne-stretch-mobile > .wp-block-button { flex: 1 1 auto; }
	.wp-block-buttons.is-ne-stretch-mobile .wp-block-button__link { width: 100%; }
}
