/* информационные боксы */

.gp-notice-box {
	position: relative;
	padding: 1.5rem;
	padding-left: 4rem;
	font-size: 0.96rem;
	border-radius: calc(var(--bradius) / 2);
}

@media (max-width: 430px) {
	.gp-notice-box {
		padding: 1.1rem;
		padding-top: 4rem;
	}
}

.gp-notice-box::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 2rem;
	height: 2rem;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
	transform: translate(1rem, 1.65rem);
}

@media (max-width: 430px) {
	.gp-notice-box::before {
		transform: translate(1.1rem, 1rem);
	}
}

.gp-notice-box.green {
	background-color: rgb(185 244 201 / 37%);
 	border: 1px solid rgb(169, 224, 184);
}

.gp-notice-box.green::before {
	background-image: url("../img/sprite.svg#box-check");
}

.gp-notice-box.blue {
	background-color: rgba(104, 181, 240, 0.2);
	border: 1px solid rgba(104, 181, 240, 0.6);
}

.gp-notice-box.blue::before {
	background-image: url("../img/sprite.svg#box-info");
}

.gp-notice-box.yellow {
	background-color: rgb(255 226 20 / 14%);
	border: 1px solid rgb(255 226 20);
}

.gp-notice-box.yellow::before {
	background-image: url("../img/sprite.svg#box-warning");
}

.gp-notice-box.red {
	background-color: rgba(243, 176, 205, 0.35);
	border: 1px solid rgba(243, 176, 205, 0.75);
}

.gp-notice-box.red::before {
	background-image: url("../img/sprite.svg#box-cancel");
}


html[data-theme="dark"] .gp-notice-box {
	color: #c8c8d3;
}

.widget:has(.gp-notice-box) {
	padding: 0 !important;
	border: 0 !important;
}

.widget .gp-notice-box::before {
	display: none;
}

.widget .gp-notice-box {
	padding: 1.2rem;
}

.gp-notice-box > p:empty {
	display: none;
}

.post-content .gp-notice-box p:not(:first-child) {
	margin-block-start: 0;
}

.post-content .gp-notice-box a {
	color: var(--mainColor);
}


/* спойлер */

.spoiler-box > * + * {
  margin-block-start: 1.4rem;
}

.gp-accordion-item {
	border: 1px solid var(--borderColor);
	border-radius: calc(var(--bradius) / 2);
}

.gp-accordion-title {
	position: relative;
	display: block;
	padding: 0.75rem 5rem 0.75rem 1.5rem;
	position: relative;
	font-weight: var(--semiBold);
	background-color: rgba(242,242,251,.4);
	cursor: pointer;
	transition: background-color .3s ease-in-out
}

html[data-theme="dark"] .gp-accordion-title {
	background-color: var(--greyBg);
}

.gp-accordion-title:hover {
	background-color: rgba(242,242,251,.8);
	transition: background-color .3s ease-in-out
}

.gp-accordion-title:before {
	content: "";
	position: absolute;
	right: 1.5rem;
	top: 50%;
	width: 1rem;
	height: 1rem;
	background-image: url("../img/sprite.svg#close");
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	transform: translateY(-50%) rotate(45deg);
	transition: transform .3s ease-in-out
}

html[data-theme="dark"] .gp-accordion-title:before  {
	background-image: url("../img/sprite.svg#close-light");
}

.gp-accordion-title.is-shown:before {
	transform: translateY(-50%)  rotate(0);
	transition: transform .3s ease-in-out
}

.gp-accordion-content {
	display: none;
	padding: 1.3rem 1.5rem;
	border-top: 1px solid var(--borderColor)
}

.gp-accordion-content.is-shown {
	display: block
}

