/* WooCommerce Review Form */
.webfluence-single-product__rating {
  margin-bottom: 1.5em;
  font-size: 1em;
  margin-right: auto;
}

.webfluence-single-product__rating-input {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.webfluence-single-product__rating-label[for]:hover {
  cursor: pointer;
}

.webfluence-single-product__rating-input,
.webfluence-single-product__rating-label {
  font-size: 20px;
  margin: 0 5px;
}

/*more space on touch devices */
@media (pointer: none) or (pointer: coarse) or (max-width: 600px) {
  .webfluence-single-product__rating-input,
  .webfluence-single-product__rating-label {
    margin: 0 10px;
  }
}

.webfluence-single-product__rating-container {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.webfluence-single-product__rating-label {
  color: #ccc;
  border-bottom: 2px solid transparent;
}

.webfluence-single-product__rating-input:focus
  + .webfluence-single-product__rating-label,
.webfluence-single-product__rating-input:hover
  + .webfluence-single-product__rating-label {
  border-bottom: 2px solid #454545;
}

.webfluence-single-product__rating-input:focus
  ~ .webfluence-single-product__rating-label,
.webfluence-single-product__rating-input:hover
  ~ .webfluence-single-product__rating-label {
  color: orange;
}

.webfluence-single-product__rating-input:checked
  ~ .webfluence-single-product__rating-label {
  color: orange;
}

.webfluence-single-product__rating-input:focus:not(:focus-visible)
  + .webfluence-single-product__rating-label {
  border-bottom: 2px solid transparent;
}

.webfluence-single-product__review-form-wrapper.review-order
  .comment-form-author.form-has--not-mail-field {
  float: none;
  width: auto;
  max-width: 40ch;
}

body.single-product
  .webfluence-single-product__review-form-wrapper
  #lang-comments-link {
  display: none;
}

@media (min-width: 800px) {
  body.single-product .webfluence-single-product__review-form-wrapper {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 25px;
    border-radius: 2px;
    box-shadow: 6px 8px 20px 0 rgba(0, 0, 0, 0.1);
  }
}

body.single-product #commentform {
  float: none;
}

.webfluence-single-product__review-form-heading {
  font-size: 16px;
  margin: 0 0 20px;
  text-transform: uppercase;
  font-weight: bold;
}

.webfluence-single-product__review-form-heading__attr_list {
  text-transform: capitalize;
  font-weight: normal;
}

.webfluence-single-product__review-form-wrapper input[type="text"],
.webfluence-single-product__review-form-wrapper input[type="number"],
.webfluence-single-product__review-form-wrapper input[type="email"],
.comment-form-webfluence_variant-select select {
  width: 100%;
  font-size: 17px;
  border: 2px solid #f4f4f4;
  background-color: #f4f4f4;
  height: 43px;
  font-weight: normal;
  text-transform: none;
}

.comment-form-webfluence_variant-select select {
  padding: 10px 12px;
  line-height: 1;
}

.comment-form-webfluence_variant-select select:hover {
  box-shadow: none;
}

.comment-form-webfluence_variant-select select option {
  text-transform: capitalize;
}

.webfluence-single-product__review-form-wrapper textarea {
  width: 100%;
  font-size: 17px;
  border: 2px solid #f4f4f4;
  background-color: #f4f4f4;
  font-weight: normal;
  text-transform: none;
}

@media (min-width: 650px) {
  .webfluence-single-product-review__bike-field-row {
    display: flex;
    align-items: flex-end;
  }

  .webfluence-single-product-review__bike-field-row
    .comment-form-webfluence_bike_brand {
    flex-grow: 1;
    max-width: 100%;
  }

  .webfluence-single-product-review__bike-field-row
    .comment-form-webfluence_bike_model {
    flex-grow: 1;
    max-width: 100%;
    margin-left: 20px;
    margin-right: 20px;
  }
}

.webfluence-single-product-review__bike-field-row
  .comment-form-webfluence_bike_year {
  flex-grow: 0;
  max-width: calc(8ch + 30px);
}

/* Product Rating Page */
body.webfluence-product-rating-page h1 {
  margin: 50px 0 0;
}

.webfluence-product-rating__intro p:first-child {
  margin-top: 10px;
}

.webfluence-product-rating__intro a {
  color: inherit;
  text-decoration: underline;
}

.webfluence-product-rating__intro a:hover {
  color: inherit;
  text-decoration: none;
}

body.webfluence-product-rating-page h1::after {
  display: none;
}

body.webfluence-product-rating-page #footer-action-bar {
  display: none;
}
.webfluence-product-rating__wrapper {
  margin-top: 100px;
  margin-bottom: 100px;
}

body.webfluence-product-rating-page
  .webfluence-product-rating__hr:last-of-type {
  display: none;
}

.webfluence-product-rating_meta {
  display: flex;
  flex-direction: column-reverse;
}

@media (min-width: 650px) and (max-width: 899px) {
  .webfluence-product-rating_meta {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
  }

  .webfluence-product-rating__title {
    padding-left: 20px;
  }
}

.webfluence-product-rating_form-area {
  padding: 50px 0;
}

body.webfluence-product-rating-page .comment-notes {
  display: none;
}

@media (min-width: 800px) {
  body.webfluence-product-rating-page #content > .entry-content {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 900px) {
  body.webfluence-product-rating-page {
    background-color: #ededed;
  }

  .webfluence-product-rating__wrapper {
    display: flex;
    align-items: flex-start;
  }

  .webfluence-product-rating_meta {
    flex-grow: 0;
    max-width: 150px;
    width: 150px;
    background-color: transparent;
    position: sticky;
    top: calc(76px + 25px);
    padding-bottom: 25px;
  }

  .webfluence-product-rating__title {
    font-size: 16px !important;
    margin: 0 !important;
  }

  .webfluence-product-rating__image {
    max-width: 100px;
  }

  .webfluence-product-rating_form-area {
    flex-grow: 1;
    max-width: 100%;
    width: calc(100% - 75px - 150px);
    margin-left: 75px;
    background-color: #fff;
    padding: 20px;
  }
}

.webfluence-single-product__review-form-wrapper
  label.german-market-privacy-declaration-product-review {
  margin-left: 0;
}

time.webfluence-wc-comment__published-date {
  display: none !important;
}

.webfluence-wc-product__commentlist .atomion-review-count {
  display: none !important;
}

/* product page & rate order page, ordder seems to change if user is logged in so wee nee to adress both cases */
form p.comment-form-is-anonymous:has(~ p.comment-form-privacy-policy),
form p.comment-form-privacy-policy:has(~ p.comment-form-is-anonymous) {
  margin-top: 20px;
  margin-bottom: 0;
}

form p.comment-form-is-anonymous ~ p.comment-form-privacy-policy,
form p.comment-form-privacy-policy ~ p.comment-form-is-anonymous {
  margin-top: 4px;
}
