import React from 'react';
import styled from 'styled-components';
import CustomerSection from './customer-section';
import OrdersSection from './orders-section';
import InstructionSection from './instruction-section';
import ServicesSection from './services-section';
import OrderDetailsFooter from './footer';

function ExpandedContent() {
  return (
    <MainContainer>
      <Container>
        <HalfWidth>
          <CustomerSection />
        </HalfWidth>
        <HalfWidth>
          <OrdersSection />
        </HalfWidth>
        <InstructionSection />
      </Container>
      {/* <InstructionContainer>
      </InstructionContainer> */}
      <ServicesSection />
      <OrderDetailsFooter />
    </MainContainer>
  );
}

const HalfWidth = styled.div`
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;

  @media (min-width: 769px) {
    flex-direction: row; /* Change to row for large screens */
    width: 50%;
  }

  @media (min-width: 1024px) {
    width: auto;
  }

  @media (min-width: 1440px) {
    width: 50%;
  }
`;

const Container = styled.div`
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;

  @media (min-width: 769px) {
    flex-direction: row;
  }

  @media (min-width: 1024px) {
    justify-content: flex-start;
  }
`;

// const InstructionContainer = styled.div`
//   display: flex;
//   justify-content: center;
// `;

// const Overlay = css`
//   overflow: visible;
//   pointer-events: none;
//   background: none !important;
//   -webkit-user-select: none;
//   -moz-user-select: none;
//   -ms-user-select: none;
//   user-select: none;
// `;

const MainContainer = styled.div`
  display: flex;
  flex-direction: column;
  gap: 15px;
  /* padding-bottom: 30px; */
  @media (max-width: 768px) {
    gap: 10px;
  }
`;

export default ExpandedContent;
