/* Order Chat Sidebar Sticky */
.order-sidebar-sticky {
    position: sticky;
    top: 100px;
    z-index: 10;
}

.order-sidebar-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 2px solid #f3f4f6;
    transition: all 0.3s ease;
}

.order-sidebar-card:hover {
    border-color: #e9d5ff;
    box-shadow: 0 8px 24px rgba(141, 63, 242, 0.15);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-title i {
    color: #8D3FF2;
    font-size: 18px;
}

.sidebar-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
}

.sidebar-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-image-wrapper:hover .sidebar-product-image {
    transform: scale(1.05);
}

.sidebar-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #8D3FF2;
    margin-bottom: 12px;
}

.sidebar-brand-badge i {
    font-size: 11px;
}

.sidebar-order-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-specs-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.sidebar-spec-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #8D3FF2;
    flex: 1;
    min-width: fit-content;
    transition: all 0.3s ease;
}

.sidebar-spec-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(141, 63, 242, 0.2);
}

.sidebar-spec-badge i {
    font-size: 12px;
}

.sidebar-spec-badge.price {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
    font-weight: 700;
    flex: 1 1 100%;
}

.sidebar-spec-badge.price i {
    color: #059669;
}

/* Brief Section */
.sidebar-brief {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.brief-title {
    font-size: 14px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brief-title i {
    font-size: 13px;
}

.brief-text {
    font-size: 13px;
    color: #78350f;
    line-height: 1.5;
    margin: 0;
    max-height: 120px;
    overflow-y: auto;
}

.sidebar-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px solid #d1d5db;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-back-btn:hover {
    background: linear-gradient(135deg, #8D3FF2 0%, #7C3AED 100%);
    border-color: #8D3FF2;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(141, 63, 242, 0.3);
}

.sidebar-back-btn i {
    font-size: 13px;
}

/* Responsive */
@media (max-width: 991px) {
    .order-sidebar-sticky {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }

    .order-sidebar-card {
        padding: 20px;
    }

    .sidebar-order-title {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .sidebar-spec-badge {
        font-size: 12px;
        padding: 6px 10px;
    }

    .brief-text {
        font-size: 12px;
        max-height: 100px;
    }
}
