/* Review caption on the product gallery item. Absolute, so the slide box does not grow. */

.cnbiz-grev {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    max-height: 48%;
    z-index: 18;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px 12px 8px;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    color: #fff;
    direction: rtl;
    font-family: 'Noto Sans Hebrew', sans-serif;
    pointer-events: none;
    overflow: hidden;
    transition: max-height 0.28s ease;
}

.cnbiz-grev.is-open {
    max-height: 74%;
}

.cnbiz-grev[hidden] {
    display: none !important;
}

.cnbiz-grev-inner {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    max-height: 100%;
}

.cnbiz-grev-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin-bottom: 2px;
    font-size: 12px;
    line-height: 1.3;
}

.cnbiz-grev-stars {
    flex: 0 0 auto;
    color: #f5c518;
    letter-spacing: 1px;
    font-size: 11px;
}

.cnbiz-grev-stars .far {
    opacity: 0.55;
}

.cnbiz-grev-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.cnbiz-grev-name a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cnbiz-grev-date {
    flex: 0 0 auto;
    opacity: 0.85;
    font-size: 11px;
}

.cnbiz-grev-count {
    flex: 0 0 auto;
    margin-right: auto;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 11px;
    font-weight: 700;
    direction: ltr;
}

.cnbiz-grev-excerpt {
    position: relative;
    margin: 0;
    min-width: 0;
    font-size: 13px;
    line-height: 1.35;
    cursor: default;
}

.cnbiz-grev-excerpt.is-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.cnbiz-grev-excerpt.is-long {
    cursor: pointer;
}

.cnbiz-grev-more {
    font-weight: 700;
    white-space: nowrap;
}

.cnbiz-grev.is-open .cnbiz-grev-excerpt {
    display: block;
    -webkit-line-clamp: unset;
    overflow: auto;
    max-height: 40vh;
    white-space: pre-wrap;
    cursor: pointer;
}

.cnbiz-grev-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.cnbiz-grev .cnbiz-like-btn,
.cnbiz-grev-reply {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
}

.cnbiz-grev .cnbiz-like-btn.active,
.cnbiz-grev .cnbiz-like-btn.active i {
    color: #fb7185;
    border-color: rgba(251, 113, 133, 0.75);
    background: transparent;
}

.cnbiz-grev .cnbiz-like-btn.is-locked,
.cnbiz-grev .cnbiz-like-btn.is-locked:hover,
.cnbiz-grev .cnbiz-like-btn:hover {
    color: #fff !important;
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    opacity: 0.92;
    transform: none;
    box-shadow: none;
}

.cnbiz-grev .cnbiz-like-btn.active:hover,
.cnbiz-grev .cnbiz-like-btn.active:hover i {
    color: #fb7185 !important;
    border-color: rgba(251, 113, 133, 0.75) !important;
    background: transparent !important;
}

.cnbiz-grev-name a:focus-visible,
.cnbiz-grev-excerpt:focus-visible,
.cnbiz-grev .cnbiz-like-btn:focus-visible,
.cnbiz-grev-reply:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.flex-control-thumbs li,
.cannabiz-mobile-thumb {
    position: relative;
}

.cnbiz-grev-thumb-score {
    position: absolute;
    top: 3px;
    right: 3px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 1px 4px;
    border-radius: 999px;
    background: rgba(15, 41, 45, 0.82);
    color: #fff;
    font-family: 'Noto Sans Hebrew', sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    pointer-events: none;
    direction: ltr;
}

.cnbiz-grev-thumb-score i {
    color: #f5c518;
    font-size: 9px;
}

@media (min-width: 769px) {
    .cnbiz-grev {
        padding: 28px 16px 12px;
    }
    .cnbiz-grev-excerpt {
        font-size: 14px;
    }
    .cnbiz-grev-meta {
        font-size: 13px;
    }
}

.pswp .cnbiz-grev {
    z-index: 80;
}

.pswp.cnbiz-grev-pswp-on .pswp__caption {
    opacity: 0;
    pointer-events: none;
}

/* Dark-mode catch-alls recolor p, spans and links. The caption sits on a
   photo, so it keeps the light-mode white, gold stars and the same gradient. */
[data-theme="dim"] .cnbiz-grev {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    color: #fff;
}

[data-theme="dim"] body.single-product div.product .cnbiz-grev p.cnbiz-grev-excerpt,
[data-theme="dim"] body.single-product .pswp .cnbiz-grev p.cnbiz-grev-excerpt,
[data-theme="dim"] body.single-product div.product .cnbiz-grev .cnbiz-grev-inner span.cnbiz-grev-more,
[data-theme="dim"] body.single-product .pswp .cnbiz-grev .cnbiz-grev-inner span.cnbiz-grev-more,
[data-theme="dim"] body.single-product div.product .cnbiz-grev .cnbiz-grev-inner span.cnbiz-grev-date,
[data-theme="dim"] body.single-product .pswp .cnbiz-grev .cnbiz-grev-inner span.cnbiz-grev-date,
[data-theme="dim"] body.single-product div.product .cnbiz-grev .cnbiz-grev-inner span.cnbiz-grev-name,
[data-theme="dim"] body.single-product .pswp .cnbiz-grev .cnbiz-grev-inner span.cnbiz-grev-name,
[data-theme="dim"] body.single-product div.product .woocommerce-product-gallery .cnbiz-grev .cnbiz-grev-inner .cnbiz-grev-meta span.cnbiz-grev-name a,
[data-theme="dim"] body.single-product .pswp .cnbiz-grev .cnbiz-grev-inner .cnbiz-grev-meta span.cnbiz-grev-name a {
    color: #fff;
}

[data-theme="dim"] body.single-product div.product .cnbiz-grev .cnbiz-grev-inner span.cnbiz-grev-stars,
[data-theme="dim"] body.single-product .pswp .cnbiz-grev .cnbiz-grev-inner span.cnbiz-grev-stars {
    color: #f5c518;
}

body:has(.pswp--open) .mfp-bg {
    z-index: 100020 !important;
}

body:has(.pswp--open) .mfp-wrap {
    z-index: 100021 !important;
}
