.dmp-advanced-quote {
	--dmp-advanced-quote-surface: #0b2e43;
	--dmp-advanced-quote-accent: var(--wp--preset--color--primary, #57d9f9);
	--dmp-advanced-quote-body: #e0edf5;
	--dmp-advanced-quote-meta: #a4c3d4;
	--dmp-advanced-quote-line: #31566b;
	--dmp-advanced-quote-name: var(--wp--preset--color--white, #ffffff);
	--dmp-advanced-quote-dot: var(--wp--preset--color--gray-light);
	--dmp-advanced-quote-dot-active: var(--wp--preset--color--primary);
	--dmp-advanced-quote-dot-size: 8px;
	--dmp-advanced-quote-arrow-color: var(--wp--preset--color--white, currentColor);
	--dmp-advanced-quote-arrow-bg: color-mix(in srgb, var(--wp--preset--color--black, currentColor) 40%, transparent);
	--dmp-advanced-quote-arrow-size: 44px;
	--dmp-advanced-quote-transition: 450ms;
	--dmp-advanced-quote-per-view-desktop: 1;
	--dmp-advanced-quote-per-view-tablet: 1;
	--dmp-advanced-quote-per-view-mobile: 1;
	--dmp-advanced-quote-item-gap-desktop: 0px;
	--dmp-advanced-quote-item-gap-tablet: 0px;
	--dmp-advanced-quote-item-gap-mobile: 0px;
	--dmp-advanced-quote-icon-size: 4rem;
	--dmp-advanced-quote-icon-gap: 1.5rem;
	position: relative;
	width: 100%;
	max-width: 100%;
	padding: var(--wp--preset--spacing--8, 2rem) var(--wp--preset--spacing--6, 1.5rem);
	border-radius: var(--dmp-advanced-quote-radius, 10px);
	font-family: var(--wp--preset--font-family--secondary, Roboto, sans-serif);
	font-style: normal;
	font-size: var(--wp--preset--font-size--heading-5, 18px);
	line-height: 1.55;
	color: var(--dmp-advanced-quote-text, var(--dmp-advanced-quote-body));
	box-sizing: border-box;
}

.dmp-advanced-quote:not(.has-background) {
	background-color: var(--dmp-advanced-quote-bg, var(--dmp-advanced-quote-surface));
}

.dmp-advanced-quote__item {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	quotes: none;
	font: inherit;
	color: inherit;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	overflow: visible;
}

.dmp-advanced-quote__item::before,
.dmp-advanced-quote__item::after {
	content: none !important;
}

.dmp-advanced-quote__item-card {
	--dmp-aq-indent: calc(var(--dmp-advanced-quote-icon-size) + var(--dmp-advanced-quote-icon-gap));
	flex: 1 1 auto;
	width: 100%;
	box-sizing: border-box;
	min-height: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
	overflow: visible;
}

.dmp-advanced-quote__item-card > *:first-child {
	margin-top: 0 !important;
}

.dmp-advanced-quote__item-card > *:last-child {
	margin-bottom: 0 !important;
}

/* Two locked children: message (label+text) + author (sep+name+title+logo) */
.dmp-advanced-quote__message,
.dmp-advanced-quote__author {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	overflow: visible !important;
}

.dmp-advanced-quote__message {
	position: relative;
	padding-left: 5rem !important;
}

/* Quote icon on message container (stable while editing text) */
.dmp-advanced-quote__message::before {
	content: "\f10d";
	position: absolute;
	left: 0;
	top: -0.1em;
	font-size: var(--dmp-advanced-quote-icon-size, 4rem);
	line-height: 1;
	color: var(--wp--preset--color--primary, #57d9f9);
	font-family: "Font Awesome 6 Pro";
	font-weight: 700;
	font-style: normal;
	speak: none;
	pointer-events: none;
	z-index: 2;
	display: block !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.dmp-advanced-quote--invert .dmp-advanced-quote__message::before {
	color: var(--wp--preset--color--white);
}

.dmp-advanced-quote__message > *:first-child:not(hr):not(.wp-block-separator),
.dmp-advanced-quote__author > *:first-child:not(hr):not(.wp-block-separator) {
	margin-top: 0 !important;
}

.dmp-advanced-quote__message > *:last-child,
.dmp-advanced-quote__author > *:last-child {
	margin-bottom: 0 !important;
}

.dmp-advanced-quote__author {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(5rem, 30%);
	grid-template-areas:
		"sep sep"
		"name logo"
		"title logo";
	column-gap: 1.5rem;
	row-gap: 0;
	align-items: start;
}

/* Label defaults — overridable by block styles the user sets in the editor */
.dmp-advanced-quote__label {
	position: relative;
	margin-top: 0;
	margin-bottom: 14px;
	padding-left: 0;
	box-sizing: border-box;
	font-family: var(--wp--preset--font-family--sans, sans-serif);
	font-size: 16px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 2px;
	line-height: 1.3;
	text-transform: uppercase;
	text-align: left;
	color: #57d9f9;
}

.dmp-advanced-quote__label.has-sans-font-family {
	font-family: var(--wp--preset--font-family--sans, sans-serif);
}

.dmp-advanced-quote__label::before {
	content: none !important;
}

/* Message defaults — overridable by block styles the user sets in the editor */
.dmp-advanced-quote__text,
.dmp-advanced-quote__text.wp-block-heading,
h3.dmp-advanced-quote__text {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: var(--wp--preset--font-family--secondary, Roboto, sans-serif);
	font-size: var(--wp--preset--font-size--heading-5, 18px);
	font-style: normal;
	font-weight: 400;
	line-height: 1.4;
	text-align: left;
	color: #e0edf5;
}

.dmp-advanced-quote__text.has-secondary-font-family {
	font-family: var(--wp--preset--font-family--secondary, Roboto, sans-serif);
}

.dmp-advanced-quote__separator {
	grid-area: sep;
	width: 100px !important;
	max-width: 100px !important;
	height: 2px !important;
	margin: 1.5rem auto 16px !important;
	border: 0 !important;
	border-bottom: none !important;
	background-color: var(--dmp-advanced-quote-line, #31566b) !important;
	color: var(--dmp-advanced-quote-line, #31566b) !important;
	opacity: 1 !important;
}

/* Author name defaults — overridable by block styles the user sets in the editor */
.dmp-advanced-quote__author-name {
	grid-area: name;
	display: block;
	margin: 0;
	padding-left: 0;
	box-sizing: border-box;
	font-family: var(--wp--preset--font-family--secondary, Roboto, sans-serif);
	font-style: normal;
	font-weight: 700;
	font-size: var(--wp--preset--font-size--heading-5, 18px);
	line-height: 1.3;
	text-align: left;
	color: #ffffff;
}

/* Author title / company defaults — overridable by block styles */
.dmp-advanced-quote__author-title {
	grid-area: title;
	display: block;
	margin-top: var(--wp--preset--spacing--3);
	margin-bottom: 0;
	padding-left: 0;
	box-sizing: border-box;
	font-family: var(--wp--preset--font-family--secondary, Roboto, sans-serif);
	font-style: normal;
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.4;
	text-align: left;
	color: #a4c3d4;
	opacity: 1;
}

.dmp-advanced-quote__logo {
	grid-area: logo;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	align-self: end;
	justify-self: end;
	margin: 0 !important;
	max-width: 110px;
	width: 100%;
}

.dmp-advanced-quote__logo img {
	display: block;
	max-width: 110px;
	width: 110px;
	height: auto;
	object-fit: contain;
}

/* Optional: author on the right — two children side by side */
.dmp-advanced-quote__item--beside .dmp-advanced-quote__item-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(12rem, 30%);
	column-gap: clamp(1.5rem, 4vw, 3rem);
	align-items: stretch;
}

.dmp-advanced-quote__item--beside .dmp-advanced-quote__author {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 0.35rem;
	padding-left: 1.5rem !important;
	box-sizing: border-box;
	align-self: stretch;
	height: 100%;
	min-height: 100%;
}

.dmp-advanced-quote__item--beside .dmp-advanced-quote__separator {
	display: block !important;
	position: absolute;
	left: 0;
	top: 50%;
	bottom: auto;
	transform: translateY(-50%);
	width: 2px !important;
	max-width: 2px !important;
	height: 50% !important;
	min-height: 0;
	margin: 0 !important;
	border: 0 !important;
	border-bottom: none !important;
	background-color: var(--wp--preset--color--gray-light, #d4d4d4) !important;
	color: var(--wp--preset--color--gray-light, #d4d4d4) !important;
	opacity: 1 !important;
}

.dmp-advanced-quote__item--beside .dmp-advanced-quote__author-name,
.dmp-advanced-quote__item--beside .dmp-advanced-quote__author-title {
	padding-left: 0;
	grid-area: auto;
}

.dmp-advanced-quote__item--beside .dmp-advanced-quote__logo {
	grid-area: auto;
	justify-self: start;
	justify-content: flex-start;
	align-self: start;
	max-width: 100%;
}

.dmp-advanced-quote__viewport {
	overflow: hidden;
	width: 100%;
}

.dmp-advanced-quote__track {
	display: flex;
	transition: transform var(--dmp-advanced-quote-transition, 450ms) ease;
	will-change: transform;
}

.dmp-advanced-quote--effect-fade .dmp-advanced-quote__track,
.dmp-advanced-quote--effect-slide-up .dmp-advanced-quote__track {
	transform: none !important;
	will-change: auto;
	position: relative;
}

.dmp-advanced-quote--effect-fade .dmp-advanced-quote__item,
.dmp-advanced-quote--effect-slide-up .dmp-advanced-quote__item {
	transition: opacity var(--dmp-advanced-quote-transition, 450ms) ease, transform var(--dmp-advanced-quote-transition, 450ms) ease, visibility var(--dmp-advanced-quote-transition, 450ms) ease;
}

.dmp-advanced-quote--effect-fade:has(.dmp-advanced-quote__item.is-active) .dmp-advanced-quote__item:not(.is-active),
.dmp-advanced-quote--effect-slide-up:has(.dmp-advanced-quote__item.is-active) .dmp-advanced-quote__item:not(.is-active) {
	position: absolute;
	left: 0;
	top: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.dmp-advanced-quote--effect-fade .dmp-advanced-quote__item.is-active,
.dmp-advanced-quote--effect-slide-up .dmp-advanced-quote__item.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.dmp-advanced-quote--effect-slide-up .dmp-advanced-quote__item:not(.is-active) {
	transform: translateY(28px);
}

.dmp-advanced-quote--effect-slide-up .dmp-advanced-quote__item.is-active {
	transform: none;
}

.dmp-advanced-quote--slider .dmp-advanced-quote__item {
	flex: 0 0 calc(100% / var(--dmp-advanced-quote-per-view-desktop, 1));
	width: calc(100% / var(--dmp-advanced-quote-per-view-desktop, 1));
	max-width: calc(100% / var(--dmp-advanced-quote-per-view-desktop, 1));
	box-sizing: border-box;
	padding-inline: calc(var(--dmp-advanced-quote-item-gap-desktop, 0px) / 2);
}

.dmp-advanced-quote__controls {
	display: block;
}

.dmp-advanced-quote__arrow {
	pointer-events: auto;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--dmp-advanced-quote-arrow-size, 44px);
	height: var(--dmp-advanced-quote-arrow-size, 44px);
	padding: 0;
	border: 0;
	cursor: pointer;
	color: var(--dmp-advanced-quote-arrow-color, var(--wp--preset--color--white, currentColor));
	background: var(--dmp-advanced-quote-arrow-bg, color-mix(in srgb, var(--wp--preset--color--black, currentColor) 40%, transparent));
	font-size: calc(var(--dmp-advanced-quote-arrow-size, 44px) * 0.45);
	line-height: 1;
}

.dmp-advanced-quote__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.dmp-advanced-quote__arrow svg {
	display: block;
}

.dmp-advanced-quote--arrow-circle .dmp-advanced-quote__arrow {
	border-radius: 50%;
}

.dmp-advanced-quote--arrow-rounded .dmp-advanced-quote__arrow {
	border-radius: 8px;
}

.dmp-advanced-quote--arrow-square .dmp-advanced-quote__arrow {
	border-radius: 0;
}

.dmp-advanced-quote--arrow-chevron .dmp-advanced-quote__arrow {
	background: transparent;
	border-radius: 0;
}

/* Default: arrows sit left and right of the dots */
.dmp-advanced-quote--arrows-sides .dmp-advanced-quote__controls,
.dmp-advanced-quote--arrows-bottom .dmp-advanced-quote__controls {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 1.25rem;
}

.dmp-advanced-quote--dots-left.dmp-advanced-quote--arrows-sides .dmp-advanced-quote__controls,
.dmp-advanced-quote--dots-left.dmp-advanced-quote--arrows-bottom .dmp-advanced-quote__controls {
	justify-content: flex-start;
}

.dmp-advanced-quote--dots-right.dmp-advanced-quote--arrows-sides .dmp-advanced-quote__controls,
.dmp-advanced-quote--dots-right.dmp-advanced-quote--arrows-bottom .dmp-advanced-quote__controls {
	justify-content: flex-end;
}

.dmp-advanced-quote--arrows-sides .dmp-advanced-quote__arrow,
.dmp-advanced-quote--arrows-bottom .dmp-advanced-quote__arrow,
.dmp-advanced-quote--arrows-top .dmp-advanced-quote__arrow,
.dmp-advanced-quote--arrows-sides .dmp-advanced-quote__dots,
.dmp-advanced-quote--arrows-bottom .dmp-advanced-quote__dots,
.dmp-advanced-quote--arrows-top .dmp-advanced-quote__dots {
	position: relative;
	inset: auto;
	left: auto;
	right: auto;
	top: auto;
	bottom: auto;
	transform: none;
	flex: 0 0 auto;
	pointer-events: auto;
}

.dmp-advanced-quote--arrows-top .dmp-advanced-quote__controls {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	z-index: 4;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 0;
}

.dmp-advanced-quote--arrows-middle .dmp-advanced-quote__controls,
.dmp-advanced-quote--arrows-sides-top .dmp-advanced-quote__controls,
.dmp-advanced-quote--arrows-sides-bottom .dmp-advanced-quote__controls {
	display: contents;
}

.dmp-advanced-quote--arrows-middle .dmp-advanced-quote__arrow,
.dmp-advanced-quote--arrows-sides-top .dmp-advanced-quote__arrow,
.dmp-advanced-quote--arrows-sides-bottom .dmp-advanced-quote__arrow {
	position: absolute;
	z-index: 4;
}

.dmp-advanced-quote--arrows-middle .dmp-advanced-quote__arrow--prev,
.dmp-advanced-quote--arrows-sides-top .dmp-advanced-quote__arrow--prev,
.dmp-advanced-quote--arrows-sides-bottom .dmp-advanced-quote__arrow--prev {
	left: 16px;
}

.dmp-advanced-quote--arrows-middle .dmp-advanced-quote__arrow--next,
.dmp-advanced-quote--arrows-sides-top .dmp-advanced-quote__arrow--next,
.dmp-advanced-quote--arrows-sides-bottom .dmp-advanced-quote__arrow--next {
	right: 16px;
}

.dmp-advanced-quote--arrows-middle .dmp-advanced-quote__arrow--prev,
.dmp-advanced-quote--arrows-middle .dmp-advanced-quote__arrow--next {
	top: 50%;
	transform: translateY(-50%);
}

.dmp-advanced-quote--arrows-sides-top .dmp-advanced-quote__arrow--prev,
.dmp-advanced-quote--arrows-sides-top .dmp-advanced-quote__arrow--next {
	top: 16px;
}

.dmp-advanced-quote--arrows-sides-bottom .dmp-advanced-quote__arrow--prev,
.dmp-advanced-quote--arrows-sides-bottom .dmp-advanced-quote__arrow--next {
	bottom: 16px;
}

.dmp-advanced-quote__dots {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: calc(var(--dmp-advanced-quote-dot-size, 8px) * 0.75);
	margin-top: 1.25rem;
}

.dmp-advanced-quote--arrows-sides .dmp-advanced-quote__dots,
.dmp-advanced-quote--arrows-bottom .dmp-advanced-quote__dots,
.dmp-advanced-quote--arrows-top .dmp-advanced-quote__dots {
	margin-top: 0;
	justify-content: center;
}

.dmp-advanced-quote--dots-center .dmp-advanced-quote__dots {
	justify-content: center;
}

.dmp-advanced-quote--dots-right .dmp-advanced-quote__dots {
	justify-content: flex-end;
}

.dmp-advanced-quote__dot {
	width: var(--dmp-advanced-quote-dot-size, 8px);
	height: var(--dmp-advanced-quote-dot-size, 8px);
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--dmp-advanced-quote-dot);
	opacity: 0.45;
	cursor: pointer;
	appearance: none;
	transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.dmp-advanced-quote__dot.is-active {
	opacity: 1;
	background: var(--dmp-advanced-quote-dot-active);
	transform: scale(1.15);
}

@media (max-width: 1024px) {
	.dmp-advanced-quote--slider .dmp-advanced-quote__item {
		flex-basis: calc(100% / var(--dmp-advanced-quote-per-view-tablet, 1));
		width: calc(100% / var(--dmp-advanced-quote-per-view-tablet, 1));
		max-width: calc(100% / var(--dmp-advanced-quote-per-view-tablet, 1));
		padding-inline: calc(var(--dmp-advanced-quote-item-gap-tablet, 0px) / 2);
	}
}

@media (max-width: 768px) {
	.dmp-advanced-quote {
		padding: var(--wp--preset--spacing--6, 1.5rem) var(--wp--preset--spacing--4, 1rem);
		--dmp-advanced-quote-arrow-size: 36px;
		--dmp-advanced-quote-icon-size: 3rem;
		--dmp-advanced-quote-icon-gap: 1rem;
	}

	.dmp-advanced-quote__item--beside .dmp-advanced-quote__item-card {
		display: flex;
		flex-direction: column;
	}

	.dmp-advanced-quote__author,
	.dmp-advanced-quote__item--beside .dmp-advanced-quote__author {
		position: static;
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"sep sep"
			"name logo"
			"title logo";
		row-gap: 0.35rem;
		padding-left: 0 !important;
	}

	.dmp-advanced-quote__item--beside .dmp-advanced-quote__separator {
		display: block !important;
		position: static;
		grid-area: sep;
		left: auto;
		top: auto;
		bottom: auto;
		width: 100px !important;
		max-width: 100px !important;
		height: 2px !important;
		min-height: 0;
		margin: 12px auto 16px !important;
	}

	.dmp-advanced-quote__item--beside .dmp-advanced-quote__author-name {
		grid-area: name;
		padding-left: 0;
	}

	.dmp-advanced-quote__item--beside .dmp-advanced-quote__author-title {
		grid-area: title;
		padding-left: 0;
	}

	.dmp-advanced-quote__item--beside .dmp-advanced-quote__logo {
		grid-area: logo;
		justify-self: end;
		justify-content: flex-end;
	}

	.dmp-advanced-quote__logo {
		max-width: 110px;
	}

	.dmp-advanced-quote--arrows-middle .dmp-advanced-quote__arrow--prev,
	.dmp-advanced-quote--arrows-sides-top .dmp-advanced-quote__arrow--prev,
	.dmp-advanced-quote--arrows-sides-bottom .dmp-advanced-quote__arrow--prev {
		left: 10px;
	}

	.dmp-advanced-quote--arrows-middle .dmp-advanced-quote__arrow--next,
	.dmp-advanced-quote--arrows-sides-top .dmp-advanced-quote__arrow--next,
	.dmp-advanced-quote--arrows-sides-bottom .dmp-advanced-quote__arrow--next {
		right: 10px;
	}

	.dmp-advanced-quote--slider .dmp-advanced-quote__item {
		flex-basis: calc(100% / var(--dmp-advanced-quote-per-view-mobile, 1));
		width: calc(100% / var(--dmp-advanced-quote-per-view-mobile, 1));
		max-width: calc(100% / var(--dmp-advanced-quote-per-view-mobile, 1));
		padding-inline: calc(var(--dmp-advanced-quote-item-gap-mobile, 0px) / 2);
	}
}
