/**
 * Stonegate Custom Widgets: shared frontend styles.
 *
 * Keep this file to structural defaults only. Anything a page builder user
 * should be able to change belongs in a Style tab control instead, so the
 * Elementor selectors can override it cleanly.
 */

.sgcw-callout-card {
	box-sizing: border-box;
	display: block;
	padding: 32px;
}

.sgcw-callout-card__icon {
	display: block;
	line-height: 1;
	margin-bottom: 16px;
}

.sgcw-callout-card__icon i,
.sgcw-callout-card__icon svg {
	display: inline-block;
	font-size: 40px;
	height: auto;
	width: 40px;
}

.sgcw-callout-card__heading {
	margin: 0 0 12px;
}

.sgcw-callout-card__description {
	margin: 0;
}

.sgcw-callout-card__description p:last-child {
	margin-bottom: 0;
}

.sgcw-callout-card__button {
	display: inline-block;
	margin-top: 20px;
	padding: 12px 24px;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sgcw-callout-card__button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/**
 * Testimonial widget.
 *
 * This block is the design baseline from Figma (card 1px #c9d2d9 / radius 10 /
 * padding and gap 24, star #f2c202, quote Inter 500 20/1.5, name Inter 700 18,
 * details Inter 400 16 #5e6573, avatar 56px on #f5f7f8). Every Style tab
 * control in the widget overrides these values, so clearing a control returns
 * the element to the design rather than to nothing.
 *
 * Font stack note: the design specifies Inter. The stack below uses it when
 * the theme provides it and falls back to system fonts otherwise. Delete the
 * font-family lines to inherit the theme font instead.
 */

.sgcw-testimonial {
	align-items: start;
	background-color: #ffffff;
	border: 1px solid #c9d2d9;
	border-radius: 10px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin: 0;
	padding: 24px;
	text-align: start;
}

/* Rating */

.sgcw-testimonial__rating {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	line-height: 1;
}

.sgcw-testimonial__star {
	display: block;
	flex: 0 0 auto;
	height: 24px;
	position: relative;
	width: 24px;
}

.sgcw-testimonial__star-base,
.sgcw-testimonial__star-fill {
	display: block;
	height: 100%;
	inset-inline-start: 0;
	line-height: 1;
	overflow: hidden;
	position: absolute;
	top: 0;
}

.sgcw-testimonial__star-base {
	color: #c9d2d9;
	width: 100%;
}

.sgcw-testimonial__star-fill {
	color: #f2c202;
}

.sgcw-testimonial__star-icon {
	display: block;
	height: 24px;
	max-width: none;
	width: 24px;
}

/* Quote */

.sgcw-testimonial__quote {
	border: 0;
	margin: 0;
	padding: 0;
	quotes: none;
	width: 100%;
}

.sgcw-testimonial__quote-text {
	color: #2e3138;
	font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 20px;
	font-weight: 500;
	letter-spacing: -0.32px;
	line-height: 1.5;
	margin: 0;
	overflow-wrap: break-word;
}

.sgcw-testimonial__quote-text.is-quoted::before,
.sgcw-testimonial__quote-text.is-quoted::after {
	content: '"';
}

/* Author */

.sgcw-testimonial__author {
	align-items: flex-start;
	display: flex;
	gap: 12px;
	margin: 0;
	text-align: inherit;
	width: 100%;
}

.sgcw-testimonial__avatar {
	align-items: center;
	background-color: #f5f7f8;
	border-radius: 50%;
	box-sizing: border-box;
	display: flex;
	flex: 0 0 56px;
	height: 56px;
	justify-content: center;
	overflow: hidden;
	position: relative;
	width: 56px;
}

.sgcw-testimonial__avatar img {
	border-radius: inherit;
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.sgcw-testimonial__avatar-icon {
	color: #2e3138;
	display: block;
	height: 57.14%;
	max-width: none;
	width: 57.14%;
}

.sgcw-testimonial__author-content {
	align-items: start;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 4px;
	justify-content: center;
	min-width: 0;
}

.sgcw-testimonial__name {
	color: #2e3138;
	font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
	margin: 0;
}

.sgcw-testimonial__details {
	color: #5e6573;
	font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: -0.18px;
	line-height: 1.5;
}
