.cb-design-selector-wrap {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.cb-design-selector-label {
    font-weight: bold;
    margin-left: 10px;
}

.cb-btn {
    background: #222;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.cb-btn:hover {
    background: #000;
}

.cb-selected-design-preview {
    display: flex !important;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.cb-selected-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.cb-selected-info {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
}

.cb-selected-code strong {
    color: #d63638;
}

.cb-change-design {
    background: #2271b1;
}

.cb-change-design:hover {
    background: #135e96;
}

/* Modal Styles */
.cb-modal {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cb-modal-overlay {
    position: absolute;
    background: rgba(0,0,0,0.7);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.cb-modal-content {
    position: relative;
    background: #fff;
    margin: 5vh auto;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.cb-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

.cb-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.cb-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    color: #555;
}

.cb-modal-search {
    padding: 15px 20px;
    position: sticky;
    top: 56px;
    background: #fff;
    z-index: 9;
    border-bottom: 1px solid #eee;
}

.cb-modal-search input {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.cb-modal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

.cb-design-card {
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
}

.cb-design-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #2271b1;
}

.cb-card-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.cb-card-info {
    padding: 10px;
    text-align: center;
}

.cb-card-title {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

.cb-card-code {
    display: block;
    font-size: 12px;
    color: #666;
}

.cb-no-designs {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Responsive */
@media (max-width: 1024px) {
    .cb-modal-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .cb-modal-grid { grid-template-columns: repeat(2, 1fr); }
    .cb-modal-content { width: 95%; }
}