/* ─────────────────────────────────────────────────────────────
   Infocus_ReviewMedia — frontend review layout styles
   ───────────────────────────────────────────────────────────── */

/* ── Utility ─────────────────────────────────────────────────── */
.infocus-hidden {
    display: none;
}

/* Rating bar width is set from data-percent via JS (avoids inline style) */
.review-rating-bar {
    display: inline-block;
}

/* ── Review list ─────────────────────────────────────────────── */
.review-items {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.review-item {
    padding: 15px 10px;
    border: 1px solid #c9c9c9;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    margin: 10px 0;
    background: #fff;
    min-height: 250px;
    height: 100%;
}

.review-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
}

.review-ratings {
    display: block;
    margin-bottom: 10px;
}

.review-content {
    margin: 10px 0;
    min-height: 72px;
    max-height: 72px;
    overflow-y: auto;
    line-height: 24px;
    color: #555;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.review-content::-webkit-scrollbar {
    display: none;
}

.review-details {
    margin-top: auto;
}

.review-author,
.review-date {
    margin: 5px 0;
}

#customer-reviews .block-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-toolbar {
    margin-top: 30px;
}

/* ── Slick arrows ────────────────────────────────────────────── */
.slick-prev,
.slick-next {
    z-index: 2;
    width: 35px;
    height: 35px;
}

.slick-prev:before,
.slick-next:before {
    color: #000;
    font-size: 28px;
}

.review-items.slick-slider {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-items .slick-list {
    flex: 1;
    margin: 0 -10px;
}

.review-items .slick-slide {
    padding: 0 10px;
    box-sizing: border-box;
}

.review-items .slick-prev,
.review-items .slick-next {
    position: static;
    transform: none;
    width: 35px;
    height: 35px;
    flex-shrink: 0;
}

.review-items .slick-prev:before,
.review-items .slick-next:before {
    color: #000;
    font-size: 28px;
}

@media only screen and (max-width: 768px) {
    .review-item {
        margin: 0 5px;
    }
}

/* ── Review thread wrapper ────────────────────────────────────── */
.infocus-review-thread {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #ececec;
}

/* ── Seller response toggle button ───────────────────────────── */
.infocus-review-comments__toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #1976d2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.infocus-review-comments__arrow {
    font-size: 10px;
}

/* ── Replies panel — override _module.less blue box ──────────── */
.infocus-review-replies {
    display: none;
    margin-top: 10px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
}

.infocus-review-replies--visible {
    display: block;
}

/* ── Each reply row ──────────────────────────────────────────── */
.infocus-review-replies__item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.infocus-review-replies__item:last-child {
    border-bottom: none;
}

/* ── Author badge ─────────────────────────────────────────────── */
.infocus-review-replies__author {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    padding: 2px 7px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

.infocus-review-replies__author--admin {
    background: #e8f0fe;
    color: #1a3c6e;
}

.infocus-review-replies__author--customer {
    background: #e6f4ea;
    color: #1a5c2e;
}

.infocus-review-replies__body {
    flex: 1;
    min-width: 0;
}

.infocus-review-replies__text {
    color: #333;
    line-height: 1.5;
    margin-bottom: 3px;
}

.infocus-review-replies__date {
    font-size: 11px;
    color: #999;
}

/* ── Pending badge ────────────────────────────────────────────── */
.infocus-review-replies__pending-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #7a5c00;
    background: #fef3cd;
    border: 1px solid #f5a623;
    border-radius: 3px;
    padding: 1px 6px;
    margin-left: 4px;
}

/* ── Reply form heading ───────────────────────────────────────── */
.infocus-reply-form__heading {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin: 14px 0 6px;
}

/* ── Reply form ───────────────────────────────────────────────── */
.infocus-reply-form__form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.infocus-reply-form__textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    resize: vertical;
    font-family: inherit;
    min-height: 80px;
}

.infocus-reply-form__textarea:focus {
    outline: none;
    border-color: #1976d2;
}

.infocus-reply-form__actions {
    display: flex;
}

/* ── Inline pending review (inside approved review thread) ───── */
.infocus-pending-inline {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #e0e0e0;
    background: none;
    border-left: none;
    border-right: none;
    border-bottom: none;
}

.infocus-pending-inline__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.infocus-pending-inline__text {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 4px;
}

/* ── Pending review card (JS-injected, owner-only) ───────────── */
.infocus-pending-review-item {
    border-color: #f5a623;
    background: #fffdf7;
}

.infocus-pending-review-item__header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.infocus-pending-review-item__header .review-title {
    margin: 0;
}

/* ── Pending Approval tag (small inline chip) ─────────────────── */
.infocus-pending-reviews__badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #7a5c00;
    background: #fef3cd;
    border: 1px solid #f5a623;
    border-radius: 10px;
    padding: 1px 8px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    vertical-align: middle;
}

/* ── Pending review conversation bubbles ─────────────────────── */
.infocus-pending-reviews__bubble {
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    max-width: 85%;
}

.infocus-pending-reviews__bubble--admin {
    background: #e8f0fe;
    margin-right: auto;
    border-bottom-left-radius: 2px;
}

.infocus-pending-reviews__bubble--customer {
    background: #e6f4ea;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

.infocus-pending-reviews__bubble-author {
    font-size: 11px;
    font-weight: 700;
    color: #555;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.infocus-pending-reviews__bubble-text {
    color: #333;
    line-height: 1.5;
}

.infocus-pending-reviews__bubble-date {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
    text-align: right;
}
