.ldppp_avgratings_totalratings_wrapper {
    display: inline-flex;
}
div#ldppp_totalratings, .ldppp_totalratings {
    padding-left: 5px;
}
.single-product .ldppp_rate {
    padding-top: 5px;
}
.single-product .ldppp_avgratings_totalratings_wrapper {
    padding-left: 5px;
}
.post-type-archive ul li a .ldppp_rate {
    padding-top: 5px;
    padding-right: 5px;
}
span#ldppp_likesErrorMsg {
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 30px;
    width: 150px;
    display: block;
    text-align: center;
    background: rgba(0, 170, 235, 0.98);
    color: #000;
    visibility: hidden;
    margin-bottom: 20px;
}
span#ldppp_errorMsg {
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 30px;
    width: 250px;
    display: block;
    text-align: center;
    background: rgba(0, 170, 235, 0.98);
    color: #000;
    visibility: hidden;
    margin-bottom: 20px;
}
.ldppp_like-dislike a {
    margin-right: 15px;
	font-size: 24px;
	color: black;
	outline: none;
	text-decoration: none;
	box-shadow: none !important;
	-webkit-box-shadow: none !important;
}

.ldppp_rate {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}
.ldppp_comment_like {
    padding-right: 10px;
}
.ldppp_comment_like,
.ldppp_comment_dislike,
.ldppp_comment_like span,
.ldppp_comment_dislike span {
    text-decoration: none !important;
    border: none !important;
}

.ldppp_comment_like i,
.ldppp_comment_dislike i {
    text-decoration: none !important;
}

.ldppp_rate:not(:checked) > input {
    display: none;
}
.ldppp_rate:not(:checked) > label {
    width:1em;
    overflow:hidden;
    white-space:nowrap;
    cursor:pointer;
    font-size:25px;
    color:#ccc;
    display: flex;
}
.ldppp_rate:not(:checked) > label:before {
    content: '★ ';
}
.ldppp_rate:not(:checked) > label span {
    display: none;
}
.ldppp_rate > input:checked ~ label {
    color: #ffc700;    
}
.ldppp_rate:not(:checked) > label:hover,
.ldppp_rate:not(:checked) > label:hover ~ label {
    color: #deb217;  
}
.ldppp_rate > input:checked + label:hover,
.ldppp_rate > input:checked + label:hover ~ label,
.ldppp_rate > input:checked ~ label:hover,
.ldppp_rate > input:checked ~ label:hover ~ label,
.ldppp_rate > label:hover ~ input:checked ~ label {
    color: #c59b08;
}
.ldppp_rate label.ldppp_rated_class {
    color: #deb217;
}
.ldppp_rate:not(:checked) > label.ldppp_rated_class, .ldppp_rate:not(:checked) > label.ldppp_rated_class ~ label {
    color: #deb217;
}

.ldppp_totalratings {
    display: inline-flex;
}
.ldppp_rate {
    display: inline-flex;
}
.ldppp_post_align_center {
    display: grid;
}

.ldppp_totalratings, .ldppp_avgrating, .ldppp_avgratings
{
    font-size: 18px;
}
.ldppp_post_align_center
{
    padding: 5px 0px 5px 0px;
}
.ldppp-share-wrap {
    display: grid;
}

.ldppp_like-dislike {
  font-family: Arial, sans-serif;
}

/*ldppp_ratio_bar*/

.ldppp_ratio_bar {
  position: relative;
  width: 50%;
  height: 10px;
  background: #ddd;
  margin-top: 8px;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}

.ldppp_ratio_like {
  height: 100%;
  background: #4caf50;
  float: left;
  transition: width 0.4s ease;
}

.ldppp_ratio_dislike {
  height: 100%;
  background: #f44336;
  float: left;
  transition: width 0.4s ease;
}

/* Tooltip styling */
.ldppp_ratio_tooltip {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s ease;
}

.ldppp_ratio_bar:hover .ldppp_ratio_tooltip {
  opacity: 1;
  visibility: visible;
  bottom: 130%;
}


/*like dislike comments ratio*/

.ldppp_comment_like-dislike {
  margin-top: 10px;
  font-family: Arial, sans-serif;
}

.ldppp_comment_ratio_bar {
  position: relative;
  width: 40%;
  height: 16px;
  background: #ddd;
  margin-top: 6px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.ldppp_comment_ratio_like {
  height: 100%;
  background: #4caf50;
  float: left;
  transition: width 0.4s ease;
}

.ldppp_comment_ratio_dislike {
  height: 100%;
  background: #f44336;
  float: left;
  transition: width 0.4s ease;
}

/* Centered ratio text inside the bar */
.ldppp_comment_ratio_text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

/*Ratio bar for ratings*/
.ldppp_ratings_ratio_wrapper {
  margin-top: 8px;
  font-size: 13px;
}
.ldppp_ratings_ratio_row {
  display: flex;
  align-items: center;
  margin: 3px 0;
}
.ldppp_star_label {
  text-align: right;
  color: #ffb400;
  font-weight: 600;
}
.ldppp_ratings_ratio_bar {
  flex: 1;
  height: 6px;
  background: #eee;
  margin: 0 8px;
  border-radius: 3px;
  overflow: hidden;
}
.ldppp_ratings_ratio_fill {
  height: 100%;
  background: linear-gradient(90deg, #ffb400, #ff9900);
  border-radius: 3px;
}
.ldppp_ratings_ratio_percent {
  width: 40px;
  text-align: left;
  color: #555;
}

.ldppp_ratio_like,
.ldppp_ratio_dislike {
  transition: width 0.4s ease-in-out;
}

.ldppp_comment_ratio_bar {
    display: flex;
    height: 6px;
    border-radius: 4px;
    overflow: hidden;
    background: #ddd;
    margin-top: 8px;
}
.ldppp_comment_ratio_like {
    background: #4caf50;
    transition: width 0.4s ease;
}
.ldppp_comment_ratio_dislike {
    background: #f44336;
    transition: width 0.4s ease;
}
.ldppp-read-count {
  padding: 5px 0;
}
.ldppp-fav-sec {
  padding: 0 0 5px 0;
}

.ldppp_ratio_bar {
    display: flex;
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    font-size: 12px;
    line-height: 20px;
    color: #fff;
    text-align: center;
}

.ldppp_ratio_like,
.ldppp_ratio_dislike {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: width 0.4s ease;
    position: relative;
}

.ldppp_ratio_like {
    background: #4caf50;
}

.ldppp_ratio_dislike {
    background: #f44336;
}

.ldppp_ratio_text {
    position: absolute;
    width: 100%;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
}

.ldppp_comment_ratio_bar {
    display: flex;
    height: 18px;
    background: #ddd;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 8px;
    position: relative;
}

.ldppp_comment_ratio_like,
.ldppp_comment_ratio_dislike {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: width 0.4s ease;
    color: #fff;
    font-weight: 600;
    font-size: 12px;
}

.ldppp_comment_ratio_like {
    background: #4caf50;
}

.ldppp_comment_ratio_dislike {
    background: #f44336;
}

.ldppp_comment_ratio_text {
    position: absolute;
    width: 100%;
    text-align: center;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}
