.shared-reviews-wrapper {
    max-width: 100%;
    margin-inline: auto;
    border: 1px solid #e5e5dd;
    padding: 24px;
    border-radius: 8px;
}

.shared-reviews-wrapper.thankyou-message {
    text-align: center;
}

.shared-reviews-wrapper h2:not([class]) {
    margin-top: 0;
}

.shared-reviews-wrapper form .form-group input:not([type="checkbox"]),
.shared-reviews-wrapper form .form-group textarea {
  position: relative;
  max-width: 100%;
  width: 100%;
  border: 1px solid #c0c1c3;
  border-radius: .5rem;
  padding: .5rem;
  min-height: 56px;
  color: #808284;
  margin: 0;
}

.shared-reviews-wrapper form label,
.shared-reviews-wrapper form .form-group .form-group__label {
  margin: 0 0 5px 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 160%;
  letter-spacing: -.014em;
  color: #58595b;
}

.shared-reviews-wrapper form h4 {
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 160%;
  letter-spacing: -.014em;
  color: #58595b;
}

.shared-reviews-wrapper form .btn--secondary {
    width: 100%;
    border-radius: 22px;
}

.shared-reviews-wrapper form .form-item-certify-compliance,
.shared-reviews-wrapper form .form-item-vote-compliance,
.shared-reviews-wrapper form .form-item-former-customer {
    display: flex;
}

.shared-reviews-wrapper form .form-item-certify-compliance input,
.shared-reviews-wrapper form .form-item-vote-compliance input,
.shared-reviews-wrapper form .form-item-former-customer input {
    position: relative;
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    width: 1.5rem;
    min-width: 1.5rem;
    height: 1.5rem;
    margin-top: .25rem;
    margin-right: .5rem;
    margin-bottom: 0;
    border-radius: .25rem;
    transition: all .16s ease-in-out;
    font-size: 1rem;
    line-height: 1.5rem;
    color: #565e66;
    border: 1px solid #abbccc;
}

.shared-reviews-wrapper form .form-item-certify-compliance label,
.shared-reviews-wrapper form .form-item-vote-compliance label,
.shared-reviews-wrapper form .form-item-former-customer label {
    display: inline;
    font-weight: 400;
    color: #6e6f71;
}

.shared-reviews-wrapper .notification__email {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.shared-reviews-wrapper .notification__email .icon {
  vertical-align: text-top;
  margin-right: .25rem;
}

.shared-reviews-wrapper form .form-wrapper .form-wrapper:not(.field--widget-rate-widget),
.shared-reviews-wrapper form .form-item-certify-compliance,
.shared-reviews-wrapper form .form-item-vote-compliance,
.shared-reviews-wrapper form .modal__link,
.shared-reviews-wrapper form .fields__required,
.shared-reviews-wrapper form .authentic-reviews,
.shared-reviews-wrapper form .form-item-former-customer {
    display: none;
}

.shared-reviews-wrapper form .field--widget-rate-widget label,
.shared-reviews-wrapper form .field--widget-email-default label,
.shared-reviews-wrapper form .form-actions {
    display: none;
}


.shared-reviews-wrapper .selectra-shared-reviews-post-review.active .form-wrapper:not(.field--widget-rate-widget),
.shared-reviews-wrapper .selectra-shared-reviews-post-review.active .form-item-certify-compliance,
.shared-reviews-wrapper .selectra-shared-reviews-post-review.active .form-item-vote-compliance,
.shared-reviews-wrapper .selectra-shared-reviews-post-review.active .modal__link,
.shared-reviews-wrapper .selectra-shared-reviews-post-review.active .fields__required,
.shared-reviews-wrapper .selectra-shared-reviews-post-review.active .authentic-reviews,
.shared-reviews-wrapper .selectra-shared-reviews-post-review.active .form-item-former-customer  {
    display: block;
}

.shared-reviews-wrapper .selectra-shared-reviews-post-review.active .form-item-certify-compliance,
.shared-reviews-wrapper .selectra-shared-reviews-post-review.active .form-item-vote-compliance,
.shared-reviews-wrapper .selectra-shared-reviews-post-review.active .form-item-former-customer {
    display: flex;
}

.shared-reviews-wrapper svg.star {
    cursor: pointer;
    background-color: #dcdce6;
    height: 42px;
    width: 40px;
    padding: .5rem;
    fill: #fff;
}

.shared-reviews-wrapper .stars-filled-1 svg.star.on,
.shared-reviews-wrapper .stars-filled-1 svg.star.star-filled {
    background-color: #ff3722;
}

.shared-reviews-wrapper .stars-filled-2 svg.star.on,
.shared-reviews-wrapper .stars-filled-2 svg.star.star-filled {
    background-color: #ff8621
}

.shared-reviews-wrapper .stars-filled-3 svg.star.on,
.shared-reviews-wrapper .stars-filled-3 svg.star.star-filled {
    background-color: #ffce00
}

.shared-reviews-wrapper .stars-filled-4 svg.star.on,
.shared-reviews-wrapper .stars-filled-4 svg.star.star-filled {
    background-color: #72cf10
}

.shared-reviews-wrapper .stars-filled-5 svg.star.on,
.shared-reviews-wrapper .stars-filled-5 svg.star.star-filled {
    background-color: #00b67a
}

.shared-reviews-wrapper .field--name-field-agreement label {
    display: inline;
    font-size: 1rem;
    font-weight: 400;
}

.shared-reviews-wrapper .field--name-field-experienced-at {
    margin-bottom: 1.5rem;
}

/* .shared-reviews-wrapper .field--name-field-experienced-at div[data-drupal-field-elements="description"] {
    margin-top: -20px;
} */

.modal--review .modal {
    background: transparent;
    box-shadow: none;
}

.modal--review .modal__body {
    padding: 0 1.5rem;
}

.shared-reviews-wrapper .authentic-reviews {
    border: 1px solid var(--base-secondary);
    border-radius: .5rem;
    padding: 1.25rem .5rem .5rem;
    position: relative;
    text-align: center;
}

.shared-reviews-wrapper .authentic-reviews__title {
    position: absolute;
    top: -13px;
    left: 0;
    right: 0;
    margin: auto;
    display: inline-block;
    max-width: fit-content;
    z-index: 10;
    padding: 0 .5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5rem;
    color: var(--base-secondary);
    text-align: center;
    background: #ebf6fa;
}

.shared-reviews-wrapper .btn-close {
    display: none;
}

/* All Button close modal */
[class^="selectra-shared-reviews"] .modal__header > .btn-close,
.reviews-filters .modal__header > .btn-close,
.modal#flag-review-modal .modal__header > .btn-close {
  position: absolute;
  right: 10px;
  top: 10px;
  fill:#6e6f71;
  z-index:1;
  top:1rem;
  right:1rem;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #bdd9f4;
  border-radius:50%;
  width:24px;
  height:24px;
}
[class^="selectra-shared-reviews"] .modal__header > .btn-close .icon,
.reviews-filters .modal__header > .btn-close .icon,
.modal#flag-review-modal .modal__header > .btn-close .icon {
  transition:fill .16s ease-in-out;
  width:.5rem;
  height:.5rem;
  display:flex;
  top:auto;
  left:auto;
}
[class^="selectra-shared-reviews"] .modal__header > .btn-close:active,
[class^="selectra-shared-reviews"] .modal__header > .btn-close:focus,
[class^="selectra-shared-reviews"] .modal__header > .btn-close:hover,
.reviews-filters .modal__header > .btn-close:active,
.reviews-filters .modal__header > .btn-close:focus,
.reviews-filters .modal__header > .btn-close:hover,
.modal#flag-review-modal .modal__header > .btn-close:active,
.modal#flag-review-modal .modal__header > .btn-close:focus,
.modal#flag-review-modal .modal__header > .btn-close:hover {
  fill:#f43a31;
  background-color:#ebf6fa;
  border-color:#ebf6fa;
}

/* Modal Title */
[class^="selectra-shared-reviews"] .modal__title,
.reviews-filters .modal__title {
  margin: 1.5rem auto;
  /* padding-bottom: 1rem; */
  font-size: 1.25rem;
  font-weight: 600;
  color: #474849;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

[class^="selectra-shared-reviews"] .modal__title::after,
.reviews-filters .modal__title::after {
  position: absolute;
  content: '';
  bottom: -8px;
  width: 50%;
  display: flex;
  align-items: center;
  height: 4px;
  background: var(--base-secondary);
}

[class^="selectra-shared-reviews"] .modal__title .icon,
.reviews-filters .modal__title .icon {
  margin-right: .25rem;
  /* fill: var(--base-secondary); */
  fill: #6e6f71;
  width: 1rem;
  height: 1rem;
}

[class^="selectra-shared-reviews"] input[type="checkbox"] + label {
  margin-top: 0 !important;
}

/* Legal Modal */
.legal-modal .modal__body p {
  margin-bottom: .5rem;
  font-size: .875rem;
}

.review-form-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: space-between;
}

@media screen and (max-width: 992px) {
    .review-form-wrapper {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    .review-form-wrapper .review-header__text {
        text-align: center;
    }

    .review-form-wrapper .u-display--flex {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}

.review-form-wrapper img {
  max-width: 120px;
  margin-right: 20px;
  object-fit: contain;
}

@media screen and (min-width: 992px) {
    .review-form-container.review-added {
        max-width: 45%;
    }
}

.review-form-container.review-added > div:nth-child(1) {
    display: none;
}

.review-form-wrapper .review-header__text {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 160%;
    letter-spacing: -.014em;
    color: #58595b;
}

.review-form-wrapper .selectra-shared-reviews-post-review:not(.active) .form-group__label {
    display: none;
}

.review-form-wrapper .selectra-shared-reviews-post-review:not(.active) .captcha {
    display: none;
}

.review-form-wrapper .selectra-shared-reviews-post-review .captcha {
    margin-top: 24px;
}

.review-form-wrapper .selectra-shared-reviews-post-review .captcha__title {
    display: none;
}

.review-form-wrapper .selectra-shared-reviews-post-review:not(.active) .form-item-field-rate-0-value {
    margin-bottom: 0;
}

.review-form-wrapper .selectra-shared-reviews-post-review:not(.active) {
    min-width: 220px
}

.review-form-wrapper .selectra-shared-reviews-post-review:not(.active) .captcha-error-message {
    opacity: 0;
    height: 0;
    visibility: hidden;
}

.review-form-wrapper .selectra-shared-reviews-post-review:not(.active) .modal--review {
    display: none;
}

.review-form-wrapper .selectra-shared-reviews-post-review .modal--review {
    margin-top: -50px;
    margin-left: -20px;
    margin-right: -20px;
    padding: 2px 20px 2px 20px;
}

.review-form-wrapper .selectra-shared-reviews-post-review .modal--review .provider-logo {
  margin-bottom: -1rem;
  margin-top: 1rem;
}

.review-form-wrapper .selectra-shared-reviews-post-review .authentic-reviews {
    margin-bottom: 1.25rem;
    margin-top: 3rem;
}

.review-form-wrapper .authentic-reviews p,
.review-form-wrapper .authentic-reviews a {
    margin: 0 0 .5rem;
    font-size: .875rem;
}

.review-form-wrapper .review-form-container .captcha-error-message {
    color: red;
}

/* .review-form-wrapper.has-image {
    display: grid;
    gap: 10px;
} */

.review-form-wrapper .review-form-container div:not([class]) {
  font-size: 14px;
  line-height: 160%;
  font-weight: 600;
  letter-spacing: -.014em;
  color: #58595b;
  margin-bottom: .25rem;
}

.main .alert,
.main .alert--shadow,
.main .messages--status {
    display: none;
}

.thankyou-message-review .shared-reviews-wrapper {
    border: none;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    height: 100%;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
}

.thankyou-message-review .shared-reviews-wrapper p {
    margin-bottom: 0;
    width: 100%;
}

.thankyou-message-review .shared-reviews-wrapper h2 {
  margin: 1.5rem auto;
  /* padding-bottom: 1rem; */
  font-size: 1.25rem;
  font-weight: 600;
  color: #474849;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.thankyou-message-review .shared-reviews-wrapper h2::after {
  position: absolute;
  content: '';
  bottom: -8px;
  width: 50%;
  display: flex;
  align-items: center;
  height: 4px;
  background: var(--base-secondary);
}

.thankyou-message-review:not(.active) .shared-reviews-wrapper.thankyou-message h2:not([class]) {
    font-size: 1.125rem;
}

.thankyou-message-review:not(.active) .shared-reviews-wrapper.thankyou-message p:not([class]) {
    margin-top: 6px;
}

.thankyou-message-review:not(.active) .thankyou-message {
    padding: 0;
    text-align: left;
}

@media screen and (max-width: 768px) {
    .thankyou-message-review:not(.active) .thankyou-message {
        padding: 0;
        text-align: center;
    }
}

.selectra-shared-reviews-post-review .g-recaptcha .captcha-error-message + .captcha-error-message,
.selectra-shared-reviews-post-review .g-recaptcha iframe + .captcha-error-message {
    display: none !important;
}

.shared-reviews-wrapper .form-group__label.form-required::after {
  display: inline-block;
  margin-inline: 0.15em;
  content: "*";
  font-size: 0.875rem;
  color: red;
  font-weight: 600;
}

.shared-reviews-wrapper .form-group__label.form-required::before {
  display: none;
}

.form-checkbox {
  accent-color: var(--base-secondary);
}
