@font-face {
    font-family: 'TrimPoster';
    src: url('/fonts/TrimPoster-Average.otf') format('opentype');
}

@font-face {
    font-family: 'UniversLTProBoldCondensed';
    src: url('/fonts/UniversLTPro-BoldCond.otf') format('opentype');
}

@font-face {
    font-family: 'UniversProCondensed';
    src: url('/fonts/UniversLTPro-Condensed.otf') format('opentype');
}

@font-face {
    font-family: 'UniformProBold';
    src: url('/fonts/Uniform Pro.otf') format('opentype');
}

@font-face {
    font-family: 'AuxMono';
    src: url('/fonts/Aux Mono.otf') format('opentype');
}


:root {
    --primary-color: #000;
    --secondary-color: #333;
    --accent-color: #4CAF50;
    --background-color: #f5f5f5;
    --timeline-color: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'UniversProCondensed', sans-serif;
    font-size: 18px;

}

body {
    background-color: #E5E5E5;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    overflow-x: hidden;
    max-width: 100%;
}


.search-container {
    max-width: 100%;
    overflow-x: hidden;
    max-width:650px;
}

#results {
    background-color: white !important;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.header {
    background: #121212;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom:16px;
    padding-left:26px;
    padding-right:20px;
    padding-top:18px;
    }
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 22px;
}

/* ORDER DETAILS TOP RIGHT */

.order-type {
    font-size: 10px;
    font-weight: 500;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-info {
    text-align: right;
    text-transform: uppercase;;
}

.order-info #order-number {
    font-size: 18px;
    letter-spacing: 0;
    font-family: 'UniversLTProBoldCondensed' !important;
    color:#f5f5f7
}

.order-info p {
    font-size: 17px;
    text-align: right;
    letter-spacing:0.3px;
    color:#f5f5f7
}

.order-info span {
    font-size: 17px;
    text-align: right;
    letter-spacing:0.8px;
    color:#f5f5f7
}

@media (max-width:480px) {
    .order-info #order-number {
        font-size: 16px;
    }

    .order-info p {
        font-size: 14px;
    }

    .order-info span {
        font-size:14.1px;
    }

}


.status-banner {
    height: 260px;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

/* Make sure content stays above overlay */
.status-banner > * {
    position: relative;
    z-index: 2;
}

.timeline-status {
    position: absolute;
    top: 11px;
    right: 15px;
    color: #333;
    background: #f5f5f7;
    border-radius: 4px;
    text-transform: uppercase;
    height: max-content;
    font-size: 12px;

    padding-top:5px;
    padding-bottom:2.5px;
    padding-left:9px;
    padding-right:9px;
    font-family:"AuxMono";
}

/* Timeline status colors */
.timeline-status.early {
    background: #45a049;
    color: #fff;
}

.timeline-status.on-schedule {
    background: #f5f5f7;
    color: #333;
}

.timeline-status.slightly-delayed {
    background: #ff9800;
    color: #fff;
}

.timeline-status.delayed {
    background: #dc3545;
    color: #fff;
}

/* Current Status */

.current-status {
    position: absolute;
    padding-left: 26px;
    padding-bottom:18px;
    left: 0;
    bottom:0;
    color:#f5f5f7 !important;
    width:75%;
}

.current-status .current-status-header {
    font-size: 16.5px;
    padding-bottom:2px;
    text-transform: uppercase;
    font-family:'UniformProBold';
    color:#f5f5f7;
    letter-spacing:1px;
    display:block;
}

.current-status #order-status {
    font-family: 'TrimPoster';
    font-size: 58px;
    padding-bottom:2px;
    padding-top:1px;
    text-transform: uppercase;
    color:#f5f5f7;
    display:block;
    line-height:1em;
}

.current-status p {
    font-family: 'UniversProCondensed';
    color:#f5f5f7;
    font-size:22px;
}

.next-step {
    text-align: right;
    margin-top: 4px;
    position: absolute;
    bottom: 0;
    right: 0;
    padding-bottom: 18px;
    padding-right: 15px;
    color:#f5f5f7;

}

@media screen and (max-width: 480px) {
    .current-status {
        padding-left: 20px;
        width: 70%;
    }

    #order-details {
        font-size: 21px;
    }
}

/* NEXT STEP */

.next-step-label {
    font-size: 13px;
    margin-bottom: 2px;
    letter-spacing:0.5px;
}

.next-step-value {
    font-family: 'UniversLTProBoldCondensed', sans-serif;
    font-size: 20px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}


@media screen and (max-width: 480px) {
    .next-step-label {
    font-size: 12px;
    margin-bottom:3px;
}

    .next-step-value {
        font-size: 17.5px;
    }
}


.delivery-info {
    background: #fafafa;
    padding-left: 26px;
    padding-top:12px;
    padding-bottom:12px;
    padding-right:15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* ESTIMATED DELIVERY + BOTTOM PANEL BELOW THUMBNAIL */

.est-delivery {
    font-weight: 500;
    letter-spacing: 0;
    padding-top:5px;
    color:#333;
}

.est-delivery #est-delivery {
        font-family: 'UniformProBold' !important;
        font-size:19px;
        letter-spacing:0.3px;
}

.est-delivery #delivery-date {
        font-family: 'UniversProCondensed';
        font-size:18px;
        letter-spacing:0.3px;
}

@media (max-width: 480px) {
    .est-delivery #est-delivery {
        display:block;
        margin-bottom:3px;
    }
}

.whatsapp-btn-icon {
    display: inline-block;
    vertical-align: middle;
    position: relative;
	height: 1.1em;
	top: 0px;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    border: none;
    padding-top: 6px;
    padding-bottom:6px;
    padding-left:8px;
    padding-right:8px;

    border-radius: 4px;
    font-size: 12px;
    font-family: "UniformProBold";
    cursor: pointer;
    transition: background-color 0.2s;
    letter-spacing: 0;
}

.whatsapp-btn:hover {
    opacity: 0.9;
}

@media (max-width:480px) {
    .whatsapp-btn-icon {
        height:1em;
    }

    .whatsapp-btn {
        padding-top:7px;
        padding-bottom:7px;
    }
}

/* TIMELINE DETAILS */

.timeline {
    padding-top: 25px;
    padding-left:26px;
    padding-bottom:27px;
    padding-right:16px;
    background: white;
}

@media screen and (max-width: 480px) {

    .timeline {
        padding-left: 20px !important;
    }
}


@media screen and (max-width: 480px) {
    .timeline-item {
        padding-left: 20px;
    }

    .timeline {
        padding-top: 25px;
    }
}

.timeline-item {
    position: relative;
    padding-left: 21px;
    margin-bottom: 25px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -1px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    z-index: 2;
    border: 1px solid #333;
}

.timeline-line {
    position: absolute;
    left: 3px;
    top: 12px;
    width: 2px;
    height: calc(100% + 12px);
    border-left: 1px dashed #555;
}

.timeline-item:last-child .timeline-line {
    display: none;
}

.timeline-item.active .timeline-dot {
    background: #333;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.15);
}

.timeline-item.completed .timeline-dot {
    background: #fff;
    border: 1px solid #333;
}

.timeline-content {
    margin-left: 8px;
}

.timeline-content .status {
    font-size: 20px;
    letter-spacing: 0;
    text-transform: uppercase;
    font-family: 'UniversLTProBoldCondensed';
    max-width: max-content;
    display: inline-block;
    padding-right:5px;
    margin-bottom:5px;
    color:#333;
}

.timeline-content .status.tracking {
    color: #757575;
    font-family: 'UniversProCondensed';
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-content .date {
    font-size: 15px;
    color: #757575;
    margin-bottom: 5px;
    width: max-content;
    display: inline-block;
    position: relative;
    top:-2px;
    letter-spacing:0.2px;
}

@media screen and (max-width: 480px) {

    .date {
        margin-bottom: 5px !important;
    }
}

.timeline-content .description {
    font-size: 19px;
    color: #333;
    font-weight: 400;
    max-width: 400px;
    line-height:1.23;
}


/* DELIVERY SECTION / DELIVERY DETAILS */

.delivery-details {
    padding-top:23px;
    padding-left:22px;
    padding-right:16px;
    padding-bottom:27px;
    background: #fafafa;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    color:#333;
}

.delivery-details .details-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.delivery-details-header {
    font-size: 19px;
    color: #333;
    margin-bottom: 5px;
    font-family: 'UniformProBold';
    letter-spacing:0.3px;
}

.address p {
    font-size: 19px;
    width: 80%;
    color:#333;
}

.total-section {
    text-align: right;
    display: flex;
    flex-direction: column;
    color: #333;
    float:right;
    justify-content:center;
}

.total-label {
    font-size: 17px;
    letter-spacing: 0;
    opacity: 1;
    font-family: 'UniversLTProBoldCondensed';
    color:#333;
}

.total-amount {
    font-family: 'TrimPoster';
    font-size: 47px;
    margin-top: -5px;
}

@media (max-width: 480px) {
    .total-amount {
        font-size: 44px;
    }

    .total-label {
        font-size: 16px;
    }

    .delivery-details .details-section {
        padding-top:25px;
        padding-bottom:25px;
    }

    .address p {
        width: 90%;
    }
}


/* BOTTOM NAV */

#bottom-nav-buttons {
    display: flex;
}

@media (max-width: 480px) {
    #bottom-nav-buttons {
    gap: 0;
    margin-top:0px;
}

}
.track-button {
    background-color: #121212;
    color: #f5f5f7;
    border: none;
    padding-top:23px;
    padding-bottom:17px;
    padding-left:16px;
    padding-right:16px;
    font-size: 18.5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    font-family: 'UniversLTProBoldCondensed';
    letter-spacing:0.5px;
}

.home-track-button {
    background-color: #121212;
    color: #f5f5f7;
    border: none;
    padding-top:23px;
    padding-bottom:17px;
    padding-left:16px;
    padding-right:16px;
    font-size: 19px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    font-family: 'UniversLTProBoldCondensed';
    letter-spacing:0.5px;
}


.track-button:hover {
    background-color: #333;
}

.track-another-order-button {
    background-color: #212121;
    color: #f5f5f7;
    border: none;
    padding:16px;
    padding-bottom:14px !important;
    padding-top:18px !important;
    font-size: 18px;
    font-family: 'UniversLTProBoldCondensed', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 50%;
    text-transform: uppercase;
    letter-spacing:0.5px;
}

.track-another-order-button:hover {
    background-color: #333;
}


.refresh-button {
    background-color: #f5f5f7;
    color: #121212;
    border: 2px solid #121212;
    padding: 16px;
    padding-bottom:14px !important;
    padding-top:18px !important;
    font-size: 18.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    font-family: 'UniversLTProBoldCondensed', sans-serif;
    text-transform: uppercase;
    letter-spacing:0.5px;
}

.refresh-button:hover {
    background-color: #f5f5f5;
}


/* */

.table-rows {
    margin-top: 10px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    max-height: 500px;
    overflow-y: auto;
}

.table-rows pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
}

.table-rows-container {
    margin-top: 10px;
    margin-left: 20px;
}

.error-message {
    color: #dc3545;
    font-weight: bold;
}

#loading {
    display: none;
    margin: 20px;
}

#error {
    display: none;
    margin: 20px;
    color: #dc3545;
}

/* Main page information (@media represents phone settings) */

.tracking-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 500px;
    padding: 50px 30px 45px 30px;
    background-color: #f5f5f7;
    border-radius: 5px;
    margin: auto;
}

@media (max-width: 480px) {
    .tracking-form {
        margin-right:auto;
        margin-left:0px;
        padding-top:30px;
        padding-right:23px;
        padding-left:23px;
        margin:0px !important;
    }
}

#welcome {
    font-family: "TrimPoster";
    padding-bottom: 20px;
    font-size: 88px;
    line-height: 0.9;
    color: #121212;
}

@media (max-width: 480px) {
    #welcome {
        font-size: 75px;
        padding-bottom: 12px;
    }
}

.tracking-form .subtitle {
    font-size: 26px;
    line-height:14.3pt;
    color: #333;
    font-family: "UniformProBold";
}

@media (max-width: 480px) {
    .tracking-form .subtitle {
        font-size: 23px;
        line-height:14.3pt;
    }
}

.tracking-form .description {
    max-width: 400px;
    font-size: 23px;
    color: #333;
    line-height:1.3;
    padding-bottom:3px;
    margin-top:-10px;
}

@media (max-width: 480px) {
    .tracking-form .description {
        font-size: 20.5px;
        margin-top:-5px;
        padding-bottom:10px;
    }
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 15px;
    color: #666;
}

input {
    width: 100%;
    padding-top:13px;
    padding-bottom:9px;
    padding-left:14px;
    padding-right:14px;
    font-size: 23px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s ease;
    margin-top: -2px;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.help-text{
    text-align: left;
    color: #666;
    font-size: 17px;
    margin-top:-3px;
}

.help-text a {
    color:#333;
    text-decoration:none;
}

.help-text a:hover {
    color:#121212;
    text-decoration:none;
}

.help-text a:hover {
    text-decoration: underline;
}

/* PRELOADER */

.loading {
    text-align: center;
    padding: 2rem;
}

.loading p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.error {
    text-align: center;
    padding: 2rem;
    color: #ff0000;
}

.order-details {
    padding: 2rem;
}

.order-details table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.order-details th,
.order-details td {
    padding: 0.5rem;
    text-align: left;
    border: 1px solid #ddd;
}

.order-details th {
    background-color: #f5f5f5;
}

@media (min-width: 768px) {
    .search-container{
        min-width: 600px;
    }
}

/* Mobile responsive styles */
@media screen and (max-width: 768px) {
    body {
        align-items: start;
        background-color: #fff;
    }

    .tracking-form {
        margin-top: 10%;
    }

    .container {
        padding: 10px;
    }

    .header {
        gap: 15px;
        padding-bottom:16px;
        padding-left:20px;
        padding-right:12px;
        padding-top:18px;
    }

    .logo {
        justify-content: center;
    }

    .order-info {
        text-align: right;
        text-transform:uppercase;
    }

    .status-banner {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }

    .delivery-info {
        padding-left:21px;
        gap: 15px;
    }

    .timeline-item {
        padding: 10px;
        padding-top: 0px;
    }


    .total-section,.details-section {
        padding: 15px;
    }

    .delivery-details {
        padding: 0px;
    }
}

/* Small phones */
@media screen and (max-width: 480px) {

    .container {
        padding: 8px;
    }

    .timeline-item {
        padding-bottom:8px;
        padding-right:17px;
        padding-left:16px;
    }

    body {
        align-items: start;
        background-color: #fff;
    }

    .tracking-form {
        margin-top: 10%;
    }

    .delivery-details {
        padding: 0px;
    }
}

.toggle-icon {
    display: flex;
    margin-left: 5px;
    transition: transform 0.3s ease;
    padding-top:5px;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
    padding-top:0px !important;
}

.detailed-tracking {
    cursor: pointer;
}



.order-back-button {
    flex: 1;
}

.loading-text {
    color: #000;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    margin-top: 15px;
    transition: opacity 0.3s ease;
    min-height: 24px;
    font-family: 'UniversProCondensed', sans-serif;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 280px;
    text-align: center;
}

/* Scroll to top button styles */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    border: none;
    outline: none;
    background-color: white;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: none;
}

.scroll-top-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.scroll-top-btn img {
    width: 24px;
    height: 24px;
    display: block;
}

.scroll-top-btn.visible {
    display: block;
}



/* /error screen css */

#error-message {
    font-family: "TrimPoster";
    padding-bottom: 20px;
    font-size: 88px;
    line-height: 0.9;
    color: #121212;
}

/* Updates section styles */
.updates-section {
    background: white;
}


.updates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 26px;
    padding-top:18px;
    padding-right: 20px;
    padding-bottom:13px;
    cursor: pointer;
    user-select: none;
    background-color: rgb(186 9 9);
}

.updates-header.read {
    background-color: darkgray !important;
    padding-left:26px;
}

.updates-title {
    font-family: 'UniformProBold';
    font-size: 19px;
    color: #fff;
    letter-spacing: 0.5px;
    line-height:1.2;
}

.updates-content {
    padding-left:26px;
    padding-right:15px;
    padding-top:17px;
    padding-bottom:15px;
    display: none;
    font-size: 18px !important;
    color: #333;
    background: #fafafa;
    line-height:1.3;
}

.updates-content.expanded {
    display: block;
    padding-left:26px;
    max-width:600px;
}

.updates-header .toggle-icon {
    transform: rotate(-180deg);
    transition: transform 0.3s ease;
}

.updates-header .toggle-icon.rotated {
    transform: rotate(0);
}

@media screen and (max-width: 480px) {
    .updates-header, .updates-content {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}