/* Meetanshi QA customizations */

.qa-search-box-container {
    width: 100%;
    text-align: center;
}

.qa-search-box-container #qa-search-text {
    width: calc(100% - 259px);
}

#submit-search-query {
    margin-left: 5px;
}

#ask-a-question {
    margin-left: 5px;
    background-color: var(--hover_color);
    border: 0;
}

#ask-a-question:hover {
    background-color: var(--primary_color);
    border: 0;
}

.qa-ask-button-container #ask-a-question {
    width: 100%;
    margin-left: 0;
    border-radius: 12px;
    font-family: var(--title_font);
}

.pqa-question-form {
    max-width: unset;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.qa-search-box-container .action {
    font-family: var(--title_font);
    font-size: 18px !important;
    font-weight: 600;
    border-radius: 10px;
    border: 0 !important;
    height: 50px;
}

#product-question-list-container #cust-questions .block-title strong {
    font-family: var(--title_font);
    color: var(--secondary_color);
    font-size: 18px;
    font-weight: bolder;
}

.pqa-question-item {
    overflow-wrap: break-word;
}

.pqa-question-title {
    font-size: unset;
    margin: 0;
}

.certified-answer {
    color: var(--green_color);
}

.qa-asker-date {
    font-size: 12px;
    color: #878787;
    margin: 5px 0 10px;
}

.qa-date {
    display: inline;
    font-size: 12px;
    color: #878787;
    margin-right: 2px;
}

#qa-form-modal {
    padding: 0 30px;
}

.block.question-post {
    margin-bottom: 30px;
}

.modal-qa.modal-slide.modal-popup .modal-content {
    text-align: left;
}

.pqa-questions-legend {
    text-align: center;
}

.pqa-question-form .action.submit.primary {
    width: 100%;
}

.pqa-question-form .actions-toolbar .actions-primary {
    width: 100%;
}

.item .answer-item {
    padding-left: 30px;
}

.item .answer-item:first-child {
    padding-left: 0;
}

.answer-list .action {
    border-radius: 10px;
    padding: 5px 10px;
    font-size: 14px;
}

.answer-list .answer-button {
    margin-left: 10px;
    background-color: var(--body_color);
    color: #fff;
    border: 0;
}

.answer-list .answer-button:hover {
    background-color: var(--primary_color);
}

.modal-slide.modal-popup .other_answer_popup .modal-content {
    padding: 0 30px 20px;
    text-align: left;
}

.answer-question {
    padding-bottom: 15px;
}

.answer-question:first-letter {
    text-transform: capitalize;
}

.modal-qa .modal-inner-wrap,
.modal-answer-question .modal-inner-wrap {
    max-width: 60rem;
}

.field.question-field-nickname,
.field.question-field-email {
    width: calc(50% - .5em);
    display: flex;
    flex-direction: column;
}

.pqa-questions-fieldset {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    column-gap: 1em;
}

.question-field-text,
.answer-field-text {
    width: 100%;
}

@media only screen and (max-width: 768px) {
    .qa-search-box-container #qa-search-text {
        margin-bottom: 0;
    }
    .modal-slide.modal-popup .other_answer_popup .modal-content,
    #qa-form-modal {
        padding: 0;
    }
}

@media screen and (max-width: 480px) {
    .qa-search-box-container #qa-search-text {
        width: 100%;
        margin-bottom: 7px;
    }

    #submit-search-query {
        margin-left: 0;
    }

    #ask-a-question {
        width: calc(100% - 95px);
    }

    .qa-asker-date {
        margin: 5px 0 20px;
    }

    .field.question-field-nickname, .field.question-field-email {
        width: 100%;
    }
}

/* Review customizations */

.mw-review__meta-text, .mw-review__reply-content {
    font-size: 16px;
    color: #67737F;
}

.mw-review__text {
    font-size: 16px;
    margin-bottom: 0;
    line-height: 26px;
    color: #67737F;
}

.mw-user__name,
.mw-verified-buyer,
.mw-grid.mw-review__pros-and-cons {
    font-size: 14px;
}

.mw-review__reply-heading {
    font-size: 16px;
}

.mw-user__name {
    margin-bottom: 4px;
    color: #67737F;
}

.mw-review__title,
.mw-text--variation-subdued {
    color: #67737F;
}

.review-fieldset {
    display: flex;
    flex-direction: row;
    width: 100%;
    flex-wrap: wrap;
    column-gap: 20px;
    margin-bottom: 0px;
}

#review-form {
    max-width: unset;
    width: 100%;
}

.mw-review__meta {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
}

.mw-reviews-none .mw-action.primary {
    width: 100%;
    display: flex;
    justify-content: center;
}

.mw-rate__count {
    height: 20px;
}

.mw-rate__icon {
    height: 24px;
}

.mw-recommended {
    padding-right: 26px;
    margin-top: -3px;
    white-space: nowrap;
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg fill='none' height='16' width='16' xmlns='http://www.w3.org/2000/svg'%3E%3Crect fill='%2354b644' height='16' rx='8' width='16'/%3E%3Cpath d='M5 8l2.5 2 4-3.5' stroke='%23fff' stroke-linecap='round' stroke-width='2'/%3E%3C/svg%3E") 100% no-repeat;
    font-size: 14px;
}

.review-form .action.submit.primary {
    background-color: var(--hover_color);
    color: #fff;
    border: 0;
    line-height: 27px;
}

.review-form .action.submit.primary:hover {
    border: 0;
    color: #fff;
    background: var(--primary_color);
    background-color: var(--primary_color);
}

.mw-rating__result {
    margin-bottom: 0;
}

.mw-review-row,
.mw-sorting {
    border-bottom: 1px solid #c1c1c1;
}

.mw-grid {
    margin-top: 0;
    margin-left: 0;
}

.mw-reviews .mw-grid:not(:last-child) .mw-review {
    border-bottom: none;
}

.mw-reviews__user {
    flex: 1 1 125px;
}

.review-toolbar {
    border-top: none;
}

.mw-user {
    padding-top: 10px;
    margin-top: 0;
}

.mw-reviews .mw-review {
    margin-top: 0;
}

.mw-action.primary {
    padding: 7px 15px;
    background-color: var(--hover_color);
    color: #fff;
    font-family: var(--title_font);
    font-size: 18px !important;
    font-weight: 600;
    line-height: 27px;
    border-radius: 12px;
    border: none;
    transition: var(--site_transition);
    text-decoration: none;
    width: 100%;
    text-align: center;
}

.mw-action.primary:hover {
    background: var(--primary_color);
    background-color: var(--primary_color);
}

.mw-summary-row {
    display: flex;
    flex-direction: row;
}

.my-summary {
    width: 50%;
    display: flex;
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
}

.mw-reviews-meta {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-left: 20px;
}

.mw-rating-filter-wrapper {
    display: flex;
    flex-direction: column;
}

.mw-rating-filter {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin-bottom: 20px;
}

.mw-rating-filter__graph {
    max-width: unset;
}

.mw-rating-filter__overall {
    display: flex;
    flex-direction: column;
    width: 33%;
    padding-right: 10px;
    min-width: 160px;
    justify-content: space-between;
    margin-bottom: 15px;
}

.mw-rating-filter__detailed {
    width: 67%;
}

.mw-rating-filter__sum {
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg fill='none' height='17' width='18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 0l2.222 5.942 6.338.277-4.965 3.95 1.695 6.112L9 12.78l-5.29 3.501 1.695-6.113L.44 6.218l6.338-.276z' fill='%23fdcc25'/%3E%3C/svg%3E") 0 55% no-repeat;
}

.mw-recommended-rating {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
    display: inline-block;
    padding-right: 26px;
    white-space: nowrap;
}

.mw-recommended-rating-value {
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg fill='none' height='16' width='16' xmlns='http://www.w3.org/2000/svg'%3E%3Crect fill='%2354b644' height='16' rx='8' width='16'/%3E%3Cpath d='M5 8l2.5 2 4-3.5' stroke='%23fff' stroke-linecap='round' stroke-width='2'/%3E%3C/svg%3E") 0% 60% no-repeat;
    padding-left: 25px;
    margin-bottom: 11px;
}

.mw-reviews-photo-wrapper {
    width: 100%;
    margin-bottom: 15px;
}

.mw-reviews-photo-carousel {
    padding: 0 25px;
}

.mw-reviews-photo-carousel li {
    list-style-type: none !important;
    margin-bottom: 0;
}

.mw-reviews-photo-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 5px;
}

.mw-reviews-no-photos {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mw-reviews-meta__action {
    margin-bottom: 10px;
}

.mw-reviews-summary {
    margin-top: 0;
}

.modal-review .modal-inner-wrap {
    max-width: 60rem;
}

#review-form-modal {
    padding: 0 30px;
}

.block.review-add {
    margin-bottom: 0px;
}

.modal-review.modal-slide .modal-content {
    text-align: unset;
}

.review-legend {
    display: flex;
    flex-direction: column;
    align-items: center;
}

legend.legend.review-legend.legend {
    margin-bottom: 20px;
    display: none;
}

.modal-review .field {
    width: calc(50% - 10px);
}

.field.review-field-text,
.field.review-field-images,
.action-primary-review
{
    width: 100%;
}

.mw-checkbox {
    align-items: center;
}

.modal-review.modal-slide .modal-footer {
    padding: 30px;
}

.mw-gallery {
    border-top: 0;
    padding-top: 20px;
    margin-bottom: 10px;
}

@media screen and (max-width: 1023px) {
    .mw-action.primary {
        width: 100%;
        text-align: center;
    }

    .mw-summary-row {
        display: flex;
        flex-direction: column-reverse;
    }

    .my-summary {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        flex-direction: column;
        flex-wrap: nowrap;
        padding-left: 0;
    }

    .mw-reviews-meta {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        flex-wrap: nowrap;
        padding-left: 0;
    }

    .mw-rating-filter__detailed {
        width: 100%;
    }
    
    .mw-reviews__user {
        max-width: fit-content;
        margin-left: 0;
    }

    .mw-review__pros-and-cons {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .mw-grid__item.mw-grid__item--half {
        margin-left: 0;
    }
}

@media screen and (max-width: 730px) {
    .mw-rating-filter {
        flex-direction: column;
    }

    .mw-rating-filter__overall {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .mw-recommended-rating {
        padding-right: 0;
    }
    
    .mw-gallery {
        padding-top: 0;
    }

    .mw-action.primary {
        width: 100%;
        text-align: center;
    }

    .mw-summary-row {
        display: flex;
        flex-direction: column-reverse;
    }

    .my-summary {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .mw-reviews-meta {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        flex-wrap: nowrap;
    }

    .mw-user__content {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        height: 60px;
        width: 100%;
        align-content: space-between;
    }

    .mw-grid__item.mw-review {
        padding-top: 0;
        margin-left: -20px;
    }

    .mw-reviews__user {
        max-width: unset;
        flex: 1 1 200px;
    }

    .mw-user__content.mw-recommended-content {
        height: 77px;
    }

    .mw-recommended-content .mw-review__date {
        margin-bottom: 21px;
    }
}

@media screen and (max-width: 480px) {
    #review-form-modal {
        padding: 0;
    }
    .field.review-field-ratings,
    .field.review-field-recommend,
    .action-primary-review
    {
        width: 100%;
    }
    .modal-review .modal-footer {
        padding: 15px 30px;
    }
    .modal-review.modal-slide .modal-content {
        -webkit-box-shadow: inset 0px -15px 15px -15px rgba(0,0,0,10%);
        -moz-box-shadow: inset 0px -15px 15px -15px rgba(0,0,0,10%);
        box-shadow: inset 0px -15px 15px -15px rgb(0 0 0 / 10%);
    }
    .modal-review.modal-slide .modal-footer {
        padding: 20px;
    }
}
