/** * Squid Review Widget Styles - Larger/More Visible Version */
.squid-review-widget {
  --squid-primary-color: #000000;
  --squid-text-color: #333;
  --squid-border-color: #e0e0e0;
  --squid-star-empty: #ccc;
  --squid-star-filled: var(--squid-primary-color);
  --squid-button-text: #fff;

  max-width: 12000px;
  margin: auto;
  padding: 2rem 0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  color: var(--squid-text-color);
}

/* Headings */
.squid-review-heading {
  font-size: 2rem;
  /* Increased from 1.5rem */
  font-weight: 600;
  margin-bottom: 0px;
  text-align: center;
}

/* Empty state */
/* .squid-review-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
} */

/* .squid-stars-container {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
} */

/* .squid-star {
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
} */

/* .squid-star-empty {
  color: var(--squid-star-empty);
} */

/* .squid-star-filled {
  color: var(--squid-star-filled);
} */

/* .squid-review-prompt {
  margin: 0.5rem 0;
  font-size: 1.1rem;

} */

/* Buttons */
/* .squid-review-button {

  color: var(--squid-button-text);
  border: none;
  border-radius: 4px;
  padding: 1rem 2rem;

  font-size: 1.125rem;

  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 0.5rem;
}

.squid-review-button:hover {
  background-color: color-mix(in srgb, var(--squid-primary-color) 90%, black);
} */

/* Form container */
.squid-review-form-container {
  background-color: #fff;
  border-radius: 8px;
  padding: 2rem;
  margin-top: 1rem;
}

/* Form header */
/* .squid-form-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
 
}

.squid-form-header h3 {
  font-size: 1.5rem;
 
  margin: 0;
} */

.squid-cancel-button {
  background-color: transparent;
  color: var(--squid-primary-color);
  border: none;
  padding: 0.75rem;
  /* Increased from 0.5rem */
  font-size: 1.1rem;
  /* Increased from 0.875rem */
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.squid-cancel-button:hover {
  opacity: 0.8;
}

/* Form fields */
/* .squid-form-field {
  margin-bottom: 1.75rem;
} */

/* .squid-form-field label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.75rem;
 
  font-size: 1.1rem;
 
} */

/* .squid-review-media {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 1rem;
  padding: 2rem 0;
} */

/* .squid-review-image {
  width: 100px;
  height: 100px;
  border-radius: 4px;
  object-fit: cover;
} */

/* .squid-review-video {
  width: 100px;
  height: 100px;
  border-radius: 4px;
  object-fit: cover;
  width: 100px;
  height: 100px;
  border-radius: 4px;
  object-fit: cover;
  cursor: pointer;
} */

/* Video preview */
/* .squid-review-video-wrapper {
  position: relative;
  width: 100px;
  aspect-ratio: 1 / 1;

  overflow: hidden;
  border-radius: 6px;
  background: #000;
} */
/* 
.squid-review-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  cursor: pointer;
} */

/* Play overlay icon */
/* .squid-review-video-wrapper::after {
  content: '';
  background: url('https://img.icons8.com/fluency-systems-regular/48/play--v1.png') center center no-repeat;
  background-color: #ffffff4b;
  background-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
} */

/* media uploader styles */

/* .squid-media-uploader {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 5px;
} */

/* .squid-media-drop {
  width: 120px;
  height: 120px;
  background: #f8f8f8;
  border: 2px dashed #ccc;
  display: flex !important;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 4px;

  filter: grayscale(100%);
} */
/* 
.squid-media-icon {
  font-size: 24px;
  color: #888;
} */

/* .squid-media-preview {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
} */

.squid-preview-thumb {
  position: relative;
  width: 120px;
  height: 120px;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.squid-preview-thumb img,
.squid-preview-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.squid-preview-thumb .squid-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 14px;
  text-align: center;
  line-height: 16px;
  cursor: pointer;
  color: #333;
  z-index: 10;
}

.squid-spinner {
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: #3498db;
  border-radius: 50%;
  animation: squid-spin 0.8s linear infinite;
  margin: auto;
}

.squid-spinner.squid-media-loading {
  width: 30px;
  height: 30px;
  margin: 45px;
}

@keyframes squid-spin {
  to {
    transform: rotate(360deg);
  }
}

/*  */

.squid-char-count {
  font-weight: normal;
  color: #777;
  font-size: 1rem;
  /* Increased from 0.875rem */
}

/* .squid-rating-selector {
  display: flex;
  gap: 0.5rem;

  margin-bottom: 1rem;
} */

/* .squid-form-field input[type='text'],
.squid-form-field input[type='email'],
.squid-form-field textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--squid-border-color);
  border-radius: 4px;
  font-size: 1.125rem;

  transition: border-color 0.2s ease;
} */

/* .squid-form-field input:focus,
.squid-form-field textarea:focus {
  border-color: var(--squid-primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(64, 179, 174, 0.2);

} */

/* .squid-form-field textarea {
  min-height: 150px;
  resize: vertical;
} */

.squid-example-name {
  color: var(--squid-primary-color);
}

/* Form info */
/* .squid-form-info {
  margin-bottom: 2rem;

  font-size: 1rem;

  line-height: 1.5;

  color: #666;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 4px;
}

.squid-form-info a {
  color: var(--squid-primary-color);
  text-decoration: none;
  font-weight: 500;
} */

/* Form actions */
/* .squid-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
 
  margin-top: 1.5rem;
} */

/* .squid-button-secondary {
  background-color: transparent;
  color: var(--squid-text-color);
  border: 1px solid var(--squid-border-color);
  border-radius: 4px;
  padding: 1rem 1.5rem;

  font-size: 1.125rem;

  cursor: pointer;
} */

/* .squid-button-primary {
  color: var(--squid-button-text);
  border: none;
  border-radius: 4px;
  padding: 1rem 1.5rem;

  font-size: 1.125rem;

  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.squid-button-primary:hover {
  background-color: color-mix(in srgb, var(--squid-primary-color) 90%, black);
} */

/* Messages */
.squid-message {
  margin-bottom: 1.5rem;
  /* Increased from 1rem */
  padding: 1rem;
  /* Increased from 0.75rem */
  border-radius: 4px;
  font-size: 1.125rem;
  /* Increased from 0.9375rem */
}

.squid-success {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.squid-error {
  background-color: #ffebee;
  color: #c62828;
}

/* Rating display */
/* .squid-review-display {
  width: 100%;
  text-align: center;

} */

/* .squid-rating-value {
  font-size: 1.5rem;
  /* Increased from 1.125rem */
/* font-weight: 500; */
/* }  */

/* Mobile responsiveness adjustments */
@media (max-width: 768px) {
  .squid-review-heading {
    font-size: 1.75rem;
  }

  /* .squid-star {
    font-size: 2rem;
  } */

  /* .squid-review-button {
    padding: 0.875rem 1.75rem;
    width: 100%;
    max-width: 300px;
  } */

  .squid-form-actions {
    flex-direction: column;
  }

  .squid-button-secondary,
  .squid-button-primary {
    width: 100%;
    text-align: center;
  }
}

/* Ensure button always stays centered and maintains shape */
/* .squid-review-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
} */

/* .squid-review-button {
  display: inline-block;
  margin: 0 auto;
  text-align: center;
  min-width: 140px;
} */

/* Fix alignment after form close */
/* .squid-review-prompt {
  width: 100%;
  text-align: center;
} */

/* Prevent layout shifts */
.squid-review-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Ensure form container doesn't affect layout when hidden */
.squid-review-form-container[style*='display: none'] {
  position: absolute;
  visibility: hidden;
  height: 0;
  overflow: hidden;
}

/* Make sure stars stay centered */
/* .squid-stars-container {
  display: flex !important;
  justify-content: center !important;
  width: 100%;
} */

.squid-button-disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background-color: #a0a0a0 !important;
}

/*  display  */

/* .squid-review-summary-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
} */

/* .squid-rating-header {
  display: flex;
  flex-direction: column;
  align-items: center;
} */

/* .squid-star-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
} */

/* .squid-rating-value {
  font-size: 1.125rem;
  font-weight: 500;
  margin-left: 0.5rem;
} */

/* .squid-review-count {
  margin: 0.25rem 0 1rem;
  font-size: 0.9rem;
  color: #555;
} */

/* .squid-rating-distribution {
  max-width: 400px;
  margin: 0 auto;
} */

/* .squid-rating-bar-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
} */

/* .squid-rating-stars {
  display: flex;
  min-width: 90px;
} */

/* .squid-star-small {
  font-size: 0.9rem;
} */

/* .squid-rating-bar-container {
  flex-grow: 1;
  height: 10px;
  background-color: #eee;
  border-radius: 5px;
  margin: 0 10px;
  overflow: hidden;
} */

/* .squid-rating-bar {
  height: 100%;
  background-color: var(--squid-primary-color);
  border-radius: 5px;
} */

/* .squid-rating-count {
  min-width: 20px;
  text-align: right;
  font-size: 0.9rem;
  color: #555;
} */
/* 
.squid-write-review-button-container {
  display: flex;
  justify-content: center;
} */

/* .squid-review-sort {
  display: flex;
  margin-bottom: 1rem;
} */

/* .squid-sort-select {
  padding: 0.5rem;
  border: 1px solid var(--squid-border-color);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--squid-text-color);
} */

/* .squid-reviews-list {
  position: relative;
  min-height: 300px;

  transition: opacity 0.25s ease-in-out;
}

.squid-reviews-list.squid-loading {
  opacity: 0.6;
} */

/* .squid-review-item {
  text-align: left;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--squid-border-color);
  opacity: 0;
  animation: fadeIn 0.3s ease-out forwards;
} */

.squid-loading-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 15px 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
/* 
.squid-review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
} */

/* .squid-review-date {
  font-size: 0.9rem;
  color: #555;
} */

/* .squid-reviewer {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
} */

/* .squid-reviewer-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 0.75rem;
}

.squid-reviewer-name {
  font-weight: 500;
} */

/* .squid-review-title {
  font-size: 1.2rem;
  margin: 0.5rem 0;
  font-weight: bold;
} */

.squid-rating-field {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* .squid-review-content {
  line-height: 1.5;
  margin-top: 0.5rem;
  color: #444;
  font-size: 1.4rem;
} */

/* Half-star styling */
.squid-star-half {
  position: relative;
  color: var(--squid-star-empty);
}

.squid-star-half:before {
  content: '★';
  position: absolute;
  color: var(--squid-star-filled);
  width: 50%;
  overflow: hidden;
}

/* .squid-review-list {
  width: 100%;
} */

/* Pagination styles */
/* .squid-pagination {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
} */

/* .squid-pagination-numbers {
  display: inline-flex;
  margin: 0 1rem;
} */

/* .squid-page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0 0.25rem;
  border-radius: 50%;
  border: none;
  font-size: 0.9rem;
  background: transparent;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  position: relative;
}

.squid-page-number.squid-page-current::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  animation: underlineExpand 0.2s ease forwards;
} */

/* Animation keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes underlineExpand {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* Staggered animations for review items */
/* .squid-review-item:nth-child(1) {
  animation-delay: 0.05s;
}

.squid-review-item:nth-child(2) {
  animation-delay: 0.1s;
}

.squid-review-item:nth-child(3) {
  animation-delay: 0.15s;
}

.squid-review-item:nth-child(4) {
  animation-delay: 0.2s;
}

.squid-review-item:nth-child(5) {
  animation-delay: 0.25s;
} */

/* .squid-page-current {
  background-color: var(--squid-primary-color);
  color: white;
} */
/* 
.squid-page-number:not(.squid-page-current):hover {
  background-color: rgba(53, 160, 62, 0.1);
} */

/* .squid-pagination-prev,
.squid-pagination-next {
  background-color: transparent;
  border: none;
  padding: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.squid-pagination-prev:disabled,
.squid-pagination-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
} */

.squid-pagination-status {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.75rem;
  width: 100%;
}

.squid-loading {
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.squid-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(53, 160, 62, 0.3);
  border-radius: 50%;
  border-top-color: var(--squid-primary-color);
  animation: squid-spin 1s ease-in-out infinite;
}

@keyframes squid-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Horizontal Bar Rating Chart Styles */
/* .squid-horizontal-rating-chart {
  margin: 20px 0;
  width: 100%;
  max-width: 550px;
  padding: 10px;
  border: 1px solid #f5f5f5;
  border-radius: 8px;
  display: flex;
  flex-direction: column-reverse;
} */

/* .squid-horizontal-bar-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
} */

/* .squid-star-label {
  width: 40px;
  text-align: right;
  margin-right: 10px;
  font-size: 14px;

} */

/* .squid-horizontal-bar-container {
  flex: 1;
  height: 12px;
  background-color: #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
} */

/* .squid-horizontal-bar {
  height: 100%;
  border-radius: 6px;
  min-width: 1px;
 
} */

/* Color variations for each star rating */
.squid-bar-5 {
  background-color: #4caf50;
  /* Green for 5 stars */
}

.squid-bar-4 {
  background-color: #2196f3;
  /* Blue for 4 stars */
}

.squid-bar-3 {
  background-color: #9e9e9e;
  /* Gray for 3 stars */
}

.squid-bar-2 {
  background-color: #e0e0e0;
  /* Light gray for 2 stars */
}

.squid-bar-1 {
  background-color: #f44336;
  /* Red for 1 star */
}

/* .squid-horizontal-bar {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  height: 100% !important;
  display: block !important;
} */

/* .squid-count-label {
  width: 40px;
  margin-left: 10px;
  text-align: left;
  font-size: 14px;

  font-weight: 500;
} */

/* .squid-review-sucess-msg-container {
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .squid-review-sucess-msg-container {
    max-width: 50vw;
  }
} */

/* .squid-review-success-msg-title {
  font-size: 145%;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
} */
/* .squid-review-success-msg-description {
  text-align: center;
} */

/* .squid-form-error {
  color: red;
  font-size: 1.3rem;
} */

/* modal styles */

/* Modal Container */
.squid-modal {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.75);
  /* dark background overlay */
  backdrop-filter: blur(2px);
}

/* Hidden State */
.squid-modal.hidden {
  display: none;
}

/* Modal Content */
.squid-modal-content {
  position: relative;
  /* background: #fff; */
  border-radius: 10px;
  max-width: 90vw;
  max-height: 90vh;
  padding: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  overflow: auto;
}

/* Close Button */
.squid-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

/* Media Wrapper */
.squid-modal-media-wrapper img,
.squid-modal-media-wrapper video {
  max-width: 80vw;
  max-height: 70vh;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}
