.fonxos-tracker-container {
  position: relative;
  width: 600px;
  height: 180px;
  margin: 0 auto;
  font-family: 'Barlow Condensed', sans-serif;
}

.fonxos-tracker-semicircle {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 100% 100% 0 0;
  display: flex;
  justify-content: space-evenly;
  align-items: flex-end;
  background: #F3E0CB;
  clip-path: ellipse(100% 100% at 50% 100%);
  padding-bottom: 30px;
}

.tracker-segment {
  width: 80px;
	height: 85px;
  text-align: center;
  opacity: 0.3;
  transform: scale(1);
  transition: all 0.3s ease-in-out;
}

.tracker-segment.active {
  opacity: 1;
  transform: scale(1.2);
}

.tracker-segment img {
  width: 50px;
  height: 50px;
  margin-bottom: 5px;
  object-fit: contain;
}

.tracker-segment span {
  font-size: 0.9rem;
  font-weight: bold;
  color: #E32E2E;
	
	text-transform: uppercase;
	display: block;
	line-height: 1;
}

.tracker-status-center {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 6px solid #E32E2E;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  text-align: center;
}

.estado-actual {
  color: #E32E2E;
  font-size: 1.2rem;
  text-transform: uppercase;
  padding: 10px;
}

.input-box {
    display: flex;
    margin-bottom: 100px;
}

#fonxos-tracker[data-type="takeaway"] .tracker-segment[data-step="enreparto"] {
  display: none;
}

.tracker-segment[data-step="retraso"] {
    display: none;
}

.tracker-segment.active[data-step="retraso"] {
    display: block;
}


@media screen and (max-width: 480px) {
  .fonxos-tracker-container {
    width: 100%;
    height: auto;
    padding: 0 10px;
  }

  .fonxos-tracker-semicircle {
    flex-wrap: wrap;
	  height: auto;
	  padding-bottom: 20px;
	  clip-path: none;
	  border-radius: 50px 50px 0 0;
	  justify-content: center;
	  padding-top: 20px;
  }

  .tracker-segment {
    width: 60px;
    height: 75px;
    margin: 6px;
    transform: scale(1);
  }

  .tracker-segment img {
    width: 40px;
    height: 40px;
  }

  .tracker-segment span {
    font-size: 0.7rem;
  }

  .tracker-status-center {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 20px auto 0 auto;
    transform: none;
    left: 0;
    bottom: 45px;
  }

  .estado-actual {
    font-size: 1rem;
    padding: 8px;
  }

  .input-box {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .input-box input,
  .input-box button {
    width: 100%;
    font-size: 16px;
  }
}
