/* ==========================================================================
   Dokan Add Review - Review Card Shortcode Styles
   Brand color: #000435 | Flat design, no box-shadow
   ========================================================================== */

.dar-review-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 640px;
}

/* ---------- Carousel ---------- */
.dar-review-carousel {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.dar-rc-carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.dar-rc-carousel-track {
    display: flex;
    align-items: stretch;
    transition: transform 0.35s ease;
}

/* 1 review per view on mobile (default) */
.dar-rc-carousel-slide {
    flex: 0 0 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 8px;
}

/* 2 reviews per view on desktop */
@media (min-width: 769px) {
    .dar-rc-carousel-slide {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.dar-rc-carousel-slide .dar-review-card {
    max-width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.dar-rc-carousel-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    line-height: 0;
}

.dar-rc-carousel-dots .dar-rc-dot,
.dar-rc-dot {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: inline-block;
    box-sizing: border-box;
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
    max-width: 10px;
    max-height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    border: 1px solid #000435;
    background-color: #ffffff;
    background-image: none;
    background-clip: padding-box;
    padding: 0;
    margin: 0;
    cursor: pointer;
    box-shadow: none;
    outline: none;
    line-height: 1;
    font-size: 0;
    overflow: hidden;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.dar-rc-dot:hover {
    transform: scale(1.15);
}

.dar-rc-dot:focus {
    box-shadow: none;
    outline: none;
}

.dar-rc-dot-active,
.dar-rc-carousel-dots .dar-rc-dot-active {
    background-color: #000435;
}

.dar-review-card {
    background: #ffffff;
    border: 1px solid #000435;
    border-radius: 10px;
    padding: 24px 28px;
    max-width: 640px;
    box-shadow: none; /* explicitly flat, per brand guideline */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    transition: border-color 0.15s ease; /* subtle hover, no shadow */
}

.dar-review-card:hover {
    border-color: #000435;
    opacity: 0.97;
}

/* ---------- Header: product / vendor ---------- */
.dar-rc-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.dar-rc-product-img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.dar-rc-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dar-rc-product-name {
    font-size: 16px;
    font-weight: 700;
    color: #000435;
    line-height: 1.3;
}

.dar-rc-vendor {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
}

.dar-rc-vendor-strong {
    font-size: 15px;
    font-weight: 700;
    color: #000435;
    text-transform: none;
    letter-spacing: normal;
}

.dar-rc-header-vendor-only {
    margin-bottom: 14px;
}

/* ---------- Divider ---------- */
.dar-rc-divider {
    height: 1px;
    background: rgba(0, 4, 53, 0.12);
    margin-bottom: 16px;
}

/* ---------- Rating row ---------- */
.dar-rc-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.dar-rc-stars {
    font-size: 16px;
    letter-spacing: 2px;
}

.dar-rc-star-filled {
    color: #f0b429;
}

.dar-rc-star-empty {
    color: #e2e8f0;
}

.dar-rc-rating-number {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.dar-rc-date {
    margin-left: auto;
    font-size: 13px;
    color: #94a3b8;
}

/* ---------- Title / reviewer ---------- */
.dar-rc-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.4;
}

.dar-rc-reviewer {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 14px;
}

/* ---------- Full review body ---------- */
.dar-rc-body {
    font-size: 14.5px;
    color: #334155;
    line-height: 1.6;
}

.dar-rc-body p {
    margin: 0 0 10px;
}

.dar-rc-body p:last-child {
    margin-bottom: 0;
}

/* ---------- Empty / error notice ---------- */
.dar-review-notice {
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    font-size: 14px;
    background: #f8faff;
    max-width: 640px;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .dar-review-card {
        padding: 18px 18px;
    }

    .dar-rc-date {
        margin-left: 0;
        width: 100%;
    }

    .dar-rc-product-img {
        width: 44px;
        height: 44px;
    }
}
