/* ============================================================
   TRACK ORDER — pagina/shortcode tracciamento ordini
   Prefisso: tf-tr-*
   v4.4.0
   ============================================================ */

/* ---------- PAGINA (template) ---------- */
.tf-tr-page { font-family: 'Open Sans', sans-serif; color: #2d3436; }
.tf-tr-hero {
    background: linear-gradient(135deg, #003366 0%, #0077b6 100%);
    color: #fff;
    padding: 70px 20px;
    text-align: center;
}
.tf-tr-hero-inner { max-width: 800px; margin: 0 auto; }
.tf-tr-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
}
.tf-tr-hero-sub { font-size: 16px; color: rgba(255, 255, 255, 0.85); margin: 0; }
.tf-tr-breadcrumb-bar { background: #f8f9fa; padding: 12px 20px; }
.tf-tr-breadcrumb { max-width: 1040px; margin: 0 auto; font-size: 14px; color: #5a6c72; }
.tf-tr-breadcrumb a { color: #0077b6; text-decoration: none; }
.tf-tr-breadcrumb a:hover { text-decoration: underline; }
.tf-tr-breadcrumb span { margin: 0 7px; }
.tf-tr-content { padding: 50px 20px 70px; }

@media (max-width: 768px) {
    .tf-tr-hero { padding: 50px 20px; }
    .tf-tr-hero-title { font-size: 32px; }
    .tf-tr-content { padding: 40px 16px 56px; }
}

.tf-tr-wrap {
    --tf-tr-blue: #0077b6;
    --tf-tr-navy: #023e8a;
    --tf-tr-border: #e0e6eb;
    --tf-tr-text: #2d3436;
    --tf-tr-soft: #5a6c72;
    max-width: 620px;
    margin: 0 auto;
    font-family: 'Open Sans', sans-serif;
    color: var(--tf-tr-text);
}

/* ---------- TABS ---------- */
.tf-tr-tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.tf-tr-tab {
    flex: 1 1 0;
    background: #f1f5f8;
    border: 1px solid var(--tf-tr-border);
    border-radius: 10px;
    padding: 13px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--tf-tr-soft);
    cursor: pointer;
    transition: all 0.2s;
}
.tf-tr-tab:hover { background: #e8eef3; }
.tf-tr-tab.is-active {
    background: var(--tf-tr-blue);
    border-color: var(--tf-tr-blue);
    color: #fff;
}

/* ---------- PANELS / FORM ---------- */
.tf-tr-panel { display: none; }
.tf-tr-panel.is-active { display: block; }
.tf-tr-form {
    background: #f8f9fa;
    border: 1px solid var(--tf-tr-border);
    border-radius: 12px;
    padding: 26px;
}
.tf-tr-field { margin-bottom: 18px; }
.tf-tr-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--tf-tr-navy);
    margin-bottom: 7px;
}
.tf-tr-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #cdd7de;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.tf-tr-field input:focus {
    outline: none;
    border-color: var(--tf-tr-blue);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.12);
}
.tf-tr-submit {
    width: 100%;
    background: var(--tf-tr-blue);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 14px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.tf-tr-submit:hover { background: #02619a; transform: translateY(-1px); }

/* ---------- ERRORE ---------- */
.tf-tr-error {
    background: #fdecea;
    border: 1px solid #f5b5ae;
    color: #a3261a;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 14.5px;
    margin-bottom: 20px;
}

/* ---------- RISULTATO ---------- */
.tf-tr-result {
    margin-top: 26px;
    border: 1px solid var(--tf-tr-border);
    border-radius: 12px;
    padding: 26px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(12, 45, 72, 0.06);
}
.tf-tr-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef2f5;
    margin-bottom: 16px;
}
.tf-tr-result-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--tf-tr-soft); }
.tf-tr-result-number { font-family: 'Poppins', sans-serif; font-size: 24px; font-weight: 800; color: var(--tf-tr-navy); }
.tf-tr-result-meta { font-size: 14px; color: var(--tf-tr-soft); margin: 0 0 6px; }

/* badge stato */
.tf-tr-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.tf-tr-badge-pending  { background: #eef1f4; color: #5a6c72; }
.tf-tr-badge-progress { background: #d6e9fb; color: #1763a6; }
.tf-tr-badge-shipped  { background: #d8e9ff; color: #1247a6; }
.tf-tr-badge-done     { background: #d1f3e0; color: #14794a; }
.tf-tr-badge-cancel   { background: #fde2e0; color: #a3261a; }

/* box tracking */
.tf-tr-track-box {
    background: #f3f8fb;
    border: 1px solid #d7e6ef;
    border-radius: 10px;
    padding: 20px 22px;
    margin-top: 8px;
}
.tf-tr-track-box h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--tf-tr-blue);
    margin: 0 0 14px;
}
.tf-tr-track-list { list-style: none; margin: 0 0 16px; padding: 0; }
.tf-tr-track-list li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px dashed #dde7ed;
    font-size: 14.5px;
}
.tf-tr-track-list li:last-child { border-bottom: none; }
.tf-tr-track-list li span { color: var(--tf-tr-soft); }
.tf-tr-track-list li strong { color: var(--tf-tr-navy); text-align: right; word-break: break-all; }
.tf-tr-track-btn {
    display: inline-block;
    background: var(--tf-tr-blue);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 26px;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.tf-tr-track-btn:hover { background: #02619a; transform: translateY(-1px); color: #fff; }

/* nota (ordine non ancora spedito) */
.tf-tr-note {
    background: #fff8e1;
    border: 1px solid #ffd970;
    border-radius: 10px;
    padding: 18px 22px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #6b5800;
}
.tf-tr-note strong { color: #5a4a00; }

@media (max-width: 540px) {
    .tf-tr-tabs { flex-direction: column; }
    .tf-tr-result-head { flex-direction: column; align-items: flex-start; }
    .tf-tr-track-list li { flex-direction: column; gap: 2px; }
    .tf-tr-track-list li strong { text-align: left; }
}
