button,
a {
  cursor: pointer;
}

.track-section {
  padding-block: 10rem 5rem;
  text-align: center;
}

.track-section::-webkit-scrollbar {
  display: none;
}

.inner-sec-wrapper {
  padding: 30px 20px;
  margin-inline: auto;
  background-color: #fff;
  width: min(1000px, 95%);
  box-shadow: 2px 2px 10px #f0eded;
  border-radius: 0.5rem;
}

.inner-sec-wrapper p {
  line-height: 25px;
  color: gray;
}

.inner-sec-wrapper div.heading-wrapper {
  display: flex;
  justify-content: center;
}

.inner-sec-wrapper h3 {
  margin-bottom: 40px;
  position: relative;
}

.inner-sec-wrapper h3::after,
.inner-sec-wrapper h3::before {
  content: "";
  position: absolute;
  top: 120%;
  height: 3px;
  background-color: #ff5636;
}

.inner-sec-wrapper h3::before {
  left: 30%;
  width: 30px;
}

.inner-sec-wrapper h3::after {
  left: 50%;
  width: 10px;
}

.inner-sec-wrapper > .tracking-show {
  margin-bottom: 20px;
}

.inner-sec-wrapper > .tracking-show > .inp-wrapper {
  display: flex;
  gap: 1rem;
  width: min(600px, 100%);
  justify-content: center;
  margin-bottom: 2rem;
  margin-inline: auto;
}

.inp-div {
  width: 70%;
  flex-shrink: 0;
}

.inp-div input[type="text"] {
  border: 1px solid rgb(206, 204, 204);
  width: 100%;
  border-radius: 0.25rem;
  padding: 10px;
}

.btn-div {
  flex-shrink: 0;
}

.btn-div .tracking-btn {
  background-color: #ff5636;
  color: white;
  padding: 10px 20px;
  border-radius: 0.25rem;
  transition: background-color 0.2s linear;

  &:hover {
    background-color: #000;
  }
}

.inner-sec-wrapper > .details-wrapper {
  background: rgba(214, 212, 212, 0.154);
  border: 0.52px solid #eeecec26;
  border-radius: 0.25rem;
  padding: 10px 0px;
  display: none;
}

.details-wrapper .bill {
  margin-top: 10px;
  padding: 10px 20px;
  width: 100%;
  text-align: start;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-block: 1px solid #817f7f26;
}

.details-wrapper .bill > span {
  flex-shrink: 0;
  word-break: break-all;
  word-wrap: break-word;
}

/* .details-wrapper  .bill > span:nth-child(1){
    border-right:1.5px solid #c9c9c973;
} */

.details-inner-wrapper .details-tab {
  display: flex;
  gap: 2rem;
  padding-inline: 20px;
  margin-top: 10px;
}

.details-inner-wrapper .details-tab div {
  padding: 10px 20px;
  border-radius: 0.25em;
  cursor: pointer;
}

.details-inner-wrapper .details-tab div.active {
  background-color: #ff58364d;
}

.table-section {
  /* padding:10px 20px; */
  border: 1px solid #c9c9c926;
  margin-top: 20px;
}

.table-section > #tab1-detail > table {
  width: 100%;
  border: 0.5px solid #817f7f26;
  color: gray;
}

.table-section > #tab1-detail table th,
.table-section > #tab1-detail table td {
  border: 0.5px solid #c9c9c926;
  font-weight: 400;
  padding-block: 10px;
}

.table-section > #tab1-detail table th {
  text-transform: capitalize;
  text-align: start;
  padding-left: 20px;
}

.table-section > #tab1-detail table tr:nth-child(even) {
  background-color: #cea9a128;
}

.tab-details {
  display: none;
}

.tab-details.show-details {
  display: block;
}

/* table 2 details */

.table-section > #tab2-detail .status-table-wrapper,
.table-section > #tab1-detail .shipment-table-wrapper {
  overflow-x: auto;
}

.table-section > #tab2-detail > .status-table-wrapper > table {
  width: 960px;
  border: 0.5px solid #817f7f26;
  color: gray;
}

.table-section > #tab1-detail .shipment-table-wrapper > table {
  width: 100%;
  border: 0.5px solid #817f7f26;
  color: gray;
}

.table-section > #tab2-detail > .status-table-wrapper > table th,
.table-section > #tab2-detail > .status-table-wrapper > table td {
  border: 0.5px solid #6c6c6c26;
  font-weight: 400;
  padding: 10px 0px;
}

.table-section > #tab2-detail > .status-table-wrapper > table th {
  text-transform: capitalize;
  text-align: center;
}

.table-section
  > #tab2-detail
  > .status-table-wrapper
  > table
  tr:nth-child(odd) {
  background-color: #cea9a128;
}

.table-section > #tab2-detail .main-heading,
.table-section > #tab1-detail .main-heading {
  width: 100%;
  border: none;
  text-align: center;
  padding-block: 10px;
  background: #c9c9c926;
}

.table-section > #tab2-detail > .status-table-wrapper > table td {
  word-wrap: nowrap;
}

.table-section > #tab2-detail > .status-table-wrapper > table th {
  color: #ff5636;
  background-color: #d5626226;
}

/* track order diagram */
.track-custom {
  border-bottom: 1px solid #f0efef;
  padding-block: 20px;
  margin-bottom: 20px;
  height: 10rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.track-custom .dashed {
  border-bottom: 3px dashed #d2d2d2;
  width: min(700px, 80%);
  position: relative;
  margin-top: -30px;
  margin-left: -35px;
  /* display: flex;
  justify-content: space-between;
  align-items: center; */
}

.track-custom .dashed .circle {
  position: absolute;
  top: -10px;
  width: 20px;
  height: 20px;
  background-color: #d2d2d2;
  border-radius: 50%;
}

.track-custom .dashed .circle.circle-done {
  background-color: #ff5636;
}

.track-custom .dashed .circle.circle-wi {
  width: 50px;
  height: 50px;
  top: -25px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.track-custom .dashed .circle:nth-child(1) {
  left: 0;
}

.track-custom .dashed .circle:nth-child(2) {
  left: 33%;
}

.track-custom .dashed .circle:nth-child(3) {
  left: 66%;
}

.track-custom .dashed .circle:nth-child(4) {
  left: 100%;
  background-color: #d2d2d2;
}

.track-custom .dashed .circle::after {
  position: absolute;
  top: 80px;
  left: -40px;
  width: max-content;
  color: gray;
}

.track-custom .dashed .circle-wi::after {
  position: absolute;
  top: 95px;
  
}

.track-custom .dashed .circle:nth-child(1)::after {
  content: "Order Place";
}

.track-custom .dashed .circle:nth-child(2)::after {
  content: "Order Shipped";
}

.track-custom .dashed .circle:nth-child(3)::after {
  content: "Order En Route";
}

.track-custom .dashed .circle:nth-child(4)::after {
  content: "Order Arrived";
}

.circle-wi.active {
  background-color: #ff5636 !important;
}

.circle-wi.active::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  left: auto;
  right: auto;
  height: 65px;
  width: 65px;
  border-radius: inherit;
  background: #f4bfb5;
  z-index: -100;
  animation: 1s pulse ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}

.line {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--w);
  height: 0;
  border-bottom: 3px solid #ff5636;
  }

/* Mobile: switch to vertical layout */
@media (max-width: 768px) {
  .track-custom {
    height: 400px;
    padding-block: 40px;
    display: block;
    padding-inline: 70px;
  }

  .track-custom .dashed {
    width: 2px;
    height: calc(100% - 40px);
    border-left: 2px dashed #d2d2d2;
    margin: 0 ;
    padding: 0;
    
    position: relative;
  }

  .track-custom .dashed .circle {
    position: absolute;
    left:-10px !important
  }

  .track-custom .dashed .circle:nth-child(1) {
    top: 0;
  }
  .track-custom .dashed .circle:nth-child(2) {
    top: 34%;
  }
  .track-custom .dashed .circle:nth-child(3) {
    top: 66%;
  }
  .track-custom .dashed .circle:nth-child(4) {
    top:100%;
  }


  .track-custom .dashed .circle.circle-wi {
    left: -25px !important;
  }

  .track-custom .dashed .circle::after {
    top: 0px;
    left: 60px;
    white-space: nowrap;
  }

  .track-custom .dashed .circle-wi::after {
    top: 10px;
    left: 80px;
  
}

  
.line {
  position: absolute;
  left: -1.5px;
  top: 0;
  width: 0;
  height:var(--w);
  border-left: 3px solid #ff5636;
  }
}

/* track order diagram */

.message-for-user {
  padding: 20px;
  border-bottom: 1px solid #f0efef;
  color: #ff5636;
}

.highlight {
  color: #ff5636;
}

@media (max-width: 400px) {
  .track-custom .dashed .circle-wi::after,
  .track-custom .dashed .circle::after {
    width: 100%;
  }

  .details-wrapper .bill > span {
    flex-shrink: 1;
  }
}
