/**
 * MH WP WooCom Comment Review Extend - Refined Minimal Styles
 */

/* 1. FRONT-END UPLOAD AREA */
.mh-upload-wrapper {
    padding: 1rem 0;
    width: 100%;
}

.mh-drop-zone {
    border: 1px dashed var(--bricks-color-color2);
    padding: 1rem;
    border-radius: var(--border-radius-s, 8px);
    text-align: center;
    cursor: pointer;
    background: none;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mh-drop-zone:hover, 
.mh-drop-zone.mh-drag-active {
    background: var(--bricks-color-color2);
}

.mh-upload-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

/* 2. FRONT-END PREVIEWS (Before Submission) */
.mh-preview-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.mh-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
}

.mh-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* Red Delete Button for Previews */
.mh-remove-fe {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff3b30;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 5;
    padding: 0;
    line-height: 1;
}

/* 3. PUBLISHED REVIEW GALLERY (Inside Comments) */
.mh-review-gallery {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
    margin-bottom: 10px;
}

.mh-gallery-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.2s ease;
    border: 1px solid #eee;
}

.mh-gallery-item img:hover {
    transform: translateY(-3px);
}

/* 4. AJAX LOAD MORE WRAPPER */
.mhwce-load-more-wrapper {
    padding: 1rem 0;
    display: flex;
    justify-content: center;
    clear: both;
}

/* Loading state for the theme button handle */
#mhwce-load-more-btn.mh-loading {
    opacity: 0.6;
    pointer-events: none;
    cursor: wait;
}

.mh-no-more {
    color: #999;
    font-style: italic;
    font-size: 14px;
}

/* 5. HIDE DEFAULT PAGINATION */
.woocommerce-pagination {
    display: none !important;
}