/* Storefront reviews showcase + modal */
.shosha-reviews-showcase {
    --orange: var(--reviews-accent, #ff9900);
    --dark: #080808;
    --card-bg: var(--reviews-card-bg, rgba(15, 15, 15, 0.85));
    --border-color: var(--reviews-card-border, #222);
    --text-color: var(--reviews-card-text, #eee);
    --label-color: #555;
    --focused-label: #aaa;
    --star-dim: #222;
    padding: 3rem 0 3.5rem;
    background: var(--reviews-section-bg, transparent);
}
.shosha-reviews-showcase.shosha-reviews-showcase--custom-space {
    padding-top: var(--reviews-sec-space, 0) !important;
    padding-bottom: var(--reviews-sec-space, 0) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.shosha-reviews-showcase__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    position: relative;
}
.shosha-reviews-showcase .section-header {
    text-align: center;
    margin-bottom: 1rem;
}
.shosha-reviews-showcase .subtitle {
    color: var(--orange);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: var(--reviews-kicker-ff-en, inherit);
}
.shosha-public-store[data-shosha-lang="ar"] .shosha-reviews-showcase .subtitle {
    font-family: var(--reviews-kicker-ff-ar, var(--reviews-kicker-ff-en, inherit));
}
.shosha-reviews-showcase .main-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--reviews-title-color, #fff);
    margin: 0;
    font-family: var(--reviews-title-ff-en, inherit);
}
.shosha-public-store[data-shosha-lang="ar"] .shosha-reviews-showcase .main-title {
    font-family: var(--reviews-title-ff-ar, var(--reviews-title-ff-en, inherit));
}
.shosha-reviews-showcase .main-title span {
    color: var(--orange);
}
.shosha-public-store[data-shosha-lang="en"] .shosha-reviews-showcase__header-content--ar,
.shosha-public-store[data-shosha-lang="ar"] .shosha-reviews-showcase__header-content--en {
    display: none;
}
.shosha-reviews-showcase__carousel {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    padding: 0;
    max-width: 100%;
}
/* Keep review nav arrows pointing outward (LTR control bar) even on RTL pages. */
.shosha-public-store[dir="rtl"] .shosha-reviews-showcase__carousel {
    direction: ltr;
}
.shosha-reviews-showcase__slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 4px;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}
.shosha-reviews-showcase__slider.is-dragging {
    scroll-behavior: auto;
    cursor: grabbing;
}
.shosha-reviews-showcase__slider.is-animating {
    scroll-behavior: auto;
    pointer-events: none;
}
.shosha-reviews-showcase__slider::-webkit-scrollbar {
    display: none;
}
.shosha-reviews-showcase .holo-review-card {
    background: var(--card-bg);
    border-radius: 5px;
    border-left: 3px solid var(--reviews-card-border, var(--orange));
    border-top: 1px solid color-mix(in srgb, var(--reviews-card-border, var(--orange)) 12%, transparent);
    border-right: 1px solid color-mix(in srgb, var(--reviews-card-border, var(--orange)) 12%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--reviews-card-border, var(--orange)) 12%, transparent);
    color: var(--text-color);
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 0 0 calc(33.333% - 20px);
    min-width: 300px;
    font-family: var(--reviews-card-ff-en, inherit);
}
.shosha-public-store[data-shosha-lang="ar"] .shosha-reviews-showcase .holo-review-card {
    font-family: var(--reviews-card-ff-ar, var(--reviews-card-ff-en, inherit));
}
.shosha-reviews-showcase .holo-review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    transition: 0.5s;
}
.shosha-reviews-showcase .holo-review-card:hover::before {
    left: 100%;
}
.shosha-reviews-showcase .holo-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 153, 0, 0.05);
}
.shosha-reviews-showcase .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 1px solid #151515;
    padding-bottom: 15px;
}
.shosha-reviews-showcase .user-info h4 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}
.shosha-reviews-showcase .user-info span {
    font-size: 0.75rem;
    color: var(--focused-label);
    font-family: ui-monospace, monospace;
}
.shosha-reviews-showcase .ratings-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}
.shosha-reviews-showcase .rating-row {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.shosha-public-store[data-shosha-lang="en"] .shosha-reviews-showcase__rating-label--ar,
.shosha-public-store[data-shosha-lang="ar"] .shosha-reviews-showcase__rating-label--en {
    display: none;
}
.shosha-reviews-showcase .stars {
    font-size: 0.95rem;
    letter-spacing: 2px;
}
.shosha-reviews-showcase .star-filled {
    color: var(--orange);
    text-shadow: 0 0 8px rgba(255, 153, 0, 0.5);
}
.shosha-reviews-showcase .star-empty {
    color: var(--star-dim);
}
.shosha-reviews-showcase .comment-text {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}
.shosha-reviews-showcase .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: var(--label-color);
    font-family: ui-monospace, monospace;
    border-top: 1px solid #111;
    padding-top: 12px;
    margin-top: 12px;
}
.shosha-reviews-showcase .status-node {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #00ff66;
    text-shadow: 0 0 5px rgba(0, 255, 102, 0.3);
}
.shosha-reviews-showcase .status-node::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #00ff66;
    border-radius: 50%;
}
.shosha-public-store[data-shosha-lang="en"] .shosha-reviews-showcase__verified--ar,
.shosha-public-store[data-shosha-lang="ar"] .shosha-reviews-showcase__verified--en {
    display: none;
}
.shosha-reviews-showcase__nav {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    flex: 0 0 45px;
    background: rgba(10, 10, 10, 0.92);
    border: 1px solid var(--border-color);
    color: var(--orange);
    width: 45px;
    height: 45px;
    min-width: 45px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 2;
    padding: 0;
    box-sizing: border-box;
}
.shosha-reviews-showcase__nav svg {
    display: block;
    stroke: currentColor;
    pointer-events: none;
}
.shosha-reviews-showcase__nav:hover {
    border-color: var(--orange);
    color: #fff;
    background: var(--orange);
    box-shadow: 0 0 15px var(--orange);
}
.shosha-reviews-showcase__nav:hover svg {
    stroke: #fff;
}
.shosha-reviews-showcase__empty {
    text-align: center;
    color: var(--reviews-empty-color, #888);
    padding: 2rem 1rem;
    font-family: var(--reviews-empty-ff-en, inherit);
}
.shosha-public-store[data-shosha-lang="ar"] .shosha-reviews-showcase__empty {
    font-family: var(--reviews-empty-ff-ar, var(--reviews-empty-ff-en, inherit));
}
.shosha-public-store[data-shosha-lang="en"] .shosha-reviews-showcase__empty--ar,
.shosha-public-store[data-shosha-lang="ar"] .shosha-reviews-showcase__empty--en {
    display: none;
}

/* Review modal */
.shosha-review-modal {
    position: fixed;
    inset: 0;
    z-index: 120150;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
}
.shosha-review-modal[hidden] {
    display: none !important;
}
.shosha-review-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(4px);
    pointer-events: auto;
    cursor: pointer;
}
.shosha-review-modal__wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 920px;
}
.shosha-review-modal .holo-review {
    --orange: #ff9900;
    --card-bg: rgba(15, 15, 15, 0.95);
    --border-color: #333;
    --label-color: #555;
    --star-dim: #222;
    width: 100%;
    display: flex;
    background: var(--card-bg);
    border-radius: 5px;
    border-left: 4px solid var(--orange);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 153, 0, 0.05);
    overflow: hidden;
    flex-wrap: wrap;
    position: relative;
}
.shosha-review-modal .holo-review::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    animation: shosha-review-line-move 3s linear infinite;
    z-index: 2;
}
@keyframes shosha-review-line-move {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.shosha-review-modal .review-section {
    flex: 1;
    padding: 40px 36px;
    box-sizing: border-box;
    min-width: 300px;
}
.shosha-review-modal .review-section.branding {
    background: rgba(10, 10, 10, 0.6);
    border-right: 1px solid #1a1a1a;
}
.shosha-review-modal .subtitle {
    color: var(--orange);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-weight: 600;
}
.shosha-review-modal .main-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 16px;
}
.shosha-review-modal .main-title span {
    color: var(--orange);
    display: inline;
    white-space: nowrap;
}
.shosha-review-modal .branding p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}
.shosha-review-modal[dir="rtl"] .review-section.branding {
    text-align: right;
    border-right: none;
    border-left: 1px solid #1a1a1a;
}
.shosha-review-modal[dir="rtl"] .holo-review {
    border-left: none;
    border-right: 4px solid var(--orange);
}
.shosha-review-modal[dir="rtl"] .review-section.terminal {
    text-align: right;
}
.shosha-review-modal__order-ref {
    margin-top: 14px !important;
    font-family: ui-monospace, monospace;
    color: var(--orange) !important;
    font-size: 0.85rem !important;
}
.shosha-review-modal .rating-title {
    color: #fff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}
.shosha-review-modal .rating-title::before {
    content: '//';
    color: var(--orange);
    font-weight: bold;
    flex: 0 0 auto;
    order: -1;
}
.shosha-review-modal[dir="rtl"] .rating-block {
    text-align: right;
}
.shosha-review-modal .star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
}
.shosha-review-modal[dir="rtl"] .star-rating {
    justify-content: flex-start;
}
.shosha-review-modal .star-rating input {
    display: none;
}
.shosha-review-modal .star-rating label {
    font-size: 1.8rem;
    color: var(--star-dim);
    cursor: pointer;
    transition: color 0.2s, transform 0.1s;
}
.shosha-review-modal .star-rating label:hover,
.shosha-review-modal .star-rating label:hover ~ label,
.shosha-review-modal .star-rating input:checked ~ label {
    color: var(--orange);
    text-shadow: 0 0 12px rgba(255, 153, 0, 0.6);
}
.shosha-review-modal .input-group {
    position: relative;
    margin-top: 32px;
    margin-bottom: 24px;
}
.shosha-review-modal .input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    color: #fff;
    font-size: 1.05rem;
    outline: none;
    height: 70px;
    resize: none;
    font-family: inherit;
    box-sizing: border-box;
}
.shosha-review-modal .input-group label {
    position: absolute;
    top: 10px;
    inset-inline-start: 0;
    color: var(--label-color);
    transition: 0.4s;
    pointer-events: none;
}
.shosha-review-modal[dir="rtl"] .input-group label {
    text-align: right;
}
.shosha-review-modal[dir="rtl"] .input-group textarea {
    text-align: right;
}
.shosha-review-modal .input-group textarea:focus ~ label,
.shosha-review-modal .input-group textarea:valid ~ label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--orange);
}
.shosha-review-modal .input-group textarea:focus {
    border-bottom-color: var(--orange);
    box-shadow: 0 5px 15px -5px rgba(255, 153, 0, 0.3);
}
.shosha-review-modal .action-container {
    display: flex;
    gap: 12px;
}
.shosha-review-modal .btn-holo {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    border: 1px solid var(--orange);
    color: var(--orange);
    padding: 14px 20px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.5s;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}
.shosha-review-modal .btn-holo:hover {
    color: #fff;
    background: var(--orange);
    box-shadow: 0 0 25px var(--orange);
}
.shosha-review-modal .btn-holo.secondary {
    border-color: #444;
    color: #aaa;
    flex: 0 0 auto;
    padding: 14px 22px;
}
.shosha-review-modal .btn-holo.secondary:hover {
    border-color: #666;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}
.shosha-review-modal__msg {
    font-size: 0.88rem;
    margin: 0 0 12px;
    color: #fecaca;
}
.shosha-review-modal__msg.is-ok {
    color: #bbf7d0;
}
.shosha-my-order-action--rate {
    color: var(--shosha-login-orange, #ff9900) !important;
    border-color: rgba(255, 153, 0, 0.45) !important;
    margin-inline-start: 0.5rem;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
    background: transparent !important;
}
.shosha-login-modal .shosha-my-order-action--rate:hover,
.shosha-login-modal .shosha-my-order-action--rate:focus,
.shosha-login-modal .shosha-my-order-action--rate:active,
.shosha-login-modal .shosha-my-order-action--rate:focus-visible {
    color: #fff !important;
    background: rgba(255, 153, 0, 0.12) !important;
    border-color: var(--shosha-login-orange, #ff9900) !important;
    outline: none !important;
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.55) !important;
}
@media (max-width: 992px) {
    .shosha-reviews-showcase .holo-review-card {
        flex: 0 0 calc(50% - 15px);
    }
}
@media (max-width: 890px) {
    .shosha-review-modal .holo-review {
        flex-direction: column;
    }
    .shosha-review-modal .review-section {
        min-width: 100%;
        padding: 28px 22px;
    }
    .shosha-review-modal .review-section.branding {
        border-right: none;
        border-bottom: 1px solid #1a1a1a;
    }
    .shosha-review-modal[dir="rtl"] .review-section.branding {
        border-left: none;
    }
    .shosha-review-modal .main-title span {
        white-space: normal;
    }
}
@media (max-width: 680px) {
    .shosha-reviews-showcase .holo-review-card {
        flex: 0 0 100%;
    }
    .shosha-reviews-showcase__carousel {
        gap: 8px;
    }
    .shosha-reviews-showcase__nav {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
}
