/* Elementor Product Reviews (Cviondi) – AJAX + Modal */
.erbpr-widget{
  font-family: 'Poppins';
}
.erbpr-summary-wrapper{
  background:#fff;
  border-radius:12px;
  padding:24px;
}
.erbpr-summary {
  display:grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  gap: 24px;
}
.erbpr-summary-total{
	text-align: center;
	min-width: 184px;
}
.erbpr-title{ margin-bottom: 12px; font-size: 16px; font-weight:600; }
.erbpr-title small{ color: #777; font-size: 14px; }
.erbpr-score{ font-size:56px; font-weight:800; line-height:1; font-family: 'Poppins'; color: #000; }
.erbpr-stars{ letter-spacing:2px; font-size:24px; color:#ffc107; }
.erbpr-stars.small{ font-size:18px; }
.erbpr-total{ color:#6b7280; margin-top:6px; }
.erbpr-progress{ width: 100%; }
.erbpr-line{ display:flex; align-items:center; gap:10px; margin:6px 0; }
.erbpr-label{ 
	width:58px; 
	color:#888; 
	font-weight: 500;
	font-size: 14px;
}
.erbpr-bar{ flex:1; height:14px; background:#e5e7eb; border-radius:999px; overflow:hidden; }
.erbpr-bar>div{ height:100%; background: #6ac12a; border-radius:999px; }
.erbpr-count{
	color: #888;
	font-weight: 500;
	font-size: 14px;
}
.erbpr-flex{
	display: flex !important;
	width: 100%;
	align-items: center;
	gap: 40px;
}
.erbpr-summary-left{
	border-right: 1px solid #ddd;
	padding-right: 24px;
}
.erbpr-summary-right{
	padding: 24px;
	padding-left: 0px;
}
.erbpr-button{ background:#B51F29; color:#fff; border:0; padding:8px 16px; border-radius:20px; text-decoration:none; display:inline-block; }
.erbpr-loyalty{ color:#888; font-size: 14px; margin-bottom: 8px; font-weight: 500; font-family: 'Poppins' }

.erbpr-reviews-list{ margin-top:16px; display:grid; gap:12px; }
.erbpr-review{ background:#fff; border-radius:12px; padding:16px; display:flex; gap:14px; align-items:flex-start; box-shadow:0 1px 3px rgba(0,0,0,.06); }
.erbpr-avatar{ width:48px; height:48px; border-radius:999px; background:#b71c1c; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; }
.erbpr-name{ font-weight:700; margin-right:8px; }
.erbpr-text{ margin-top:6px; color: #888 }
.erbpr-body{
	width: calc(100% - 60px)
}
/* Modal */
#erbpr-modal{ display:none; position:fixed; inset:0; z-index:9999; align-items:center; justify-content:center; }
#erbpr-modal.active{ display:flex; }
.erbpr-modal-overlay{ position:absolute; inset:0; background:rgba(0,0,0,0.5); }
.erbpr-modal-content{ position:relative; z-index:1; background:#fff; width:min(92vw, 640px); border-radius:12px; padding:24px; box-shadow:0 10px 30px rgba(0,0,0,0.25); }
.erbpr-modal-close{ position:absolute; top:10px; right:12px; background:transparent; border:0; font-size:22px; cursor:pointer; }

/* Form */
.erbpr-ajax-form .erbpr-field{ margin-bottom:12px; }
.erbpr-ajax-form input, .erbpr-ajax-form textarea{
  width:100%; padding:10px; border:1px solid #e5e7eb; border-radius:8px;
}
.erbpr-ajax-form label{ display:block; margin-bottom:6px; font-weight:600; }
.erbpr-submit{ background:#111827; color:#fff; border:0; padding:10px 16px; border-radius:8px; cursor:pointer; }
.erbpr-form-msg{ margin-top:10px; }

/* Star input */
.erbpr-stars-input{ font-size:28px; cursor:pointer; user-select:none; display:inline-flex; gap:6px; }
.erbpr-stars-input span{ color:#d1d5db; }
.erbpr-stars-input[data-value="1"] span:nth-child(-n+1),
.erbpr-stars-input[data-value="2"] span:nth-child(-n+2),
.erbpr-stars-input[data-value="3"] span:nth-child(-n+3),
.erbpr-stars-input[data-value="4"] span:nth-child(-n+4),
.erbpr-stars-input[data-value="5"] span:nth-child(-n+5){ color:#ffc107; }

@media (max-width: 768px){
  .erbpr-summary{ grid-template-columns: 1fr; }
  .erbpr-summary-right{ text-align:left; }
}
