/* Main container */
.tec-content {
    font-family: 'Samsung One', Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #000;
  }
  
  .tec-summary-actions-and-reviews {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
  }
  
  /* Left column - Reviews */
  .tec-reviews {
    flex: 2;
    min-width: 320px;
  }
  
  .tec-summary-actions {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .tec-summary-sort-selector {
    position: relative;
    width: 180px;
  }
  
  .tec-summary-sort-selector-select {
    width: 100%;
  }
  
  .tec-summary-sort-selector-real-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    cursor: pointer;
  }
  
  /* Review item */
  .tec-review {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    margin-bottom: 10px;
  }
  
  .tec-review-header {
    display: flex;
    flex-direction: column;
  }
  
  .tec-review-rating-and-author {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
  }
  
  .tec-review-rating {
    display: flex;
    margin-right: 15px;
  }
  .tec-star {
    width: 20px;
    height: 20px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: contain;
}

    /* Full Star */
    .tec-star-on {
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3e%3cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z' fill='%23FFB800'/%3e%3c/svg%3e");
    }

    /* Half Star */
    .tec-star-half {
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3e%3cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2V17.27z' fill='%23FFB800'/%3e%3cpath d='M12 17.27L5.82 21l1.64-7.03L2 9.24l7.19-.61L12 2V17.27z' fill='%23E0E0E0'/%3e%3c/svg%3e");
    }

    /* Empty Star */
    .tec-star-off {
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3e%3cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z' fill='%23E0E0E0'/%3e%3c/svg%3e");
    }

  .tec-review-author {
    font-weight: bold;
    font-size: 16px;
    margin-right: 15px;
  }
  
  .tec-review-date {
    color: #777;
    font-size: 14px;
  }
  
  /* Review content */
  .tec-review-content {
    display: flex;
    flex-wrap: wrap;
  }
  
  .tec-review-content-main {
    flex: 1;
    min-width: 300px;
  }
  
  .tec-review-content-details {
    flex: 0 0 200px;
  }
  
  .tec-review-body-pros-cons {
    margin-bottom: 20px;
  }
  
  .tec-review-text {
    margin-bottom: 15px;
  }
  
  .tec-review-text-label {
    font-weight: bold;
    margin-bottom: 5px;
  }
  
  .tec-review-text-content {
    line-height: 1.5;
  }
  
  .tec-review-recommended {
    display: flex;
    align-items: center;
    margin: 15px 0;
    color: #008800;
  }
  
  .tec-review-recommended-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3e%3cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z' fill='%23008800'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: contain;
  }
  
  .tec-review-rating-details {
    margin-top: 10px;
  }
  
  .tec-review-rating-detail {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
  }
  
  .tec-review-rating-detail-label {
    width: 100px;
    font-size: 14px;
  }
  
  .tec-review-rating-detail-value {
    display: flex;
  }
  
  .tec-review-rating-detail-value .tec-star-on {
    width: 15px;
    height: 15px;
  }
  
  /* Review footer */
  .tec-review-footer {
    margin-top: 15px;
  }
  
  .tec-review-actions {
    display: flex;
  }
  
  .tec-review-vote {
    display: flex;
    gap: 10px;
  }
  
  .tec-review-action-button {
    display: flex;
    align-items: center;
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
  }
  
  .tec-review-vote-button-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
  }
  
  .tec-review-vote-like-button-icon {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3e%3cpath d='M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z' fill='%23555'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: contain;
  }
  
  .tec-review-vote-dislike-button-icon {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3e%3cpath d='M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z' fill='%23555'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: contain;
  }
  
  /* Pagination */
  .tec-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
  }
  
  .tec-pagination-item {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    border-radius: 50%;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #000;
    cursor: pointer;
  }
  
  .tec-pagination-current-page {
    background-color: #ffc107;
    color: white;
    border-color: #ffc107;
  }
  
  /* Right column - Summary */
  .tec-content-summary {
    flex: 1;
    min-width: 280px;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
  }
  
  .tec-content-rating {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .tec-content-rating-stars {
    display: flex;
    margin-right: 10px;
  }
  
  .tec-content-rating-value {
    font-size: 24px;
    font-weight: bold;
    margin-right: 5px;
  }
  
  .tec-content-rating-disclaimer {
    color: #777;
    font-size: 14px;
  }
  
  /* Rating distribution */
  .tec-content-rating-distribution {
    margin-bottom: 30px;
  }
  
  .tec-content-rating-distribution-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
  }
  
  .tec-content-rating-distribution-item-label {
    width: 70px;
    font-size: 14px;
  }
  
  .tec-content-rating-distribution-item-bar {
    flex: 1;
    height: 12px;
    background-color: #eee;
    border-radius: 10px;
    margin: 0 10px;
    overflow: hidden;
  }
  
  .tec-content-rating-distribution-item-bar-progress {
    height: 100%;
    background-color: #FFB800;
    border-radius: 10px;
  }
  
  .tec-content-rating-distribution-item-value {
    width: 40px;
    text-align: right;
    font-size: 14px;
  }
  
  /* Details section */
  .tec-summary-details {
    margin-bottom: 30px;
  }
  
  .tec-summary-details-param {
    margin-bottom: 15px;
  }
  
  .tec-summary-details-param-label {
    margin-bottom: 8px;
    font-size: 14px;
  }
  
  .tec-summary-details-param-score {
    display: flex;
    gap: 5px;
  }
  
  .tec-summary-details-param-step {
    width: 20%;
    height: 12px;
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
  }
  
  .tec-summary-details-param-step-active {
    background-color: #eee;
  }
  
  .tec-summary-details-param-step-inner {
    width: 100%;
    height: 100%;
  }
  
  .tec-summary-details-param-step-active .tec-summary-details-param-step-inner {
    background-color: #ffc107;
  }
  
  /* Button */
  .tec-summary-actions-primary-button {
    width: 100%;
    padding: 12px 20px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .tec-summary-actions-and-reviews {
      flex-direction: column-reverse;
    }
    
    .tec-content-summary {
      width: 100%;
    }
    
    .tec-review-content {
      flex-direction: column;
    }
    
    .tec-review-content-details {
      margin-top: 20px;
    }
  }

  /* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px 30px;
  border-radius: 8px;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
  from {opacity: 0; transform: translateY(-50px);}
  to {opacity: 1; transform: translateY(0);}
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #333;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

/* Rating Stars */
.rating-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rating-category {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.rating-category p {
  width: 120px;
  margin: 0;
  font-weight: 500;
}

.star-rating {
  display: flex;
  gap: 5px;
}

.star-rating i {
  color: #ddd;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.2s;
}

.star-rating i:hover,
.star-rating i.active {
  color: #FFD700;
}

/* Checkbox Styling */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.checkbox-group label {
  margin-bottom: 0;
  cursor: pointer;
}

/* Submit Button */
.submit-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: block;
  width: 100%;
}

.submit-btn:hover {
  background-color: #45a049;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 15px;
  }
}

/* ── Figma-style simplified review modal ── */
.review-modal-content {
  max-width: 420px;
  padding: 28px 24px 24px;
  border-radius: 16px;
}

.review-modal-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  margin-top: 0;
}

/* Stars centered at top */
.review-stars-group {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.review-stars-group .star-rating {
  justify-content: center;
  gap: 8px;
}

.review-stars-group .star-rating i {
  font-size: 32px;
}

/* Clean inputs — no label, placeholder only */
.review-modal-content .form-control {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  background: #fafafa;
  width: 100%;
  box-sizing: border-box;
}

.review-modal-content .form-control:focus {
  outline: none;
  border-color: #aaa;
  background: #fff;
}

.review-modal-content textarea.form-control {
  min-height: 110px;
  resize: none;
}

/* Black submit button */
.review-submit-btn {
  background-color: #111 !important;
  color: #fff !important;
  border-radius: 10px !important;
  padding: 16px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px;
}

.review-submit-btn:hover {
  background-color: #333 !important;
}
