/* ===== Reset ===== */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*:before,
*:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
body,
div, dl, dt, dd, ul, ol, li,
h1, h2, h3, h4, h5, h6,
pre, code, form, fieldset, legend,
input, button, textarea,
p, blockquote, th, td {
    margin: 0;
    padding: 0;
}
ul, li, ol {
    list-style: none;
}
input, button, textarea, select {
    border: none;
    outline: none;
    font-family: inherit;
}
a {
    text-decoration: none;
    color: #101010;
}
html {
    font-size: 14px;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
body {
    background-color: #f8f9fa;
    color: #333;
}

/* ===== Header ===== */
header {
    width: 100%;
    margin: 0 auto;
    background-color: #fff;
    color: #333;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    font-size: 16px;
    position: relative;
    z-index: 100;
}
.top {
    max-width: 1200px;
    width: 100%;
    height: 56px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top a {
    color: #333;
}
.menu-button {
    display: none;
}
.menu {
    display: flex;
    align-items: center;
}
.menu ul {
    display: flex;
}
.menu ul li {
    padding: 0 20px;
    font-size: 15px;
}
.menu ul li a:hover {
    color: #FF6700;
}
.menu ul li:last-child {
    border-right: 0;
}
.menu ul li i {
    display: inline-block;
    margin-right: 6px;
}
.menu ul li.last {
    display: none;
}
.menu-close {
    display: none;
}
.logo {
    font-size: 22px;
    font-weight: 700;
    line-height: 56px;
    padding: 0 15px;
}
.logo a {
    position: relative;
    padding-left: 36px;
    color: #1a237e;
}
.logo img {
    width: 28px;
    position: absolute;
    bottom: 0;
    left: 0;
}

@media (max-width: 765px) {
    .menu {
        display: none;
    }
    .menu-button {
        display: inline-block;
    }
    .menu-button .fa {
        font-size: 28px;
        line-height: 56px;
        margin-right: 15px;
        color: #333;
    }
    .menu {
        display: none;
        position: fixed;
        left: 0; top: 0; right: 0; bottom: 0;
        width: 100%; height: 100%;
        z-index: 10000;
        background: rgba(0, 0, 0, 0.4);
    }
    .menu ul {
        width: 260px;
        flex-direction: column;
        background-color: #fff;
        height: 100%;
        padding-top: 20px;
        padding-left: 20px;
        position: relative;
        box-shadow: 2px 0 12px rgba(0,0,0,0.15);
    }
    .menu ul li {
        padding: 18px 5px;
        border: 0;
        font-size: 16px;
    }
    .menu ul li i {
        margin-right: 8px;
    }
    .menu ul li.last {
        display: inline-block;
        position: absolute; bottom: 20px;
        font-size: 12px; color: #999;
    }
    .menu-close {
        display: block;
    }
    .menu ul a {
        color: #333;
    }
    .logo {
        font-size: 19px;
    }
}

@media (max-width: 390px) {
    .logo {
        font-size: 17px;
        padding-left: 12px;
    }
    .logo a {
        padding-left: 32px;
    }
    .logo img {
        width: 26px;
        height: 26px;
    }
}

/* ===== Hero Section (Homepage) ===== */
.hero {
    background: linear-gradient(135deg, #1a237e 0%, #283593 40%, #FF6700 100%);
    padding: 70px 20px 60px;
    text-align: center;
    color: #fff;
}
.hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.hero .hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
    font-weight: 300;
}
.hero-form {
    max-width: 480px;
    margin: 0 auto;
}
.hero-form .hero-select {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    font-size: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    background-color: rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fff' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    margin-bottom: 16px;
    transition: border-color 0.2s, background-color 0.2s;
}
.hero-form .hero-select:focus {
    border-color: rgba(255,255,255,0.6);
    background-color: rgba(255,255,255,0.25);
}
.hero-form .hero-select option {
    color: #333;
    background-color: #fff;
}
.hero-form .hero-btn {
    width: 100%;
    height: 50px;
    background-color: #FF6700;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.hero-form .hero-btn:hover {
    background-color: #e55d00;
}
.hero-form .hero-btn:active {
    transform: scale(0.98);
}
.hero-form .hero-btn .fa {
    font-size: 18px;
}

@media (max-width: 765px) {
    .hero {
        padding: 50px 16px 40px;
    }
    .hero h1 {
        font-size: 26px;
    }
    .hero .hero-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }
}
@media (max-width: 414px) {
    .hero h1 {
        font-size: 22px;
    }
}

/* ===== Main Content ===== */
.wrap {
    width: 100%;
}
.v-wrap {
    width: 100%;
}
.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}
.main h1, .main h2 {
    text-align: center;
    margin: 10px;
}
.section.description {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
    line-height: 1.8;
}
.section.description h2 {
    text-align: left;
    margin: 10px 0;
    font-size: 20px;
}
.section.description p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 12px;
}
.main .track-wrap {
    margin: 30px auto;
    width: 100%;
    max-width: 560px;
}

/* ===== Courier Select on Track Page ===== */
.form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    max-width: 300px;
}
.main .select-a-courier {
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    margin-top: 10px;
}

/* ===== Courier Cards Grid ===== */
.section-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a237e;
    text-align: center;
    margin-bottom: 20px;
}
.row {
    display: flex;
    flex-wrap: wrap;
}
.row a {
    width: 23%;
    margin: 1%;
    transition: transform 0.2s;
}
.row a:hover {
    transform: translateY(-3px);
}
.row .card {
    display: flex;
    align-items: center;
    padding: 12px;
}
.card {
    word-wrap: break-word;
    background-clip: border-box;
    background-color: #fff;
    border: 0 solid transparent;
    border-radius: 8px;
    display: flex;
    min-width: 0;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
}
.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.06);
}
.card .carrier-logo {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}
.card img {
    width: 100%;
    border-radius: 4px;
}
.card p {
    display: flex;
    align-items: center;
    width: auto;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 12px;
    font-size: 14px;
    color: #333;
}
.view-all-link {
    text-align: center;
    margin: 24px 0;
}
.view-all-link a {
    display: inline-block;
    color: #FF6700;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 30px;
    border: 2px solid #FF6700;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s;
}
.view-all-link a:hover {
    background-color: #FF6700;
    color: #fff;
}

/* ===== Tracking Page Header ===== */
.track-page-header {
    text-align: center;
    padding: 30px 20px 20px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}
.track-page-header .carrier-logo-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
}
.track-page-header .carrier-logo-large img {
    width: 100%;
    border-radius: 8px;
}
.track-page-header h1 {
    font-size: 24px;
    color: #1a237e;
    margin-bottom: 4px;
}
.track-page-header h2 {
    font-size: 15px;
    color: #666;
    font-weight: 400;
}

/* ===== Track Search Bar (on tracking pages) ===== */
.track-search-bar {
    max-width: 600px;
    margin: 24px auto;
    padding: 0 20px;
}
.track-search-bar .search-row {
    display: flex;
    gap: 10px;
}
.track-search-bar .track-select {
    width: 200px;
    flex-shrink: 0;
    height: 48px;
    padding: 0 12px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s;
}
.track-search-bar .track-select:focus {
    border-color: #FF6700;
}
.track-search-bar .track-input {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    color: #333;
    transition: border-color 0.2s;
}
.track-search-bar .track-input:focus {
    border-color: #FF6700;
}
.track-search-bar .track-btn {
    height: 48px;
    padding: 0 24px;
    background-color: #FF6700;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.track-search-bar .track-btn:hover {
    background-color: #e55d00;
}
.track-search-bar .track-input-tip {
    text-align: left;
    margin-top: 8px;
    font-size: 14px;
    color: #e53935;
    font-weight: 600;
    display: none;
}

@media (max-width: 765px) {
    .track-search-bar .search-row {
        flex-direction: column;
    }
    .track-search-bar .track-select {
        width: 100%;
    }
    .track-search-bar .track-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Tracking Result ===== */
.track-result-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}
.track-result-title {
    display: none;
    text-align: center;
    font-size: 18px;
    color: #333;
    margin: 20px 0 10px;
}
.track-result2, .track-result {
    position: relative;
    width: 100%;
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden;
}
.track-result2 .loading-img, .track-result .loading-img {
    width: 100%;
    max-width: 200px;
    display: block;
    margin: 20px auto 0;
}
.track-result2 .loading-tip, .track-result .loading-tip {
    text-align: center;
    font-size: 15px;
    color: #1a237e;
    font-weight: 600;
    padding: 12px 20px;
    letter-spacing: 0.3px;
}
.track-progress-bar {
    width: 80%;
    max-width: 300px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 4px;
    margin: 0 auto 20px;
    overflow: hidden;
}
.track-progress-bar .bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6700, #ff9a44);
    border-radius: 4px;
    transition: width 0.6s ease;
    width: 0%;
}
.track-steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}
.track-steps .step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: background 0.3s, transform 0.3s;
}
.track-steps .step-dot.active {
    background: #FF6700;
    transform: scale(1.3);
}
.track-steps .step-dot.done {
    background: #4caf50;
}
.track-out {
    display: none;
}
.track-over {
    padding: 20px;
    text-align: left;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
}
.track-number {
    font-size: 16px;
    color: #333;
    margin-bottom: 6px;
    word-break: break-all;
}
.track-status {
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
}
.track-status.status-delivered {
    color: #4caf50;
}
.track-status.status-transit {
    color: #FF6700;
}
.track-status.status-error {
    color: #e53935;
}
.track-cache-hint {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: -12px;
    margin-bottom: 16px;
}
.track-status-icon {
    text-align: center;
    font-size: 40px;
    margin-bottom: 8px;
}
.track-status-icon.icon-success {
    color: #4caf50;
}
.track-status-icon.icon-error {
    color: #e53935;
}
.track-status-icon.icon-warning {
    color: #ff9800;
}

/* ===== Tracking Wait Hint ===== */
.track-wait-hint {
    text-align: center;
    font-size: 13px;
    color: #999;
    padding: 4px 0 16px;
}

/* ===== Tracking Number Label ===== */
.track-number-label {
    color: #999;
    font-weight: 400;
    font-size: 13px;
}

/* ===== Status Badge ===== */
.status-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.status-badge.status-delivered {
    background-color: #e8f5e9;
    color: #2e7d32;
}
.status-badge.status-transit {
    background-color: #fff3e0;
    color: #e65100;
}
.status-badge.status-error {
    background-color: #fbe9e7;
    color: #c62828;
}

/* ===== Track Suggestions ===== */
.track-suggestions {
    text-align: left;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0;
}
.track-suggestions .suggestions-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}
.track-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.track-suggestions ul li {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    padding: 5px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.track-suggestions ul li .fa {
    color: #999;
    margin-top: 3px;
    flex-shrink: 0;
}

/* ===== Track Error Actions ===== */
.track-error-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.track-retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background-color: #FF6700;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}
.track-retry-btn:hover {
    background-color: #e55d00;
}
.track-retry-btn:active {
    transform: scale(0.97);
}
.track-change-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #1a237e;
    font-weight: 500;
    transition: color 0.2s;
}
.track-change-link:hover {
    color: #FF6700;
}

/* ===== Rewarded Tracking Unlock ===== */
.track-result2.rewarded-pending {
    border-color: #dfe3f5;
    background: linear-gradient(145deg, #ffffff 0%, #f7f8ff 100%);
}
.rewarded-unlock-panel {
    max-width: 440px;
    margin: 0 auto;
    padding: 14px 12px 10px;
    text-align: center;
}
.rewarded-unlock-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    border-radius: 50%;
    color: #FF6700;
    background: #fff3e8;
    font-size: 34px;
}
.rewarded-unlock-panel h3 {
    margin: 0 0 10px;
    color: #1a237e;
    font-size: 21px;
    line-height: 1.3;
}
.rewarded-unlock-panel > p {
    max-width: 380px;
    margin: 0 auto 20px;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}
.rewarded-unlock-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 24px;
    border: 0;
    border-radius: 8px;
    background: #FF6700;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 7px 18px rgba(255, 103, 0, 0.2);
    transition: background-color 0.2s, transform 0.1s, opacity 0.2s;
}
.rewarded-unlock-button:hover {
    background: #e55d00;
}
.rewarded-unlock-button:active {
    transform: scale(0.98);
}
.rewarded-unlock-button:disabled {
    cursor: wait;
    opacity: 0.7;
}
.rewarded-unlock-button.is-loading .fa {
    animation: rewarded-pulse 0.9s ease-in-out infinite alternate;
}
.rewarded-cancel-button {
    display: block;
    margin: 13px auto 0;
    padding: 5px 12px;
    border: 0;
    background: transparent;
    color: #666;
    cursor: pointer;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.rewarded-cancel-button:hover {
    color: #1a237e;
}
.rewarded-unlock-status {
    min-height: 18px;
    margin-top: 13px;
    color: #888;
    font-size: 12px;
    line-height: 1.5;
}
@keyframes rewarded-pulse {
    from { opacity: 0.45; }
    to { opacity: 1; }
}

@media (max-width: 480px) {
    .rewarded-unlock-panel {
        padding-left: 0;
        padding-right: 0;
    }
    .rewarded-unlock-panel h3 {
        font-size: 19px;
    }
    .rewarded-unlock-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rewarded-unlock-button,
    .rewarded-unlock-button.is-loading .fa {
        animation: none;
        transition: none;
    }
}

/* ===== Tracking Timeline ===== */
.package-status {
    padding: 18px 0 0 0;
}
.package-status .status-list {
    margin: 0;
    padding: 0 0 0 8px;
    list-style: none;
}
.package-status .status-list > li {
    border-left: 2px solid #1a237e;
    text-align: left;
    height: auto;
    width: 95%;
}
.package-status .status-list > li:before {
    content: '';
    border: 3px solid #1a237e;
    background-color: #1a237e;
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 10px;
    margin-left: -7px;
    margin-right: 10px;
}
.package-status .status-list > li:not(:first-child) {
    padding-top: 10px;
}
.package-status .status-box {
    overflow: hidden;
    position: relative;
}
.status-content-before {
    text-align: left;
    margin-left: 25px;
    margin-top: -20px;
    color: #555;
}
.status-content-latest {
    text-align: left;
    margin-left: 25px;
    color: #1a237e;
    margin-top: -20px;
    font-weight: 500;
}
.status-time-before {
    text-align: left;
    margin-left: 25px;
    font-size: 12px;
    margin-top: 5px;
    color: #999;
}
.status-time-latest {
    text-align: left;
    margin-left: 25px;
    color: #1a237e;
    font-size: 12px;
    margin-top: 5px;
}
.status-line {
    border-bottom: 1px solid #eee;
    margin-left: 25px;
    margin-top: 10px;
}

/* ===== Page / Pagination ===== */
.section.page {
    margin: 24px auto;
}
.btn-page {
    color: #FF6700;
    padding: 8px 16px;
    font-size: 15px;
    border-radius: 6px;
    transition: background-color 0.2s;
}
.btn-page:hover {
    background-color: rgba(255,103,0,0.08);
}
.page {
    text-align: center;
}
.page-now {
    font-size: 15px;
    margin: 0 20px;
    color: #666;
}
.disabled {
    color: #ccc;
}
.btn-page .fa-angle-left {
    margin-right: 10px;
}
.btn-page .fa-angle-right {
    margin-left: 10px;
}

/* ===== Footer ===== */
footer {
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 30px auto 0;
    text-align: center;
    color: #666;
    font-size: 13px;
}
footer a {
    color: #555;
    transition: color 0.2s;
}
footer a:hover {
    color: #FF6700;
}
footer ul {
    display: flex;
    justify-content: center;
    margin: 16px 0 10px 0;
    flex-wrap: wrap;
}
footer ul li {
    padding: 5px 12px;
}

/* ===== Country Select (in footer) ===== */
.country-select {
    margin-bottom: 12px;
}
.country-select .item {
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
}

/* ===== Policy Pages ===== */
.police h1 {
    margin: 20px;
    text-align: center;
}
.police h3 {
    margin: 15px 0;
}
.police p, .police li {
    line-height: 30px;
}
.police .content {
    padding: 10px;
}
.privacy {
    display: block;
}

/* ===== Ads ===== */
.ads-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}
.ads-block {
    width: 100%;
    margin: 24px auto;
}
.ads-alert {
    text-align: center;
    font-size: 11px;
    color: #bbb;
}
.ads-code {
    width: 100%;
    min-height: 100px;
}

/* ===== Carrier Detail Header ===== */
.top-carrier-logo img {
    max-width: 100px;
}
.section-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}
.section-head .top-carrier-logo {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}
.section-head h2 {
    font-size: 22px;
    margin: 0;
    color: #1a237e;
}

/* ===== Disclaimer ===== */
.disclaimer {
    max-width: 900px;
    margin: 20px auto;
    padding: 16px;
    font-size: 12px;
    color: #999;
    text-align: center;
    line-height: 1.6;
}

/* ===== Cookie Consent ===== */
.cc-window.cc-floating {
    padding: 5px;
}
.cc-revoke, .cc-window {
    font-size: 14px;
}
.cc-btn {
    font-size: 14px;
    padding: 5px;
    width: 35px;
    height: 35px;
    margin: 0 auto;
    border-radius: 2px;
}
.cookie-ok {
    cursor: pointer;
}
.cc-bottom {
    bottom: 0 !important;
}

/* ===== Legacy Input Styles (tracking pages) ===== */
.TM_input-group {
    position: relative;
    display: table;
    border-collapse: separate;
    text-align: center;
    min-width: 220px;
}
.TM_my_search_input_style {
    position: relative;
    z-index: 2;
    float: left;
    width: 100%;
    margin-bottom: 0;
    height: 48px;
    padding: 10px 16px;
    font-size: 16px;
    line-height: 1.3;
    border-radius: 8px;
    color: #333;
    background-color: #fff;
    background-image: none;
    border: 2px solid #e0e0e0;
    transition: border-color 0.2s;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    outline: none;
    margin: 0 !important;
}
.TM_my_search_input_style:focus {
    border-color: #FF6700;
}
.TM_input-group-btn {
    position: relative;
    font-size: 0;
    white-space: nowrap;
    width: 1%;
    vertical-align: middle;
    display: table-cell;
}
.TM_my_search_button_style {
    padding: 10px 14px;
    font-size: 16px;
    line-height: 1.3;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 0;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    position: relative;
    margin-left: -1px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border: none;
    text-indent: 0;
    width: 56px;
    height: 48px;
    background-color: #FF6700;
    transition: background-color 0.2s;
}
.TM_my_search_button_style:hover {
    background-color: #e55d00;
}
.TM_my_search_button_style .fa {
    color: #fff;
}
.TM_input-tip {
    text-align: left;
    margin-top: 8px;
    font-size: 14px;
    color: #e53935;
    font-weight: 600;
    display: none;
}

/* ===== Responsive - Main Content ===== */
@media (max-width: 765px) {
    .main {
        padding: 16px 12px;
    }
    .main h1 {
        font-size: 20px;
    }
    .main h2 {
        font-size: 15px;
    }
    .main .track-wrap {
        max-width: 100%;
        margin: 10px auto;
    }
    .row a {
        width: 48%;
        margin: 1%;
    }
    .form-control {
        max-width: 100%;
    }
    .section-head {
        gap: 10px;
    }
    .section-head .top-carrier-logo {
        width: 44px;
        height: 44px;
    }
    .section-head h2 {
        font-size: 18px;
    }
}
@media (max-width: 414px) {
    .row a {
        width: 100%;
        margin: 4px 0;
    }
    .main h1 {
        font-size: 18px;
    }
}

/* ===== Responsive - Ads ===== */
@media (max-width: 768px) {
    .ads-code {
        width: 100%;
        min-height: 252px;
    }
    .police .container {
        padding: 0 10px;
    }
    footer ul {
        display: flex;
        flex-wrap: wrap;
    }
    .top-carrier-logo img {
        max-width: 60px;
    }
}

/* ===== Responsive - Cookie Consent ===== */
@media screen and (max-width: 414px) and (orientation: portrait), screen and (max-width: 736px) and (orientation: landscape) {
    .cc-window .cc-message {
        margin-bottom: 0.3rem;
        font-size: 12px;
    }
    .cc-compliance {
        width: 35px;
        margin: 0 auto;
    }
}
@media (max-width: 736px) {
    .cc-window.cc-floating {
        max-width: 100%;
        width: 100%;
    }
}

.track-select.needs-choice {
    border-color: #FF6700;
    box-shadow: 0 0 0 3px rgba(255, 103, 0, 0.18);
}

/* ===== Carrier information ===== */
.section.carrier-info {
    max-width: 900px;
    margin: 24px auto 0;
    padding: 18px 20px 20px;
    background-color: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 8px;
}
/* .main h2 centres headings site-wide and outranks a lone class selector,
   so this block's title is scoped to beat it. */
.section.carrier-info .carrier-info-title {
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    margin: 0 0 12px;
    color: #1a237e;
}
.carrier-info-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px 24px;
    margin: 0;
}
.carrier-info-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}
.carrier-info-row dt {
    flex: 0 0 auto;
    font-size: 13px;
    color: #8a94a6;
}
.carrier-info-row dd {
    margin: 0;
    min-width: 0;
    font-size: 14px;
    color: #333;
    word-break: break-word;
}
.carrier-info-row dd a { color: #FF6700; }
.carrier-info-row dd a:hover { text-decoration: underline; }
.carrier-info-row .fa { font-size: 11px; }

@media (max-width: 765px) {
    .section.carrier-info { margin-left: 0; margin-right: 0; padding: 16px; }
    .carrier-info-list { grid-template-columns: 1fr; gap: 8px; }
}

/* ===== Google Ad Manager Display Placements ===== */
.gam-ad-placement {
    width: 100%;
    max-width: 100%;
    margin: 32px auto;
    overflow: hidden;
    text-align: center;
    transition: min-height 0.2s ease, margin 0.2s ease, opacity 0.2s ease;
}
.gam-ad-label {
    margin-bottom: 6px;
    color: #8a94a6;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    visibility: hidden;
}
.gam-ad-placement.is-filled .gam-ad-label {
    visibility: visible;
}
.gam-ad-slot {
    display: flex;
    width: 100%;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
}
.gam-ad-placement--home-feed .gam-ad-slot,
.gam-ad-placement--home-inline .gam-ad-slot,
.gam-ad-placement--in-feed .gam-ad-slot,
.gam-ad-placement--tracking-inline .gam-ad-slot {
    min-height: 250px;
}
.gam-ad-placement--native-content .gam-ad-slot {
    min-height: 180px;
}
.gam-ad-placement--tracking-header .gam-ad-slot {
    min-height: 100px;
}
.tpn-campaign .gam-ad-placement--tracking-header .gam-ad-slot {
    min-height: 250px;
}
@media (min-width: 360px) {
    .tpn-campaign .gam-ad-placement--tracking-header .gam-ad-slot {
        min-height: 280px;
    }
}
.gam-ad-placement--in-feed {
    flex: 0 0 100%;
    margin: 8px auto 24px;
}
/* Result slot: hidden until a lookup succeeds, so it never sits next to the
   Try Again button on the error path. Nested inside @media (min-width: 332px)
   so the global small-screen hide below still wins. */
.gam-ad-placement--tracking-result {
    display: none;
}
.gam-ad-placement--tracking-result .gam-ad-slot {
    min-height: 250px;
}
@media (min-width: 332px) {
    .track-ok .gam-ad-placement--tracking-result {
        display: block;
    }
}
@media (max-width: 355px) {
    .gam-ad-placement--tracking-result {
        display: none;
    }
}
@media (min-width: 442px) {
    .gam-ad-placement--tracking-result .gam-ad-slot {
        min-height: 280px;
    }
}
.gam-ad-placement.is-empty {
    min-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    opacity: 0;
}
.gam-ad-placement.is-empty .gam-ad-label,
.gam-ad-placement.is-empty .gam-ad-slot {
    display: none;
    min-height: 0;
}
/* GPT's collapseDiv:ON_NO_FILL writes display:none inline on the slot div,
   which a class alone cannot beat. Above-the-fold placements marked
   holdSpace need the reserved box to survive an empty render, or the page
   shifts by the full slot height. !important outranks the inline style. */
.gam-ad-placement.is-unfilled .gam-ad-slot {
    display: flex !important;
}
.section.description > .gam-ad-placement {
    margin-top: 34px;
    margin-bottom: 34px;
}

@media (min-width: 360px) and (max-width: 767px) {
    .gam-ad-placement--home-feed .gam-ad-slot,
    .gam-ad-placement--home-inline .gam-ad-slot,
    .gam-ad-placement--in-feed .gam-ad-slot,
    .gam-ad-placement--tracking-inline .gam-ad-slot {
        min-height: 280px;
    }
    .gam-ad-placement--native-content .gam-ad-slot {
        min-height: 220px;
    }
}

@media (min-width: 768px) {
    .gam-ad-placement--home-feed .gam-ad-slot,
    .gam-ad-placement--home-inline .gam-ad-slot,
    .gam-ad-placement--in-feed .gam-ad-slot {
        min-height: 90px;
    }
    .gam-ad-placement--tracking-header .gam-ad-slot {
        min-height: 90px;
    }
    .gam-ad-placement--tracking-inline .gam-ad-slot {
        min-height: 280px;
    }
    .tpn-campaign .gam-ad-placement--tracking-header .gam-ad-slot {
        min-height: 280px;
    }
}

@media (max-width: 331px) {
    .gam-ad-placement {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gam-ad-placement {
        transition: none;
    }
}
