.citycarrier-tracking-container {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}




span.share-btn, span.delete-btn {
    display: flex;
    height: 24px !important;
    place-self: anchor-center;
}


button#cc-error-back-btn {
    margin-top: 36px;
    width: 212px;
    height: 32px;
    border-radius: 2px;
    border-width: 1px;
    padding-top: 4px;
    padding-right: 15px;
    padding-bottom: 4px;
    padding-left: 15px;
    background: #E6EFFF;
    color: #1581F8;
}

.order-id{
    font-size: 20px;
}

.tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tracking-title h2 {
    margin: 0;
    font-size: 24px;
}

@media (min-width: 1024px){
    .tracking-title{
    width: 70%;
    }
    .tracking-header{
        flex-wrap: nowrap;
    }
}


.tracking-form-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: flex-end;
}



.citycarrier-tracking-form {
    display: flex;
    gap: 10px;
}

.citycarrier-tracking-form input {
    padding: 8px;
    font-size: 14px;
}

.citycarrier-tracking-form button {
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
}

.tracking-home-link {
    text-decoration: none;
    color: #0073aa;
    font-size: 14px;
    margin-right: 10px;
}

.tracking-result {
    margin-top: 20px;
}



.tracking-success {
    background: #f9f9f9;
    padding: 10px;
    white-space: pre-wrap;
    font-size: 14px;
    border: 1px solid #ccc;
}


.tracking-body {
    display: flex;
    gap: 19px;
}

.tracking-left {
    width: 30%;
    max-height: 600px;
    overflow-y: auto;
}
@media (min-wdith: 1024px){
    .tracking-box{
        min-width: 311px;
    }
}
.tracking-box {
    background: #fff;
    border: unset;
    padding: 10px 30px;
    margin-bottom: 10px;
    border-radius: 3px;
    gap: 12px;
    display: flex;
    flex-direction: column;
}

.tracking-box.active{
    border: 1px solid #1581F8;
}

.tracking-right {
    width: 70%;
    
}

.tracking-tabs {
    padding: 4px 30px;
    display: flex;
    gap: 10px;
    background-color: white;
}

.tab-btn:hover{
    background-color: unset;
    color: #000000D9;
}
.tab-btn {
    font-family: Roboto;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #000000D9;
    height: 46px;
    cursor: pointer;
    border: unset;
    background-color: unset;
    box-shadow: unset;
}

.tab-btn.active {
    background-color: unset;
    border: unset;
    border-bottom: 1px solid #1890FF;
    color: #1890FF;
    border-radius: unset;
    margin-right: 18px;
}
:where(.wp-site-blocks *:focus) {
    outline-width: 0px !important;
    outline-style: unset;
}

.tracking-status {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}


.delete-btn {
    cursor: pointer;
    color: #d33;
    margin-left: 8px;
    font-weight: bold;
}


.timeline {
    position: relative;
    margin-left: 20px;
    padding-left: 15px;
    border-left: 2px dashed #ccc;
}

.timeline-entry {
    position: relative;
    margin-bottom: 15px;
}

.timeline-circle {
    width: 10px;
    height: 10px;
    background-color: #4A90E2;
    border-radius: 50%;
    position: absolute;
    left: -21px;
    top: 10px;
}

.timeline-line {
    position: absolute;
    left: -12px;
    top: 14px;
    width: 2px;
    height: 100%;

}

.timeline-line.last {
    display: none;
}

.timeline-date {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.timeline-status, span.timeline-location {
    color: #333;
    font-family: Stolzl;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
}


.tracking-accordion {
    border-radius: 3px;
    border-bottom: 1px solid #CDCDCD;
    padding: 12px 16px;
    transition: all 0.2s ease;
    padding-top: 10px;
    padding-right: 30px;
    padding-bottom: 10px;
    padding-left: 30px;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion-icon svg {
    transition: transform 0.3s ease;
}

.accordion-header.open .accordion-icon svg {
    transform: rotate(180deg);
}


.tracking-box-header {
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tracking-box-header h4 {
    font-family: Open Sans;
    font-weight: 700;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0.25%;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: space-between;
}

span.mobile-dropdown-icon{
    display: flex;
}




.cc-tracking-form-group {
    display: flex;
    align-items: center;
    /* max-width: 320px; */
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    height: 35px;
    background: white;
}

.cc-tracking-form-group input[type="text"] {
    flex: 1;
    border: none;
    height: 100%;
    padding: 0 10px;
    font-size: 14px;
    outline: none;
}

.cc-tracking-form-group button {
    border: none;
    background: #888888;
    color: white;
    padding: 4px 25px;
    height: 100%;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.2s ease;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    border-radius: 0;
}

.cc-tracking-form-group button:hover {
    background: #333;
}


.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

/* Add this to display as flex only when shown via jQuery */
.modal.flex {
    display: flex;
}


.modal-content {
    background: white;
    padding: 55px 31px !important;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    position: relative;
    text-align: center;
}

.modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    font-weight: bold;
}



.paid-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    /* visibility: visible !important; */
}
.paid-row p {
    font-family: Open Sans;
    font-weight: 600;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0.25%;
    margin: 0;
}

.tracking-box-details {
    gap: 9px;
    display: flex;
    flex-direction: column;
}

.tracking-box-details p{
    font-family: Open Sans;
    font-weight: 600;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0.25%;

}

.box-actions {
    display: flex
;
    justify-content: space-between;
}

button.pay-btn {
    background: #006ADE;
    border: 1px solid #006ADE;
    width: auto;
    min-width: 103px;
    height: 32px;
    border-radius: 2px;
    padding-top: 4px;
    padding-right: 15px;
    padding-bottom: 4px;
    padding-left: 15px;
    border-width: 1px;
    color: #fff;
}



.tracking-id {
    display: flex;
    flex-direction: row;
    gap: 6px;
    font-weight: 500;
}
.tracking-index {
    color: #777777;
    font-family: Open Sans;
    font-weight: 600;
    font-size: 12px;
    line-height: 100%;
    place-content: center;
}
.tracking-number {
    color: #000;
    font-family: Open Sans;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
}



span.unpaid-label {
    color: red;
    margin-left: 15px;
}


/* Mobile box */
.mobile-tracking-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* border: 1px solid #ccc; */
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 15px;
}

.mobile-tracking-box .mobile-order-label {
    font-weight: bold;
}

.mobile-tracking-box .mobile-dropdown-icon {
    margin-left: auto;
}

#mobile-tracking-modal .tracking-left {
    padding: 15px;
}

/* Hide tracking-left on mobile body */
@media (max-width: 768px) {
    .tracking-left, .tracking-home-link-desk {
        display: none !important;
    }

    #tracking-right {
        width: 100% !important;
    }
    form#citycarrier-tracking-form{
        width: 100%;
    }
    .tracking-header{
        gap: 16px;
    }
    .tracking-box{
        padding: 8px 10px;
    }
    .citycarrier-tracking-container{
        padding: 0;
    }
}


/* Hidden by default */
.mobile-tracking-modal {
    display: none;
    position: absolute;
    top: 100%; /* appears just below dropdown */
    left: 0;
    right: 0;
    background: white;
    z-index: 9999;
    border: 1px solid #ccc;
    max-height: 60vh;
    overflow-y: auto;
    width: auto;
    min-width: 200%;
}

.mobile-tracking-modal.open {
    display: block;
}

.mobile-tracking-modal-content {
    padding: 0;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 12px;
    top: 8px;
    font-size: 20px;
    cursor: pointer;
}


.mobile-order-box {
    position: relative; /* ⭐️ CRUCIAL */
  }
  
  .mobile-tracking-modal {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: none;
    padding: 10px;
  }
  
  .mobile-tracking-modal.open {
    display: block;
  }
  
  .mobile-tracking-modal-content {
    max-height: 300px;
    overflow-y: auto;
  }
  

  .mobile-tracking {
    width: 100%;
    display: flex
;
    align-items: center;
    justify-content: space-between;
}


@media (min-width: 1024px){
    .mobile-tracking{
        display: none;
    }
}


.mobile-order-box {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    min-width: 157px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 3px;
    background-color: white;
    padding: 2px 4px;
}



.mobile-order-box {
    pointer-events: none; /* start disabled */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.mobile-order-box.visible {
    height: 28px;
    opacity: 1;
    pointer-events: auto;
}



.shareanddelete{
        display: flex;
        gap: 24px;
}




.modal.share-modal {
  display: none;
  position: fixed;
  z-index: 10001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background: #fff;
  width: 90%;
  max-width: 317px;
  margin: 100px auto;
  border-radius: 6px;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.5em;
  margin: 0;
}

.modal-close {
  cursor: pointer;
  font-size: 24px;
}

.share-icons {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
}

.share-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

.share-icon img {
  width: 40px;
  height: 40px;
}

.share-link-box {
  display: flex;
  
}

#share-link-field {
  flex: 1;
  padding: 8px;
  font-size: 14px;
}


#copy-link-btn, #share-link-field{
    height: 40px !important;
}


#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #F9A021; /* Circle color */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}





@media (min-width: 1024px) {
    .tracking-header.tracking-initial {
        flex-wrap: wrap !important;
        gap: 30px !important;
    }

    .tracking-title.tracking-initial {
        width: 100% !important;
        text-align: center !important;
    }

    .tracking-form-wrap.tracking-initial {
        justify-content: center !important;
    }

    .tracking-form-wrap.tracking-initial .tracking-home-link-desk {
        order: 2 !important;
    }
}