/* v2.36-mobile-comments-panel */
@media (max-width: 767px) {
  .product-page .comments-content {
    display: none;
  }

  .product-page .comments-content.active {
    display: block;
  }

  .product-page .comments-panel {
    border: 1px solid rgba(209, 250, 229, 0.95);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fffc 100%);
    box-shadow: 0 10px 24px -20px rgba(15, 23, 42, 0.45);
    padding: 12px;
  }

  .product-page .comments-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 9px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(209, 250, 229, 0.9);
  }

  .product-page .comments-panel__eyebrow {
    color: #10b981;
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .product-page .comments-panel__title {
    margin: 3px 0 0;
    color: #0f172a;
    font-size: 13px;
    font-weight: 780;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  .product-page .comments-panel__close {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: 999px;
    background: #ffffff;
    color: #64748b;
    font-size: 18px;
    line-height: 1;
  }

  .product-page .comments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 56vh;
    overflow-y: auto;
    padding-right: 2px;
  }

  .product-page .comment-card,
  .product-page .comments-empty {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 13px;
    background: #ffffff;
    padding: 9px 10px;
  }

  .product-page .comment-card__top {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
  }

  .product-page .comment-card__stars {
    color: #fbbf24;
    font-size: 10px;
    letter-spacing: -0.05em;
  }

  .product-page .comment-card__author {
    color: #0f172a;
    font-size: 10px;
    font-weight: 750;
  }

  .product-page .comment-card__date {
    margin-left: auto;
    color: #94a3b8;
    font-size: 8px;
    font-weight: 650;
  }

  .product-page .comment-card__title {
    margin-bottom: 3px;
    color: #111827;
    font-size: 10.5px;
    font-weight: 750;
    line-height: 1.2;
  }

  .product-page .comment-card__body,
  .product-page .comments-empty {
    margin: 0;
    color: #475569;
    font-size: 10px;
    font-weight: 450;
    line-height: 1.35;
  }
}

/* v2.38-mobile-rating-right-actions */
@media (max-width: 767px) {
  .product-page .mobile-rating-row {
    display: grid !important;
    grid-template-columns: auto auto 1fr auto auto !important;
    align-items: center !important;
    column-gap: 4px !important;
    width: 100% !important;
  }

  .product-page .mobile-stars {
    grid-column: 1 !important;
    justify-self: start !important;
  }

  .product-page .mobile-rating-text {
    grid-column: 2 / 5 !important;
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 4px !important;
    min-width: 0 !important;
  }

  .product-page .mobile-rating-score {
    justify-self: start !important;
    color: #111827 !important;
    font-size: 10px !important;
    font-weight: 750 !important;
    line-height: 1 !important;
  }

  .product-page .mobile-comments-group {
    grid-column: 3 !important;
    justify-self: end !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
    color: #111827 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }

  .product-page .mobile-link-reviews {
    grid-column: 5 !important;
    justify-self: end !important;
    font-size: 9px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .product-page .comments-panel__eyebrow {
    display: none !important;
  }

  .product-page .comments-panel__title {
    margin: 0 !important;
  }
}

/* v2.39-mobile-rating-flex-split */
@media (max-width: 767px) {
  .product-page .mobile-rating-row {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    gap: 4px !important;
  }

  .product-page .mobile-stars {
    flex: 0 0 auto !important;
  }

  .product-page .mobile-rating-text {
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    gap: 4px !important;
  }

  .product-page .mobile-rating-score {
    flex: 0 0 auto !important;
    color: #111827 !important;
    font-size: 10px !important;
    font-weight: 750 !important;
    line-height: 1 !important;
  }

  .product-page .mobile-comments-group {
    margin-left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
    color: #111827 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .product-page .mobile-link-reviews {
    flex: 0 0 auto !important;
    font-size: 9px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }
}

/* v2.41-mobile-comments-filters */
@media (max-width: 767px) {
  .product-page .comments-panel__header {
    align-items: center !important;
    gap: 8px !important;
  }

  .product-page .comments-panel__titlebar {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .product-page .comments-panel__title {
    color: #10b981 !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    letter-spacing: 0.035em !important;
    text-transform: uppercase !important;
  }

  .product-page .comments-panel__actions {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 5px !important;
    flex: 0 0 auto !important;
  }

  .product-page .comments-filter-wrap {
    position: relative !important;
    display: inline-flex !important;
  }

  .product-page .comments-filter-btn,
  .product-page .comments-panel__close {
    width: 26px !important;
    height: 26px !important;
    display: inline-grid !important;
    place-items: center !important;
    border: 1px solid rgba(16, 185, 129, 0.22) !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #64748b !important;
    padding: 0 !important;
    box-shadow: 0 7px 15px -14px rgba(15, 23, 42, 0.5) !important;
  }

  .product-page .comments-filter-btn svg {
    width: 13px !important;
    height: 13px !important;
  }

  .product-page .comments-filter-btn.is-active {
    background: #ecfdf5 !important;
    color: #10b981 !important;
    border-color: rgba(16, 185, 129, 0.55) !important;
  }

  .product-page .comments-filter-menu {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    right: 0 !important;
    z-index: 40 !important;
    min-width: 112px !important;
    padding: 5px !important;
    border: 1px solid rgba(209, 250, 229, 0.95) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 18px 38px -26px rgba(15, 23, 42, 0.65) !important;
  }

  .product-page .comments-filter-menu button {
    width: 100% !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #334155 !important;
    padding: 7px 8px !important;
    text-align: left !important;
    font-size: 10px !important;
    font-weight: 650 !important;
    line-height: 1 !important;
  }

  .product-page .comments-filter-menu button:hover {
    background: #ecfdf5 !important;
    color: #047857 !important;
  }

  .product-page .comments-filter-toast {
    position: absolute !important;
    right: 12px !important;
    top: 47px !important;
    z-index: 35 !important;
    padding: 6px 9px !important;
    border-radius: 999px !important;
    background: #0f172a !important;
    color: #ffffff !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    opacity: 0 !important;
    transform: translateY(-3px) !important;
    transition: opacity .16s ease, transform .16s ease !important;
  }

  .product-page .comments-filter-toast.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  .product-page .comment-card__media {
    border-radius: 999px !important;
    background: #ecfdf5 !important;
    color: #10b981 !important;
    padding: 2px 6px !important;
    font-size: 7.5px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
  }
}

/* v2.42-mobile-comments-header-and-photos */
@media (max-width: 767px) {
  .product-page .comments-panel__header {
    display: grid !important;
    grid-template-columns: 1fr !important;
    row-gap: 8px !important;
    align-items: start !important;
  }

  .product-page .comments-panel__actions {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
  }

  .product-page .comments-filter-btn,
  .product-page .comments-panel__close {
    width: 25px !important;
    height: 25px !important;
    flex: 0 0 25px !important;
  }

  .product-page .comment-card__photos {
    display: flex !important;
    gap: 6px !important;
    margin-top: 8px !important;
    overflow-x: auto !important;
    padding-bottom: 2px !important;
  }

  .product-page .comment-card__photo {
    width: 54px !important;
    height: 54px !important;
    flex: 0 0 54px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    background: #f8fafc !important;
  }

  .product-page .comment-card__photo img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
  }
}
