.customer-review-page {
    background: #ffffff;
    padding: 20px 0 60px;
    font-family: 'Poppins', sans-serif;
}

.crp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    gap: 20px;
}

.crp-title {
    font-size: 30px;
    font-weight: 700;
    color: #111111;
    margin: 0 0 6px;
    line-height: 1.2;
}

.crp-title span {
    color: #ff6a00;
}

.crp-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

.crp-header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.crp-rating-summary {
    text-align: center;
}

.crp-rating-number {
    font-size: 36px;
    font-weight: 800;
    color: #ff6a00;
    line-height: 1;
}

.crp-rating-summary .crp-rating-stars {
    color: #ffb800;
    font-size: 16px;
    margin: 4px 0;
    letter-spacing: 1px;
}

.crp-review-count {
    font-size: 13px;
    color: #6b7280;
}

.crp-write-btn {
    background: #ff6a00;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0 22px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.crp-write-btn:hover {
    background: #e55f00;
    color: #ffffff;
}

.crp-filter-bar {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.crp-tabs {
    display: flex;
    gap: 8px;
}

.crp-tab {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    background: transparent;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.crp-tab:hover {
    background: #f9fafb;
    color: #111111;
}

.crp-tab.active {
    background: #fff0e6;
    color: #ff6a00;
    border-color: #fff0e6;
}

.crp-sort {
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: #ffffff;
    outline: none;
    cursor: pointer;
}

.crp-reviews-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
    background-color: #f3f4f6;
}

.crp-review-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    padding: 16px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 430px;
    box-sizing: border-box;
}

.crp-review-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.crp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 54px;
    margin-bottom: 0;
    gap: 8px;
    flex-shrink: 0;
}

.crp-card-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.crp-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.crp-customer-info {
    min-width: 0;
}

.crp-customer-name {
    font-size: 14px;
    font-weight: 600;
    color: #111111;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crp-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 500;
    color: #16a34a;
    background: #f0fdf4;
    padding: 2px 6px;
    border-radius: 12px;
}

.crp-verified-badge i {
    font-size: 10px;
}

.crp-menu-btn {
    background: none;
    border: none;
    padding: 4px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
}

.crp-menu-btn i {
    font-size: 16px;
}

.crp-rating-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 42px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.crp-rating-wrap .crp-rating-stars {
    color: #ffb800;
    font-size: 13px;
    margin-bottom: 3px;
    letter-spacing: 1px;
}

.crp-date {
    font-size: 12px;
    color: #9ca3af;
}

.crp-review-text {
    font-size: 15px;
    color: #374151;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
}

.crp-media-images {
    display: grid;
    gap: 6px;
    height: 120px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.crp-media-placeholder {
    height: 120px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.crp-media-images.crp-media-count-1 {
    grid-template-columns: 1fr;
}

.crp-media-images.crp-media-count-2 {
    grid-template-columns: repeat(2, 1fr);
}

.crp-media-images.crp-media-count-3 {
    grid-template-columns: repeat(3, 1fr);
}

.crp-media-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.crp-media-video {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.crp-video-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    background: #000000;
}

.crp-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.crp-play-btn {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6a00;
    font-size: 20px;
    padding-left: 3px;
}

.crp-video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
}

.crp-helpful {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #6b7280;
    height: 33px;
    margin-bottom: 0;
    background: transparent;
    border: none;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
    flex-shrink: 0;
}

.crp-helpful i {
    font-size: 14px;
}

.crp-product {
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    height: 55px;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 7px 0;
}

.crp-product-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.crp-product-info {
    min-width: 0;
}

.crp-product-name {
    font-size: 13px;
    font-weight: 600;
    color: #111111;
    line-height: 1.3;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crp-product-price {
    font-size: 13px;
    font-weight: 700;
    color: #ff6a00;
}

.crp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 36px;
}

.crp-page-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.2s ease;
}

.crp-page-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.crp-page-btn.active {
    background: #ff6a00;
    color: #ffffff;
    border-color: #ff6a00;
}

.crp-page-dots {
    font-size: 14px;
    color: #9ca3af;
    padding: 0 4px;
}

/* =========================================================
   Responsive: Tablet
   ========================================================= */
@media (max-width: 1199px) {
    .crp-header {
        flex-wrap: wrap;
        gap: 16px;
        margin-bottom: 16px;
    }

    .crp-header-right {
        flex-wrap: wrap;
        gap: 16px;
    }

    .crp-title {
        font-size: 20px;
    }

    .crp-rating-summary {
        display: flex;
        align-items: center;
        gap: 8px;
        text-align: left;
    }

    .crp-rating-summary .crp-rating-number,
    .crp-rating-summary .crp-rating-stars,
    .crp-rating-summary .crp-review-count {
        display: inline;
        margin: 0;
    }

    .crp-rating-summary .crp-rating-number {
        font-size: 18px;
    }

    .crp-rating-summary .crp-rating-stars {
        font-size: 14px;
    }

    .crp-write-btn {
        display: none;
    }

    .crp-filter-bar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .crp-filter-bar::-webkit-scrollbar {
        display: none;
    }

    .crp-tabs {
        flex-wrap: nowrap;
    }

    .crp-tab {
        flex-shrink: 0;
    }

    .crp-reviews-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .crp-review-text {
        font-size: 10px !important;
        line-height: 1.35 !important;
        -webkit-text-size-adjust: 100%;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .crp-product {
        border-top-color: #f0f0f0;
    }

    .crp-product-name {
        font-size: 13px;
        font-weight: 600;
    }

    .crp-product-price {
        color: #ff6a00;
        font-weight: 700;
        font-size: 13px;
    }

    .crp-reviews-grid {
        background-color: #f3f4f6;
    }
}

/* =========================================================
   Responsive: Mobile / Android WebView / iOS WebView
   ========================================================= */
@media (max-width: 767px) {
    .customer-review-page,
    .customer-review-page * {
        -webkit-text-size-adjust: 100%;
    }

    .customer-review-page {
        overflow-x: hidden;
    }

    .crp-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 12px;
    }

    .crp-header-right {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 12px;
    }

    .crp-rating-summary {
        text-align: left;
    }

    .crp-filter-bar {
        padding: 8px 10px;
    }

    .crp-tab {
        padding: 8px 14px;
        font-size: 13px;
        min-height: 40px;
    }

    .crp-sort {
        padding: 8px 12px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .crp-reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .crp-review-card {
        padding: 12px;
    }

    .crp-review-text {
        font-size: 10px !important;
        line-height: 1.35 !important;
        -webkit-text-size-adjust: 100%;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .crp-reviews-grid {
        background-color: #f3f4f6;
    }

    .crp-product-name {
        font-size: 13px;
        font-weight: 600;
    }

    .crp-product-price {
        font-size: 13px;
        color: #ff6a00;
        font-weight: 700;
    }

    .crp-pagination {
        margin-top: 24px;
        gap: 6px;
    }

    .crp-page-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

.crp-helpful.active {
    color: #ff6a00;
}

.crp-modal {
    position: fixed;
    inset: 0;
    z-index: 11000;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.crp-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: #111827;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 11001;
    padding: 0 0 4px;
}

.crp-modal-media-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 90vh;
}

.crp-modal-close:hover,
.crp-modal-close:focus-visible {
    background: #ff6a00;
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.crp-modal-img {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    object-fit: contain;
}

.crp-modal-video {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    display: block;
    border-radius: 8px;
    background: #000000;
}

.crp-modal-video-wrap {
    max-height: 80vh;
}

.crp-review-text-wrap {
    position: relative;
    display: flex;
    align-items: flex-start;
    height: 82px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.crp-review-tooltip {
    position: absolute;
    bottom: 100%;
    left: 0;
    z-index: 9999;
    width: 100%;
    max-width: 280px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
    display: none;
    margin-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
