.rira-tracking-form {
    margin: 20px 0;
}

.rira-tracking-form form {
    display: flex;
    flex-direction: column;
    width: 100%; /* Change to 100% to fit smaller screens */
}

.rira-tracking-form input[type="text"],
.rira-tracking-form button {
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #313131;
    border-radius: 4px;
}

.rira-tracking-form button {
    background-color: #FFD200;
    color: white;
    cursor: pointer;
}

.rira-tracking-form button:hover {
    background-color: #bea329;
}

.rira-tracking-info p {
    background-color: #f9f9f9;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.background {
  background-color: #fff;
  padding-top: 10px;
  padding-bottom: 10px;
}

.background .container {
  border-radius: 40px;
  background-color: #fff;
  max-width: 700px;
  height: auto;
  padding: 0 20px; /* Add padding for mobile */
  direction: ltr !important;
}

.background .container .header {
  border: 1px solid lightgray;
  padding: 40px 0px 20px 0px;
  margin-top: 50px;
  margin-left: 10px;
  margin-right: 10px;
}

.background .container .headersingle {
  border: 1px solid lightgray;
  padding: 10px 0px 20px 0px;
  margin-left: 10px;
  margin-right: 10px;
}

.background .container .headersingle .order .order-number {
  font-size: 20px;
  font-weight: bold;
  color: #313131;
  text-align: center;
}

.background .container .headersingle .order .order-status {
  font-size: 18px;
  color: #f29702;
  font-weight: 600;
  text-align: center;
}

.background .container .header .icon-back {
  font-size: 30px;
  color: #00568a;
}

.background .container .header .order .order-number {
  font-size: 20px;
  font-weight: bold;
  color: #313131;
  text-align: center;
}

.background .container .header .order .order-status {
  font-size: 14px;
  color: #f29702;
  font-weight: 600;
  text-align: center;
}

.background .container .header .icon-brand {
  font-size: 30px;
  color: #00568a;
}

.background .container .content {
  border: 1px solid lightgray;
  padding: 20px 0px;
  margin-bottom: 50px;
  margin-left: 10px;
  margin-right: 10px;
}

.background .container .content .timeline .item {
  position: relative;
  border-bottom: 1px solid lightgray;
  padding: 20px 20px;
  margin-left: 10px;
  margin-right: 10px;
}

.background .container .content .timeline .item.active .item-description:before {
  background-color: #00568a;
}

.background .container .content .timeline .item:last-child {
  border-bottom: none;
}

.background .container .content .timeline .item:last-child:before {
  display: none;
}

.background .container .content .timeline .item:before {
  border-left: 3px solid #8eb8dc;
  content: "";
  z-index: 0;
  height: 102%;
  left: 135px;
  position: absolute;
  opacity: 0.4;
}

.background .container .content .timeline .item .item-label {
  position: absolute;
}

.background .container .content .timeline .item .item-label .item-label-date {
  color: #a6a6a6;
  font-size: 17px;
  font-weight: 500;
  padding-bottom: 5px;
}

.background .container .content .timeline .item .item-label .item-label-hour {
  font-weight: 600;
  font-size: 19px;
  float: right;
}

.background .container .content .timeline .item .item-description {
  margin-left: 150px;
  margin-bottom: 20px;
}

.background .container .content .timeline .item .item-description:before {
  border: 2px solid #8eb8dc;
  width: 22px;
  height: 22px;
  border-radius: 100%;
  content: "";
  z-index: 0;
  left: 125px;
  position: absolute;
  background-color: #fff;
  display: block;
}

.background .container .content .timeline .item .item-description .item-description-status {
  font-weight: 600;
  font-size: 16px;
  padding-bottom: 5px;
}

.background .container .content .timeline .item .item-description .item-description-location {
  color: #a6a6a6;
  font-size: 15px;
  font-weight: 500;
}

/* Add media queries for mobile responsiveness */
@media (max-width: 768px) {
    .background .container {
        max-width: 100%; /* Full width for mobile */
        padding: 0 10px; /* Add some padding for mobile */
    }
    
    .background .container .content .timeline .item:before {
        left: 100px; /* Adjust position of timeline indicator */
    }
    
    .background .container .content .timeline .item .item-description {
        margin-left: 120px; /* Adjust margin on mobile */
    }

    .background .container .content .timeline .item .item-description:before {
        left: 90px; /* Adjust timeline circle position */
    }

    .background .container .content .timeline .item .item-label .item-label-date {
        font-size: 15px; /* Adjust font size for mobile */
    }

    .background .container .content .timeline .item .item-label .item-label-hour {
        font-size: 16px; /* Adjust time font size */
    }

    .background .container .headersingle .order .order-number,
    .background .container .headersingle .order .order-status {
        font-size: 16px; /* Adjust font size for mobile */
    }
}

@media (max-width: 480px) {
    .background .container {
        max-width: 100%; /* Full width for small devices */
    }

    .background .container .content .timeline .item .item-description {
        margin-left: 90px; /* Adjust margin for smaller screens */
    }

    .background .container .content .timeline .item:before {
        left: 85px; /* Adjust position of timeline indicator */
    }

    .background .container .content .timeline .item .item-description:before {
        left: 75px; /* Adjust timeline circle position */
    }

    .background .container .content .timeline .item .item-label .item-label-date {
        font-size: 11px; /* Smaller font for date */
		margin-top:20px;
    }

    .background .container .content .timeline .item .item-label .item-label-hour {
        font-size: 12px; /* Smaller font for time */
    }

    .background .container .headersingle .order .order-number,
    .background .container .headersingle .order .order-status {
        font-size: 14px; /* Adjust font size for smaller devices */
    }
}
