.tdip-order-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    font-family: system-ui, -apple-system, sans-serif;
    direction: ltr;
}

.tdip-viewer-section {
    grid-column: 1;
    position: relative;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tdip-controls-section {
    grid-column: 2;
    direction: rtl;
    text-align: right;
}

.tdip-order-container > p,
.tdip-order-container p:empty,
.tdip-order-container br {
    display: none;
}

.tdip-controls-section p,
#tdip-options-wrapper > p {
    margin: 0;
}

#tdip-canvas-container {
    width: 100%;
    height: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#tdip-placeholder {
    text-align: center;
    color: #64748b;
}

.tdip-dimensions-bar {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid #e2e8f0;
}

.tdip-controls-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #0f172a;
}

.tdip-form-group {
    margin-bottom: 18px;
}

.tdip-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
}

.tdip-input, .tdip-btn-upload {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    cursor: pointer;
    direction: rtl;
    text-align: right;
}

.tdip-btn-upload {
    background: #f1f5f9;
    font-weight: 600;
    color: #0f172a;
    transition: all 0.2s;
}

.tdip-btn-upload:hover {
    background: #e2e8f0;
}

.tdip-slider {
    width: 100%;
}

.tdip-color-picker {
    display: flex;
    gap: 8px;
}

.color-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s;
}

.color-btn.active {
    transform: scale(1.15);
    border-color: #000;
}

.tdip-summary-card {
    background: #f1f5f9;
    border-radius: 10px;
    padding: 16px;
    margin: 20px 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 14px;
}

.summary-item.total-price {
    font-size: 18px;
    font-weight: bold;
    color: #2563eb;
    border-top: 1px solid #cbd5e1;
    padding-top: 8px;
    margin-bottom: 0;
}

.tdip-btn-submit {
    width: 100%;
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.tdip-btn-calc {
    width: 100%;
    background: #0f172a;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.tdip-btn-submit:hover {
    background: #1d4ed8;
}

@media (max-width: 768px) {
    .tdip-order-container {
        grid-template-columns: 1fr;
    }

    .tdip-viewer-section,
    .tdip-controls-section {
        grid-column: 1;
    }
}
