/*
Stylesheet for Rate This Page WordPress plugin
*/
.rtp-form-wrapper,
.rtp-form-wrapper.minimize:hover,
.rtp-form-wrapper.minimize:focus-within {
    text-align: center;
    border: 3px solid #f2f2f2;
    max-width: min(25rem,100%);
    margin: 1rem 0 0;
    padding: 0;
    position: relative;
}
.rtp-form-wrapper.rtp-scheme-transparent {
    background-color: transparent;
}
.rtp-form-wrapper.rtp-scheme-light {
    background-color: #f2f2f2;
    border-color: #ececec;
}
.rtp-form-wrapper.rtp-scheme-dark .rtp-title,
.rtp-form-wrapper.rtp-scheme-dark .rtp-thankyou {
    color: #fff;
}
.rtp-form-wrapper.rtp-scheme-dark {
    background-color: #1b2028;
    color: #fff;
}
.rtp-scheme-dark .rtp-form input[type="radio"]:not(:checked) {
    filter: brightness(150%);
}
.rtp-form,
.minimize:hover .rtp-form,
.minimize:focus-within .rtp-form {
    padding: 1rem;
}
.rtp-title,
.minimize:hover .rtp-title,
.minimize:focus-within .rtp-title {
    font-size: 1.17rem;
    margin-top: initial;
}
.rtp-question,
.minimize:hover .rtp-question,
.minimize:focus-within .rtp-question {
    display: block;
}
.rtp-form input[type="radio"],
.minimize:hover .rtp-form input[type="radio"],
.minimize:focus-within .rtp-form input[type="radio"],
.minimize:hover .rtp-form:has([type="radio"]:checked) [type="radio"]:not(:checked),
.minimize:focus-within .rtp-form:has([type="radio"]:checked) [type="radio"]:not(:checked){
    visibility: visible;
    appearance: none;
    width: 3rem;
    height: 3rem;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease-out;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    margin: 0 6px 0.5rem;
    cursor: pointer;
}
.rtp-form input[type="radio"]:checked,
.rtp-form input[type="radio"]:hover,
.rtp-form input[type="radio"]:focus-visible {
    outline-width: 5px;
    outline-style: solid;
}
.rtp-form input[type="radio"]:checked:before {
    display: none;
}
.rtp-radio-label {
    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;
}
.rtp-form .rtp-good[type="radio"] {
    background-image: url("../images/good.png");
}
.rtp-form .rtp-good[type="radio"]:checked,
.rtp-form .rtp-good[type="radio"]:hover,
.rtp-form .rtp-good[type="radio"]:focus-visible {
    outline-color: LimeGreen;
    background-color: Honeydew;
}
.rtp-form .rtp-neutral[type="radio"] {
    background-image: url("../images/neutral.png");
}
.rtp-form .rtp-neutral[type="radio"]:checked,
.rtp-form .rtp-neutral[type="radio"]:hover,
.rtp-form .rtp-neutral[type="radio"]:focus-visible {
    outline-color: gold;
    background-color: lightyellow;
}
.rtp-form .rtp-bad[type="radio"] {
    background-image: url("../images/bad.png");
}
.rtp-form .rtp-bad[type="radio"]:checked,
.rtp-form .rtp-bad[type="radio"]:hover,
.rtp-form .rtp-bad[type="radio"]:focus-visible {
    outline-color: crimson;
    background-color: MistyRose;
}
.rtp-form:has(input[type="radio"]:checked) input[type="radio"]:not(:checked) {
    transform: scale(0.8);
}
.rtp-thankyou-wrapper {
    justify-content: center;
    align-items: center;
    width: calc(100% + 1rem);
    margin: 0 0 1rem;
    position: relative;
    z-index: 0;
}

.rtp-thankyou-wrapper::before,
.minimize:hover .rtp-thankyou-wrapper::before,
.minimize:focus-within .rtp-thankyou-wrapper::before{
    content: '';
    display: block;
    width: 10.5rem;
    height: 3rem;
    background-color: limegreen;
    margin-right: -4rem;
    mask-repeat: no-repeat;
    mask-size: contain;
    background-image: linear-gradient(120deg ,yellow,limegreen,green);
    position: relative;
    z-index: 1;
}

body:not(.wp-admin) .rtp-thankyou-wrapper::before {
    z-index: -1;
}
.rtp-thankyou {
    font-size: 1.17rem;
}

.minimize:hover .rtp-thankyou,
.minimize:focus-within .rtp-thankyou {
    font-size: 1.17rem;
    margin-left: initial;
}

.rtp-form .rtp-cta-wrapper {
    display: block;
}
.rtp-form:has([type="radio"]:checked) .rtp-cta-wrapper {
    display: none;
}
.rtp-inputs-wrapper {
    display: flex;
    justify-content: space-around;
    flex-wrap: nowrap;
    align-items: center;
}
.minimize .rtp-form:has([type="radio"]:checked) label:has([type="radio"]:not(:checked)) {
    width: 0;
}
.minimize .rtp-form:has([type="radio"]:checked):hover label:has([type="radio"]:not(:checked)),
.minimize .rtp-form:has([type="radio"]:checked):focus-within label:has([type="radio"]:not(:checked)) {
    width:unset;
}

.rtp-form .rtp-thankyou-wrapper {
    display: none;
}
.rtp-form:has([type="radio"]:checked) .rtp-thankyou-wrapper {
    display: flex;
}


.rtp-comment[type="text"] {
    width: 100%;
    margin-bottom: 0.5rem;
    padding-right: 4.5rem;
    border-color: #ddd;
    border-width: 1px;
    border-radius: 0;
    height: 2rem;
    box-sizing: border-box;
}
.rtp-submit {
    position: absolute;
    display: inline-flex;
    box-sizing: border-box;
    align-items: center;
    height: 2rem;
    transform: translateX(-100%);
    border: 1px solid #ddd;
    cursor: pointer;
}
.rtp-status.rtp-success {
    display: inline-block;
    width: 1.4rem;
    height: 1.2rem;
    background-color: MediumSeaGreen;
    margin-left: 0.4rem;
    mask-image: url(../images/success.svg);
    mask-repeat: no-repeat;
    mask-size: contain;
}
.rtp-comment-label {
    display: block;
}
.rtp-comment-wrapper,
.minimize .rtp-form:has(input[type="radio"]:checked) .rtp-comment-wrapper {
    display: none;
}
.rtp-form:has(input[type="radio"]:checked) .rtp-comment-wrapper,
.minimize:hover .rtp-form:has(input[type="radio"]:checked) .rtp-comment-wrapper,
.minimize:focus-within .rtp-form:has(input[type="radio"]:checked) .rtp-comment-wrapper
{
    display: block;
}

.rtp-help-btn {
    border: none;
    width: 1.5rem;
    height: 1.5rem;
    display: block;
    margin: 2px;
    padding: 0;
    position: absolute;
    top: 0;
    right: 0;
    background-color: white;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    border-radius: 50%;
}
.rtp-help-btn:hover,
.rtp-help-btn:focus-visible {
    outline: 4px solid darkgray;
    background-color: WhiteSmoke;
}
.rtp-help-btn.open {
    background-image: url("../images/help.svg");
}
.rtp-help-btn.close {
    background-image: url("../images/close.svg");
}
.rtp-help {
    position: absolute;
    /*background: #ffffff;*/
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    border: 1px solid #bbb;
    padding: 1.5rem 0.5rem 0.5rem;
    box-shadow: 0 0 11px 3px rgba(0,0,0,0.4);
}
.rtp-scheme-dark .rtp-help {
    background-color: #222;
}
.rtp-help.hidden {
    display: none;
}

/* Minimized styles
*/

.minimize .rtp-thankyou,
.minimal .rtp-thankyou
{
    font-size: 1rem;
    margin-left: 3rem;
}
.minimize .rtp-title ,
.minimal .rtp-title
{
    font-size: 1rem;
    margin-top: 0;
}
.minimize .rtp-question ,
.minimal .rtp-question
{
    display: none;
}
.minimize .rtp-thankyou-wrapper::before,
.minimal .rtp-thankyou-wrapper::before
{
    width: 8rem;
    position: absolute;
    left: 0;
}

.minimize .rtp-comment-wrapper,
.minimal .rtp-comment-wrapper
{
    display: none;
}

.minimize .rtp-form:has([type="radio"]:checked) [type="radio"]:not(:checked) {
    visibility: hidden;
    width: 0;
}

.minimize .rtp-form,
.minimal .rtp-form
{
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-between;
}


.minimize .rtp-form input[type="radio"],
.minimal .rtp-form input[type="radio"]
{
    margin: 0 2px;
    width: 2rem;
    height: 2rem;
}
.minimize:hover .rtp-form:has([type="radio"]:checked),
.minimize:focus-within .rtp-form:has([type="radio"]:checked) {
    display: block;
}
.minimal .rtp-form:has([type="radio"]:checked) {
    flex-wrap: wrap;
}
.minimal .rtp-comment-wrapper {
    width: 100%;
}
.minimal .rtp-thankyou-wrapper,
.minimal .rtp-cta-wrapper {
    max-width: max(50%, 10rem);
}

/* Admin dashboard widget
 */
.rtp-dashboard-widget {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: 6px 12px;
    margin: 0 -12px;
}
li.rtp-dashboard-widget:nth-child(2n+1) {
    background-color: #f6f7f7;
}

.rtp-dashboard-logo {
    width: 3rem;
    height: 3rem;
    background-image: linear-gradient(120deg ,yellow,limegreen,green);
    mask-image: url("../images/thumbs-up.svg");
    mask-size: contain;
    mask-repeat: no-repeat;
    float: left;
    margin: 0 12px 0 0;
}
.rtp-dashboard-widget-count {
    display: inline-block;
    padding: 4px;
    border: 1px solid lightgray;
    background: white;
    min-width: 1.5em;
    text-align: center;
    height: 1.5em;
}

/* Admin table
 */
.rtp-results-table #post_id {
    width: 30rem;
}
.dashboard_page_rtp_results #rating_time{
    width: 10rem;
}

.rtp-results-table thead > tr > th:not(#post_id, #comments) {
    width: 10rem;
}
.dashboard_page_rtp_results.fixed .column-rating {
    width: 10rem;
}
.rtp-results-table .comments.column-comments {
    text-align: left;
}
.rtp-rating-color {
    display: block;
    padding: 0 1rem;
    color: #000;
    font-weight: bold;
}
.rtp-rating-level {
    overflow: hidden;
    background-image: linear-gradient(to right, LightSalmon, Moccasin, GreenYellow);
    background-size: 8em;
    background-repeat: no-repeat;
    border:  1px solid;
}
.rtp-level-scale {
    display: inline-block;
    min-height: 30px;
    width: 15rem;
    background-color: #fff;
    background-image: linear-gradient(to right, LightSalmon, Moccasin, GreenYellow);
    vertical-align: top;
    border: 1px solid #fff;
    margin-left: 1rem;
    position: relative;
    text-align: center;
    font-size: 20px;
    line-height: 1.3;
}
.rtp-level-indicator {
    display: block;
    background: transparent;
    width: 0;
    height: 100%;
    border-left: 2px dotted teal;
    position: absolute;
    bottom: 0;
}
.rtp-level-indicator::before {
    content: '';
    display: block;
    position: absolute;
    top: -13px;
    left: -9px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 11px 8px 0 8px;
    border-color: teal transparent transparent transparent;
    background-color: transparent;
}
.wp-admin .rtp-help {
    background: #ffffff;
}
.rtp-filter-message {
    font-weight: 700;
    margin-bottom: 1.2rem;
}
.rtp-error {
    color: red;
}
.img-ctrl[type="radio"] {
    appearance: none;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 5rem;
    height: 5rem;
    border: 0.15rem solid lightgray;
    border-radius: 0.15rem;
    transform: translateY(-0.075rem);
    background-color: mediumseagreen;
    mask-position: center;
    mask-size: contain;
    mask-repeat: no-repeat;
    transition: all 0.3s ease-out;
}
input.img-ctrl[type="radio"]:checked::before {
    background-color: goldenrod;
    width: 6rem;
    height: 6rem;
    border-radius: 0;
    margin: 0;
    line-height: 0;
    position: absolute;
    left: -2px;
    top: -2px;
}

#img-msg {
    mask-image: url("../images/tube.svg");
}
#img-aprvd {
    mask-image: url("../images/approved.svg");
}
#img-hrt {
    mask-image: url("../images/heart.svg");
}
#img-str {
    mask-image: url("../images/smilin-star.svg");
}
#img-thmb {
    mask-image: url("../images/thumbs-up.svg");
}
