/* assets/style.css */

.gpr-summary {
  display: flex;
  align-items: center;
  justify-content: center;   /* centers the whole box in its container */
  gap: 16px;
  padding: 16px 22px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  margin: 0 auto 1.5rem;
  max-width: 360px;          /* adjust to taste */
  text-align: left;
}

/* Left: Google icon */
.gpr-google-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gpr-google-icon svg {
  display: block;
}

/* Right: text + rating + stars in one row */
.gpr-rating-content {
  align-items: left;
  flex-wrap: wrap;           /* allows wrap on very small screens */
  gap: 8px 10px;             /* row gap, column gap */
  line-height: 1.2;
}

.gpr-summary h3 {
    font-weight: 500;
    margin-bottom:0px;
}
.gpr-summary .stars {
    color: #e7711b;
    font-size: 1.4em;
}
.gpr-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
}
.gpr-item {
    background: #ffffff;
    padding: 2em;
    border-radius: 12px;
    max-width: 360px;
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.gpr-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
    font-weight: 600;
    font-size: 14px;
    color: #222;
    margin-bottom: 0.3em;
}
.gpr-item .stars {
    color: #e7711b;
    font-size: 1em;
    white-space: nowrap;
}
.gpr-subheader {
    font-size: 0.85em;
    color: #333;
    margin-bottom: 1em;
    font-style: italic;
    display: flex;
    justify-content: center;
    gap: 0.4em;
    flex-wrap: wrap;
}
.gpr-body p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #333;
    margin: 0;
    text-align: center;
}
.gpr-read-more {
    display: inline-block;
    margin-top: 0.5em;
    font-size: 0.9em;
    color: #7a5f39;
    text-decoration: underline;
    cursor: pointer;
}
.gpr-read-all {
    text-align: center;
    margin-top: 2em;
}
.gpr-read-all a {
    font-size: 0.95em;
    color: #7a5f39;
    text-decoration: underline;
    font-weight: 500;
}
.gpr-date,
.gpr-source {
    display: inline;
}

/* === Floating badge (bottom-right) === */
.gpr-badge-container.gpr-badge-floating {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
}

.gpr-badge-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #dadce0;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  cursor: pointer;
  font-family: inherit;
}

.gpr-badge-trigger:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,.2);
}

.gpr-badge-logo svg {
  width: 20px;
  height: 20px;
  display: block;
}

.gpr-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.gpr-badge-label {
  font-size: 11px;
  color: #555;
}

.gpr-badge-score {
  font-size: 14px;
  font-weight: 600;
  margin-right: 4px;
}

.gpr-badge-stars {
  font-size: 13px;
  color: #e7711b;
}

/* === Overlay panel === */
.gpr-overlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9998;
}

.gpr-overlay.gpr-overlay-open {
  display: block;
}

.gpr-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}

.gpr-overlay-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: #ffffff;
  box-shadow: -2px 0 10px rgba(0,0,0,.2);
  display: flex;
  flex-direction: column;
}

.gpr-overlay-close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.gpr-overlay-header {
  padding: 18px 20px 10px;
  border-bottom: 1px solid #eee;
}

.gpr-overlay-header h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.gpr-overlay-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.gpr-overlay-score {
  font-weight: 600;
}

.gpr-overlay-stars {
  color: #e7711b;
  font-size: 14px;
}

.gpr-overlay-count {
  margin-top: 4px;
  font-size: 12px;
  color: #666;
}

.gpr-overlay-list {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

/* Adjust review cards inside panel */
.gpr-overlay-list .gpr-item {
  max-width: 100%;
  text-align: left;
  margin-bottom: 12px;
}

.gpr-overlay-list .gpr-header,
.gpr-overlay-list .gpr-subheader {
  justify-content: flex-start;
}

.gpr-overlay-list .gpr-body p {
  text-align: left;
}
