.srp-carousel-widget,
.srp-carousel-widget * {
	box-sizing: border-box;
}

.srp-carousel-widget {
	--srp-accent: #174d37;
	--srp-gap: 24px;
	--srp-slides: 3;
	direction: rtl;
	color: #17221d;
	font-family: inherit;
}

.srp-carousel-widget__head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 26px;
}

.srp-carousel-widget__heading {
	margin: 0;
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.2;
	color: #17221d;
}

.srp-carousel-widget__subheading {
	max-width: 700px;
	margin: 10px 0 0;
	color: #78817c;
	font-size: 16px;
	line-height: 1.8;
}

.srp-carousel-widget__archive {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	padding: 12px 18px;
	border-radius: 12px;
	background: var(--srp-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
}

.srp-carousel-widget__archive:hover,
.srp-carousel-widget__archive:focus,
.srp-carousel-widget__archive:visited {
	color: #fff;
}

.srp-carousel-widget__archive svg {
	width: 18px;
	height: 18px;
}

.srp-carousel-widget__tools {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 24px;
}

.srp-carousel-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.srp-carousel-filters button {
	min-height: 40px;
	padding: 8px 15px;
	border: 1px solid #e2e7e4;
	border-radius: 999px;
	background: #fff;
	color: #65716b;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.srp-carousel-filters button:hover,
.srp-carousel-filters button.is-active {
	border-color: var(--srp-accent);
	background: var(--srp-accent);
	color: #fff;
}

.srp-carousel-search {
	position: relative;
	width: min(360px, 100%);
	flex: 0 0 min(360px, 100%);
}

.srp-carousel-search input {
	width: 100%;
	height: 48px;
	padding: 0 16px 0 52px;
	border: 1px solid #e0e5e2;
	border-radius: 14px;
	outline: 0;
	background: #fff;
	color: #17221d;
	font: inherit;
	font-size: 14px;
}

.srp-carousel-search input:focus {
	border-color: var(--srp-accent);
	box-shadow: 0 0 0 3px rgba(23,77,55,.09);
}

.srp-carousel-search button {
	position: absolute;
	top: 5px;
	left: 5px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: var(--srp-accent);
	color: #fff;
	cursor: pointer;
}

.srp-carousel-search button svg {
	width: 18px;
	height: 18px;
}

.srp-carousel-shell {
	position: relative;
}

.srp-carousel {
	overflow: hidden;
	width: 100%;
	outline: none;
}

.srp-carousel__track {
	display: flex;
	gap: var(--srp-gap);
	transition: transform .52s cubic-bezier(.22,.68,.2,1);
	will-change: transform;
}

.srp-carousel__slide {
	flex: 0 0 calc((100% - (var(--srp-gap) * (var(--srp-slides) - 1))) / var(--srp-slides));
	min-width: 0;
}

.srp-carousel__slide[hidden] {
	display: none !important;
}

.srp-carousel-arrow {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid #e1e6e3;
	border-radius: 50%;
	background: #fff;
	color: var(--srp-accent);
	box-shadow: 0 10px 28px rgba(26,53,40,.13);
	transform: translateY(-50%);
	cursor: pointer;
	transition: transform .2s ease, background .2s ease, color .2s ease;
}

.srp-carousel-arrow:hover {
	background: var(--srp-accent);
	color: #fff;
	transform: translateY(-50%) scale(1.05);
}

.srp-carousel-arrow:disabled {
	opacity: .35;
	cursor: default;
}

.srp-carousel-arrow svg {
	width: 21px;
	height: 21px;
}

.srp-carousel-arrow--prev { right: -23px; }
.srp-carousel-arrow--next { left: -23px; }

.srp-carousel-empty,
.srp-carousel-empty-state {
	margin: 30px 0 0;
	padding: 28px;
	border: 1px dashed #d7dfda;
	border-radius: 18px;
	background: #f7f9f8;
	color: #758079;
	text-align: center;
}

.srp-carousel-empty-state__icon {
	display: grid;
	place-items: center;
	width: 70px;
	height: 70px;
	margin: 0 auto 16px;
	border-radius: 20px;
	background: #e9f0ec;
	color: var(--srp-accent);
	font-weight: 900;
}

.srp-carousel-empty-state h3 {
	margin: 0;
	color: #17221d;
}

@media (max-width: 1024px) {
	.srp-carousel-widget { --srp-slides: 2; }
	.srp-carousel-widget__tools { align-items: stretch; flex-direction: column; }
	.srp-carousel-search { width: 100%; flex-basis: auto; }
	.srp-carousel-arrow--prev { right: -12px; }
	.srp-carousel-arrow--next { left: -12px; }
}

@media (max-width: 767px) {
	.srp-carousel-widget { --srp-slides: 1; }
	.srp-carousel-widget__head { align-items: flex-start; flex-direction: column; }
	.srp-carousel-widget__archive { width: 100%; justify-content: center; }
	.srp-carousel-arrow { width: 42px; height: 42px; }
	.srp-carousel-arrow--prev { right: 8px; }
	.srp-carousel-arrow--next { left: 8px; }
	.srp-carousel-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
	.srp-carousel-filters button { flex: 0 0 auto; }
}
