.rat-widget {
	--rat-green: #8ed557;
	--rat-deep: #307251;
	--rat-card: #ffffff;
	--rat-text: #173324;
	--rat-muted: #66736a;
    background: #f3f3f3;
	box-shadow: 0 14px 36px rgba(48, 114, 81, 0.07);
	color: var(--rat-text);
	font-family: peyda, monospace, sans-serif;
	margin: 24px 0;
	overflow: hidden;
	padding: 18px 25px;
}

.rat-widget * {
	box-sizing: border-box;
}

.rat-widget-header {
	align-items: center;
	display: flex;
	gap: 14px;
	justify-content: space-between;
	margin-bottom: 14px;
}

.rat-widget-header h3 {
	color: inherit;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.45;
	margin: 0;
}

.rat-widget-header p {
	color: var(--rat-muted);
	font-size: 13px;
	line-height: 1.8;
	margin: 5px 0 0;
	font-weight: 600;
}

.rat-view-all,
.rat-card-action,
.rat-custom-banner em {
	background: #367755;
	border-radius: 8px;
	color: #fff;
	display: inline-flex;
	font-size: 14px;
	font-style: normal;
	font-weight: 800;
	line-height: 1.4;
	padding: 16px 21px;
	text-decoration: none;
	white-space: nowrap;
}

.rat-view-all:hover,
.rat-product-card:hover,
.rat-custom-banner:hover,
.rat-custom-link:hover {
	text-decoration: none;
}

.rat-slider-wrap {
	align-items: center;
	gap: 8px;
	grid-template-columns: 34px minmax(0, 1fr) 34px;
}

.rat-slider {
	display: grid;
	gap: 16px;
	grid-auto-columns: minmax(min(100%, 320px), 380px);
	grid-auto-flow: column;
	overflow: hidden;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
}

.rat-product-card {
	background-color: #ffffff;
	border-radius: 12px;
	box-shadow: 0 4px 6px rgb(144 144 144 / 10%);
	color: #333;
	display: flex;
	flex-direction: column;
	font-family: inherit;
	overflow: hidden;
	padding: 16px;
	scroll-snap-align: start;
	text-decoration: none;
	transition: opacity 0.2s ease, transform 0.18s ease;
	width: 100%;
}

.rat-product-card:hover {
	opacity: 0.96;
	text-decoration: none;
}

.rat-card-media {
    align-items: center;
    background-color: #f0f0f0;
    border-radius: 14px;
    color: #222222;
	font-weight: 500;
    display: flex;
    font-size: 18px;
    height: 170px;
    justify-content: center;
    line-height: 1;
    overflow: hidden;
    width: 100%;
}

.rat-card-media img {
	height: 100% !important;
	max-height: 100%;
	max-width: 100%;
	object-fit: cover;
	width: 100%;
}

.rat-card-body {
	display: block;
}

.rat-card-title {
    color: #333;
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
    margin: 16px 0 8px;
}

.rat-card-category-row {
	align-items: center;
	color: #757575;
	display: flex;
	font-size: 0.9rem;
	justify-content: space-between;
	margin-bottom: 12px;
}

.rat-card-category {
	align-items: center;
	display: flex;
	gap: 6px;
}

.rat-card-category::before {
	background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23757575" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="7" height="7"></rect><rect x="14" y="3" width="7" height="7"></rect><rect x="14" y="14" width="7" height="7"></rect><rect x="3" y="14" width="7" height="7"></rect></svg>');
	background-repeat: no-repeat;
	background-size: contain;
	content: "";
	display: inline-block;
	height: 18px;
	margin-left: 6px;
	width: 18px;
}

.rat-card-pricing-row {
	align-items: center;
	/* border-bottom: 1px solid #eee; */
	border-top: 1px solid #eee;
	display: flex;
	/* margin-bottom: 16px; */
	padding: 10px 0;
}

.rat-card-meta-info {
	display: grid;
	flex: 2;
	gap: 10px;
	grid-template-columns: repeat(2, 1fr);
	text-align: center;
}

.rat-card-meta-item {
	color: #555;
	display: flex;
	flex-direction: column;
	font-size: 0.85rem;
	gap: 4px;
}

.rat-card-meta-value {
	color: #333;
	font-size: 0.95rem;
	font-weight: 700;
}

.rat-card-meta-label {
	color: #888;
}

.rat-card-separator {
	background-color: #eee;
	height: 60px;
	margin: 0 10px;
	width: 1px;
}

.rat-card-pricing-info {
	display: flex;
	flex: 1.2;
	flex-direction: column;
	padding-left: 10px;
	align-items: flex-end;
	gap: 4px;
}

.rat-card-off-row {
	display: flex;
    justify-content: flex-end;
    width: 100%;
    align-items: center;
    gap: 5px;
}

.rat-card-original-price {
	color: #b2b2b2;
	font-size: 1rem;
	/* margin-top: 4px; */
	text-decoration: line-through;
}

.rat-card-discount {
	display: flex;
	background-color: #88d05c;
	border-radius: 3px;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	padding: 3px 8px 1px 8px;
	align-items: center;
}

.rat-card-price {
	align-items: baseline;
	color: #111;
	display: flex;
	font-size: 1rem;
	font-weight: 700;
	gap: 4px;
}

.rat-card-action {
	align-items: center;
	background-color: #88d05c;
	border: 0;
	border-radius: 8px;
	color: #fff;
	display: flex;
	font-family: inherit;
	font-size: 1rem;
	font-style: normal;
	font-weight: 700;
	justify-content: center;
	line-height: 1.4;
	padding: 12px 0;
	text-align: center;
	text-decoration: none;
	transition: opacity 0.2s ease;
	width: 100%;
}

.rat-card-action:hover {
	opacity: 0.9;
}

.rat-slider-button {
	display: flex;
	justify-content: center;
	align-items: center;
	position: absolute;
	width: 50px;
    height: 50px;
    background: transparent;
    border: 0;
    color: #88d05c;
    border-radius: 5px;
    cursor: pointer;
	top: 50%;
	z-index: 100;
	outline: 0;
}

.rat-slider-button.rat-next{
	left: -14px;
}
.rat-slider-button.rat-prev{
	right: -14px;
}

.rat-template-dark {
	--rat-card: #3c4354;
	--rat-text: #ffffff;
	--rat-muted: #ffffff;
	background: #282d38;
	border-color: #282d38;
	box-shadow: 0 14px 36px rgba(40, 45, 56, 0.18);
}

.rat-template-dark .rat-product-card {
	background-color: #3c4354;
	border-color: #e0e0e0;
	color: #fff;
}

.rat-template-dark .rat-card-title,
.rat-template-dark .rat-card-category-row,
.rat-template-dark .rat-card-meta-item,
.rat-template-dark .rat-card-meta-value,
.rat-template-dark .rat-card-meta-label,
.rat-template-dark .rat-card-price {
	color: #fff;
}

.rat-template-dark .rat-card-pricing-row {
	border-bottom-color: #282d38;
	border-top-color: #282d38;
}

.rat-template-dark .rat-card-separator {
	background-color: #282d38;
}

.rat-template-dark .rat-card-discount,
.rat-template-dark .rat-card-action {
	background-color: #367755;
	color: #fff;
}

.rat-template-dark .rat-card-category::before {
	background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="7" height="7"></rect><rect x="14" y="3" width="7" height="7"></rect><rect x="14" y="14" width="7" height="7"></rect><rect x="3" y="14" width="7" height="7"></rect></svg>');
}

.rat-template-dark .rat-slider-button {
    border-color: #282d38;
    color: #367755;
}

.rat-custom-banner,
.rat-custom-link {
	border: 1px solid #dfe7df;
	border-radius: 8px;
	color: inherit;
	display: flex;
	gap: 16px;
	padding: 16px;
	text-decoration: none;
}

.rat-custom-banner {
	align-items: center;
	justify-content: space-between;
}

.rat-custom-banner img {
	border-radius: 8px;
	height: 96px;
	object-fit: cover;
	width: 144px;
}

.rat-custom-banner-content {
	display: grid;
	gap: 5px;
	margin-left: auto;
}

.rat-custom-banner strong,
.rat-custom-link {
	font-size: 17px;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1.6;
}

.rat-custom-banner small {
	color: inherit;
	font-size: 13px;
	line-height: 1.8;
	opacity: 0.78;
}

.rat-custom-link {
	align-items: center;
	justify-content: center;
	min-height: 54px;
	text-align: center;
}

.rat-ajax-slot {
	align-items: center;
	background: #fff;
	border: 1px dashed #cde6c4;
	border-radius: 8px;
	display: flex;
	justify-content: center;
	margin: 24px 0;
	min-height: 84px;
}

.rat-loader {
	animation: rat-spin 0.8s linear infinite;
	border: 3px solid #dfe7df;
	border-top-color: #307251;
	border-radius: 50%;
	display: inline-block;
	height: 26px;
	width: 26px;
}

.rat-elementor-empty {
	background: #f7fbf5;
	border: 1px solid #e5f2df;
	border-radius: 8px;
	color: #307251;
	padding: 16px;
	text-align: center;
}



@keyframes rat-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 720px) {
	.rat-custom-banner {
		align-items: stretch;
		flex-direction: column;
	}
	.rat-slider-button.rat-next{
	left: -10px;
	}
	.rat-slider-button.rat-prev{
		right: -10px;
	}
	.rat-slider-wrap {
		grid-template-columns: 30px minmax(0, 1fr) 30px;
	}
	.rat-widget-header div p{
		display: none;
	}
	.rat-custom-banner img {
		height: auto;
		width: 100%;
	}
}
