.dc-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 900px;
    margin: 30px auto;
    align-items: flex-start;
}

.dc-controls {
    flex: 1 1 280px;
    min-width: 260px;
}

.dc-preview {
    flex: 0 0 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f4f4f4;
    border-radius: 8px;
    padding: 20px;
}

.dc-preview canvas {
    max-width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.dc-field {
    margin-bottom: 18px;
}

.dc-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.dc-field input[type="text"],
.dc-field input[type="number"],
.dc-field textarea,
.dc-field select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.dc-field textarea {
    resize: vertical;
}

.dc-swatches {
    display: flex;
    gap: 10px;
}

.dc-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    border: 2px solid transparent;
}

.dc-swatch.active {
    border-color: #6b21a8;
}

.dc-btn-primary {
    background: #6b21a8;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
}

.dc-btn-primary:hover {
    background: #551a8b;
}

.dc-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dc-status {
    margin-top: 10px;
    font-size: 13px;
}

.dc-status.error {
    color: #c0392b;
}

.dc-status.success {
    color: #27ae60;
}

/* "Create your Design" button on the product page */
.dc-create-design-btn {
    background: transparent !important;
    border: 2px solid #6b21a8 !important;
    color: #6b21a8 !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    display: inline-block !important;
    margin-top: 10px !important;
    text-decoration: none !important;
    text-align: center;
}

.dc-create-design-btn:hover {
    background: #6b21a8 !important;
    color: #fff !important;
}

.dc-icon {
    margin-right: 6px;
}

@media (max-width: 700px) {
    .dc-wrapper {
        flex-direction: column;
    }
    .dc-preview {
        width: 100%;
        flex-basis: auto;
    }
}
