.yss-success-stories {
	margin: 0 auto;
	max-width: 920px;
}

.yss-story-list {
	display: grid;
	gap: 18px;
}

.yss-story {
	background: #fff;
	border: 1px solid rgba(17, 17, 17, .12);
	border-radius: 3px;
	padding: 24px 28px;
}

.yss-story-name {
	font-size: 18px;
	margin: 0 0 8px;
}

.yss-story-message p:last-child {
	margin-bottom: 0;
}

.yss-empty {
	text-align: center;
}

.yss-pagination {
	display: flex;
	justify-content: center;
	margin: 32px 0;
}

.yss-pagination .page-numbers {
	align-items: center;
	border: 1px solid rgba(17, 17, 17, .14);
	display: inline-flex;
	justify-content: center;
	margin: 0 3px;
	min-height: 38px;
	min-width: 38px;
	padding: 4px 10px;
}

.yss-pagination .current {
	background: #111;
	border-color: #111;
	color: #fff;
}

.yss-success-form {
	margin: 70px auto 0;
	max-width: 620px;
}

.yss-contact-form {
	overflow: visible;
}

.yss-contact-form .yss-contact-row {
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.yss-contact-form .yss-contact-row p {
	margin-top: 0;
}

.yss-contact-form .yss-contact-row > p,
.yss-contact-form > p:nth-of-type(n) {
	float: none;
	padding-left: 0;
	padding-right: 0;
	text-align: left;
	width: 100%;
}

.yss-contact-form input[type="text"],
.yss-contact-form input[type="email"],
.yss-contact-form textarea {
	width: 100%;
}

.yss-consent .wpcf7-list-item {
	margin: 0;
}

.yss-form-actions {
	align-items: center;
	display: flex;
	gap: 14px;
	justify-content: center;
	position: relative;
}

.yss-form-actions .wpcf7-spinner {
	margin: 0;
	position: absolute;
	right: 12px;
	top: 11px;
}

.yss-form-actions .wpcf7-submit,
.yss-read-stories-button {
	box-sizing: border-box;
	height: 46px;
	margin: 0;
}

.yss-read-stories-button {
	align-items: center;
	border: 2px solid #111;
	color: #111;
	display: inline-flex;
	font-weight: 600;
	justify-content: center;
	line-height: 1.2;
	padding: 12px 22px;
	text-decoration: none;
}

.yss-read-stories-button:hover,
.yss-read-stories-button:focus {
	background: #111;
	color: #fff;
}

.home .yss-form-actions .wpcf7-submit {
	order: 1;
}

.home .yss-form-actions .yss-read-stories-button {
	order: 2;
}

.home .yss-form-actions .wpcf7-spinner {
	order: 3;
}

@media screen and (max-width: 767px) {
	.yss-story {
		padding: 20px;
	}

	.yss-contact-form .yss-contact-row {
		gap: 0;
		grid-template-columns: 1fr;
	}

	.yss-form-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.yss-form-actions .wpcf7-submit,
	.yss-read-stories-button {
		width: 100%;
	}
}
