/* General Wrapper & Layout */
.Axentra-reviews-wrapper {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: #111827;
  padding-top: 15px;
}

/* Summary Block */
.Axentra-summary-container {
  /* margin: 5rem auto; */
  max-width: 1024px;
  padding: 0 2rem;
}

.Axentra-summary-header {
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 15px;
  text-align: center;
}

.Axentra-summary-body {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 5px;
}

.Axentra-summary-average {
  text-align: center;
  min-width: 120px;
  margin-top: 10px;
}

.Axentra-summary-average > div:first-child {
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
}

.Axentra-summary-stars {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0;
}

.Axentra-summary-breakdown {
  flex: 1;
  width: 100%;
  margin-top: 1.5rem;
}

.Axentra-progress-bar-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  gap: 1rem;
}

.Axentra-progress-bar-row > span:first-child { font-size: 14px; width: 2rem; }
.Axentra-progress-bar-row > span:last-child { font-size: 14px; width: 3rem; text-align: left; }

.Axentra-progress-bar-wrapper {
  flex: 1;
  height: 0.9rem;
  background-color: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}
.Axentra-progress-bar-wrapper > div { height: 100%; border-radius: 9999px; }

.Axentra-summary-footer {
  /* margin-top: 1.5rem; */
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Review Card */
.Axentra-review-card {
  margin: 0 auto 2rem;
  max-width: 1024px;
  padding: 2.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.Axentra-review-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.Axentra-initials-circle {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;
}

.Axentra-review-card-meta { flex: 1; }
.Axentra-review-card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.Axentra-review-author-info { display: flex; align-items: center; gap: 0.75rem; font-weight: 500; }
.Axentra-verified-badge { display: inline-flex; align-items: center; border-radius: 9999px; padding: 0.125rem 0.625rem; font-size: 12px; font-weight: 500; }
.Axentra-verified-badge svg { width: 12px; height: 12px; margin-right: 0.25rem; }

.Axentra-review-card-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.Axentra-review-card-body {
  padding-left: 15px; /* Align with text above */
}
.Axentra-review-title { font-weight: 500; margin-bottom: 0.5rem; }
.Axentra-review-comment { white-space: pre-wrap; line-height: 1.5; }
.Axentra-review-photos { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }
.Axentra-review-photo { width: 260px; height: 140px; object-fit: cover; border-radius: 0.5rem; border: 1px solid #e5e7eb; cursor: pointer; }

.Axentra-review-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.Axentra-feedback-buttons { display: flex; align-items: center; gap: 1rem; }

/* Modal */
.Axentra-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6); display: none;
  justify-content: center; align-items: center;
  z-index: 1000; padding: 1rem; box-sizing: border-box;
}
.Axentra-modal-content {
  padding: 10px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative; max-width: 520px; width: 100%;
  max-height: 90vh; overflow-y: auto;
}
.Axentra-modal-close-btn {
  position: absolute; font-size: 28px;
  color: #888; cursor: pointer; border: none; background: transparent; padding: 0.5rem; line-height: 1;
}

/* Form Styles */
.Axentra-form-header { margin-bottom: 1.5rem; }
.Axentra-form-body { display: grid; gap: 1.5rem; }
.Axentra-form-label { font-size: 14px; font-weight: 500; margin-bottom: 0.5rem; display: block; }
.Axentra-star-rating-input { display: flex; align-items: center; gap: 0.5rem; }
.Axentra-star-btn { cursor:pointer; background:transparent; border:none;  }
.Axentra-star-btn svg { width: 2rem; height: 2rem; color: #e5e7eb; fill: #e5e7eb; transition: color 0.2s, fill 0.2s; }
.Axentra-rating-text { margin-left: 0.5rem; font-size: 14px; color: #4b5563; }
.Axentra-form-input, .Axentra-form-textarea, .Axentra-form-select {
  display:block; width: 100%; padding: 0.65rem 0.75rem; font-size: 14px;
}
.Axentra-form-textarea { min-height: 100px; }
.Axentra-photo-upload-area { border: 2px dashed; padding: 1.5rem; text-align: center; }
.Axentra-upload-icon { width: 2rem; height: 2rem; color: #9ca3af; margin: 0 auto 0.5rem auto; }
.Axentra-upload-text { font-size: 14px; color: #4b5563; }
.Axentra-upload-subtext { font-size: 12px; color: #6b7280; margin-top: 0.25rem; overflow-wrap: break-word; }
.Axentra-form-recommend { display: flex; align-items: center; gap: 1rem; }
.Axentra-form-actions { display: flex; gap: 0.75rem; padding-top: 1rem; }

/* Buttons */
.Axentra-btn-primary, .Axentra-btn-secondary, .Axentra-feedback-btn, .Axentra-report-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500; border: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.Axentra-btn-primary { height: 3rem; padding: 0 1rem; flex: 1; }
.Axentra-btn-primary svg { width: 1rem; height: 1rem; margin-right: 0.5rem; }
.Axentra-write-review-btn { flex: none; height: 2.5rem; padding: 15px 1.5rem; background-color: #0E2D4D !important; color: #ffffff !important; border-radius: 0.375rem; }
.Axentra-write-review-btn svg { width: 1rem; height: 1rem; }
.Axentra-btn-secondary { padding: 7px; flex: 1; background: transparent; }
.Axentra-feedback-btn, .Axentra-report-btn {
  gap: 0.5rem; background: transparent; height: 2.5rem;
  padding: 0 1rem; border: 1px solid #d1d5db; border-radius: 0.375rem;
}
.Axentra-feedback-btn svg, .Axentra-report-btn svg { width: 14px; height: 14px; margin-right: 0.25rem; }
.Axentra-feedback-btn-selected { background-color: #111827 !important; color: #ffffff !important; border-color: #111827 !important; }
.Axentra-report-btn-selected { background-color: #EF4444 !important; color: #ffffff !important; border-color: #EF4444 !important; }

/* Popups & Lightbox */
.Axentra-feedback-popup {
  position: fixed; bottom: -100%; right: 2rem;
  padding: 1rem 1.5rem; border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); z-index: 1001;
  width: 340px; transition: bottom 0.4s ease-in-out;
}
.Axentra-feedback-popup.show { bottom: 2rem; }
.Axentra-popup-subtext { font-size: 14px; opacity: 0.8; margin-top: 0.25rem; }

.Axentra-image-lightbox-overlay {
  position: fixed; inset: 0; z-index: 1002; background-color: rgba(0, 0, 0, 0.8);
  display: none; justify-content: center; align-items: center;
  animation: Axentra-fadeIn 0.2s ease-out;
}
.Axentra-image-lightbox-content { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.Axentra-lightbox-close { position: absolute; top: 1rem; right: 2rem; font-size: 3rem; color: white; cursor: pointer; }
@keyframes Axentra-fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
  .Axentra-summary-container, .Axentra-review-card {
    margin-left: 0;
    margin-right: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
  }
  .Axentra-summary-body {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .Axentra-summary-breakdown { width: 100%; }
  .Axentra-summary-footer { flex-direction: column; text-align: center; }
  
  .Axentra-review-card { padding: 1.5rem; }
  .Axentra-review-card-body { padding-left: 0; margin-top: 1rem; }
  .Axentra-review-card-meta-top { flex-direction: column; align-items: flex-start; }
  
  .Axentra-review-card-actions { flex-direction: column; align-items: stretch; }
  .Axentra-feedback-buttons { justify-content: space-between; width: 100%; }
  .Axentra-feedback-btn { flex-grow: 1; }
  .Axentra-report-btn { width: 100%; }

  .Axentra-modal-content { padding: 10px; }
}