.rc-compare-card-wrapper .d-flex {
  display: flex;
}

.rc-compare-card-wrapper .justify-center {
  justify-content: center;
}
.rc-compare-card-wrapper .align-center {
  align-items: center;
}
.rc-compare-card-wrapper .flex-wrap {
  flex-wrap: wrap;
}

.rc-compare-card-wrapper .flex-dir-col {
  flex-direction: column;
}

.rc-compare-card-wrapper .flex-items-between {
  justify-content: space-between;
}
.flex-dir-row {
  flex-direction: row;
}

.rc-compare-card-wrapper {
  display: flex;
  scroll-snap-type: x mandatory;
  padding: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 40px;
  justify-content: center;
  margin-bottom: 65px;
  margin-top: 80px;
}
.rc-compare-card-wrapper ::-webkit-scrollbar {
  display: none;
}
.backto-compare-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 100px;
	background: #fff;
	box-shadow: 0 4px 20px 2px rgba(0, 0, 0, 0.1);
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0;
	margin: 0;
	z-index: 999;
}
.backtocmpbtnsec button {
	background: #d32f2f;
	color: white;
	padding: 10px;
	border: none;
	border-radius: 24px;
	cursor: pointer;
	transition: 0.3s;
	height: 48px;
	width: 160px;
	text-align: center;
}
.search-wrapper {
	margin-bottom: 24px;
	}

	.rviewd-search-box {
	width: 100%;
	margin: 0px 10px;
	position: relative;
	}

	.rviewd-search-box > .search-input {
	width: 830px;
	height: 48px;
	border: 1px solid #dcdcdc;
	border-radius: 6px;
	font-size: 14px;
	outline: none;
	padding-left: 42px;
	}

	.rviewd-search-box > .search-input::placeholder {
	color: #888;
	}

	.rviewd-search-box > .search-input:focus {
	border-color: #999;
	}

	.rviewd-search-box::before {
	content: ""; /* you can replace with SVG if needed */
	background-image: url("./images/rviewd-search-icon.svg");
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 14px;
	color: #888;
	width: 14px;
	height: 14px;
	}

	/* button css */
	.add-recip {
	display: block;
	width: 230px;
	height: 69px;
	text-align: center;
	text-decoration: none;
	border-radius: 35px;
	background: #ffffff;
	color: #000000;
	font-size: 14px;
	font-weight: 400;
	line-height: 65px;
	border: 2px solid #000000;
	}

	.add-recip:hover {
	background: #ba0018;
	color: white;
	border: none;
	}
	.buy-ingredient-online {
		width: 100%;
		background: #ffffff;
		height: auto;
		display: block;
		margin-bottom: 20px;
		padding: 30px 40px;
	}
	h3.buy-online {
		margin-bottom: 20px;
	}
	.single-recipe .buy-ingredient-sec {
		margin-top: 32px;
		text-align: left;
	}
	/* ✅ Responsive */
	@media (max-width: 767px) {
	.search-wrapper {
		padding: 12px;
	}
	.rviewd-search-box {
		position: relative;
		margin: 0 auto; /* ✅ center align */
		padding: 0 16px; /* ✅ INNER spacing (important fix) */
		box-sizing: border-box;
	}
	.rviewd-search-box > .search-input {
		width: 100%;
		padding: 10px 14px 10px 40px;
		border: 1px solid #ccc;
		border-radius: 6px;
		box-sizing: border-box;
	}
	.rviewd-search-box::before {
		left: 30px;
	}

	/* button related */
	.add-recip {
		width: 221px;
		height: 44px;
	}
	}
.rc-compare-card-wrapper .card {
  background: red;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: #fff;
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  width: 405px;
  position: relative;
}
.close-btn {
  height: 24px;
  width: 24px;
  top: 8px;
  border-radius: 20px;
  right: 8px;
}
.rc-compare-card-wrapper > .card > .close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  height: 32px;
  width: 32px;
  border-radius: 20px;
  background: #bf1a1e;
  border: #bf1a1e;
  cursor: pointer;
}
.card-img-container {
  width: 100%;
  height: 260px;
}
.card-img {
  width: 100%;
  object-fit: cover;
  height: 100%;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
.rc-compare-card-wrapper .card .card-heading {
  padding: 24px 24px 0px 24px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
    flex: 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: auto;
}

.card .card-heading a {
  font-size: 20px;
  font-weight: 700;
  line-height: 21px;
  color: #000000;
  cursor: pointer;
  text-decoration: none;
  font-family: proxima-nova-regular;

  /* display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 230px; */
}
.card .card-heading a:hover {
  color: #bf1a1e;
}
.rc-compare-card-wrapper .card .card-content {
  padding: 0px 24px;
  height: 100%;
  text-align: center;
  flex: 1;
}
.rc-compare-card-wrapper .card .card-content .ingredients,
.info .serves,
.info .calories,
.info .total-time,
.viewfullrecipe,
.card .card-content .cream-of-soup {
  margin-top: 32px;
}
.total-time {
	min-height: 60px;
}
.viewfullrecipe {
  display: flex;
  justify-content: center;
  align-items: center;
}
.viewfullrecipe a, .viewfullrecipe button {
  background: #bf1a1e;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: 0.3s;
  height: 48px;
  width: 270px;
  text-align: center;
  font-size: 14px;
  font-weight: normal;
  text-decoration: none;
}
.viewfullrecipe a:hover {
	color: white;
 }
.ingredients p:first-child,
.cream-of-soup p:first-child,
.info-head {
  font-size: 16px;
  font-weight: 500;
  font-family: "proxima-nova-bold";
}
.compare-card-wrapper .card .card-content .cream-of-soup .cream-soup-imgsec {
  margin-top: 8px;
  gap: 16px;
}
.cream-card {
  text-align: center;
  margin-top: 8px;
}
.cream-of-soup .cream-container-sec .cream-card .cream-card-img {
  width: 56px;
  display: inline-block;
}
.cream-container-sec .title {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* ✅ 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
  line-height: 1.3;
  margin-top: 4px;
  color: #2162a1;
  text-decoration: none;
  font-weight: 400;
  /* ✅ full width */
  min-width: 0; /* ✅ important for flex */
}
.rc-compare-card-wrapper .card .card-content .rating {
  color: orange;
  margin-top: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.rc-compare-card-wrapper .card .card-content .rating .rating-count,
.mt > span {
  font-size: 16px;
  font-weight: 400;
}
.rc-compare-card-wrapper .card .card-content .rating .rating-count {
  color: #000000;
  margin-left: 12px;
}

.rc-compare-card-wrapper
  .card
  .card-content
  .ingredients
  p:nth-child(2)
  span:first-child {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 230px;
}
.anchor-more-text {
  margin-left: 5px;
}
.rc-compare-card-wrapper .card .card-content .cream-of-soup .cream-soup-imgsec {
  margin-top: 8px;
  gap: 16px;
}
.rc-compare-card-wrapper .card-content .rating a,
.rc-compare-card-wrapper .card-content .ingredients a,
.cream-container-sec > span > a {
  color: #2162a1;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  margin-left: 4px;
}
.info-count {
  color: #b3001b;
  font-size: 24px;
  font-weight: 700;
  line-height: 20px;
}

.info-content {
  font-size: 14px;
  font-weight: 400;
  color: #757575;
}
.buy-ingredient-sec {
  margin-top: 32px;
  text-align: center;
}
.buy-ingredient-sec p {
  font-size: 16px;
  margin-bottom: 5px;
  font-weight: 500;
}

.wallmart img,
.target img,
.amazon-fresh img,
.rc-compare-card-wrapper .icons img {
  width: 100%;
  object-fit: cover;
  height: auto;
}
.rc-compare-card-wrapper .wallmart .icon-btns div:nth-child(2),
.rc-compare-card-wrapper .target .icon-btns div:nth-child(2),
.rc-compare-card-wrapper .amazon-fresh .icon-btns div:nth-child(2),
.rc-compare-card-wrapper .view-all .icon-btns div:nth-child(2) {
  font-size: 12px;
  font-weight: 700;
  line-height: 14px;
  color: rgb(1, 64, 78);
  color: var(--sc-widget-button-text-color, #01404e);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  width: 100%;
  text-wrap: wrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  font-family: proxima-nova-regular;
}

.rc-compare-card-wrapper .icon-btns div:first-child {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  position: relative;
}
.rc-compare-card-wrapper .icons {
  gap: 16px;
  font-size: 20px;
  margin-top: 17px;
  margin-bottom: 24px;
}
.rc-compare-card-wrapper .icon-btns {
  background: none;
  border: 0px;
}
.rc-compare-card-wrapper .icon-btns {
  width: 48px;
  cursor: pointer;
  border-width: medium;
  border-style: none;
  border-color: currentcolor;
  border-image: initial;
  background: none;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 4px;
}

.compare-card-wrapper .icon-btns div:first-child {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  position: relative;
}

.view-all-btn-sec {
  background-color: #bf1a1e;
}
.ratingstar-image-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.d-none,
.buyingradients-mob {
  display: none;
}
.ratingstar-image-container div {
  gap: 8px;
}
.mt {
  margin-top: 8px;
}
.buyingradients-mob {
	display: none;
}
.footer-sec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 12px !important;
}
.compare-sec-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

#compare1 {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid var(--Grey-200, #ccc);
  background: var(--Grey-0, #fff);
}

.compare-sec-left label {
  font-weight: 400;
  font-weight: 400;
  font-size: 14px;
}
#compare1:focus {
  outline: none;
}
.compare-sec-right {
  display: flex;
  align-items: center;
}
.compare-sec-right a {
  font-size: 14px;
  font-weight: 400;
  color: #bf1a1e;
	text-decoration: none;
	display: flex;
	align-items: center;
	margin-left: 8px;
}

.recipe-arrow-btn {
  width: 16px;
  height: 15px;
  display: flex;
	align-items: center;
	margin-left: 8px;
}
.recipe-arrow-btn img {
  width: 100%;
  object-fit: cover;
}

.checkbox-container {
  display: inline-block;
  position: relative;
  cursor: pointer;
  width: 20px;
  height: 20px;
}

/* Hide default checkbox */
.checkbox-container input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Custom box */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background-color: #fff;
  border: 1px solid #cccccc;
}

/* ✅ Checked state */
.checkbox-container input:checked + .checkmark {
  background: #ba0018;
}

/* Tick mark */
.checkmark::after {
  content: "";
  position: absolute;
  display: none;
}

/* Show tick when checked */
.checkbox-container input:checked + .checkmark::after {
  display: block;
}

/* Tick style */
.checkbox-container .checkmark::after {
  left: 7px;
  top: 3px;
  width: 4px;
  height: 9px;
  border: 2px solid #fff;
  border-width: 0px 2px 2px 0px;
  transform: rotate(45deg);
}

.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100px;
  background: #fff;
  box-shadow: 0 4px 20px 2px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  margin: 0;
  z-index: 999;
}

.compare-left {
  position: relative;
  left: 30%;
  display: flex;
  transform: translateX(8%);
  align-items: center;
  gap: 16px;
}

/* LEFT IMAGES */
.selected-images {
  display: flex;
  align-items: center;
  gap: 10px;
}

.selected-images .slot-sec {
  height: 38px;
  width: 38px;
  border-radius: 3px;
  border: 1px dashed rgb(0 0 0 / 54%);
}

.selected-images img,
.image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* dotted placeholder */
.image-placeholder {
  border: 2px dashed #ccc;
}

/* TEXT */
.selection-text {
  font-size: 16px;
  color: #333;
  font-weight: 400;
}

/* RIGHT SECTION */
.compare-actions {
  position: relative;
  display: flex;
  right: 15%;
  gap: 40px;
  transform: translateX(10%);
  align-items: center;
}

.selected-images {
  display: flex;
  gap: 10px;
}
/* CLEAR BUTTON */
.clear-btn {
  background: none;
  border: none;
  color: #bf1a1e;
  font-size: 14px;
  cursor: pointer;
  font-weight: 400;
  white-space: nowrap;
}

/* COMPARE BUTTON */
.compare-btn {
  background: #bf1a1e;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  height: 48px;
  width: 140px;
  font-weight: 400;
}

/* HOVER */
.compare-btn:hover {
  background: #b71c1c;
}
.selected-images img[src=""] {
    display: none;
}
.slot-sec.remover-border{
		box-shadow: 0px 1px 2px 0px #0000004D;
		border-radius: 5px;
		border: none;
	}
  .custom-button-wrapper {
	position: relative;
    left: 0;
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
@media (max-width: 48em) {
  /* .selected-images > div:last-child {
    display: none;
  } */
  .select-text {
    white-space: nowrap;
  }
.selected-images {
    gap: 0;
}
.viewfullrecipe a, .viewfullrecipe button {
    width: 100%;
	padding: 9px 30px;
    white-space: nowrap;
}
.selected-images div:nth-child(2), .selected-images div:nth-child(3) {
        margin-left: -16px;
    }
	.selected-images .remove-border {
		border: none !important;
	}
	.selected-images img{
		box-shadow: 0px 1px 2px 0px #0000004D;
		border-radius: 5px;
	}
  .compare-bar {
    padding: 16px 20px;
  }
  .compare-left {
    left: 0px;
    transform: none;
  }
  .compare-actions {
    right: -6px;
        transform: none;
        gap: 10px;
  }
  .selection-text .select-text {
    display: none;
  }
  .selection-text strong {
	white-space: nowrap;
  }
  .selected-images > div {
    height: 32px;
    width: 32px;
  }

  .compare-btn {
    width: 134px;
    height: 40px;
  }
  /* .clear-all {
    display: none;
  } */
}
@media (max-width: 768px) {
  .card-img {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }
  .rc-compare-card-wrapper {
    gap: 16px;
    justify-content: flex-start;
    margin-bottom: 0px;
    margin-top: 0px;
    overflow-x: auto;
  }
  .cream-card {
    margin-top: 4px;
  }
  .ingredients p:first-child,
  .cream-of-soup p:first-child,
  .serves p:first-child,
  .calories p:first-child,
  .total-time p:first-child,
  .compare-card-wrapper .card-content .rating a,
  .compare-card-wrapper .card-content .ingredients a,
  .cream-card a {
    font-size: 14px;
    font-weight: 500;
  }
  .rc-compare-card-wrapper .card {
    flex: 0 0 45%;
  }
  
  .compare-card-wrapper > .card > .close-btn {
    height: 24px;
    width: 24px;
    top: 8px;
    border-radius: 20px;
    right: 8px;
  }
  .card-img-container,
  .close-btn img {
    width: 100%;
    height: auto;
  }
  .rc-compare-card-wrapper > .card > .close-btn {
    height: 24px;
    width: 24px;
    top: 8px;
    border-radius: 20px;
    right: 8px;
  }
  .rc-compare-card-wrapper .card .card-heading {
    padding: 16px 16px 9px 16px;
    /* flex: initial; */
    align-items: baseline;
	height: 57px;
  }  
  .rc-compare-card-wrapper .card .card-heading a {
    font-size: 14px;
    font-weight: 700;
    height: 28px;
    line-height: 14px;
    cursor: pointer;
    color: #000000;
    text-overflow: inherit;
  }
  .rc-compare-card-wrapper .card .card-content {
    padding: 0px 16px 16px 16px;
  }
  .rc-compare-card-wrapper .card .card-content .rating {
    margin-top: 24px;
  }

  .rc-compare-card-wrapper .card .card-content .rating .rating-count,
  .ingredients > p {
    font-size: 12px;
    display: flex;
    justify-content: center;
    gap: 4px;
    font-weight: 400;
  }
  .ingredients p:first-child,
  .cream-of-soup p:first-child,
  .info-head,
  .rc-compare-card-wrapper .card-content .rating a,
  .rc-compare-card-wrapper .card-content .ingredients a,
  .cream-card a {
    font-size: 14px;
    font-weight: 500;
  }
  .rc-compare-card-wrapper .card-content .rating a,
  .rc-compare-card-wrapper .card-content .ingredients a {
    font-size: 12px;
    font-weight: 400;
  }
  .rc-compare-card-wrapper .card .card-content .ingredients,
  .info .serves,
  .info .calories,
  .info .total-time,
  .viewfullrecipe,
  .card .card-content .cream-of-soup {
    margin-top: 24px;
  }
	.buyingradients-mob > div{
		justify-content:space-evenly;
	}

	.buyingradients-mob{
		margin-top:16px;
	}
  .cream-of-soup .cream-container-sec .cream-card .cream-card-img {
    width: 40px;
  }
  .cream-container-sec .title {
    font-size: 12px;
    font-weight: normal;
  }
  .viewfullrecipe button {
    font-size: 12px;
    padding: 0px 16px;
    text-align: center;
    height: 32px;
    width: 100%;
  }
  .buy-ingredient-sec p {
    font-size: 12px;
    white-space: nowrap;
    font-weight: 600px;
  }
  .buy-ingredient-sec {
    margin-top: 24px;
  }
  .compare-card-wrapper .icons {
    font-size: 8px;
    gap: 8px;
  }
  .icons div:nth-child(3) {
    display: none;
  }
  .icons {
    justify-content: space-between !important;
  }
  .rc-compare-card-wrapper .wallmart .icon-btns div:nth-child(2),
  .rc-compare-card-wrapper .target .icon-btns div:nth-child(2),
  .rc-compare-card-wrapper .amazon-fresh .icon-btns div:nth-child(2),
  .rc-compare-card-wrapper .view-all .icon-btns div:nth-child(2) {
    text-overflow: inherit;
    font-size: 10px;
    line-height: 1;
    margin-top: 4px;
    overflow: inherit;
  }
  .rc-compare-card-wrapper .icon-btns div:first-child {
    height: 32px;
    width: 32px;
  }
  .buy-ingredient-sec {
    display: none;
  }
  .buyingradients-mob {
    display: block;
  }
  .buyingradients-mob div a {
    font-size: 12px;
    font-weight: 400;
    color: #bf1a1e;
    text-decoration: none;
    cursor: pointer;
  }
  .mt > span {
    font-size: 12px;
    font-weight: 400;
  }
  .mt {
    margin-top: 4px;
    flex-direction: column;
    font-size: 16px;
    font-weight: normal;
  }
  .ratingstar-image-container div {
    gap: 4px;
  }
  .rating-count {
    margin-top: 8px;
  }
  .info-count {
    font-size: 20px;
  }
  .info-content {
    font-size: 12px;
  }
}
@media screen and (min-width: 1025px) and (max-width: 1980px) {
  .csc-cards__item {
    margin-bottom: 10px;
  }
  .item-list-container > * {
    display: flex;
    flex-wrap: wrap;
  }
}
.rc-compare-card-wrapper .card .card-content {    
  justify-content: end;
}