/* ===== ONLINE DESIGN MODAL ===== */
.design-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 2000;
    display: flex; align-items: flex-end; justify-content: center;
}
@media (min-width: 768px) { .design-modal-overlay { align-items: center; } }

.design-modal-popup {
    background: #fff; border-radius: 20px 20px 0 0;
    width: 100%; max-width: 500px; max-height: 85vh;
    display: flex; flex-direction: column; overflow: hidden;
}
@media (min-width: 768px) { .design-modal-popup { border-radius: 20px; } }

.design-modal-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 20px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0;
}
.design-modal-header h3 { font-size: 18px; font-weight: 600; margin: 0 0 4px; color: #1a1a1a; }
.design-modal-subtitle { font-size: 13px; color: #888; margin: 0; }
.design-modal-header button {
    background: none; border: none; width: 32px; height: 32px;
    border-radius: 8px; cursor: pointer; color: #666;
    display: flex; align-items: center; justify-content: center;
}
.design-modal-header button:hover { background: #f5f5f5; }

.design-modal-body {
    flex: 1; overflow-y: auto; padding: 20px;
    -webkit-overflow-scrolling: touch;
}
.design-modal-footer {
    padding: 16px 20px; border-top: 1px solid #f0f0f0; flex-shrink: 0;
}

.design-section { margin-bottom: 24px; }
.design-section-title { font-size: 15px; font-weight: 600; color: #1a1a1a; margin-bottom: 16px; }
.design-section-desc { font-size: 12px; color: #999; margin: -8px 0 16px; line-height: 1.4; }

/* Цвета */
.design-color-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0; border-bottom: 1px solid #f5f5f5;
}
.design-color-info { flex: 1; }
.design-color-label { font-size: 14px; font-weight: 500; }
.design-color-hint { font-size: 11px; color: #999; margin-top: 2px; }

.design-color-inputs { display: flex; align-items: center; gap: 8px; }
.design-color-text {
    width: 80px; padding: 8px 10px; border: 1px solid #e0e0e0;
    border-radius: 8px; font-size: 13px; text-align: center;
    font-family: inherit; outline: none;
}
.design-color-text:focus { border-color: #dd1847; }
.design-color-picker {
    width: 36px; height: 36px; border: 1px solid #e0e0e0;
    border-radius: 8px; cursor: pointer; padding: 2px;
}

.design-preview {
    padding: 16px 0; text-align: center;
}
.design-preview-btn {
    padding: 14px 40px; border: none; border-radius: 12px;
    font-size: 15px; font-weight: 600; cursor: default;
    font-family: inherit;
}

/* Селекты */
.design-select-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0; border-bottom: 1px solid #f5f5f5;
}
.design-select-label { font-size: 14px; font-weight: 500; }
.design-select-wrapper { position: relative; }
.design-select-wrapper select {
    padding: 10px 30px 10px 14px; border: 1px solid #e0e0e0;
    border-radius: 10px; font-size: 13px; background: #fff;
    outline: none; cursor: pointer; appearance: none;
    -webkit-appearance: none; font-family: inherit; color: #1a1a1a;
}
.design-select-arrow {
    position: absolute; right: 10px; top: 50%;
    transform: translateY(-50%); pointer-events: none;
}

/* Кнопка сохранения */
.design-modal-save-btn {
    width: 100%; padding: 16px; background: #dd1847; color: #fff;
    border: none; border-radius: 12px; font-size: 16px; font-weight: 600;
    cursor: pointer; font-family: inherit;
}
.design-modal-save-btn:disabled { background: #ccc; cursor: not-allowed; }

.btn-spinner svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }