/* Прихована частина відгуку (плавне розгортання через grid 0fr → 1fr) */
.review-expand-content {
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
    transition: grid-template-rows .4s ease, margin-top .4s ease, opacity .3s ease;
}

.review-expand-content > * {
    min-height: 0;
    overflow: hidden;
}

.review-expand-content .review_gallery {
    margin-top: 0;
}


/* Розгорнутий відгук */
.product_review.is-expanded .review-expand-content {
    grid-template-rows: 1fr;
    margin-top: 8px;
    opacity: 1;
}


/* Текст відгуку: у згорнутому стані — 3 рядки з трикрапкою */
.review_description__text {
    overflow: hidden;
    overflow-wrap: anywhere;
}

.product_review.is-clamped .review_description__text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}


/* Кнопка «Читати повністю / Згорнути» */
.review-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 10px;
    padding: 0;

    border: 0;
    background: transparent;

    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.3;
    font-weight: 400;

    color: #7d7c7c;
    text-decoration: underline;
    text-decoration-skip-ink: none;

    cursor: pointer;
    transition: color .2s ease;
}

.review-toggle:hover {
    color: #33815c;
}

.review-toggle.is-hidden {
    display: none;
}


/* «Більше відгуків»: нова порція плавно розгортається */
.reviews-more-chunk {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows .6s ease, opacity .4s ease;
}

.reviews-more-chunk.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
}

.reviews-more-chunk__inner {
    min-height: 0;
    overflow: hidden;
}

#show_more_reviews.is-loading {
    opacity: .5;
    pointer-events: none;
}

/* Без «стрибків» прокрутки при підвантаженні відгуків */
#product_reviews {
    overflow-anchor: none;
}

#more_reviews {
    max-height: 60px;
    transition: max-height .4s ease, margin .4s ease, opacity .3s ease;
}

#more_reviews.is-hiding {
    max-height: 0;
    margin-top: 0 !important;
    opacity: 0;
    overflow: hidden;
}


/* Другий текст спочатку прихований */
.review-toggle__close {
    display: none;
}


/* При розгортанні */
.product_review.is-expanded .review-toggle__open {
    display: none;
}

.product_review.is-expanded .review-toggle__close {
    display: inline;
}


/* Стрілка */
.review-toggle__icon {
    transition: transform .25s ease;
}

.product_review.is-expanded .review-toggle__icon {
    transform: rotate(180deg);
}


/* Галерея */
.review_gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 16px;
}


.review-media__item {
    position: relative;

    width: 90px;
    height: 90px;

    border-radius: 8px;

    overflow: hidden;
    cursor: pointer;
}


.review-media__item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.review-media__item--video {
    position: relative;
}


.review-media__play {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    display: flex;
    align-items: center;
    justify-content: center;
}

.mfp-bg {
    z-index: 10001!important;
}
.mfp-wrap {
    z-index: 10002!important;
}
#avatar {
   margin-bottom: 20px
}
.hidden {
    display: none;
}
.title_rating {
    display: inline-block;
    font-size: 16px;
    color: #444;
    font-weight: 600;
    position: relative;
    margin-bottom: 20px;
}
.title_rating:after {
    content: "";
    border-bottom: 3px solid var(--review-color);
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
}
.no_reviews {
    font-size: 13px;
    margin: 10px;
}
.btn_write {
    font-size: 14px;
}
.rating_button .fa {
    margin-right: 5px;
}
.info_rating {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.rating_total {
    margin: 5px 0;
    text-align: center;
    font-size: 12px;
}

.result_rating {
    display: flex;
    justify-content: center;
}
.result_rating span {
    position: relative;
    width: 120px;            
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 36px;
    font-weight: 600;
    color: #333;
    background-color: #fff;
}
.result_rating span::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--review-color) var(--review-percentage), #e0e0e0 0%);
    mask: radial-gradient(closest-side, transparent 65%, white);
}
.rating_table {
    display: grid;
    width: 100%;
    margin-left: 10%;
    line-height: 24px;
}
.block_star {
    display: flex;
    align-items: center;
}
.rating_star {
    white-space: nowrap;
}
.rating_strip {
    width: 100%;
    max-width: 350px;
    height: 6px;
    background: #f5f5f5;
    margin: 0 15px;
}
.rating_star_total {
    font-size: 12px;
    color: #6c757d;
}
.rating_value {
    display: block;
    height: 100%;
    background: var(--review-color);
    border-radius: 5px;
}
.block_rating_sort {
    max-width: 500px;
    margin-top: 20px;
}
.rating_sort {
    display: flex;
    justify-content: flex-end;
}
.rating_sort label {
    font-size: 13px;
    color: #6c757d;
}
#reviews-sort {
    font-size: 13px;
    border: none;
    border-bottom: 1px dashed #909090;
    margin-left: 5px;
    color: #343a40;
}
/* #reviews_list {
    margin-top: 20px;
} */
/* .customer_reviews {
    display: flex;
    position: relative;
    align-items: center;
    border-radius: 5px;
    padding: 10px;
    background-color: #fdfdfd;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgb(112 112 112 / 22%);
} */
/* .review_date {
    position: absolute;
    right: 5px;
    top: 0;
    font-size: 11px;
}
.voting_block {
    position: absolute;
    bottom: 0;
    right: 0;
}
.customer_buy {
    position: absolute;
    left: 5px;
    top: 5px;
}
.review_customer_info {
    text-align: center;
    margin-right: 15px;
}
.customer_avatar img {
    border-radius: 50%;
}
.review_customer_name {
    font-weight: 600;
    color: #555;
    font-size: 12px;
}
.review_customer_status {
    font-size: 10px;
    color: #777;
}
.rating_star .fa-stack {
    font-size: 8px;
}
.rating_star .fa-star-o {
    color: #999;
    font-size: 15px;
}
.rating_star .fa-star {
    color: #FC0;
    font-size: 15px;
}
.rating_star .fa-star + .fa-star-o {
    color: #E69500;
}
.rating_star .fa-star-o:before {
    content: "\f006";
    font-weight: normal;
}
.rating_star.review_rating .fa-stack {
    font-size: 7px;
}
.rating_star.review_rating .fa-star, .rating_star.review_rating .fa-star-o {
    font-size: 13px;
}
.customer_text {
    padding: 10px 0 20px 0;
    font-size: 13px;
    color: #555;
}
.comment_customer {
    position: absolute;
    bottom: 5px;
    margin-left: 20px;
    color: #0076b0;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}
.voting_block button {
    font-size: 12px;
    background: none;
    border: none;
    color: #999;
}
.like_review.active, .dislike_review.active {
    color: var(--review-color);
}
.customer_text_positive, .customer_text_negative {
    margin-top: 5px;
}
.customer_text_positive span {
    color: green;
}
.customer_text_negative span {
    color: red;
}
.review_gallery {
    margin-top: -15px;
    margin-bottom: 20px;
}
.review_photo, .review_video {
    display: inline-block;
    margin: 3px;
    height: 65px;
}
.review_photo {
    width: 65px;
}
.review_video {
    position: relative;
    width: 87px;
}
.youtube_play {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
}
.review_photo img, .review_video img {
    cursor: pointer;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    vertical-align: middle;
    border-radius: 10px;
}
.block_review_comments {
    margin-left: 50px;
}
.btn_review_comments {
    display: flex;
    align-items: center;
    color: #777;
    font-size: 12px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 50px;
    margin-top: -15px;
    margin-bottom: 15px;
}
.btn_review_comments .fa {
    margin-left: 5px;
}
.btn_review_comments.active {
    margin-bottom: 10px;
} */
#reviews_gallery {
    margin-top: 20px;
}
.title_gallery {
    font-size: 14px;
    font-weight: 500;
    color: #000;
}
.list_gallery {
    white-space: nowrap;
    overflow: auto;
}
.list_gallery::-webkit-scrollbar {
    height: 6px;
    border-radius: 10px;
}
.list_gallery::-webkit-scrollbar-track {
    background: #ccc;
    border-radius: 10px;
}
.list_gallery::-webkit-scrollbar-thumb {
    opacity: 0.8;
    background: var(--review-color);
    border-radius: 10px;
}
.list_gallery::-webkit-scrollbar-thumb:hover {
    opacity: 1;
    background: var(--review-color);  
}
/* #more_reviews {
    text-align: center;
} */
/* =========================================================
   POPUP: плавна поява / зникнення (Magnific Popup)
========================================================= */
.mfp-bg {
    opacity: 0;
    transition: opacity .3s ease;
}
.mfp-bg.mfp-ready {
    opacity: .8;
}
.mfp-bg.mfp-removing {
    opacity: 0;
}
.mfp-zoom-in .mfp-with-anim {
    opacity: 0;
    transform: translateY(16px) scale(.97);
    transition: opacity .3s ease, transform .3s ease;
}
.mfp-zoom-in.mfp-ready .mfp-with-anim {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.mfp-zoom-in.mfp-removing .mfp-with-anim {
    opacity: 0;
    transform: translateY(16px) scale(.97);
}

.popup_block, .popup_gallery_block {
    position: relative;
    background: #fff;
    display: block;
    width: 90%;
    margin: 0 auto;
    border-radius: 4px;
}
.popup_block {
    max-width: 500px;
}
.popup_gallery_block {
    max-width: 1200px;
}
.review_title {
    height: 44px;
    background: rgb(242, 244, 248);
    color: #555;
    text-align: center;
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Спільні анімації */
@keyframes rp-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes rp-pop-in {
    from { opacity: 0; transform: scale(.9); }
    to   { opacity: 1; transform: scale(1); }
}

/* Плавне розгортання блоків (grid 0fr → 1fr) */
.rp-collapse {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    transition: grid-template-rows .4s ease, opacity .3s ease, visibility 0s linear .4s;
}
.rp-collapse.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
    transition: grid-template-rows .4s ease, opacity .3s ease .05s, visibility 0s;
}
.rp-collapse__inner {
    min-height: 0;
    overflow: hidden;
}

/* =========================================================
   POPUP: написати відгук
========================================================= */
#write_review {
    width: 100%;
    max-width: 420px;
    border-radius: 0;
    font-family: 'Inter Tight', sans-serif;
    color: #242f33;
}
#write_review .review_title {
    display: block;
    height: auto;
    padding: 30px 60px 0 30px;
    background: none;
    border-radius: 0;
    text-align: left;
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    color: #242f33;
}

/* Хрестик закриття */
#write_review .mfp-close, #gallery_reviews .mfp-close, #ukrcredit-popup .mfp-close {
    top: 10px;
    right: 14px;
    width: 20px;
    height: 20px;
    padding: 0;
    font-size: 0;
    line-height: 0;
    opacity: 1;
    color: transparent;
}
#write_review .mfp-close::before, #gallery_reviews .mfp-close::before, #ukrcredit-popup .mfp-close::before,
#write_review .mfp-close::after, #gallery_reviews .mfp-close::after, #ukrcredit-popup .mfp-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 17px;
    height: 1.5px;
    margin: -.75px 0 0 -8.5px;
    border-radius: 2px;
    background: #7d7c7c;
    transform: rotate(45deg);
    transition: background-color .2s ease;
}
#write_review .mfp-close::after, #gallery_reviews .mfp-close::after, #ukrcredit-popup .mfp-close::after {
    transform: rotate(-45deg);
}
#write_review .mfp-close:hover::before, #gallery_reviews .mfp-close:hover::before, #ukrcredit-popup .mfp-close:hover::before,
#write_review .mfp-close:hover::after, #gallery_reviews .mfp-close:hover::after, #ukrcredit-popup .mfp-close:hover::after {
    background: #242f33;
}

#write_review .content_write {
    padding: 25px 30px 34px;
    font-size: 14px;
    color: #242f33;
}
#add_review .form-group {
    margin: 0 0 14px;
}

/* Лейбли та поля */
#add_review .control-label {
    display: block;
    margin: 0 0 5px 10px;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #242f33;
}
#add_review .rp-req {
    color: #ef7038;
}
#add_review .form-control {
    display: block;
    width: 100%;
    height: 43px;
    padding: 6px 10px;
    border: 2px solid #f3f3f3;
    border-radius: 3px;
    background: #fff;
    box-shadow: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
    color: #242f33;
    outline: none;
    transition: border-color .2s ease;
}
#add_review textarea.form-control {
    height: 100px;
    padding-top: 12px;
    resize: vertical;
}
#add_review .form-control::placeholder {
    color: #7d7c7c;
    opacity: 1;
}
#add_review .form-control:hover {
    border-color: #ddebe4;
}
#add_review .form-control:focus {
    border-color: #33815c;
}
#add_review .has-error .form-control {
    border-color: #e05243;
}
#add_review .text_danger {
    margin-top: 5px;
    font-size: 12px;
    line-height: 16px;
    color: #e05243;
    animation: rp-fade-in .3s ease;
}
#add_review .form-group.has-text-group {
    margin-bottom: 15px;
}

/* Зірки рейтингу */
#add_review .rp-rating {
    margin-bottom: 21px;
}
#add_review .review_stars {
    display: flex;
    justify-content: center;
}
#add_review .review_star {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 0 1 66px;
    min-width: 0;
    color: #ddebe4;
    cursor: pointer;
    transition: color .2s ease;
}
#add_review .review_star__icon {
    display: block;
    width: 36px;
    height: 36px;
    fill: currentColor;
    transition: transform .2s ease;
}
#add_review .review_star:hover .review_star__icon {
    transform: scale(1.12);
}
#add_review .review_star__label {
    font-size: 12px;
    line-height: 16px;
    color: #242f33;
    white-space: nowrap;
}
#add_review .review_stars:hover .review_star,
#add_review .review_stars[data-star="1"] .review_star:nth-child(-n+1),
#add_review .review_stars[data-star="2"] .review_star:nth-child(-n+2),
#add_review .review_stars[data-star="3"] .review_star:nth-child(-n+3),
#add_review .review_stars[data-star="4"] .review_star:nth-child(-n+4),
#add_review .review_stars[data-star="5"] .review_star:nth-child(-n+5) {
    color: #ef7038;
}
#add_review .review_stars:hover .review_star:hover ~ .review_star {
    color: #ddebe4;
}

/* Медіа: фото / відео */
#add_review .rp-media {
    margin-bottom: 14px;
}
#add_review .rp-photo {
    padding-bottom: 15px;
}
#add_review .rp-photo:has(.alert_review) {
    padding-bottom: 10px;
}
#add_review .rp-video {
    padding-bottom: 5px;
}
#add_review .rp-video .form-group {
    margin: 0;
}

#add_review .block_btn_gallery {
    display: flex;
    gap: 12px;
    margin: 0;
}
#add_review .btn_gallery {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 11px;
    max-width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #33815c;
    border-radius: 3px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #242f33;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
    transition: flex-grow .4s ease, max-width .4s ease, max-height .4s ease, padding .4s ease, margin .4s ease,
                border-width .4s ease, opacity .25s ease, background-color .2s ease;
}
#add_review .btn_gallery:hover {
    background: rgba(51, 129, 92, .06);
}
#add_review .btn_gallery svg {
    flex: 0 0 auto;
}
#add_review .btn_gallery.is-hidden {
    flex: 0 0 0;
    max-width: 0;
    margin-right: -12px;
    padding: 0;
    border-width: 0;
    opacity: 0;
    pointer-events: none;
}

/* Dropzone */
#add_review .rp-dropzone {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    min-height: 100px;
    padding: 10px;
    border: 1px dashed #33815c;
    border-radius: 5px;
    background: #fff;
    box-shadow: none;
    transition: background-color .2s ease;
}
#add_review .rp-dropzone.dz-started {
    min-height: 0;
}
#add_review .rp-dropzone:hover,
#add_review .rp-dropzone.dz-drag-hover {
    background: rgba(51, 129, 92, .04);
}
#add_review .rp-dropzone .dz-message {
    position: static;
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 1px 10px;
    transform: none;
    text-align: center;
}
#add_review .rp-dropzone.dz-started .dz-message {
    display: none;
}
#add_review .rp-dropzone .dc-text-title {
    max-width: 310px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: -.01em;
    color: #33815c;
}
#add_review .rp-dropzone .dc-text-info {
    font-size: 12px;
    line-height: 16px;
    color: #7d7c7c;
}
#add_review .rp-dropzone .dz-preview {
    position: relative;
    display: block;
    min-height: 0;
    margin: 0;
    aspect-ratio: 110 / 73;
    border-radius: 3px;
    overflow: hidden;
    background: #f3f3f3;
    cursor: default;
    animation: rp-pop-in .3s ease;
}
#add_review .rp-dropzone .dz-preview .dz-image {
    width: 100%;
    height: 100%;
    border-radius: 3px;
    background: #f3f3f3;
}
#add_review .rp-dropzone .dz-preview .dz-image img,
#add_review .rp-dropzone .dz-preview:hover .dz-image img {
    position: static;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    transform: none;
    filter: none;
}
#add_review .rp-dropzone .dz-preview .dz-progress {
    top: auto;
    bottom: 6px;
    left: 8px;
    right: 8px;
    height: 4px;
    margin: 0;
    border: 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, .7);
    animation: none;
}
#add_review .rp-dropzone .dz-preview .dz-upload {
    border-radius: 2px;
    background: #33815c;
}

/* Кнопка видалення превʼю (фото / відео) */
#add_review .rp-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: #fff;
    color: #999;
    cursor: pointer;
    transition: color .2s ease, transform .2s ease;
}
#add_review .rp-remove:hover {
    color: #242f33;
    transform: scale(1.1);
}

/* Превʼю відео */
#video-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-top: 10px;
}
#video-preview:empty {
    display: none;
}
#add_review .vd-prev {
    position: relative;
    aspect-ratio: 110 / 73;
    border-radius: 3px;
    overflow: hidden;
    background: #f3f3f3;
    animation: rp-pop-in .3s ease;
    transition: opacity .25s ease, transform .25s ease;
}
#add_review .vd-prev.is-leaving {
    opacity: 0;
    transform: scale(.9);
}
#add_review .vd-prev .thumbnail {
    display: block;
    width: 100%;
    height: 100%;
}
#add_review .vd-prev img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Повідомлення (успіх / помилка) */
#add_review .alert_review {
    position: relative;
    display: block;
    margin-top: 5px;
    padding: 1px 34px 2px 10px;
    border-radius: 3px;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -.01em;
    animation: rp-fade-in .3s ease;
    transition: opacity .25s ease, transform .25s ease;
}
#add_review .alert_review.is-leaving {
    opacity: 0;
    transform: translateY(-4px);
}
#add_review .alert_success {
    background: rgba(51, 129, 92, .06);
    color: #33815c;
}
#add_review .alert_danger {
    background: rgba(224, 82, 67, .06);
    color: #e05243;
}
#add_review .alert_review_close {
    position: absolute;
    top: 50%;
    right: 10px;
    display: flex;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    padding: 0;
    border: 0;
    background: none;
    color: #999;
    cursor: pointer;
    transition: color .2s ease;
}
#add_review .alert_review_close:hover {
    color: #242f33;
}

/* Чекбокс сповіщень */
#add_review .review_notify {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #7d7c7c;
    cursor: pointer;
    user-select: none;
}
#add_review .checkbox_notify {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
#add_review .review_notify__box {
    position: relative;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border: 1px solid #242f33;
    border-radius: 5px;
    background: #fff;
    transition: background-color .2s ease, border-color .2s ease;
}
#add_review .review_notify__box::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: rotate(45deg) scale(.6);
    transition: opacity .2s ease, transform .2s ease;
}
#add_review .checkbox_notify:checked + .review_notify__box {
    border-color: #33815c;
    background: #33815c;
}
#add_review .checkbox_notify:checked + .review_notify__box::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}
#add_review .checkbox_notify:focus-visible + .review_notify__box {
    box-shadow: 0 0 0 3px rgba(51, 129, 92, .2);
}

#block_captcha label {
    display: none;
}
#add_review #block_review_email {
    margin-bottom: 15px;
}
#block_captcha:not(:empty) {
    margin-bottom: 15px;
}

/* Кнопка «Залишити відгук» */
#add_review #button_write {
    display: block;
    width: 100%;
    margin: 0;
    padding: 12px 10px 13px;
    border: 0;
    border-radius: 3px;
    background: #33815c;
    box-shadow: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    cursor: pointer;
    transition: background-color .2s ease, opacity .2s ease;
}
#add_review #button_write:hover {
    background: #2a6b4c;
}
#add_review #button_write.is-loading {
    opacity: .7;
    cursor: wait;
}

.text_danger {
    color: red;
}
.text_success {
    text-align: center;
    font-size: 14px;
}
#add_review .text_success {
    padding: 20px 0;
    font-size: 16px;
    line-height: 1.4;
    color: #33815c;
    animation: rp-fade-in .4s ease;
}

/* Інші сторінки (аватар) */
.alert_review {
    color: #fff;
    display: flex;
    justify-content: space-between;
    padding: 3px 7px;
    border-radius: 3px;
}
.alert_danger {
    background: #e26161;
}
.alert_success {
    background: #64b269;
}
.alert_review_close {
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 480px) {
    #write_review .review_title {
        padding: 24px 50px 0 20px;
        font-size: 18px;
    }
    #write_review .content_write {
        padding: 20px 20px 24px;
    }
    #add_review .rp-dropzone .dc-text-title {
        font-size: 13px;
        line-height: 18px;
    }
}

/* Вузькі екрани: кнопки фото / відео одна під одною */
@media (max-width: 420px) {
    #add_review .block_btn_gallery {
        flex-direction: column;
        gap: 10px;
    }
    #add_review .btn_gallery {
        flex: 0 0 auto;
        max-height: 36px;
    }
    #add_review .btn_gallery.is-hidden {
        flex: 0 0 auto;
        max-width: 100%;
        max-height: 0;
        margin: 0 0 -10px;
    }
}

@media (max-width: 360px) {
    #add_review .review_star__label {
        font-size: 11px;
    }
}

/* =========================================================
   POPUP: галерея фото та відео відгуків
========================================================= */
#gallery_reviews {
    width: 100%;
    max-width: 1200px;
    padding: 30px 30px 20px;
    border-radius: 0;
    font-family: 'Inter Tight', sans-serif;
    color: #242f33;
}
#gallery_reviews .review_title {
    display: block;
    height: auto;
    margin: 0 0 20px;
    padding: 0 40px 0 0;
    background: none;
    border-radius: 0;
    text-align: left;
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    color: #242f33;
}
#gallery_reviews .mfp-close,
#ukrcredit-popup .mfp-close {
    right: 10px;
}
.reviews_carousel {
    padding: 0;
}
.review_item, .review_gallery_item {
    display: none;
}
.review_item.active {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    animation: rp-fade-in .3s ease;
}
.review_gallery_item.active {
    display: block;
    height: 100%;
    animation: rp-gallery-fade .35s ease;
}
@keyframes rp-gallery-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.carousel_content {
    width: 100%;
}
.container_gallery {
    position: relative;
    flex: 0 0 650px;
    max-width: 650px;
    height: 580px;
}
.review_gallery_item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.review_gallery_item iframe {
    display: block;
    width: 100%;
    height: 100%;
}
.info_counter {
    display: none;
}
.reviews_nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fefefe;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 3px 3px rgba(0, 0, 0, .09), 0 7px 4px rgba(0, 0, 0, .05);
    color: #5e5656;
    cursor: pointer;
    transition: transform .2s ease, color .2s ease;
}
.reviews_nav:hover {
    color: #33815c;
    transform: scale(1.12);
}
.prev_review {
    left: 11px;
}
.next_review {
    right: 6px;
}
.container_review {
    flex: 0 1 450px;
    min-width: 0;
}
.gallery_review_card {
    padding: 18px 56px 18px 18px;
    border: 2px solid #f3f3f3;
    border-radius: 3px;
    font-size: 14px;
}
.gallery_review_card__stars {
    display: flex;
}
.gallery_review_card__stars svg {
    display: block;
}
.gallery_review_card__author {
    margin-top: 7px;
    font-weight: 600;
    line-height: 17px;
    color: #000;
}
.gallery_review_card__text {
    margin-top: 9px;
    line-height: 22px;
    color: #696969;
    overflow-wrap: anywhere;
}
.gallery_review_card__row {
    margin-top: 2px;
    line-height: 22px;
    color: #696969;
}
.gallery_review_card__row strong {
    margin-right: 2px;
    font-weight: 600;
    color: #000;
}
@media (max-width: 1100px) {
    .container_gallery {
        flex-basis: 55%;
        height: auto;
        aspect-ratio: 650 / 580;
    }
}
@media (max-width: 768px) {
    #gallery_reviews {
        padding: 24px 20px 20px;
    }
    #gallery_reviews .review_title {
        font-size: 18px;
    }
    .review_item.active {
        flex-direction: column;
        gap: 20px;
    }
    .container_gallery {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
    }
    .container_review {
        flex: 0 0 auto;
        width: 100%;
    }
    .gallery_review_card {
        padding-right: 18px;
    }
}
@media (max-width: 500px) {
    .info_rating {
        display: block;
    }
    .rating_button {
        text-align: center;
        margin-bottom: 20px;
    }
    .rating_table {
        display: block;
        margin-left: 0;
    }
}
