/**
 * Copyright since 2026 JustIdea Agency.
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please contact us for extra customization service at an affordable price
 *
 * @author    JustIdea Agency <contact@justidea.agency>
 * @copyright 2026-2026 JustIdea Agency
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 */

#ppproductcomments-footer #ppproductcomments-form-container,
#ppproductcomments-footer #ppproductcomments-question-container {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  box-sizing: border-box;
}

#product-comments-list-header:has(> #ppproductcomments-footer) {
  width: 100%;
  min-width: 0;
  scroll-margin-top: 100px;
}


a.ppc-product-ask-question {
  color: #222222;
  text-decoration: none;
}

a.ppc-product-ask-question:hover,
a.ppc-product-ask-question:focus-visible {
  color: #c3852a;
  text-decoration: underline;
}

/* Match the native reviews row: below variants, immediately above the name. */
.product-miniature > .ppproductcomments-list-stars {
  justify-content: flex-start;
  flex: 0 0 auto;
  min-height: 24px;
  margin: 0;
  padding: 0;
}

.ppproductcomments-additional-info .ppc-stars__icon {
  width: 24px;
  height: 24px;
}

.product-miniature > .ppproductcomments-list-stars .ppc-stars__icon {
  width: 18px;
  height: 18px;
}

.ppproductcomments-additional-info {
  gap: 0.35rem 0.5rem;
  margin: 0;
}

.ppproductcomments-additional-info .ppc-product-add-comment,
.ppproductcomments-additional-info .ppc-product-ask-question {
  width: auto;
  min-height: 0;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: #222222;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.25;
  text-decoration: none;
}

.ppproductcomments-additional-info .ppc-product-add-comment__icon {
  display: none;
}

.ppproductcomments-additional-info .ppc-product-add-comment:hover,
.ppproductcomments-additional-info .ppc-product-add-comment:focus-visible,
.ppproductcomments-additional-info .ppc-product-ask-question:hover,
.ppproductcomments-additional-info .ppc-product-ask-question:focus-visible {
  background: none;
  color: #c3852a;
  text-decoration: underline;
}

#ppproductcomments-ask-btn,
#ppproductcomments-ask-btn:hover,
#ppproductcomments-ask-btn:focus-visible {
  border-color: transparent;
  background: none;
  color: #c3852a;
  box-shadow: none;
}

#ppproductcomments-ask-btn:hover,
#ppproductcomments-ask-btn:focus-visible {
  color: #222222;
  text-decoration: underline;
}

/* Theme button pseudo-elements must not paint behind text-only actions. */
.ppproductcomments-additional-info .ppc-product-add-comment::before,
.ppproductcomments-additional-info .ppc-product-add-comment::after,
#ppproductcomments-ask-btn::before,
#ppproductcomments-ask-btn::after {
  content: none;
}

/* Mouse focus remains after click, even when hover and focus-visible are off. */
#ppproductcomments-ask-btn svg {
  color: inherit;
}

#ppproductcomments-ask-btn svg path,
#ppproductcomments-ask-btn svg circle {
  stroke: currentColor;
}

#ppproductcomments-footer .ppproductcomments-required {
  color: #c00;
}

#ppproductcomments-footer .ppproductcomments-form__grid {
  row-gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 0;
}

#ppproductcomments-footer .ppproductcomments-form__grid > .ppproductcomments-form__field {
  margin-bottom: 0;
}

#ppproductcomments-footer .ppproductcomments-form__grid .form-control {
  height: auto;
}

/* The empty state has no rating distribution to fill the second grid column. */
#ppproductcomments-footer .ppc-review-summary__empty {
  grid-column: 1 / -1;
}

#ppproductcomments-footer .ppproductcomments-form__captcha .pprecaptcha-wrapper {
  justify-content: flex-start;
}

#ppproductcomments-footer .ppproductcomments-form__captcha .pprecaptcha-widget {
  margin-inline: 0;
  transform-origin: left top;
}
