/**
 * VoteProduct - Modern Standalone Frontend Design System
 * 100% independent of store themes. No external framework dependencies.
 */

/* ── Reset & Base Container ───────────────────────────────────── */
.vp-container,
.vp-container *,
.vp-section,
.vp-section *,
#vp-lightbox,
#vp-lightbox * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.vp-container,
.vp-section {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1f2937;
    line-height: 1.6;
    margin: 36px auto;
    width: 100%;
    max-width: 960px;
    clear: both;
}

#vp-review-section,
.vp-section {
    max-width: 100%;
    scroll-margin-top: 80px;
}

.vp-card {
    scroll-margin-top: 90px;
}

/* ── Headings & Page Header ───────────────────────────────────── */
.vp-page-header {
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid #e5e7eb;
}

.vp-page-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
}

.vp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.vp-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vp-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.01em;
}

.vp-count-badge {
    background: #f3f4f6;
    color: #4b5563;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
}

/* ── Product Intro Banner (Write & Confirm Pages) ──────────────── */
.vp-product-banner {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    margin-bottom: 28px;
}

@media (min-width: 640px) {
    .vp-product-banner {
        flex-direction: row;
        align-items: center;
    }
}

.vp-product-thumb-wrap {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.vp-product-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vp-product-info {
    flex-grow: 1;
}

.vp-product-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.4;
}

.vp-bonus-box {
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 8px;
}

.vp-bonus-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0d9488;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vp-bonus-list {
    list-style: none;
    font-size: 0.82rem;
    color: #134e4a;
    line-height: 1.6;
}

.vp-bonus-list li::before {
    content: "•";
    color: #0d9488;
    font-weight: bold;
    display: inline-block;
    width: 1em;
}

/* ── Summary Card (Product Section & List Page) ───────────────── */
.vp-summary-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
    margin-bottom: 32px;
}

.vp-summary-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

@media (min-width: 768px) {
    .vp-summary-grid {
        flex-direction: row;
        align-items: center;
    }
}

.vp-summary-score-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@media (min-width: 768px) {
    .vp-summary-score-col {
        flex: 0 0 38%;
        border-right: 1px solid #f0f0f0;
        padding-right: 28px;
    }
}

.vp-rating-number {
    font-size: 3.75rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    letter-spacing: -0.03em;
}

.vp-stars-display {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 8px 0;
    font-size: 1.4rem;
    line-height: 1;
}

.vp-stars-sm {
    font-size: 1.15rem;
    margin: 4px 0 8px 0;
}

.vp-star {
    user-select: none;
}

.vp-star-gold {
    color: #f59e0b;
    text-shadow: 0 0 2px rgba(245, 158, 11, 0.3);
}

.vp-star-grey {
    color: #e5e7eb;
}

.vp-total-reviews {
    font-size: 0.88rem;
    color: #6b7280;
    font-weight: 500;
}

.vp-summary-bars-col {
    flex: 1 1 62%;
}

@media (min-width: 768px) {
    .vp-summary-bars-col {
        padding-left: 12px;
    }
}

.vp-distribution-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vp-distribution-row {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
}

.vp-dist-label {
    width: 36px;
    font-weight: 600;
    color: #4b5563;
    flex-shrink: 0;
}

.vp-dist-bar-track {
    flex-grow: 1;
    height: 10px;
    background-color: #f3f4f6;
    border-radius: 9999px;
    overflow: hidden;
    margin: 0 14px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.vp-dist-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 9999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.vp-dist-count {
    width: 38px;
    text-align: right;
    font-weight: 600;
    color: #6b7280;
    flex-shrink: 0;
}

/* ── Review Cards List ────────────────────────────────────────── */
.vp-review-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.vp-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.vp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    border-color: #d1d5db;
}

.vp-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.vp-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vp-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    color: #0369a1;
    font-weight: 700;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    flex-shrink: 0;
}

.vp-author-name {
    font-weight: 600;
    color: #111827;
    font-size: 0.92rem;
}

.vp-badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ecfdf5;
    color: #059669;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 9999px;
    border: 1px solid #d1fae5;
}

.vp-icon-check {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.vp-review-date {
    font-size: 0.82rem;
    color: #9ca3af;
}

.vp-card-body {
    margin-bottom: 14px;
}

.vp-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    margin: 6px 0 8px 0;
    line-height: 1.4;
}

.vp-card-comment {
    font-size: 0.94rem;
    color: #374151;
    line-height: 1.7;
    word-break: break-word;
    margin-bottom: 12px;
}

/* Image Thumbnails Grid */
.vp-images-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0;
}

.vp-image-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vp-image-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vp-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    display: block;
}

/* Admin Reply */
.vp-admin-reply {
    background: #f8fafc;
    border-left: 3px solid #028090;
    border-radius: 4px 10px 10px 4px;
    padding: 14px 18px;
    margin-top: 14px;
}

.vp-reply-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.vp-reply-icon {
    width: 15px;
    height: 15px;
    color: #028090;
    flex-shrink: 0;
}

.vp-reply-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #028090;
}

.vp-reply-date {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-left: auto;
}

.vp-reply-content {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
}

.vp-card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.vp-helpful-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.vp-helpful-btn:hover:not(:disabled) {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: scale(1.02);
}

.vp-helpful-btn:disabled {
    opacity: 0.65;
    background: #f1f5f9;
    cursor: not-allowed;
    transform: none;
}

.vp-helpful-emoji {
    font-size: 0.95rem;
    line-height: 1;
}

/* ── View All Reviews Button ──────────────────────────────────── */
.vp-view-all-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.vp-btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    background: #ffffff;
    color: #374151;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.vp-btn-view-all:hover {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.vp-icon-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.vp-btn-view-all:hover .vp-icon-arrow {
    transform: translateX(3px);
}

/* ── Empty State ──────────────────────────────────────────────── */
.vp-empty-card {
    background: #ffffff;
    border: 2px dashed #e5e7eb;
    border-radius: 18px;
    padding: 48px 24px;
    text-align: center;
    margin: 20px 0 28px 0;
}

.vp-empty-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fef3c7;
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.vp-empty-icon {
    width: 32px;
    height: 32px;
}

.vp-empty-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
}

.vp-empty-desc {
    font-size: 0.92rem;
    color: #6b7280;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Action Area (Write Review CTA & Login Prompt) ─────────────── */
.vp-action-container {
    margin-top: 32px;
}

.vp-cta-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.vp-btn-write {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 36px;
    background: linear-gradient(135deg, #028090 0%, #00a896 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.98rem;
    border-radius: 9999px;
    box-shadow: 0 4px 16px rgba(2, 128, 144, 0.35);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: vpPulse 2.5s infinite;
}

.vp-btn-write:hover {
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(2, 128, 144, 0.5);
    transform: translateY(-2px);
    text-decoration: none;
}

@keyframes vpPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(2, 128, 144, 0.45);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(2, 128, 144, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(2, 128, 144, 0);
    }
}

.vp-btn-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.vp-point-hint {
    font-size: 0.82rem;
    color: #028090;
    margin-top: 8px;
    font-weight: 500;
}

/* Alert Box */
.vp-alert-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 12px 18px;
    color: #92400e;
    font-size: 0.88rem;
    max-width: 540px;
    margin: 0 auto;
}

.vp-alert-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #d97706;
}

.vp-alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.vp-alert-success .vp-alert-icon {
    color: #059669;
}

.vp-alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.vp-alert-danger .vp-alert-icon {
    color: #dc2626;
}

/* Login Banner */
.vp-login-banner {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

@media (min-width: 768px) {
    .vp-login-banner {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
}

.vp-login-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #028090;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vp-login-icon {
    width: 22px;
    height: 22px;
}

.vp-login-content {
    flex-grow: 1;
}

.vp-login-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 3px;
}

.vp-login-desc {
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.5;
}

.vp-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 26px;
    background: #028090;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(2, 128, 144, 0.25);
    flex-shrink: 0;
}

.vp-login-btn:hover {
    background: #026673;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(2, 128, 144, 0.35);
    text-decoration: none;
    transform: translateY(-1px);
}

/* ── Form Controls & Write Review Screen ──────────────────────── */
.vp-form-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 32px;
}

.vp-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #f3f4f6;
}

.vp-form-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

@media (min-width: 640px) {
    .vp-form-group {
        flex-direction: row;
        align-items: flex-start;
    }
    .vp-form-label-col {
        flex: 0 0 220px;
        padding-top: 8px;
    }
    .vp-form-input-col {
        flex: 1 1 auto;
    }
}

.vp-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vp-badge-req {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
}

.vp-badge-opt {
    background: #6b7280;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
}

/* Interactive Star Rating Selector */
.vp-star-selector {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
    font-size: 2.2rem;
    line-height: 1;
}

.vp-star-selector input[type="radio"] {
    display: none;
}

.vp-star-selector label {
    color: #e5e7eb;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
    user-select: none;
}

.vp-star-selector label:hover,
.vp-star-selector label:hover ~ label,
.vp-star-selector input[type="radio"]:checked ~ label {
    color: #f59e0b;
}

.vp-star-selector label:hover {
    transform: scale(1.15);
}

.vp-input-hint {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 6px;
}

.vp-input-error {
    font-size: 0.82rem;
    color: #dc2626;
    font-weight: 600;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vp-input,
.vp-textarea,
.vp-select {
    width: 100%;
    font-family: inherit;
    font-size: 0.95rem;
    color: #111827;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 11px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.vp-input:focus,
.vp-textarea:focus,
.vp-select:focus {
    border-color: #028090;
    box-shadow: 0 0 0 3px rgba(2, 128, 144, 0.15);
}

.vp-textarea {
    min-height: 160px;
    resize: vertical;
    line-height: 1.6;
}

.vp-textarea-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    flex-wrap: wrap;
    gap: 6px;
}

.vp-char-counter {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 9999px;
    background: #f3f4f6;
    color: #4b5563;
}

.vp-char-counter.is-valid {
    background: #ecfdf5;
    color: #059669;
}

.vp-char-counter.is-invalid {
    background: #fef2f2;
    color: #dc2626;
}

/* Image Upload Zone */
.vp-upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vp-upload-zone:hover {
    border-color: #028090;
    background: #f0fdfa;
}

.vp-upload-icon {
    width: 38px;
    height: 38px;
    color: #028090;
    margin-bottom: 8px;
}

.vp-upload-text {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.vp-upload-subtext {
    font-size: 0.8rem;
    color: #64748b;
}

.vp-upload-previews {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.vp-upload-thumb-item {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.vp-upload-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vp-upload-delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    border: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s;
}

.vp-upload-delete-btn:hover {
    background: #ef4444;
}

/* ── Buttons & Actions ────────────────────────────────────────── */
.vp-form-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.vp-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 36px;
    background: linear-gradient(135deg, #028090, #00a896);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(2, 128, 144, 0.35);
    transition: all 0.25s ease;
    text-decoration: none;
}

.vp-btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 128, 144, 0.45);
    color: #ffffff;
    text-decoration: none;
}

.vp-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.vp-btn-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: #ffffff;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 9999px;
    border: 1px solid #d1d5db;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.vp-btn-cancel:hover {
    background: #f9fafb;
    color: #111827;
    border-color: #9ca3af;
    text-decoration: none;
}

/* ── Confirmation Table (Review Confirm Screen) ───────────────── */
.vp-confirm-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 32px;
}

.vp-confirm-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.vp-confirm-row:last-child {
    border-bottom: none;
}

@media (min-width: 640px) {
    .vp-confirm-row {
        flex-direction: row;
        align-items: flex-start;
    }
    .vp-confirm-label {
        flex: 0 0 180px;
        font-weight: 700;
        color: #4b5563;
        font-size: 0.92rem;
    }
    .vp-confirm-val {
        flex: 1 1 auto;
        color: #111827;
        font-size: 0.95rem;
    }
}

.vp-confirm-val.is-comment {
    white-space: pre-wrap;
    line-height: 1.7;
}

/* ── Success Screen ───────────────────────────────────────────── */
.vp-success-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    min-height: 480px;
}

.vp-success-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 48px 36px;
    max-width: 540px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.vp-checkmark-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px auto;
}

.vp-checkmark-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: vpPopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes vpPopIn {
    0% { transform: scale(0.3); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.vp-checkmark-icon {
    width: 44px;
    height: 44px;
}

.vp-success-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
}

.vp-success-desc {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 28px;
}

/* ── Filter Bar & Pagination (Review List Page) ───────────────── */
.vp-filters-bar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.vp-filters-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    width: 100%;
}

@media (min-width: 640px) {
    .vp-filters-form {
        width: auto;
    }
}

.vp-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vp-filter-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.vp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 36px 0;
}

.vp-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.vp-page-link:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
    text-decoration: none;
}

.vp-page-link.is-active {
    background: #028090;
    border-color: #028090;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(2, 128, 144, 0.3);
}

/* ── My Page Review History Screen ────────────────────────────── */
.vp-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

@media (min-width: 640px) {
    .vp-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.vp-stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.vp-stat-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vp-stat-icon-blue {
    background: #eff6ff;
    color: #3b82f6;
}

.vp-stat-icon-green {
    background: #f0fdf4;
    color: #10b981;
}

.vp-stat-icon {
    width: 26px;
    height: 26px;
}

.vp-stat-meta {
    flex-grow: 1;
}

.vp-stat-label {
    font-size: 0.82rem;
    color: #6b7280;
    font-weight: 500;
}

.vp-stat-num {
    font-size: 1.55rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}

.vp-stat-num span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    margin-left: 2px;
}

.vp-mypage-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.vp-mypage-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
    .vp-mypage-card {
        flex-direction: row;
        align-items: flex-start;
    }
    .vp-mypage-product-col {
        flex: 0 0 200px;
        border-right: 1px solid #f1f5f9;
        padding-right: 20px;
    }
    .vp-mypage-content-col {
        flex: 1 1 auto;
        padding-left: 6px;
    }
}

.vp-mypage-product-thumb {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    margin-bottom: 10px;
    background: #f9fafb;
}

.vp-mypage-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vp-mypage-product-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    line-height: 1.4;
    display: block;
}

.vp-mypage-product-title:hover {
    color: #028090;
    text-decoration: underline;
}

.vp-status-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 9999px;
}

.vp-status-pending {
    background: #fef3c7;
    color: #b45309;
}

.vp-status-approved {
    background: #dcfce7;
    color: #15803d;
}

.vp-status-rejected {
    background: #fee2e2;
    color: #b91c1c;
}

.vp-point-badge {
    font-size: 0.85rem;
    font-weight: 700;
    color: #059669;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* MyPage Review Actions (Edit / Delete) */
.vp-mypage-actions {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 640px) {
    .vp-mypage-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.vp-mypage-actions-hint {
    font-size: 0.8rem;
    color: #b45309;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vp-mypage-hint-icon {
    font-size: 0.95rem;
}

.vp-mypage-actions-buttons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.vp-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    line-height: 1.4;
}

.vp-action-icon {
    width: 15px;
    height: 15px;
}

.vp-btn-edit {
    background: #f0fdfa;
    color: #0d9488;
    border-color: #99f6e4;
}

.vp-btn-edit:hover {
    background: #ccfbf1;
    color: #0f766e;
    border-color: #5eead4;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.15);
}

.vp-btn-delete {
    background: #fff1f2;
    color: #e11d48;
    border-color: #fecdd3;
}

.vp-btn-delete:hover {
    background: #ffe4e6;
    color: #be123c;
    border-color: #fda4af;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.15);
}

/* ── Lightbox Overlay ─────────────────────────────────────────── */
.lightbox-trigger {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.lightbox-trigger:hover {
    opacity: 0.9;
}

#vp-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    animation: vpLbFade 0.2s ease;
}

#vp-lightbox.is-open {
    display: flex;
}

@keyframes vpLbFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

#vp-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    transition: opacity 0.2s;
}

#vp-lightbox-close,
#vp-lightbox-prev,
#vp-lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    user-select: none;
    line-height: 1;
}

#vp-lightbox-close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 24px;
}

#vp-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

#vp-lightbox-prev,
#vp-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 32px;
}

#vp-lightbox-prev { left: 20px; }
#vp-lightbox-next { right: 20px; }

#vp-lightbox-prev:hover,
#vp-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

#vp-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    letter-spacing: 1px;
    pointer-events: none;
}

/* ── Product List Star Rating Badge ──────────────────────────── */
.vp-list-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 4px 0 6px 0;
    font-size: 0.82rem;
    line-height: 1.2;
    vertical-align: middle;
    text-decoration: none;
    cursor: pointer;
}

.vp-list-rating:hover .vp-list-score {
    text-decoration: underline;
}

.vp-list-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    font-size: 0.95rem;
    line-height: 1;
}

.vp-list-stars .vp-star {
    user-select: none;
}

.vp-list-stars .vp-star-gold {
    color: #f59e0b;
    text-shadow: 0 0 1px rgba(245, 158, 11, 0.4);
}

.vp-list-stars .vp-star-empty {
    color: #e2e8f0;
}

.vp-list-score {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.82rem;
    margin-left: 2px;
}

.vp-list-count {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 500;
}

/* ── Layout Blocks: New Reviews & Top Rated Products ─────────── */
.vp-block {
    margin-bottom: 40px;
    width: 100%;
}

.vp-block-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
}

@media (min-width: 640px) {
    .vp-block-header {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
    }
}

.vp-block-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.vp-block-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.vp-block-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.01em;
}

.vp-block-subtitle {
    font-size: 0.84rem;
    color: #64748b;
}

/* 1. New Reviews Grid */
.vp-new-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.vp-new-review-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    min-width: 0;
    box-sizing: border-box;
}

.vp-new-review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.vp-new-review-product {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    min-width: 0;
}

.vp-new-review-product:hover .vp-new-review-product-name {
    color: #028090;
    text-decoration: underline;
}

.vp-new-review-thumb {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.vp-new-review-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vp-new-review-product-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.vp-new-review-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vp-new-review-date {
    font-size: 0.78rem;
    color: #94a3b8;
}

.vp-new-review-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
}

.vp-new-review-comment {
    font-size: 0.84rem;
    color: #475569;
    line-height: 1.55;
    margin: 0;
    flex-grow: 1;
    word-break: break-word;
    overflow-wrap: break-word;
}

.vp-new-review-images {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.vp-new-review-img-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.vp-new-review-img-thumb:hover {
    transform: scale(1.08);
}

.vp-new-review-img-more {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
}

.vp-new-review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
    min-width: 0;
}

.vp-new-review-author {
    font-size: 0.8rem;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.vp-author-icon {
    width: 14px;
    height: 14px;
    min-width: 14px;
    flex-shrink: 0;
    color: #94a3b8;
    display: inline-block;
    vertical-align: -2px;
}

.vp-new-review-author-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.vp-new-review-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #028090;
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: color 0.15s ease;
}

.vp-new-review-link:hover {
    color: #01626e;
    text-decoration: none;
}

.vp-new-review-arrow {
    display: inline-block;
    transition: transform 0.15s ease;
}

.vp-new-review-link:hover .vp-new-review-arrow {
    transform: translateX(3px);
}

/* 2. Top Rated Products Grid */
.vp-top-rated-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
}

.vp-top-rated-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.vp-top-rated-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
    border-color: #cbd5e1;
}

.vp-top-rated-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.vp-top-rated-rank--1 {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.vp-top-rated-rank--2 {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

.vp-top-rated-rank--3 {
    background: linear-gradient(135deg, #b45309, #92400e);
}

.vp-top-rated-rank--other {
    background: rgba(15, 23, 42, 0.7);
}

.vp-top-rated-img-link {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8fafc;
}

.vp-top-rated-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vp-top-rated-card:hover .vp-top-rated-img {
    transform: scale(1.05);
}

.vp-top-rated-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.vp-top-rated-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    padding: 2px 8px;
    border-radius: 9999px;
    width: fit-content;
}

.vp-top-rated-star {
    color: #f59e0b;
    font-size: 0.85rem;
}

.vp-top-rated-score {
    font-weight: 800;
    color: #b45309;
    font-size: 0.82rem;
}

.vp-top-rated-count {
    color: #92400e;
    font-size: 0.75rem;
}

.vp-top-rated-name {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 4px 0 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vp-top-rated-name a {
    color: #0f172a;
    text-decoration: none;
}

.vp-top-rated-name a:hover {
    color: #028090;
    text-decoration: underline;
}

.vp-top-rated-price {
    margin-top: auto;
    padding-top: 6px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #028090;
}

.vp-price-sep {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0 2px;
}

.vp-top-rated-action {
    margin-top: 8px;
}

.vp-top-rated-btn {
    display: block;
    text-align: center;
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s ease;
}

.vp-top-rated-btn:hover {
    background: #028090;
    border-color: #028090;
    color: #ffffff;
    text-decoration: none;
}

/* 3. Sidebar Adaptation (when placed in side columns) */
.ec-layoutRole__left .vp-new-reviews-grid,
.ec-layoutRole__right .vp-new-reviews-grid,
.ec-layoutRole__left .vp-top-rated-grid,
.ec-layoutRole__right .vp-top-rated-grid,
#side .vp-new-reviews-grid,
#side .vp-top-rated-grid {
    grid-template-columns: 1fr;
    gap: 14px;
}

.ec-layoutRole__left .vp-top-rated-card,
.ec-layoutRole__right .vp-top-rated-card,
#side .vp-top-rated-card {
    flex-direction: row;
    align-items: center;
}

.ec-layoutRole__left .vp-top-rated-img-link,
.ec-layoutRole__right .vp-top-rated-img-link,
#side .vp-top-rated-img-link {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.ec-layoutRole__left .vp-top-rated-body,
.ec-layoutRole__right .vp-top-rated-body,
#side .vp-top-rated-body {
    padding: 10px;
}

.ec-layoutRole__left .vp-top-rated-action,
.ec-layoutRole__right .vp-top-rated-action,
#side .vp-top-rated-action {
    display: none;
}

.ec-layoutRole__left .vp-new-review-footer,
.ec-layoutRole__right .vp-new-review-footer,
#side .vp-new-review-footer {
    flex-wrap: wrap;
    gap: 6px;
}

@media (max-width: 480px) {
    .vp-new-review-footer {
        flex-wrap: wrap;
        gap: 6px;
    }
    .vp-new-review-author {
        max-width: 100%;
    }
}



