/*Global*/

/* Admin*/
body.node-type-review #fieldset-advanced-options {
  display: none;
}

body.role-product-admin #block-user-1 .create-content,
body.role-store-administrator #block-user-1 .create-content,
body.role-herkimer #block-user-1 .create-content,
body.is-store-maintenance #block-user-1 .create-content {
  display: block !important;
}
.role-authenticated-user #block-user-1 .create-content {
  display: none;
}
/*Moderation Page*/
.view-product-review-moderation .views-field-field-rating-rating {
  width: 100px;
}

body.node-type-product.unreviewable .fivestar-static-form-item {
  display: none !important;
}
body.node-type-product.unreviewable.reviewed .fivestar-static-form-item {
  display: block !important;
}

/*Product Rating*/
body.node-type-product.reviewable #content-area .node .fivestar-static-form-item {
  flex-basis: 100%;
  max-width: 100%;
  width: 100%;
  order: -1;
  display: flex;
  flex-flow: row;
  justify-content: center;
  /*margin: 0 0 0 8px;*/
}
body.node-type-product.reviewable #content-area .node .login_register {
  padding: 0;
  margin: 10px 0;
  line-height: 2;
  float: left;
  width: 100%;
}
body.node-type-product.reviewable #content-area .node .login_register span {
  font-size: 12px;
}
body.node-type-product.reviewable #content-area .node .login_register .review-login , 
body.node-type-product.reviewable #content-area .node .login_register .review-register {
  color: #0000EE;
}
body.node-type-product.reviewable #content-area .node .login_register .review-login:visited , 
body.node-type-product.reviewable #content-area .node .login_register .review-register:visited {
  color: #551A8B;
}

/*Comments */
#comments,
.anonCustomerReviewTitle {
  border-top: 1px solid #e7e7e7;
  line-height: 19px; 
}
#comments .customerReviewTitle {
  display: block;
  margin: 15px 0 0 0;
  font-size: 18px;
  color: #448151;
  font-weight: 600;
  line-height: 1.3;
}
body.not-logged-in .anonCustomerReviewTitle {
  display: block;
  margin: 15px 0 0 0;
  padding: 15px 0 0 0;
  font-size: 18px;
  color: #448151;
  font-weight: 600;
  line-height: 1.3;
  clear: both;
}
#comments .customerReviewAdd {
  cursor: pointer;
  margin: 10px 0 0 0;
  font-weight: bold;
}
#comments .customerReviewAdd #fieldset-advanced-options {
  display: none;
}
body.not-logged-in #comments .customerReviewAddLink,
body.reviewed #comments .customerReviewAddLink {
  display: none;
}
#comments .customerReviewAddLink {
  font-size: 12px;
}
#comments .box {
  margin: 10px 0 0 0;
  display: none;
}
#comments .box h2 {
  display: none;
}
body.unreviewable #comments .box {
  display: none !important;
}
.view-nodecomments .node {
  display: flex;
  flex-flow: row wrap;
  width: 100%;
  align-items: center;
  margin: 10px 0;
}
.view-nodecomments .node .content {
  margin: 0 0 5px 0 !important;
  flex-basis: 100%;
  max-width: 100%;
}
.view-nodecomments .node .field-type-fivestar {
  max-width: 90px;
  order: -1;
}
.fivestar-widget-static .star:hover {
  cursor: pointer;

}
body.not-logged-in .view-nodecomments .node .field-type-fivestar .fivestar-widget-static {
  flex-basis: auto;
  width: auto;
}
.view-nodecomments .node h2 {
  margin: 0;
}
.view-nodecomments .node h2 a {
  font-size: 14px;
  cursor: default;
  color: #333;
  pointer-events: none;
}
.view-nodecomments .node h2 a:hover {
  color: #333;
}
.view-nodecomments .node .meta {
  font-size: 12px !important;
  margin: 0;
  flex-basis: 100%;
  max-width: 100%;
}
.view-nodecomments .links li {
  padding: 0;
}
.view-nodecomments .links li {
  font-size: 12px;
}
.fivestar-widget .star, 
.fivestar-widget .star a {
  transition: unset;
}
#edit-field-review-0-value-wrapper .resizable-textarea .grippie {
  display: none;
}

/*Category View*/
body.page-taxonomy .view-taxonomy-term .login_register {
  display: none;
}
body.page-taxonomy .view-taxonomy-term .fivestar-widget .star,
body.page-taxonomy .view-taxonomy-term .fivestar-widget a {
  pointer-events: none;

}
body.page-taxonomy .view-taxonomy-term .fivestar-widget .star.on {
  background: url(images/star.gif) no-repeat 0 -32px;
}
body.page-taxonomy .view-taxonomy-term .fivestar-widget a {
  background: none;
}
body.page-taxonomy .view-taxonomy-term .taxoReviewAnon,
body.page-taxonomy .view-taxonomy-term .taxoReviewLoggedIn,
body.page-taxonomy .view-taxonomy-term .taxoReviewAnon .description,
body.page-taxonomy .view-taxonomy-term .taxoReviewLoggedIn .description {
  font-size: 12px;
  white-space: nowrap;
  margin: 5px 0;
  display: flex !important;
  justify-content: center;
  width: 100%;
}
body.page-taxonomy .view-taxonomy-term .taxoReviewAnon .fivestar-widget-static,
body.page-taxonomy .view-taxonomy-term .taxoReviewLoggedIn .fivestar-widget-static {
  display: flex;
  justify-content: center;
  width: 100%;
}

/*Narrow*/
@media (min-width: 740px) and (min-device-width: 740px) {
  body.node-type-product.reviewable #content-area .node .fivestar-static-form-item {
/*    margin: 0 0 0 10px;
    justify-content: flex-start;*/
  }
  body.page-taxonomy .view-taxonomy-term .taxoReviewAnon,
  body.page-taxonomy .view-taxonomy-term .taxoReviewLoggedIn,
  body.page-taxonomy .view-taxonomy-term .taxoReviewAnon .description,
  body.page-taxonomy .view-taxonomy-term .taxoReviewLoggedIn .description,
  body.page-taxonomy .view-taxonomy-term .taxoReviewAnon .fivestar-widget-static, 
  body.page-taxonomy .view-taxonomy-term .taxoReviewLoggedIn .fivestar-widget-static {
    justify-content: flex-start;
  }
}