/* Order Tracking Form Styles */
.fmeost-container {
    max-width: 600px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.fmeost-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.fmeost-card-header {
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    color: #ffffff;
    padding: 25px 30px;
    text-align: center;
}

.fmeost-card-header h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
}

.fmeost-subtitle {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.fmeost-card-body {
    padding: 30px !important;
}

.fmeost-form-group {
    margin-bottom: 24px;
}

.fmeost-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.fmeost-form-group input {
    width: 100%;
    /* padding: 12px 15px; */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 8px;
}

.fmeost-form-group input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
    outline: none;
}

.fmeost-form-group.has-error input {
    border-color: #dc3232;
}

.fmeost-error-message {
    color: #dc3232;
    font-size: 13px;
    margin-top: 6px;
}

.fmeost-form-submit {
    margin-top: 30px;
    text-align: center;
}

.fmeost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fmeost-btn-primary {
    background: #0073aa;
    color: #ffffff;
}

.fmeost-btn-primary:hover {
    background: #005177;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.fmeost-icon-search {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>');
    margin-right: 8px;
}

.fmeost-success-message {
    background: linear-gradient(135deg, #46b450 0%, #399a41 100%);
    color: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(70, 180, 80, 0.3);
}

/* reCAPTCHA responsive styling */
.g-recaptcha {
    transform-origin: left top;
    margin-top: 10px;
}

@media screen and (max-width: 480px) {
    .fmeost-card-header {
        padding: 20px;
    }
    
    .fmeost-card-body {
        padding: 20px !important;
    }
    
    .fmeost-card-header h2 {
        font-size: 24px;
    }
    
    .g-recaptcha {
        transform: scale(0.85);
    }
}


/* Custom page */

/* Tracking Results Styling */
.fmeost-tracking-results {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.fmeost-tracking-summary {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.fmeost-tracking-summary:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.fmeost-status-info {
    color: #333;
    line-height: 1.6;
}

.fmeost-status-text {
    font-size: 16px;
    margin-bottom: 12px;
}

.fmeost-delivery-estimate {
    font-size: 15px;
    margin-bottom: 12px;
    color: #555;
}

.fmeost-tracking-code {
    font-size: 15px;
    margin-bottom: 12px;
    color: #555;
}
.fmeost-tracking-postcode{
    font-size: 15px;
    margin-bottom: 12px;
    color: #555;
}

.fmeost-tracking-link {
    margin-top: 15px;
}

.fmeost-tracking-link a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.fmeost-tracking-link a:hover {
    color: #004499;
    text-decoration: underline;
}

.fmeost-error-message {
    color: #d32f2f;
    font-size: 14px;
    margin-top: 5px;
}

.fmeost-notice {
    background-color: #fff3cd;
    color: #856404;
    padding: 12px 15px;
    border-radius: 4px;
    margin: 15px 0;
}

/* Loading spinner */
.fmeost-icon-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: fmeost-spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes fmeost-spin {
    to { transform: rotate(360deg); }
}


/* Tracking Heading Style */
.fmeost-tracking-heading {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    position: relative;
}

.fmeost-tracking-heading:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #0066cc; /* Primary color accent */
}








/* Tracking Button in Order Column */
.fmeost-track-button {
    display: inline-flex;
    align-items: center;
    background-color: #f8f9fa;
    color: #2c3e50;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    text-decoration: none !important;
    position: relative;
}

.fmeost-track-button:hover {
    background-color: #edf2f7;
    color: #1a365d;
    border-color: #cbd5e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.fmeost-track-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 17H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-4"></path><path d="M9 17l6-6"></path><path d="M9 11V17"></path><path d="M15 11H9"></path></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: text-bottom;
}

/* Elegant Tooltip using data-tooltip attribute */
.fmeost-track-button {
    position: relative;
}

.fmeost-track-button::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    padding: 12px 15px;
    border-radius: 6px;
    background-color: rgba(44, 62, 80, 0.95);
    color: #fff;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    font-weight: normal;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: normal;
}

.fmeost-track-button::after {
    content: '';
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(44, 62, 80, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.fmeost-track-button:hover::before,
.fmeost-track-button:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 10px);
}

/* Hide the title attribute tooltip */
.fmeost-track-button[title] {
    position: relative;
}

.fmeost-track-button[title]::after {
    content: '';
}

/* Unavailable Tracking Notice */
.fmeost-track-unavailable {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f8f9fa;
    color: #a0aec0;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    font-style: italic;
}





/* icons css */
/* Custom Transportation Icons for the front-end */
.fmeost-icon-truck:before,
.fmeost-icon-airplane:before,
.fmeost-icon-ship:before,
.fmeost-icon-train:before,
.fmeost-icon-motorcycle:before,
.fmeost-icon-warehouse:before,
.fmeost-icon-forklift:before,
.fmeost-icon-delivery-person:before,
.fmeost-icon-tracking:before,
.fmeost-icon-barcode:before,
.fmeost-icon-qr-code:before,
.fmeost-icon-customs:before,
.fmeost-icon-international:before {
    font-family: 'Font Awesome 6 Free';
    display: inline-block;
    line-height: 1;
    font-weight: 900;
    font-style: normal;
    speak: never;
    text-decoration: inherit;
    text-transform: none;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 20px;
    height: 22px;
    font-size: 20px;
    vertical-align: middle;
    text-align: center;
    transition: color .1s ease-in;
}

/* Truck Icon */
.fmeost-icon-truck:before {
    content: "\f0d1"; /* fa-truck */
}

/* Airplane Icon */
.fmeost-icon-airplane:before {
    content: "\f072"; /* fa-plane */
}

/* Ship Icon */
.fmeost-icon-ship:before {
    content: "\f21a"; /* fa-ship */
}

/* Train Icon */
.fmeost-icon-train:before {
    content: "\f238"; /* fa-train */
}

/* Motorcycle Icon */
.fmeost-icon-motorcycle:before {
    content: "\f21c"; /* fa-motorcycle */
}

/* Warehouse Icon */
.fmeost-icon-warehouse:before {
    content: "\f494"; /* fa-warehouse */
}

/* Forklift Icon */
.fmeost-icon-forklift:before {
    content: "\f47d"; /* fa-dolly-flatbed (closest to forklift) */
}

/* Delivery Person Icon */
.fmeost-icon-delivery-person:before {
    content: "\f2b9"; /* fa-address-card (or use fa-user-tie) */
}

/* Tracking Icon */
.fmeost-icon-tracking:before {
    content: "\f124"; /* fa-location-arrow */
}

/* Barcode Icon */
.fmeost-icon-barcode:before {
    content: "\f02a"; /* fa-barcode */
}

/* QR Code Icon */
.fmeost-icon-qr-code:before {
    content: "\f029"; /* fa-qrcode */
}

/* Customs Icon */
.fmeost-icon-customs:before {
    content: "\f024"; /* fa-flag */
}

/* International Icon */
.fmeost-icon-international:before {
    content: "\f0ac"; /* fa-globe */
}



/* Frontend timeline css */

.fmeost-timeline-section {
    margin: 40px 0 30px;
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-height: 415px; 
    overflow-y: auto;
}
.fmeost-timeline-title {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.5em;
    text-align: center;
    color: #333;
}
.fmeost-timeline-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: relative;
    margin-bottom: 30px;
}
.fmeost-timeline-container::-webkit-scrollbar,
.fmeost-timeline-section::-webkit-scrollbar {
height: 8px;
width: 8px;
}

.fmeost-timeline-container::-webkit-scrollbar-track,
.fmeost-timeline-section::-webkit-scrollbar-track {
background: #f0f0f0;
border-radius: 4px;
}

.fmeost-timeline-container::-webkit-scrollbar-thumb,
.fmeost-timeline-section::-webkit-scrollbar-thumb {
background: #cfcfd0;
border-radius: 4px;
}

@media (max-width: 768px) {
    .fmeost-timeline-container {
        flex-direction: column;
    }
}
.fmeost-timeline-stage {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
min-width: 104px;
max-width: 200px;
margin-right: 10px;
flex: 1;
}
@media (max-width: 768px) {
    .fmeost-timeline-stage {
        flex-direction: row;
        margin-bottom: 20px;
    }

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

.fmeost-timeline-stage__icon-container {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .fmeost-timeline-stage__icon-container {
        margin-bottom: 0;
        margin-right: 15px;
    }
}



.fmeost-timeline-stage__icon {
    font-size: 22px;
    color: #888;
}
.fmeost-timeline-stage--active .fmeost-timeline-stage__icon {
    color: #fff;
}

.fmeost-timeline-stage__content {
    text-align: center;
    max-width: 100px;
}

@media (max-width: 768px) {
    .fmeost-timeline-stage__content {
        text-align: left;
        max-width: none;
        flex: 1;
    }
}

.fmeost-timeline-stage__label {
    margin: 0 0 5px;
    font-size: 0.8em;
    font-weight: 600;
    color: #333;
    word-break:break-word;
}

.fmeost-timeline-stage--inactive .fmeost-timeline-stage__label {
    color: #888;
}

.fmeost-timeline-stage__description {
    margin: 0;
    font-size: 0.85em;
    color: #666;
    line-height: 1.4;
}

.fmeost-timeline-stage--inactive .fmeost-timeline-stage__description {
    color: #999;
    word-break:break-word;
}

.fmeost-timeline-stage__connector {
    position: absolute;
    top: 25px;
    right: calc(-50% + 16px);
    width: calc(100% - 43px);
    height: 3px;
    background-color: #e0e0e0;
    z-index: 1;
}

@media (max-width: 768px) {
    .fmeost-timeline-stage__connector {
        top: auto;
        right: auto;
        left: 25px;
        width: 3px;
        height: calc(100% - 30px);
        bottom: -20px;
    }
}

.fmeost-timeline-delivery-text {
    font-size: 0.95em;
    color: #555;
}




/* svg-icons css */
/* SVG Icon Styling */
/* .fmeost-svg-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.fmeost-svg-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    display: block;
} */

/* .fmeost-timeline-stage--active .fmeost-timeline-stage__icon-container .fmeost-svg-icon svg {
    fill: #fff;
}

.fmeost-timeline-stage--inactive .fmeost-timeline-stage__icon-container .fmeost-svg-icon svg {
    fill: #999;
} */

/* Timeline Styling */
/* .fmeost-timeline-section {
    margin: 30px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
} */

/* .fmeost-timeline-title {
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 600;
}

.fmeost-timeline-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
} */

/* @media (min-width: 768px) {
    .fmeost-timeline-container {
        flex-direction: row;
        align-items: flex-start;
    }
}

.fmeost-timeline-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
} */

/* @media (min-width: 768px) {
    .fmeost-timeline-stage {
        flex-direction: column;
    }
} */

/* .fmeost-timeline-stage__icon-container {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    z-index: 2;
} */

/* .fmeost-timeline-stage--active .fmeost-timeline-stage__icon-container {
    background-color: var(--timeline-color, #ad04fb);
    color: #fff;
}

.fmeost-timeline-stage--inactive .fmeost-timeline-stage__icon-container {
    background-color: #e0e0e0;
    color: #999;
} */

/* .fmeost-timeline-stage__content {
    text-align: center;
    padding: 0 10px;
} */

/* .fmeost-timeline-stage__label {
    font-size: 1em;
    font-weight: 600;
    margin: 0 0 5px;
}

.fmeost-timeline-stage--active .fmeost-timeline-stage__label {
    color: var(--timeline-color, #ad04fb);
}

.fmeost-timeline-stage__description {
    font-size: 0.85em;
    color: #666;
    margin: 0 0 5px;
}

.fmeost-timeline-stage__date {
    font-size: 0.8em;
    color: #888;
    margin: 0;
}

.fmeost-timeline-stage__connector {
    position: absolute;
    height: 3px;
    background-color: #e0e0e0;
    top: 20px;
    right: calc(-50% + 20px);
    left: calc(50% + 20px);
    z-index: 1;
}

@media (min-width: 768px) {
    .fmeost-timeline-stage__connector {
        right: calc(-50% + 20px);
        left: calc(50% + 20px);
    }
}

.fmeost-timeline-stage__connector--active {
    background-color: var(--timeline-color, #ad04fb);
}

.fmeost-timeline-delivery-estimate {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.fmeost-timeline-delivery-icon {
    margin-right: 10px;
    color: var(--timeline-color, #ad04fb);
}

.fmeost-timeline-delivery-text {
    font-size: 0.9em;
    color: #555;
} */
