.awb-group,
.awb-group *,
.awb-modal,
.awb-modal * {
	box-sizing: border-box;
}

.awb-group {
	--awb-columns: 2;
	--awb-fixed-width: 240px;
	position: relative;
	min-width: 0;
}

.awb-group--equal {
	display: grid;
	grid-template-columns: repeat(var(--awb-columns), minmax(0, 1fr));
	align-items: stretch;
}

.awb-group--fixed,
.awb-group--content {
	display: flex;
	align-items: stretch;
}

.awb-group--fixed.awb-wrap--yes,
.awb-group--content.awb-wrap--yes {
	flex-wrap: wrap;
}

.awb-group--fixed.awb-wrap--no,
.awb-group--content.awb-wrap--no {
	flex-wrap: nowrap;
}

.awb-group--fixed .awb-button-wrap {
	flex: 0 0 var(--awb-fixed-width);
	width: var(--awb-fixed-width);
	max-width: 100%;
}

.awb-group--content .awb-button-wrap {
	flex: 0 0 auto;
	width: auto;
	max-width: 100%;
}

.awb-button-wrap {
	display: flex;
	min-width: 0;
	height: 100%;
}

.awb-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 0;
	height: 100%;
	margin: 0;
	font: inherit;
	line-height: 1.25;
	text-align: center;
	text-decoration: none !important;
	vertical-align: middle;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	user-select: none;
	transition-property: color, background-color, border-color, box-shadow, transform, opacity;
	transition-timing-function: ease;
	overflow: hidden;
}

.awb-height--auto .awb-button {
	height: auto;
}

.awb-button:focus-visible {
	outline: 3px solid;
	outline-offset: 3px;
}

.awb-button__text {
	display: block;
	min-width: 0;
	max-width: 100%;
}

.awb-text--wrap .awb-button__text {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: normal;
}

.awb-text--nowrap .awb-button__text {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.awb-text--overflow .awb-button__text {
	white-space: nowrap;
	overflow: visible;
}

.awb-button__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	line-height: 1;
}

.awb-button__icon i,
.awb-button__icon svg {
	display: block;
	fill: currentColor;
}

.awb-icon--after {
	flex-direction: row;
}

.awb-icon--after .awb-button__text {
	order: 1;
}

.awb-icon--after .awb-button__icon {
	order: 2;
}

.awb-button--custom {
	color: var(--awb-item-text, #fff);
	background-color: var(--awb-item-bg, #f36a21);
	border-color: var(--awb-item-border, #f36a21);
}

.awb-button--custom:hover,
.awb-button--custom:focus-visible {
	color: var(--awb-item-hover-text, #fff);
	background-color: var(--awb-item-hover-bg, #d9510d);
	border-color: var(--awb-item-hover-border, #d9510d);
}

@media (hover: hover) and (pointer: fine) {
	.awb-hover--lift .awb-button:hover {
		transform: translateY(-2px);
	}

	.awb-hover--scale .awb-button:hover {
		transform: scale(1.025);
	}
}

/* Native dialog is placed in the browser top layer, so Elementor containers
   with overflow or transforms cannot crop the lightbox. */
dialog.awb-modal {
	position: fixed;
	inset: 0;
	width: 100vw;
	max-width: none;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 12px;
	border: 0;
	background: transparent;
	overflow: hidden;
}

dialog.awb-modal:not([open]) {
	display: none;
}

dialog.awb-modal[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

dialog.awb-modal::backdrop {
	background: transparent;
}

.awb-modal__overlay {
	position: absolute;
	inset: 0;
	cursor: pointer;
	animation: awb-fade-in 180ms ease both;
}

.awb-modal__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(720px, calc(100vw - 24px));
	min-width: 0;
	max-width: min(1200px, calc(100vw - 24px));
	max-height: 88dvh;
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	animation: awb-modal-in 220ms ease both;
}

.awb-modal--height-auto .awb-modal__dialog {
	height: auto;
}

.awb-modal--height-min .awb-modal__dialog {
	height: auto;
	min-height: min(420px, 88dvh);
}

.awb-modal--height-fixed .awb-modal__dialog {
	display: flex;
	height: min(720px, 88dvh);
}

.awb-modal--height-fullscreen .awb-modal__dialog {
	width: calc(100vw - 24px) !important;
	max-width: calc(100vw - 24px) !important;
	height: calc(100dvh - 24px) !important;
	min-height: 0 !important;
	max-height: calc(100dvh - 24px) !important;
}

.awb-modal__content {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	padding: 32px;
}

.awb-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 20;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	width: 42px;
	height: 42px;
	color: #17212b;
	background: rgba(23, 33, 43, 0.08);
	transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.awb-modal__close:hover {
	transform: rotate(6deg) scale(1.04);
}

.awb-modal__close:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

.awb-modal__close svg {
	width: 48%;
	height: 48%;
	fill: currentColor;
}

.awb-modal__title {
	flex: 0 0 auto;
	margin: 0 52px 22px 0;
	padding: 0;
	line-height: 1.2;
}

.awb-modal__body {
	position: relative;
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	min-height: 0;
	overflow: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.awb-modal__body > :first-child,
.awb-modal__text > :first-child {
	margin-top: 0;
}

.awb-modal__body > :last-child,
.awb-modal__text > :last-child {
	margin-bottom: 0;
}

.awb-modal__image {
	margin: 0;
	text-align: center;
}

.awb-modal__image img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: calc(88dvh - 100px);
	margin: 0 auto;
	object-fit: contain;
}

.awb-modal__image figcaption {
	margin-top: 14px;
	font-size: 0.92em;
	opacity: 0.8;
}

.awb-modal__template {
	position: relative;
	display: block;
	width: 100%;
	min-width: 0;
	min-height: 0;
}

.awb-modal__template > style:first-child + .elementor,
.awb-modal__template > .elementor,
.awb-modal__template .elementor-section-wrap,
.awb-modal__template .e-con,
.awb-modal__template .awb-elementor-template {
	width: 100%;
	min-width: 0;
}

.awb-modal__template .elementor-section,
.awb-modal__template .e-con,
.awb-modal__template .elementor-element {
	max-width: 100%;
}

/* Theme Builder and popup templates often contain root positioning intended
   for their original location. Inside this modal the root document must stay
   in normal flow; individual widgets keep their own positioning rules. */
.awb-modal__template > .awb-elementor-template {
	position: relative !important;
	inset: auto !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	transform: none !important;
}

.awb-modal__notice {
	padding: 16px 18px;
	border: 1px solid rgba(215, 81, 13, 0.25);
	border-radius: 10px;
	background: rgba(243, 106, 33, 0.08);
	color: #7a310d;
	line-height: 1.5;
}

.awb-template-error {
	padding: 16px 18px;
	border: 1px solid rgba(215, 81, 13, 0.25);
	border-radius: 10px;
	background: rgba(243, 106, 33, 0.08);
	color: #7a310d;
	line-height: 1.5;
	white-space: pre-wrap;
}

body.awb-modal-open {
	overflow: hidden !important;
	touch-action: none;
}

@keyframes awb-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes awb-modal-in {
	from { opacity: 0; transform: translateY(14px) scale(0.985); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 767px) {
	dialog.awb-modal {
		padding: 8px;
	}

	.awb-modal--height-fullscreen .awb-modal__dialog {
		width: calc(100vw - 16px) !important;
		max-width: calc(100vw - 16px) !important;
		height: calc(100dvh - 16px) !important;
		max-height: calc(100dvh - 16px) !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.awb-button,
	.awb-modal__overlay,
	.awb-modal__dialog,
	.awb-modal__close {
		animation: none !important;
		transition: none !important;
	}
}

.awb-modal--overflow-auto .awb-modal__body {
	overflow: auto;
}

.awb-modal--overflow-hidden .awb-modal__body {
	overflow: hidden;
}

.awb-modal--overflow-visible .awb-modal__dialog,
.awb-modal--overflow-visible .awb-modal__content,
.awb-modal--overflow-visible .awb-modal__body {
	overflow: visible;
}
