﻿.flag-preview {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.flag-base {
    width: 100%;
    height: auto;
}

.ribbon {
    position: absolute;
    width: 11.111%; /* 80px / 720px * 100 */
    height: auto;
}
.selected-ribbons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ribbon-card {
    width: 150px;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    cursor: grab;
    user-select: none;
}

    .ribbon-card:active {
        cursor: grabbing;
    }

.ribbon-thumb {
    width: 80px;
    height: 22px;
    display: block;
    margin: 0 auto 6px auto;
}
.remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
}
.ribbon-card {
    position: relative;
}
