.rre-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
}

.rre-card {
    position: relative;
    width: 135px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px;
    background: #fafafa;
    transition: opacity 0.3s;
}

.rre-card a.rre-thumb-link {
    display: block;
}

.rre-card img {
    max-width: 125px;
    max-height: 100px;
    display: block;
    margin: 0 auto;
}

.rre-card .rre-inventory {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #333;
    word-break: break-all;
    line-height: 1.3;
}

.rre-card .rre-remove-btn {
    position: absolute;
    bottom: 22px;
    right: 3px;
    background: rgba(0, 0, 0, 0.5) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50% !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    font-size: 10px !important;
    line-height: 16px !important;
    text-align: center;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s;
}

.rre-card:hover .rre-remove-btn {
    opacity: 1;
}

.rre-card .rre-remove-btn:hover {
    background: rgba(200, 0, 0, 0.9) !important;
}

.rre-add-bar {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #ddd;
}

.rre-add-bar input[type="text"] {
    flex: 1;
    max-width: 250px;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
}

.rre-add-bar button {
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
}

.rre-message {
    padding: 6px 10px;
    margin-top: 6px;
    border-radius: 3px;
    font-size: 12px;
    display: none;
}

.rre-message.rre-error {
    background: #fdd;
    color: #900;
    border: 1px solid #faa;
    display: block;
}

.rre-message.rre-success {
    background: #dfd;
    color: #060;
    border: 1px solid #afa;
    display: block;
}

.rre-no-preview {
    width: 125px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    margin: 0 auto;
    font-size: 11px;
    color: #999;
}
