/* Frontend styles for Drug Rating Comments block */
.drc-rating-block {
  max-width: 250px !important;
  margin: 2rem 0;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
 
}/*
@media(min-width:1024px) {
    .drc-rating-block {
        position: fixed;
        margin:0;
        left: -4px;
        top: 30px;
        bottom: 30px;
        overflow-y: auto;
        border: 2px solid #ffdbb4;
        margin-top: 0 !important;
    }
}*/
.drc-rating-block .drc-title {
  text-align: center;
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 1.5rem;
  margin-top:0;
}
.drc-rating-block .drc-subtitle {
  text-align: center;
  margin:0;
  color: #333;
  font-size: 0.9rem;
  margin-bottom:20px;
  display:none;
}
.drc-rating-block .drc-nickname-wrapper {
  text-align: left;
  /*margin-bottom: 2rem;*/
}
.drc-rating-label>p {
margin:0;
}
.drc-rating-label .product img {

width: 100px;
    height: auto;
    vertical-align: middle;
    display: inline-block;
    margin: 0 10px;
}
.drc-rating-label i {
margin:0 3px;
}    
    
.drc-rating-block h4:nth-of-type(1) {
display:none;
}
.drc-rating-block .drc-nickname-wrapper .drc-nickname-label {
  display: inline-block;
  margin-right: 1rem;
  color: #555;
  font-weight: 500;
  font-size:16px;
}
.drc-rating-block .drc-nickname-wrapper .drc-nickname-input {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  max-width: 250px;
  text-align: center;
  color: #666;
  transition: all 0.3s ease;
  background:#fff;
}
.drc-rating-block .drc-nickname-wrapper .drc-nickname-input:focus {
  outline: none;
  border-color: #2196F3;
  color: #333;
}
.drc-rating-block .drc-nickname-wrapper .drc-nickname-input[readonly] {
  background: #f5f5f5;
  cursor: not-allowed;
}
.drc-rating-block .drc-columns {
  /*display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;*/
}
@media (max-width: 768px) {
  .drc-rating-block .drc-columns {
    grid-template-columns: 1fr;
  }
}
.drc-rating-block .drc-column h4 {
  margin-bottom: 1rem;
  color: #555;
  font-size: 1.2rem;
}
.drc-rating-block .drc-rating-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}
.drc-rating-block .drc-rating-item:nth-of-type(1) {
padding-top:0;
}


.drc-rating-block .drc-rating-item:last-child {
  border-bottom: none;
}
.drc-rating-block .drc-rating-item .drc-rating-label {
  flex: 1;
  color: #666;
  font-size: 0.95rem;
}
.drc-rating-block .drc-rating-item .drc-rating-buttons {
  display: flex;
  gap: 0.5rem;
}
.drc-rating-block .drc-thumb {
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
}
.drc-rating-block .drc-thumb:hover {
  transform: scale(1.1);
}
.drc-rating-block .drc-thumb.drc-thumb-up:hover, .drc-rating-block .drc-thumb.drc-thumb-up.selected {
  background: #4CAF50;
  border-color: #4CAF50;
  color: #fff;
}
.drc-rating-block .drc-thumb.drc-thumb-down:hover, .drc-rating-block .drc-thumb.drc-thumb-down.selected {
  background: #f44336;
  border-color: #f44336;
  color: #fff;
}
.drc-rating-block .drc-thumb i {
  font-size: 1.2rem;
}
.drc-rating-block .drc-comment-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  resize: vertical;
  font-family: inherit;
  height:80px;
  box-sizing:border-box;
}
.drc-rating-block .drc-comment-textarea:focus {
  outline: none;
  border-color: #2196F3;
}
.drc-rating-block .drc-char-counter {
  text-align: right;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #999;
}
.drc-rating-block .drc-char-counter.valid {
  color: #4CAF50;
}
.drc-rating-block .drc-form-footer {
  text-align: center;
}
.drc-rating-block .drc-terms-wrapper {
  margin-bottom: 1rem;
}
.drc-rating-block .drc-terms-wrapper .drc-terms-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #666;
}
.drc-rating-block .drc-terms-wrapper .drc-terms-label input[type=checkbox] {
  width: 18px;
  height: 18px;
}
.drc-rating-block .drc-terms-wrapper .drc-terms-label a {
  color: #2196F3;
  text-decoration: none;
}
.drc-rating-block .drc-terms-wrapper .drc-terms-label a:hover {
  text-decoration: underline;
}
.drc-rating-block .drc-submit-btn {
  background: #2196F3;
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.drc-rating-block .drc-submit-btn:hover {
  background: #1976D2;
}
.drc-rating-block .drc-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.drc-rating-block .drc-messages {
  margin: 0.5rem auto;
  padding: 0.5rem;
  border-radius: 4px;
  text-align: center;
  display: none;
    font-size:16px;
}
.drc-rating-block .drc-messages.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}
.drc-rating-block .drc-messages.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}
.drc-rating-block .drc-messages.info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
  display: block;

}
.drc-rating-block .drc-messages p {
  margin: 0;
}
.drc-rating-block.drc-form-disabled .drc-thumb {
  cursor: not-allowed;
  opacity: 0.7;
}
.drc-rating-block.drc-form-disabled .drc-thumb:hover {
  transform: none;
}
.drc-rating-block.drc-form-disabled .drc-thumb.selected {
  opacity: 1;
}
.drc-rating-block.drc-form-disabled .drc-comment-textarea {
  background: #f5f5f5;
  cursor: not-allowed;
}
.drc-rating-block.drc-form-disabled .drc-comment-textarea:focus {
  border-color: #ddd;
}
.drc-rating-block.drc-form-disabled .drc-terms-checkbox {
  cursor: not-allowed;
}
.drc-rating-block.drc-form-disabled .drc-submit-btn {
  background: #999;
  cursor: not-allowed;
}
.drc-rating-block.drc-form-disabled .drc-submit-btn:hover {
  background: #999;
}