
/* Print */

@media print {
    body {
        -webkit-print-color-adjust: exact;
    }
    #prominent_news_ticker_wrap, .breadcrumbs, .entry-header, #buttons, header, footer, .big-bubble::before {
        display:none;
    }
    #content.site-content {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    #tracking-history-title {
        background: #3b3b37 !important;
    }
    .content-area {
        overflow:hidden;
    }
}


#consignment-number {
    font-size:18px;
    font-weight:600;
}

#tracking-delivery-timeline {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    /*padding-bottom: 45px;*/
    height:80px;
}

#tracking-delivery-status {
    display: flex;
    flex-direction: column;
    margin-bottom:60px;
    margin-top: calc(50px - 1rem);
}

.status-bubble {
    background-color: lightgray;
    color: black;
    border-radius: 50%;
    height: 45px;
    width: 45px;
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    fill: lightgray;
}

.status-bubble::before {
    content: "";
    position: absolute;
    width: 55px;
    height: 55px;
    border: 1px solid #6ba33e;
    border-radius: 50%;
    background: #6ba33e;
    opacity: 0;
    z-index: -1;
}

.status-bubble img {
    width:28px;
}

#start-status-bubble img {
    width:20px;
}

#end-status-bubble img {
    width:25px;
}

.big-bubble {
    height: 55px;
    width: 55px;
}

.status-text {
    width: 200px;
    position: absolute;
    top: 140%;
    text-align: center;
    font-size: 14px;
}

#start-status-text {
    left:0;
    text-align:left;
}

#end-status-text {
    right:0;
    text-align:right;
}

.big-text {
    top: 130%;
    font-weight: bold;
}

.tracking-delivery-status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.tracking-delivery-status-item:not(:first-child)::after {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 515px;
    height: 5px;
    z-index: -2;
    background: lightgray;
}

@media screen and (max-width: 1199px) {
    .tracking-delivery-status-item:not(:first-child)::after {
        width: 425px;
    }
}

@media screen and (max-width: 991px) {
    .tracking-delivery-status-item:not(:first-child)::after {
        width: 305px;
    }
}

@media screen and (max-width: 767px) {
    .tracking-delivery-status-item:not(:first-child)::after {
        width: 215px;
    }
}

@media screen and (max-width: 575px) {
    .tracking-delivery-status-item:not(:first-child)::after {
        width: 38vw;
    }
}

.green-line::after {
    background: #6ba33e!important;
}

.green-text {
    color: #6ba33e;
}

.green-bubble {
    background-color: #6ba33e;
    fill: white;
}

#page-header {
    display: flex;
    flex-direction: column;
    /*align-items: center;*/
}

#tracking-status {
    text-align:center;
    margin-top: 50px;
}

#advanced-search-fail {
    text-align:center;
}

@media (min-width: 1200px) {
    #tracking-sub-status {
        font-size: 1.25rem;
        line-height: 1.75rem;
        font-weight: 400;
        margin-bottom: 2rem;
        padding: 0;
        text-align:center;
    }
}

@media (max-width: 1199px) {
    #tracking-sub-status {
        font-size: 1.125rem;
        line-height: 1.75rem;
        font-weight: 400;
        margin-bottom: 1rem;
        padding: 0;
        text-align:center;
    }
}

#tracking-delivery-info {
    display: flex;
    justify-content: space-between;
    gap:1rem;
}

#tracking-delivery-info-start, #tracking-delivery-info-end {
    display: flex;
    flex-direction: column;
}

#tracking-delivery-info-start {
    align-items: flex-start;
}

#tracking-delivery-info-end {
    align-items: flex-end;
    text-align:right;
}

.tracking-delivery-info-head {
    color: #aba9a5;
    font-size: 14px;
}

.tracking-delivery-info-location {
    font-weight: bold;
    text-transform: uppercase;
}

.tracking-delivery-info-date {
    font-size: 15px;
}

.hidden {
    display: none!important;
}

.invisible {
    visibility: hidden!important;
}

.big-bubble::before {
    opacity: 1;
    animation: circle 1.3s ease-out infinite;
}

@keyframes circle {
    0% {
        opacity:1;
        transform:scale(1)
    }
    to {
        opacity:0;
        transform:scale(1.3)
    }
}

.tracking-event { 
    display: flex;
    flex-direction: row; 
}

.tracking-event-divider {
    width: 100%;
    height: 50px;
}

.tracking-event-status, .tracking-event-date, .tracking-event-location { 
    display: inline; 
}

.tracking-event-date, .tracking-event-location, .tracking-event-signed {
    fill: gray;
    font-size: 14px;
}

.tracking-event-date {
    text-align: right;
    width: 135px;
    min-width:135px;
    float: left;
    margin-right: 25px;
}

.tracking-event-main {
    float: left;
    margin-left: 25px;
    padding-bottom:20px;
    width: 100%;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    flex-direction:column;
    gap:1rem;
}

.tracking-event-location {
    display: flex;
    align-items: start;
}

.tracking-event-location svg {
    fill:#222222;
    margin-right:3px;
    min-height:15px;
    min-width:15px;
    margin-top:2px;
}

.consignment-history {
    position: relative;
    margin: 10px auto;
    margin-left: 0px;
}

#tracking-history-title {
    margin-left: 72px;
    margin-bottom: 20px;
    background: #3b3b37;
    padding: 12px 15px;
    display: inline-block;
    color: #fff;
    border-radius: 3px;
    position:relative;
    font-weight:500;
    font-size:14px;
}

#tracking-history-title:before {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    z-index: 1;
    border-width: 11px;
    border-style: solid;
    border-color: transparent;
    border-top-color: #3b3b37;
    bottom: -22px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}

#tracking-history-title img {
    width:15px;
    height:15px;
    position:relative;
    top:-2px;
    margin-right:2px;
}

.consignment-history::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: lightgray;
    top: 0;
    bottom: 0;
    left: 162px;
    margin-left: -3px;
}

.consignment-title {
    /* transform: translateX(-50%); */
    font-weight: bold;
    font-size:20px;
}

.tracking-event {
    margin: 20px 0px;
    position: relative;
    background-color: inherit;
    left: 0;
}

.consignment-container {
    -webkit-box-shadow: 0 2px 6px 6px rgb(0 0 0 / 15%);
    box-shadow: 0 2px 6px 0 rgb(0 0 0 / 15%);
    padding:1rem;
    border-radius:4px;
    margin-bottom:1rem;
}

.consignment-collapse {
    cursor: pointer;
}

.consignment-header {
    margin-left: 100px;
    position:relative;
    cursor:pointer;
}

.collapse-close::after {
    position:absolute;
    content: "";
    vertical-align: 0.2em;
    border: solid #222222;
    border-width: 0 2px 2px 0;
    display: inline-block;
    width: 8px;
    height: 8px;
    box-sizing: border-box;
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
    margin-left: 12px;
    top:13px;
    transform-origin: 50% 50%;
    transition: all .3s ease;
}

.collapse-open::after {
    position:absolute;
    content: "";
    vertical-align: 0.2em;
    border: solid #222222;
    border-width: 0 2px 2px 0;
    display: inline-block;
    width: 8px;
    height: 8px;
    box-sizing: border-box;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    margin-left: 12px;
    top:9px;
    transform-origin: 50% 50%;
    transition: all .3s ease;
}

@media screen and (max-width: 991px) {
    .tracking-event {
            margin: 20px 0 20px 0px;
    }
}

.tracking-event::before {    
    content: '';
    position: absolute;
    left: 160.5px;
    top: 10px;
    transform: translate(-50%, -50%);
    background: 0 0;
    border-radius: 0;
    border-color: lightgray transparent;
    border-style: solid;
    border-width: 0 9px 9px 9px;
    height: 0;
    width: 0;
    z-index: 1;
}

.P::before {
    background-color: lightgray;
    content: '';
    border-radius: 50%;
    border-width: unset;
    background-size: 55%;
    border: none;
    background-repeat: no-repeat;
    background-position: center;
    width: 20px;
    height: 20px;
    background-image: url('https://assets-nzcouriers.ep-prod.freightways.co.nz/uploads/2023/03/picked-up.svg');
}

.ONBD::before {
    background-color: lightgray;
    content: '';
    border-radius: 50%;
    border-width: unset;
    background-size: 70%;
    border: none;
    background-repeat: no-repeat;
    background-position: center;
    width: 20px;
    height: 20px;
    background-image: url('https://assets-nzcouriers.ep-prod.freightways.co.nz/uploads/2023/03/out-for-delivery.svg');
}

.D::before {
    background-color: black;
    content: '';
    border-radius: 50%;
    border-width: unset;
    background-size: 60%;
    border: none;
    background-repeat: no-repeat;
    background-position: center;
    width: 20px;
    height: 20px;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxOS41NiAxNS40MDMiPiAgPGRlZnM+ICAgIDxzdHlsZT4gICAgICAuY2xzLTEgeyAgICAgICAgZmlsbDogbm9uZTsgICAgICAgIHN0cm9rZTogI2ZmZjsgICAgICAgIHN0cm9rZS13aWR0aDogMnB4OyAgICAgIH0gICAgPC9zdHlsZT4gIDwvZGVmcz4gIDxwYXRoIGlkPSJQYXRoXzQiIGRhdGEtbmFtZT0iUGF0aCA0IiBjbGFzcz0iY2xzLTEiIGQ9Ik0yMzg4LjA4NCw1NTkuNzhsMi4yNzksMi4zMjQsMy4wMzYsMy4xLDEyLjgxMS0xMy4yNzQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzg3LjM3IC01NTEuMjMxKSIvPjwvc3ZnPg==);
}

.D {
    font-weight: bold;
}

#tracking-history{
    margin-bottom:60px;
}

.tracking-history-base {
    height: 10px;
}

.tracking-history-base::before {    
    content: '';
    position: absolute;
    left: 160.5px;
    transform: translate(-50%, 0%);
    background-color: lightgray;
    border-radius: 50%;
    height: 10px;
    width: 10px;
    z-index: 1;
}

.modal-open {
    display: block; /* Hidden by default */
}

.modal-closed {
    display: none; /* Hidden by default */
}

#image-modal {
    position: fixed; /* Stay in place */
    z-index: 999999; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
}

#modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
}

#modal-content .close-modal-btn {
    display:block;
    height:20px;
    width:20px;
    margin-bottom:1rem;
    align-self: end;
    cursor:pointer;
}

#modal-content .close-modal-btn:after {
    content: "";
    position: absolute;
    right: 0;
    background: #fff;
    top: 8px;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    width: 22px;
    height: 2px;
}

#modal-content .close-modal-btn:before {
    content: "";
    position: absolute;
    right: 0;
    top: 8px;
    background: #fff;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    width: 22px;
    height: 2px;
}

.consignment-images {
}

.attachment-image-container {
    position:relative;
    border-radius: 0.25rem;
    overflow:hidden;
    display: inline-block;
    margin:0 1rem 0.5rem 0;
}


.attachment-image {
    height: 12rem;
    width: auto;
    display:block;
}


#buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

#con-search {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap:1.5rem;
}

#con-search form {
    display: flex;
    gap:1rem;
    width: 100%;
    justify-content: center;
}

#con-search div {
    display: flex;
    gap:.5rem;
    justify-content:center;
    width:100%;
}

#advanced-search-section {
    width:100%;
    text-align:left !important;
    margin-top:1rem;
}

#advanced-tracking-close-btn {
    color: var(--red);
    cursor: pointer;
    border:none;
    background:none;
    padding:0;
    margin-bottom:1rem;
    position:relative;
    padding-left:15px;
    font-weight:500;
}

#advanced-tracking-close-btn:hover {
}

#advanced-tracking-close-btn::before {
    position:absolute;
    border: solid var(--red);
    border-width: 2px 0 0 2px;
    padding: 2.5px;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    content: '';
    width: 7px;
    height: 7px;
    left: 0;
    top:8px;
    transition: all .2s ease;
}

#advanced-tracking-close-btn:hover::before {
    left: -4px;
}

#advanced-search-section ul {
    margin:0;
    padding:0;
    list-style:none;
}

#advanced-search-section ul li {
    border-top: 1px solid #f1f1f1;
    margin:0;
}

#advanced-search-section ul li:last-child {
    border-bottom: 1px solid #f1f1f1;
}

#advanced-search-section ul li a {
    font-size:1.125rem;
    padding:1rem 0;
    display:block;
    cursor:pointer;
    color: var(--black);
    font-weight:600;
    transition:.2s;
}

#advanced-search-section ul li a:hover {
    color: var(--red);
    text-decoration:none;
}

.advanced-search-tab-content form {
    display:flex;
    gap:1rem;
    padding-bottom:1rem;
}

@media screen and (max-width: 767px) {
    .advanced-search-tab-content form {
        flex-direction:column;
    }
}

.advanced-search-tab.courier-tickets input:nth-of-type(1), .advanced-search-tab.customer-printed-labels input:nth-of-type(2), .advanced-search-tab.manifest-reference input:nth-of-type(1) {
    flex: 1 0 auto;
}

.advanced-search-tab.courier-tickets input:nth-of-type(3), .advanced-search-tab.customer-printed-labels input:nth-of-type(3), .advanced-search-tab.manifest-reference input:nth-of-type(3) {
    flex: 10 0 auto;
}

.advanced-search-tab.charge-labels input:nth-of-type(2), .advanced-search-tab.barcode input:nth-of-type(2) {
    flex: 11 0 auto;
}

.advanced-search-tab-content input {
    padding:1rem;
    border: #eeeeee 2px solid;
    border-radius: 4px;
    -webkit-font-feature-settings: "lnum";
    -moz-font-feature-settings: "lnum";
    -ms-font-feature-settings: "lnum";
    -o-font-feature-settings: "lnum";
    font-feature-settings: "lnum";
}

.advanced-search-tab-content input:focus {
    outline:none;
}

.advanced-search-submit {
    background-color: var(--red);
    color: var(--white);
    font-size: 1rem;
    line-height: 1.5rem;
    border-radius: 4px;
    transition: .2s;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    padding: 1rem 1.5rem;
    border: var(--red) 2px solid;
}

.advanced-search-submit:hover {
    background: none !important;
    color: var(--red);
}

@media screen and (max-width: 1199px) {
    #buttons {
        flex-direction: column;
        text-align: center;
    }
}

#con-buttons{
    margin-left: 50px;
    display:flex;
    gap:1rem;
    justify-content:center;
}

@media screen and (max-width: 1199px) {
    #con-buttons{
        margin-left: 0;
    }
}

@media screen and (max-width: 767px) {
    #con-buttons{
        flex-direction:column;
    }
}

@media screen and (max-width: 1199px) {
    #con-search {
        margin-bottom:20px;
    }
}

#cons {
    padding: calc(0.667em + 3px);
    border: 1px solid #d7d8d8;
    border-radius: 4px;
    min-width:300px;
    -webkit-font-feature-settings: "lnum";
    -moz-font-feature-settings: "lnum";
    -ms-font-feature-settings: "lnum";
    -o-font-feature-settings: "lnum";
    font-feature-settings: "lnum";
}

#cons:focus {
    outline:none;
}

@media screen and (max-width: 767px) {
    #cons {
        width: calc(100% - 125px);
        min-width: fit-content;
    }
}

#con-search-btn {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5rem;
    border-radius: 5px;
    transition: .2s;
    font-weight: 600;
    min-width: 120px;
    text-align: center;
    text-decoration: none;
    background-color: var(--red);
    border: 2px solid var(--red);
    color: var(--white);
    padding: calc(0.667em + 2px) calc(1.333em + 2px);
    width:120px;
}

#con-search-btn:hover {
    background-color: var(--white);
    color: var(--red);
}

#con-query-btn {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5rem;
    border-radius: 5px;
    transition: .2s;
    font-weight: 600;
    min-width: 120px;
    text-align: center;
    text-decoration: none;
    background-color: #1db4da;
    border: #1db4da 2px solid;
    color: var(--white);
    padding: calc(0.667em + 2px) calc(1.333em + 2px);
}

#con-query-btn:hover {
    background-color: var(--white);
    color: #1db4da;
}

    #con-track-again-btn {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5rem;
    border-radius: 5px;
    transition: .2s;
    font-weight: 600;
    min-width: 120px;
    text-align: center;
    text-decoration: none;
    background-color: var(--red);
    border: var(--red) 2px solid;
    color: var(--white);
    padding: calc(0.667em + 2px) calc(1.333em + 2px);
}

#con-track-again-btn:hover {
    background-color: var(--white);
    color: var(--red);
}

#con-email-btn, #con-print-btn {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5rem;
    border-radius: 5px;
    transition: .2s;
    font-weight: 600;
    min-width: 120px;
    text-align: center;
    text-decoration: none;
    background-color: #222222;
    border: #222222 2px solid;
    color: var(--white);
    padding: calc(0.667em + 2px) calc(1.333em + 2px);
}

#con-email-btn:hover, #con-print-btn:hover {
    background-color: var(--white);
    color: #222222;
}

#end-status-bubble > svg {
fill: white;
}

#advanced-tracking-link {
float: right;
text-align: center;
padding-bottom: 1em;
padding-top: 12px;
}

span.deleteicon {
            position: relative;
            display: inline-flex;
            align-items: center;
        }
        span.deleteicon span {
            position: absolute;
            display: block;
            right: 10px;
            width: 15px;
            height: 15px;
            border-radius: 50%;
            color: #fff;
            background-color: #ccc;
            font: 13px monospace;
            text-align: center;
            line-height: 1em;
            cursor: pointer;
        }
        span.deleteicon input {
            padding-right: 18px;
            box-sizing: border-box;
        }

.authority-to-leave {
    font-size: 14px;
    padding-left: 20px;
}