/* 1) Review header grid */
.tm-review-header {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  grid-template-rows: auto auto;
  grid-template-areas:
    "avatar stars date"
    "avatar verified author";
  column-gap: 12px;
  align-items: center;
	margin-bottom:5px;
}

/* 2) Avatar on the left, spanning both rows */
.tm-letter-avatar {
  grid-area: avatar;
  width: 64px;
  height: 64px;
  line-height: 64px;
  font-size: 20px;
  text-align: center;
  color: #333;
  border-radius: 50%;
  font-size: 1.25rem !important;
}

.tm-star-rating {
    grid-area: stars;
    display: flex
;
    align-items: center;
    column-gap: 0.25rem;
}

.tm-overall-rating 
.tm-star-rating{
	margin-bottom:5px;
}

.tm-overall-count {
    font-size: 1.25rem;
    color: #000 !important;
    font-weight: 500;
}

.tm-star-date {
    display: flex;
    align-items: center;
	column-gap:0.5rem;
}

.tm-star-rating .star {
  font-size: 1.5rem;
  color: #2c9552;       /* filled star color */
}
.tm-star-rating .star.empty {
  color: #ddd;          /* empty star color */
}

/* 4) Date in the top-right cell */
.tm-review-date {
  grid-area: date;
  font-size: 1.25rem;
  color: #000;
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
}

/* 5) Verified badge in bottom-middle */
.tm-review-verified {
  grid-area: verified;
  display: inline-block;
  padding: 0.1em 0.6em;
  background: #fcd34d;
  color: #000;
  font-size: 0.688rem;
	font-weight:500;
}

/* 6) Author name in bottom-right */
.tm-review-author {
  grid-area: author;
  font-weight: bold;
  text-transform: capitalize;
  font-size: 1.25rem;
  text-align: right;
color:#000;
	font-weight:700;
}

.tm-meta-row2 {
    align-items: center;
    display: flex;
    column-gap: 0.25rem;
}

/* 7) Body text indented beneath the stars column */
.tm-review-content {
  font-size: 1.25rem;
  line-height: 1.4;
  color: #000;
	font-weight:500;
}

.tm-review-content p {
    margin: 0;
}

.tm-review{
	position: relative;
    overflow: hidden;
    border-top: 1px solid #eee;
    padding-top: 16px;
    margin-top: 16px;
}

div#tm-reviews-list {
    margin-bottom: 1rem;
}

section#product-reviews {
    padding: 24px;
    border: 1px solid #eee;
    margin-top: 24px;
    margin-bottom: 24px;
}

section#product-reviews h2{
	font-size:2.25rem;
	color:#000;
	margin:0;
	line-height:1.4;
	margin-bottom: 8px;
}


/* GM Button styling */
section#product-reviews .gm-button,
section#product-reviews .gm-button:visited {
  display: flex;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 40px !important;
  position: relative;
  text-decoration: none;
  color: var(--green);
  border: 1px solid var(--green);
  align-items: center;
  width: fit-content;
  margin: auto !important;
  gap: 0.5rem;
  text-transform: uppercase;
  background: white;
	border-radius:0;
	line-height:1.5;
	cursor:pointer;
}

section#product-reviews .gm-button:hover {
    background: var(--green);
    color: #fff;
	cursor:pointer;
}

/* Ensure the avatar container is position-relative */
span.tm-letter-avatar {
  position: relative;
  display: inline-block;
}

span.tm-letter-avatar::after {
    content: '✔';
    position: absolute;
    bottom: 0px;
    right: 0px;
    font-size: 9px;
    background: #fcd34d;
    color: #000;
    border-radius: 50%;
    padding: 2px;
    line-height: 1;
    border: 1px solid white;
    width: 16px;
    height: 16px;
    font-weight: 500;
	text-align:center;
}