.wp-block-acf-brands-list {
  padding-top: 30px;
}

.brand-item { 
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  gap: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
  margin-bottom: 25px;
}

.brand-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.rank-badge {
  position: absolute;
  top: -10px;
  left: 15px;
  background: #4CAF50;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  padding: 2px 11px;
  border-radius: 4px;
  user-select: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.brand-logo img {
  max-width: 200px;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.brand-details {
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  width: 100%;
  padding: 25px;
}

.promo-block {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
}

.promo-title, .brands-list-wrapper .promo-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #222;
}

.promo-description,
.brand-description {
  color: #555;
  margin-bottom: 5px;
  line-height: 1.4;
}

.brand-description {
  font-size: 0.72rem;
  line-height: 1.3;
}

.brand-description-wrap {
  background-color: #f1f1f0;
  text-align: center;
  padding: 10px 25px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.rating-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;  
  gap: 10px;
}

.rating-box {
  text-align: center;
}

.rating-value {
  font-size: 2.2rem;
  color: #000;
  font-weight: 700;
  line-height: 1;
}

.star-rating {
  color: #f39c12;
  font-size: 1.4rem;
  letter-spacing: 1.8px;
  user-select: none;
}

.star-rating .star {
  font-size: 24px;
  font-weight: bold;
  color: transparent;
  background: linear-gradient(to right, gold 0%, gold var(--star-fill), lightgray var(--star-fill), lightgray 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.reviews-count {
  font-size: 0.9rem;
  color: #777;
  margin-top: 2px;
}

.cta-wrapper .brand-action-button {
  display: inline-block;
  background-color: black;
  color: white;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.cta-wrapper .brand-action-button:hover {
  background-color: #222;
}

.premium-pick-label {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #e74c3c;
  color: white;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 6px 12px;
  border-bottom-left-radius: 8px;
  user-select: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.brands-list-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 10px 0;
  justify-content: center;
}

.brands-list-wrapper .brand-item {
  flex: 1 1 45%;
  max-width: 45%;
  box-sizing: border-box;
}

.brands-list-wrapper .brand-logo img {
  margin: 0 auto 15px;
  display: block;
}

.brands-list-wrapper .brand-title,
.brands-list-wrapper .promo-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  text-align: center;
}

.brands-list-wrapper .promo-description,
.brands-list-wrapper .brand-description {
  font-size: 1rem;
  color: #666;
  margin-bottom: 15px;
  text-align: center;
}

.brands-list-wrapper .brand-action-button,
.brands-list-wrapper .cta-button {
  background-color: black;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 10px;
  text-align: center;
  display: inline-block;
  transition: background-color 0.3s ease;
  min-width: 160px;
}

.cta-wrapper {
  min-width: 160px;
}

.brand-action-button {
  width: 100%;
}

.brands-list-wrapper .brand-action-button:hover,
.brands-list-wrapper .cta-button:hover {
  background-color: #222;
}

.copy-coupon-btn {
  position: relative;
  cursor: pointer;
  display: block;
  user-select: none;
  font-weight: 600;
  font-size: 12px;
  transition: background-color 0.2s ease;
  color: #000;
}

.copy-coupon-btn:hover,
.copy-coupon-btn:focus {
  outline: none;
}

.brand-coupon {
  text-align: center;
  position: relative;
  display: inline-block;
}

.coupon-success {
  display: none;
  margin-left: 4px;
  font-size: 10px;
  color: black;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .brand-item {
    flex-direction: column;
    max-width: 100%;
  }
  .brand-details {
    flex-direction: column;
  }
  .rating-cta {
    align-items: center;
    min-width: auto;
    width: 100%;
  }
  .rank-badge {
    top: -10px;
    left: 10px;
  }
  .premium-pick-label {
    top: 0;
    border-radius: 0 8px 0 0;
  }
}

.wp-block-acf-brands-list .brands-list-wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  gap: 20px;
  padding: 10px 0;
  justify-content: center;
}

.wp-block-acf-brands-list .brand-item {
  flex: 1 1 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.wp-block-acf-brands-list .ast-container {
  width: 100%;
}

.brand-col  {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  width: 100%;
}
.brand-left {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 25px;
  align-items: center;
}

.brand-right {
  flex-shrink: 0;
  width: 280px; 
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.last-updated-badge {
  display: inline-block;
  background: #fff;
  padding: 6px 16px;
  border-radius: 5px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  margin-bottom: 38px;
}

.last-updated-badge .label {
  color: #b30000;
  font-weight: 600;
  margin-right: 5px;
}

.last-updated-badge .date {
  color: #000;
}


@media (max-width: 767px) {
  .brand-details {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0px; 
    padding: 20px 8px 8px;
  } 
  .brand-col {
    width: 50%;
    display: flex;
    flex-direction: column;
    padding: 0 10px; 
    align-items: center;
    box-sizing: border-box;
  }
  .brand-left {
    width: 52%;
    padding-right: 0;
  }
  .brand-right {
    width: 48%;
  }

  .brand-logo {
    margin: auto;
  }

  .brand-logo img {
    width: 100%;
    height: auto;
    max-width: 160px;
  }

  .promo-block {
    align-items: center;
    text-align: center;
  }
  .promo-description {
    text-align: center;
  }

  .promo-title {
    font-size: 1.25rem;
    line-height: 1.1;
    margin-top: 4px;
  }

  .promo-description {
    font-size: 0.9rem;
  }

  .rating-box,
  .rating-cta,
  .brand-coupon {
    text-align: center;
    width: 100%;
  }

  .rating-cta {
    gap: 0;
  }

  .brand-action-button {
    width: auto;
    padding: 8px 14px;
    font-size: 14px;
  }

  .cta-wrapper .brand-action-button {
    padding: 5px 22px;
  }

  .brand-coupon {
    margin-top: 5px;
  }

  .brand-description {
    margin-bottom: 0;
    font-size: 0.5rem;
    line-height: 1.1;
  }

  .brand-description-wrap {
    padding: 2px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
  }

  .rank-badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 3px;
  }

  .copy-coupon-btn {
    font-size: 11px;
    text-transform: uppercase;
  }
  .star-rating .star {
    line-height: 1;
    font-size: 19px;
  }
  .cta-wrapper .brand-action-button {
    padding: 5px 10px;
    width: 100%;
  }
  .cta-wrapper {
    width: 100%;
    margin: auto;
    min-width: auto;
    max-width: 200px;
  }
  .brand-right, .brand-left {
    gap: 10px;
  }
  
  .reviews-count {
    margin-top: 0;
  }
  .rating-cta {
    align-items: baseline;
  }  
   .brand-col.brand-right {
    text-align: center;     
    display: flex;
    flex-direction: column;
    align-items: center;   
    justify-content: center; 
  }
  .premium-pick-label {
    padding: 3px 12px;
  }
  .rating-value {
    font-size: 1.8rem;
    line-height: .8;
  }
  .star-rating {
    line-height: 1;
  }
  .last-updated-badge {
    padding: 2px 16px;
    font-size: 13px;
    margin-bottom: 20px;
}
}

.show-desktop {
  display: none;
}

.show-mobile {
  display: flex;
}

@media (min-width: 768px) {
  .brand-left,
  .brand-right {
    display: contents;
  }
  .show-desktop {
    display: flex;
  }
  .show-mobile {
    display: none;
  }
}




