/*
Copyright 2020 Eduworks Corporation

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

.ratingContainer {
    display: inline-block;
    vertical-align: middle;
    font-family: var(--font-family-secondary);
}

.ratingWrapper {
    padding-top: 2rem;
    display: inline-block;
    clear: both;
    width: calc(100% - 2px);
    
}
.ratingWrapper p {
    font-family: var(--font-family-primary) !important;
}


/* Hide text label but keep accessible to screen readers */
.ratingContainer label {
    display: block;
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ratingContainer [type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: inline-block;
    position: relative;
    background-color: var(--background-darker);
    color: #fff;
    height: 40px;
    width: 40px;
    border: 0;
    border-radius: 50px;
    cursor: pointer;
    margin: 0.5em;
    outline: none;
}

.ratingContainer .rateUp:before {
    opacity: 0.8;
    content: url(/web/20230116045324im_/https://149357434.v2.pressablecdn.com/wp-content/plugins/peblSolutions/assets/Extensions/image/thumbs-up.svg);
    position: absolute;
    top: 8px;
    left: 8px;
}

.ratingContainer .rateDown:before {
    opacity: 0.8;
    content: url(/web/20230116045324im_/https://149357434.v2.pressablecdn.com/wp-content/plugins/peblSolutions/assets/Extensions/image/thumbs-down.svg);
    position: absolute;
    top: 8px;
    left: 8px;
}

.ratingContainer [type="radio"]:checked:before {
    opacity: 1;
    position: absolute;
    transform: rotate(0deg);
}

.ratingContainer .rateUp:hover {
    background-color: var(--success-color);
}

.ratingContainer .rateUp:checked {
    background-color: var(--success-color);
}

.ratingContainer .rateDown:hover {
    background-color: var(--alert-color);
}

.ratingContainer .rateDown:checked {
    background-color: var(--alert-color);
}

.ratingContainer .rateUp:focus:before {
    animation: rateIconUp 0.5s;
}

@keyframes rateIconUp {
    66% {
        transform: scale(1.5) rotate(-40deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

.ratingContainer .rateDown:focus:before {
    animation: rateIconDown 0.5s;
}

.ratingNegativeFeedbackWrapper {
    max-height: calc(70vh - 105px);
    width: calc(100% - 2px);
    break-inside: avoid-column;
    -webkit-column-break-inside: avoid;
}
.showFeedbackCallout {
    display: block;
}
.hideFeedbackCallout {
    display: none;
}
.ratingNegativeFeedbackCallout {
    background-color: var(--background-lighter);
    width: calc(100% - 2px);
    margin: 0;
    clear: both;
    overflow: hidden; /* fix for Firefox */
    break-inside: avoid-column;
    -webkit-column-break-inside: avoid;
    color: #000000;
    font-weight: bold;
}
.ratingNegativeFeedbackCallout label {
    font-weight: 500;
}
.ratingNegativeFeedbackCallout .checkBox {
        padding: .5rem;
}

.ratingNegativeFeedbackCallout p {
    margin: 0;
    padding: 0;
}

/* .ratingNegativeFeedbackCallout textarea {
    overflow: auto;
    background-color: var(--background-light);
    border: none;
    outline: none;
    font-size: .9rem;
    color: var(--dark-font);
} */

.ratingNegativeFeedbackCallout form > .textBox{
    padding-right: 1em;
    padding-left: 1em;
    margin-bottom: 1em;
}
.ratingNegativeFeedbackFooter {
    /* background-color:var(--primary-color); */
    border-top: 1px solid var(--background-darker);
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    min-height: 10px;
    margin-top: var(--spacing-s);
    padding: var(--spacing-s);
    order: 3;
}

.ratingNegativeFeedbackFooter > button {
    width: 100%;
    /* color: white;
    background: transparent;
    padding: 0.5em;
    border: none;
    font-size: 1em;
    cursor: pointer; */
}

.ratingNegativeFeedbackFooter > div:hover,
.ratingNegativeFeedbackFooter > div.active,
.ratingNegativeFeedbackFooter > button:hover {
    background: var(--primary-color-dark);
}

p.thanksFeedback {
    margin: 5em;
    text-align: center;
}

.ratingsCfiPlaceholder {
    margin: 0 !important;
    padding: 0 !important;
    color: transparent !important;
    font-size: 2px !important;
    line-height: 0 !important;
}

@keyframes rateIconDown {
    66% {
        transform: scale(1.5) rotate(40deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}
/*
     FILE ARCHIVED ON 04:53:24 Jan 16, 2023 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 18:33:01 Oct 21, 2023.
     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.

     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
     SECTION 108(a)(3)).
*/
/*
playback timings (ms):
  captures_list: 104.206
  exclusion.robots: 0.071
  exclusion.robots.policy: 0.061
  cdx.remote: 0.062
  esindex: 0.009
  LoadShardBlock: 74.643 (3)
  PetaboxLoader3.datanode: 79.262 (4)
  load_resource: 62.9
  PetaboxLoader3.resolve: 43.395
*/