.guestbook-page {
	display: grid;
	gap: 14px;
}

.guestbook-header,
.guestbook-entry {
	border: 1px solid #d9eaf2;
	border-radius: 5px;
	background: #fbfdfe;
	box-shadow: rgba(56, 140, 186, .16) 0 1px 2px;
	box-sizing: border-box;
}

.guestbook-header {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	padding: 13px 14px;
	background: linear-gradient(180deg, #fbfdfe 0%, #f6fbfe 100%);
}

.guestbook-header__icon {
	position: relative;
	width: 44px;
	height: 44px;
	border: 1px solid #c9e5f3;
	border-radius: 5px;
	background: #f4fbff;
}

.guestbook-header__icon:before {
	content: "";
	position: absolute;
	top: 12px;
	left: 10px;
	width: 20px;
	height: 14px;
	border: 2px solid #2e8abc;
	border-radius: 4px;
	background: #fff;
}

.guestbook-header__icon:after {
	content: "";
	position: absolute;
	left: 16px;
	bottom: 10px;
	width: 8px;
	height: 8px;
	border-right: 2px solid #2e8abc;
	border-bottom: 2px solid #2e8abc;
	background: #fff;
	transform: rotate(45deg);
}

#content .guestbook-header h2 {
	margin: 0 0 6px;
	padding: 0;
	border: 0;
	color: #255f7f;
	font-family: Verdana, Arial, sans-serif;
	font-size: 18px;
	line-height: 1.25;
}

.guestbook-header p {
	margin: 0;
}

.guestbook-header__body p {
	color: #44545c;
	font-size: 13px;
	line-height: 1.55;
}

.guestbook-header__action {
	white-space: nowrap;
}

.guestbook-list {
	display: grid;
	gap: 12px;
}

.guestbook-entry {
	position: relative;
	padding: 13px 16px 13px 18px;
	overflow: hidden;
}

.guestbook-entry:nth-child(odd) {
	background: linear-gradient(90deg, #f0f9fe 0%, #fbfdfe 42%, #ffffff 100%);
}

.guestbook-entry:nth-child(even) {
	background: linear-gradient(270deg, #f0f9fe 0%, #fbfdfe 42%, #ffffff 100%);
}

.guestbook-entry:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 4px;
	background: linear-gradient(180deg, #6fb8dc 0%, #b8dff2 100%);
}

.guestbook-entry__header {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	align-items: baseline;
	margin-bottom: 8px;
	line-height: 1.35;
}

#content .guestbook-entry__header h3 {
	margin: 0;
	padding: 0;
	border: 0;
	color: #44545c;
	font-family: Verdana, Arial, sans-serif;
	font-size: 13px;
	line-height: 1.35;
}

.guestbook-entry__header h3 span {
	color: #255f7f;
	font-size: 16px;
}

.guestbook-entry__date {
	color: #7b8a91;
	font-size: 12px;
	font-weight: bold;
}

.guestbook-entry__message {
	position: relative;
	color: #2f3d43;
	font-size: 13.5px;
	line-height: 1.65;
	overflow-wrap: anywhere;
}

.guestbook-entry__message p {
	margin: 0 0 8px;
}

.guestbook-entry__message p:last-child {
	margin-bottom: 0;
}

.guestbook-entry__homepage {
	margin: 11px -2px 0;
	padding: 8px 10px;
	border-top: 1px solid #e4f0f6;
	border-radius: 4px;
	background: rgba(244, 251, 255, .85);
	color: #7b8a91;
	font-size: 12px;
	line-height: 1.45;
}

.guestbook-entry__homepage strong {
	color: #44545c;
}

.guestbook-entry__homepage a {
	color: #255f7f;
	font-weight: bold;
	overflow-wrap: anywhere;
	text-decoration: none;
}

.guestbook-entry__homepage a:hover {
	color: #119ff0 !important;
	text-decoration: none;
}

.guestbook-compose {
	gap: 12px;
}

.guestbook-rules,
.guestbook-form {
	border: 1px solid #d9eaf2;
	border-radius: 5px;
	background: #fbfdfe;
	box-shadow: rgba(56, 140, 186, .16) 0 1px 2px;
	box-sizing: border-box;
}

.guestbook-rules {
	padding: 12px 14px;
	color: #44545c;
	font-size: 13px;
	line-height: 1.55;
}

.guestbook-rules ul {
	margin: 0 0 10px 18px;
	padding: 0;
}

.guestbook-rules li {
	margin: 0 0 4px;
}

.guestbook-rules p {
	margin: 0;
	color: #5e6b72;
	font-weight: bold;
}

.guestbook-form {
	padding: 14px;
}

.guestbook-form__grid {
	display: grid;
	grid-template-columns: 118px minmax(0, 1fr);
	gap: 10px 12px;
	align-items: center;
}

.guestbook-form__grid label,
.guestbook-form__captcha > label {
	color: #44545c;
	font-weight: bold;
}

.guestbook-form__message-label {
	align-self: start;
	padding-top: 8px;
}

.guestbook-form__grid input[type="text"],
.guestbook-form__grid textarea {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	border: 1px solid #b9d8ea;
	border-radius: 4px;
	background: #fbfdfe;
	color: #333;
	font: 12px Verdana, sans-serif;
}

.guestbook-form__grid input[type="text"] {
	height: 34px;
	padding: 8px 9px;
	line-height: 18px;
}

.guestbook-form__grid textarea {
	min-height: 170px;
	padding: 9px;
	line-height: 1.5;
	resize: vertical;
}

.guestbook-form__grid input[type="text"]:focus,
.guestbook-form__grid textarea:focus {
	border-color: #66a9cc;
	background: #fff;
	outline: none;
	box-shadow: 0 0 0 2px rgba(79, 158, 201, .16);
}

.guestbook-form__terms {
	display: flex;
	gap: 8px;
	align-items: center;
	margin: 13px 0 0 130px;
	color: #44545c;
	font-weight: bold;
}

.guestbook-form__captcha {
	display: grid;
	grid-template-columns: 118px minmax(0, 1fr);
	gap: 10px 12px;
	align-items: center;
	margin-top: 12px;
}

.guestbook-form__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 14px 0 0 130px;
}

@media (max-width: 700px) {
	.guestbook-header {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}

	.guestbook-header__action {
		white-space: normal;
	}

	.guestbook-entry__header {
		display: grid;
		gap: 3px;
	}

	.guestbook-form__grid,
	.guestbook-form__captcha {
		grid-template-columns: 1fr;
	}

	.guestbook-form__message-label {
		padding-top: 0;
	}

	.guestbook-form__terms,
	.guestbook-form__actions {
		margin-left: 0;
	}
}
