/**
 * Proprietary License - All Rights Reserved
 *
 * Copyright (c) 2026 Hardware Online
 *
 * All rights reserved. This software and its source files are the
 * intellectual property of Hardware Online. Authored by gommergab.
 *
 * Unauthorized copying, modification, distribution or use of this
 * software, in whole or in part, is strictly prohibited without the
 * prior written permission of Hardware Online.
 *
 * This software is provided "as is", without warranty of any kind,
 * express or implied, including but not limited to the warranties of
 * merchantability, fitness for a particular purpose and non-infringement.
 *
 * @author gommergab
 * @copyright 2026 Hardware Online
 * @license Proprietary
 */

.ho-pf-product-rating a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
}

.ho-pf-product-rating svg {
  height: 16px;
}

.ho-pf-product-rating__count {
  font-size: 0.8rem;
  color: var(--sub);
}

.ho-pf-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  min-width: 0;
}

.ho-pf-block__head .tag-title {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ho-pf-rating,
.ho-pf-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--sub);
  font-size: 0.9rem;
  min-width: 0;
}

.ho-pf-card__meta strong,
.ho-pf-card__meta span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ho-pf-card__meta strong {
  color: var(--ink);
}

.ho-pf-list {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.ho-pf-card {
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tile);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ho-pf-card__text {
  margin: 0.6rem 0 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ho-pf-stars svg {
  height: 16px;
}

.ho-pf-answers {
  margin-top: 0.75rem;
  border-left: 3px solid var(--brand-light);
  padding-left: 0.75rem;
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.ho-pf-answer {
  min-width: 0;
  max-width: 100%;
}

.ho-pf-answer p {
  margin: 0.25rem 0 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ho-pf-actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}

.ho-pf-actions .btn,
.ho-pf-actions button {
  max-width: 100%;
}

.ho-pf-form {
  display: grid;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem;
  background: var(--bg-soft);
}

.ho-pf-dialog {
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(680px, calc(100% - 2rem));
  max-height: 92vh;
  background: var(--bg);
  color: var(--ink);
}

.ho-pf-dialog::backdrop {
  background: color-mix(in srgb, var(--ink) 50%, transparent);
}

.ho-pf-dialog .ho-pf-form {
  border: 0;
  border-radius: inherit;
  max-height: 92vh;
  overflow: auto;
}

.ho-pf-dialog__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.ho-pf-dialog__header h4 {
  margin: 0;
}

.ho-pf-dialog__header .drawer-close {
  flex-shrink: 0;
}

.ho-pf-form textarea {
  min-height: 100px;
  resize: vertical;
}

.ho-pf-counter {
  font-size: 0.8rem;
  color: var(--sub);
}

.ho-pf-counter.is-limit {
  color: var(--error);
}

.ho-pf-alert {
  padding: 0.75rem;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ho-pf-alert--info {
  background: var(--bg-soft);
}

.ho-pf-alert--success {
  background: color-mix(in srgb, var(--ok) 14%, var(--bg));
  color: var(--ok);
}

.ho-pf-alert--error {
  background: color-mix(in srgb, var(--error) 14%, var(--bg));
  color: var(--error);
}

.ho-pf-error {
  color: var(--error);
  font-size: 0.85rem;
  margin: 0;
}

.ho-pf-stars-input {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ho-pf-star-btn {
  border: 0;
  background: transparent;
  color: var(--sub);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

/* Override Sayaka global `button` styles (primary hover bg, focus ring). */
.ho-pf-stars-input .ho-pf-star-btn:hover,
.ho-pf-stars-input .ho-pf-star-btn:focus,
.ho-pf-stars-input .ho-pf-star-btn:focus-visible {
  background: transparent;
  background-color: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.ho-pf-stars-input .ho-pf-star-btn:hover {
  color: var(--warn);
}

.ho-pf-stars-input .ho-pf-star-btn:focus:not(:focus-visible) {
  outline: none;
}

.ho-pf-stars-input .ho-pf-star-btn:focus-visible {
  outline: 2px solid var(--warn);
  outline-offset: 2px;
}

.ho-pf-stars-input .ho-pf-star-btn:active {
  transform: none;
  box-shadow: none;
}

.ho-pf-star-btn.is-active {
  color: var(--warn);
}