.mtpw-grid,
.mtpw-rows {
	width: 100%;
}

.mtpw-grid {
	display: grid;
	gap: var(--mtpw-gap, 34px);
	grid-template-columns: repeat(var(--mtpw-columns, 1), minmax(0, 1fr));
}

.mtpw-rows {
	display: flex;
	flex-direction: column;
	gap: var(--mtpw-gap, 34px);
}

.mtpw-row {
	align-items: stretch;
	display: grid;
	gap: var(--mtpw-gap, 34px);
	grid-template-columns: repeat(var(--mtpw-row-columns, 2), minmax(0, 1fr));
}

.mtpw-row--2 {
	--mtpw-row-columns: 2;
}

.mtpw-row--3 {
	--mtpw-row-columns: 3;
}

.mtpw-row .mtpw-card {
	height: 100%;
}

.mtpw-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
}

.mtpw-card__content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: space-between;
	min-height: 170px;
	padding: 42px;
}

.mtpw-card__text {
	font-size: 18px;
	line-height: 1.7;
}

.mtpw-card__text > :first-child {
	margin-top: 0;
}

.mtpw-card__text > :last-child {
	margin-bottom: 0;
}

.mtpw-card__text p + p {
	margin-top: 14px;
}

.mtpw-rating {
	display: flex;
	gap: 3px;
	margin-top: 22px;
}

.mtpw-rating__star {
	color: #d5d7da;
	font-size: 19px;
	line-height: 1;
}

.mtpw-card__footer {
	align-items: center;
	display: flex;
	justify-content: space-between;
	min-height: 116px;
	padding: 22px 28px;
}

.mtpw-author {
	align-items: center;
	display: flex;
	gap: 18px;
	min-width: 0;
}

.mtpw-author__avatar {
	background: #e5e7eb;
	flex: 0 0 auto;
	height: 72px;
	overflow: hidden;
	width: 72px;
}

.mtpw-author__image,
.mtpw-author__initials {
	display: block;
	height: 100%;
	width: 100%;
}

.mtpw-author__image {
	object-fit: cover;
}

.mtpw-author__initials {
	align-items: center;
	color: #475467;
	display: flex;
	font-size: 20px;
	font-weight: 700;
	justify-content: center;
	letter-spacing: 0.02em;
}

.mtpw-author__details {
	min-width: 0;
}

.mtpw-author__name {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.mtpw-author__role {
	font-size: 14px;
	line-height: 1.35;
	margin-top: 5px;
}

.mtpw-card__quote {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	height: 48px;
	justify-content: center;
	margin-left: 24px;
	width: 48px;
}

.mtpw-card__quote svg,
.mtpw-card__quote img {
	display: block;
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.mtpw-card__quote i {
	line-height: 1;
}

.mtpw-empty {
	padding: 24px;
	text-align: center;
}

@media (max-width: 1024px) {
	.mtpw-grid {
		grid-template-columns: repeat(var(--mtpw-tablet-columns, 2), minmax(0, 1fr));
	}

	.mtpw-rows--alternating {
		display: grid;
		gap: var(--mtpw-gap, 34px);
		grid-template-columns: repeat(var(--mtpw-tablet-columns, 2), minmax(0, 1fr));
	}

	.mtpw-rows--alternating .mtpw-row {
		display: contents;
	}
}

@media (max-width: 767px) {
	.mtpw-grid,
	.mtpw-rows--alternating {
		grid-template-columns: repeat(var(--mtpw-mobile-columns, 1), minmax(0, 1fr));
	}

	.mtpw-card__content {
		min-height: auto;
		padding: 28px 24px;
	}

	.mtpw-card__text {
		font-size: 16px;
		line-height: 1.65;
	}

	.mtpw-card__footer {
		min-height: 100px;
		padding: 18px 20px;
	}

	.mtpw-author {
		gap: 14px;
	}

	.mtpw-card__quote {
		margin-left: 16px;
	}
}


/*
 * FKF visual preset.
 * !important is intentional: it also corrects widgets saved with the old
 * 1.0/1.1 default backgrounds and paddings in Elementor-generated CSS.
 */
.mtpw-style--fkf .mtpw-card {
	background: #f3f3f3 !important;
	border: 0 !important;
	border-radius: 30px !important;
	box-shadow: none !important;
	box-sizing: border-box;
	overflow: hidden;
}

.mtpw-style--fkf .mtpw-card__content,
.mtpw-style--fkf .mtpw-card__footer {
	background: transparent !important;
	box-sizing: border-box;
}

.mtpw-style--fkf .mtpw-card__content {
	flex: 1 1 auto;
	justify-content: flex-start;
	min-height: 0;
	padding: 46px 48px 12px !important;
}

.mtpw-style--fkf .mtpw-card__text {
	color: #111a32;
	font-size: 18px;
	line-height: 1.55;
}

.mtpw-style--fkf .mtpw-card__footer {
	min-height: 112px;
	padding: 17px 48px 34px !important;
}

.mtpw-style--fkf .mtpw-author {
	gap: 18px;
}

.mtpw-style--fkf .mtpw-author__avatar {
	height: 72px !important;
	width: 72px !important;
}

.mtpw-style--fkf .mtpw-author__avatar,
.mtpw-style--fkf .mtpw-author__image,
.mtpw-style--fkf .mtpw-author__initials {
	border-radius: 50% !important;
}

.mtpw-style--fkf .mtpw-author__name {
	color: #10182f;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
}

.mtpw-style--fkf .mtpw-author__role {
	color: #667085;
}

.mtpw-style--fkf .mtpw-card__quote {
	color: #dfe1e5 !important;
	height: 48px !important;
	margin-left: 22px;
	width: 48px !important;
}

.mtpw-style--fkf .mtpw-card__quote svg,
.mtpw-style--fkf .mtpw-card__quote img {
	height: 48px !important;
	width: 48px !important;
}

.mtpw-style--fkf .mtpw-rating {
	margin-top: 18px;
}

@media (max-width: 1024px) {
	.mtpw-style--fkf .mtpw-card__content {
		padding: 38px 36px 10px !important;
	}

	.mtpw-style--fkf .mtpw-card__footer {
		padding: 16px 36px 30px !important;
	}
}

@media (max-width: 767px) {
	.mtpw-style--fkf .mtpw-card {
		border-radius: 24px !important;
	}

	.mtpw-style--fkf .mtpw-card__content {
		padding: 28px 24px 8px !important;
	}

	.mtpw-style--fkf .mtpw-card__footer {
		min-height: 96px;
		padding: 14px 24px 24px !important;
	}

	.mtpw-style--fkf .mtpw-card__text {
		font-size: 16px;
		line-height: 1.6;
	}

	.mtpw-style--fkf .mtpw-author__avatar {
		height: 60px !important;
		width: 60px !important;
	}

	.mtpw-style--fkf .mtpw-card__quote,
	.mtpw-style--fkf .mtpw-card__quote svg,
	.mtpw-style--fkf .mtpw-card__quote img {
		height: 40px !important;
		width: 40px !important;
	}
}


/* Preserve the complete quote SVG inside its viewport. */
.mtpw-card__quote,
.mtpw-card__quote svg {
	overflow: visible;
}

.mtpw-card__quote svg {
	max-width: none;
}
