.media-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    max-height: 300px;
    overflow-y: auto;
    justify-content: center;
}

.media-preview-item {
    position: relative;
    width: 120px;
    height: 120px;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.media-preview-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-preview-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    padding: 0;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    z-index: 1;
    transition: background 0.2s;
}

.media-preview-remove:hover {
    background: rgba(0, 0, 0, 0.9);
}

.upload-error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
    min-height: 20px;
    margin-bottom: 20px;
}

.media-preview-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--third-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@media (max-width: 768px) {
    .media-preview-container {
        gap: 8px;
    }

    .media-preview-item {
        width: 80px;
        height: 80px;
    }

    .media-preview-remove {
        width: 22px;
        height: 22px;
        font-size: 16px;
        top: 4px;
        right: 4px;
    }
}

.single-review-stars {
    width: 50%;
}

.bg-description {
    background-color: var(--third-color) !important;
}