.book-cont-data {
  display: flex;
  gap: 20px;
  border-bottom: 2px solid #dee3ef;
  margin-bottom: 20px;
  padding-bottom: 15px;
}
.mobile-only-rating{
  display:none;
}
.rating-star-label {
  display: flex;
  gap: 4px;
  width: 50px;
  justify-content: flex-end;
  font-size: 0.9rem;
}
.bookcard{
  width:100%;
}
.wishlist-icon {
  width: 20px;
  height: 18px;
  cursor: pointer;
  display: inline-block; 
}
 .desktop-only-rating{
  display:block;
  height: 29px;
  background-color: #fff;
  border: 1px solid #dee3ef;
  padding:2px;
}
.rating-popup-container {
  background: white;
  padding: 20px;
  border-radius: 12px;
  max-width: 472px;
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* Popup Content */
.rating-popup-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* Left Section */
.rating-summary {
  text-align: center;
  flex: 1;
}

.rating-value {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.rating-text {
  color: #888;
  margin-bottom: 8px;
}

.rating-stars {
  color: #fabe2c;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.rating-count {
  color: #888;
}

/* Divider */
.divider {
  width: 2px;
  background: #dee3ef;
  height: 176px;
}

/* Right Section */
.rating-bars {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rating-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating-star-label {
  display: flex;
  gap: 4px;
  width: 50px;
  justify-content: flex-end;
  font-size: 0.9rem;
}
.progress-bar-container {
  background: #e0e0e0;
  border-radius: 4px;
  height: 8px;
  flex: 1;
  position: relative;
}

.progress-bar {
  background: #fabe2c;
  height: 100%;
  border-radius: 4px;
}

.rating-percentage {
  width: 40px;
  text-align: right;
  font-size: 0.9rem;
  color: #666;
}
.label-mrp {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cardlabel-text {
  display: flex;
  font-family: Quicksand;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  color: #e3a304;
  gap: 5px;
}
.mrp{
    font-family: Quicksand;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
    color: #222222B2;
    opacity: 70%;
}
.price-section {
  text-align: left;
  font-weight: 700;
  display: flex;
  gap: 10px;
  margin-top: 3px;
  align-items: center;
}
.price {
  color: #333;
  font-weight: 600;
}
.price {
  font-family: "Quicksand", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  text-align: left;
}
.discount-section {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #52ae321a;
  border-radius: 149px;
  padding: 0px 10px;
  height: 19px;
}
.discount {
  color: #E3A304;
  font-size: 12px;
  font-weight: 500;
  font-style: semi-bold;
}
.company-discount {
  color: #52ae32;
  font-size: 12px;
  font-weight: 500;
  font-style: semi-bold;
}
.cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(0, 170, 211);
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
}
.cart-btn-container {
  position: absolute;
  bottom: 20px;
  /* Adjust as needed */
  right: 20px;
  /* Adjust as needed */
}
.book-child-cont {
    width: 100%;
    max-width: 570px;
    min-width: 570px;
}
.rating-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal {
  display: block;
  position: fixed; /* Change from absolute to fixed */
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: hidden; /* Prevent modal scroll */
}

/* Update modal content positioning */
.modal-content {
  background-color: #fff;
  padding: 20px;
  border: 1px solid #ccc;
  width: 60%;
  max-width: 731px;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: fixed; /* Change from relative to fixed */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-height: 90vh; /* Limit height */
  overflow-y: auto; /* Allow content scroll if needed */
}

/* Add styles for when modal is open */
.modal-open {
  overflow: hidden !important;
}

.actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 21px;
}

.body.modal-open {
  overflow: auto;
}

/* The Close Button */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #999;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #333;
}

/* Options Section */
.buy-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: "Quicksand", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  text-align: left;
  margin-bottom: 53px;
  padding: 0 15px;
}

.buy-optiontitle {
  font-size: 1.75rem;
  line-height: 2.25rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 18px;
}

.option {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  padding: 1px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 10px;
}

.option-checkbox {
  display: none;
}

.option input {
  width: 20px;
  height: 20px;
  border: 2px solid #b0b0b0;
  border-radius: 4px;
  margin-right: 12px;
}

.checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 4px;
  margin-right: 12px;
  position: relative;
}
.option-details {
  display: none;
  margin-top: 10px;
  padding: 10px;
  background: linear-gradient(300deg, #e1f1f4 -20.34%, #fbfdfe 109.26%);
  border-top: 1px solid #dee3ef;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  border-radius: 0 0 12px 12px;
}

.option-checkbox:checked ~ .option-details {
  display: block;
}
.option-checkbox:checked + .checkbox {
  /* background-color: #00aad3; */
   border-color: gray !important
}
[type='checkbox']:focus, [type='radio']:focus {
  outline: none !important; 
  box-shadow: none !important;
}


.option-checkbox:checked + .checkbox::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  top: 2px;
  left: 5px;
  transform: rotate(45deg);
}

[type='checkbox']:checked, [type='radio']:checked {
  border-color: gray !important;
  background-color: transparent !important;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='gray' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e") !important;

}

[type='checkbox'] {
  border-radius: 3px !important;
}

.label-text {
  display:flex;
  gap:2px;
  font-size: 16px;
  font-weight: 700;
  flex-grow: 1;
  color: #333;
}

/* Style to cover the entire screen */
.overlay {
  position: fixed;
  /* Sticks to the viewport */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

/* Optional: Centered content within the overlay */
.overlay-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.5rem;
  text-align: center;
}
.loader {
  width: 48px;
  height: 48px;
  border: 5px solid #fff;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}
.icon-text {
  display: flex;
  gap: 5px;
}
@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
@media (max-width: 768px) {
  .desktop {
      display: none; /* Hide the element in mobile view */
  }
  .mobile-only-rating{
    display:block;
    height: 29px;
    background-color: #fff;
    border: 1px solid #dee3ef;
    padding:2px;
  }
  .desktop-only-rating{
    display:none;
  }
  .mobilefilters{
    margin-left: 0px;
  }
    .cardlabel-text {
    margin-top: 5px;
    color: #e3a304;
    text-align: center;
    font-family: Quicksand;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: 16px;
    display: flex;
    margin-bottom: 5px;
  }
  .price-section {
    display: flex;
    text-align: left;
    margin-top: 5px;
  }
  .book-child-cont {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
}
}


@media (min-width: 769px) {
  .desktop {
      display: flex; /* Show the element in desktop view */
  }
}

@media screen and (max-width: 768px) {
  .modal-content {
    width: 90%;
    padding: 15px;
  }

  .buy-options {
    gap: 10px;
    font-size: 14px;
  }

  .buy-optiontitle {
    font-size: 1.5rem;
  }

  .option-label {
    flex-wrap: wrap;
  }

  .cardlabel-text {
    margin-top: 5px;
    color: #e3a304;
    text-align: center;
    font-family: Quicksand;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: 16px;
    display: flex
;
    margin-bottom: 5px;
  }

  .price-section {
    display: flex;
    text-align: left;
    margin-top: 5px;
  }

  .option-details {
    font-size: 12px;
  }

  .discount {
    display: block;
  }

  .resources {
    gap: 5px !important;
    justify-content: space-between;
  }

  .resource-item {
    width: 48%;
  }

  .resource-item img {
    width: 20px;
    height: 20px;
  }
  .desktop{
    display:none;
  }
}

@media (max-width: 768px) {
  .price-section {
    margin-top: 0px;
    gap: 5px;
  }
  .price {
      font-size: 12px;
  }
  .cart-btn{
    font-size: 12px;
    padding: 6px 25px;
  }
  .cardlabel-text{
    font-size: 8px;
  }
  .mrp {
    font-size: 8px;
  }
  .discount {
    font-size: 8px;
  }
  .company-discount {
    font-size: 8px;
  }
}