/*
Theme Name: ShipBac
Theme URI: https://www.w3care.com/
Description: Child theme for the ShipBac
Author: W3care
Author URI: https://www.w3care.com/
Template: twentytwentyfive
Version: 1.0.0
Text Domain: twentytwentyfive
*/

/* You can add custom CSS below this line */

#tracking-result-modal{
    margin-top: 20px;
}

.track-box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}

.photos img {
    margin: 5px;
    border-radius: 5px;
}

/* Section sits on gradient like the live site */
    .ft-wrap {
      max-width: var(--ft-max);
      margin: 0 auto;
      padding: clamp(1.25rem, 4vw, 2.5rem);
    }

    .ft-card {
      background: var(--ft-surface);
      border-radius: var(--ft-radius);
      box-shadow: var(--ft-shadow);
      overflow: hidden;
    }

    /* Hero aligned with live “Fast Track” gradient strip */
    .ft-card__hero {
      position: relative;
      padding: clamp(1.35rem, 4vw, 2rem);
      background: linear-gradient(115deg, #d4146e 0%, #e94b7d 38%, #ff9a3c 72%, #f4c01c 100%);
      color: #fff;
      overflow: hidden;
    }

    .ft-card__hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image: radial-gradient(circle at 12% 88%, rgba(255, 255, 255, 0.14) 0%, transparent 42%),
        radial-gradient(circle at 0% 40%, rgba(0, 0, 0, 0.06) 0%, transparent 35%);
      pointer-events: none;
    }

    .ft-card__hero-inner {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 1rem;
      align-items: start;
    }

    @media (min-width: 720px) {
      .ft-card__hero-inner {
        grid-template-columns: minmax(140px, 0.35fr) minmax(0, 1fr);
        gap: 1.5rem;
        align-items: center;
      }
    }

    .ft-hero-art {
      display: none;
      aspect-ratio: 4/3;
      border-radius: 12px;
      background: rgba(0, 0, 0, 0.12);
      border: 1px solid rgba(255, 255, 255, 0.2);
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 100'%3E%3Cpath fill='rgba(255,255,255,0.12)' d='M20 75 L45 35 L75 35 L95 55 L100 75 Z'/%3E%3Ccircle cx='38' cy='78' r='8' fill='rgba(0,0,0,0.2)'/%3E%3Ccircle cx='82' cy='78' r='8' fill='rgba(0,0,0,0.2)'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: center;
      background-size: 70%;
    }

    @media (min-width: 720px) {
      .ft-hero-art {
        display: block;
      }
    }

    .ft-kicker {
      margin: 0 0 0.35rem;
      font-size: 0.75rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      font-weight: 700;
      color: rgba(255, 255, 255, 0.85);
    }

    .ft-title {
      margin: 0 0 0.65rem;
      font-size: clamp(1.35rem, 3.5vw, 1.85rem);
      font-weight: 800;
      line-height: 1.12;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    }

    .ft-sub {
      margin: 0;
      max-width: 56ch;
      font-size: 0.9rem;
      line-height: 1.45;
      color: rgba(255, 255, 255, 0.88);
    }

    .ft-form {
      margin-top: 1.25rem;
    }

    .ft-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.65rem;
      align-items: stretch;
    }

    .ft-input-wrap {
      flex: 1 1 220px;
      min-width: 0;
    }

    .ft-input {
      width: 100%;
      height: 100%;
      min-height: 52px;
      padding: 0.65rem 0.85rem;
      border: 1px solid rgba(255, 255, 255, 0.65);
      border-radius: var(--ft-radius-sm);
      background: #fff;
      color: var(--ft-black);
      font-size: 0.9375rem;
      letter-spacing: 0.02em;
      outline: none;
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

    .ft-input:focus {
      border-color: #fff;
      box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
    }

    .ft-input::placeholder {
      color: #9aa0a8;
      letter-spacing: 0;
    }

    .ft-btn {
      flex: 0 0 auto;
      min-height: 52px;
      padding: 0 1.35rem;
      border: none;
      border-radius: var(--ft-radius-sm);
      background: var(--ft-black);
      color: #fff;
      font: inherit;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      cursor: pointer;
      transition: background 0.15s ease, transform 0.08s ease;
    }

    .ft-btn:hover {
      background: #1f1f1f;
    }

    .ft-btn:active {
      transform: translateY(1px);
    }

    .ft-btn:disabled {
      opacity: 0.55;
      cursor: not-allowed;
    }

    .ft-hint {
      margin: 0.6rem 0 0;
      font-size: 0.78rem;
      color: rgba(255, 255, 255, 0.82);
    }

    .ft-hint code {
      font-size: 0.85em;
      background: rgba(0, 0, 0, 0.2);
      padding: 0.1em 0.35em;
      border-radius: 4px;
      color: #fff;
    }

    .ft-error {
      display: none;
      margin-top: 0.65rem;
      padding: 0.6rem 0.75rem;
      border-radius: 10px;
      background: #fff4f7;
      border: 1px solid rgba(227, 28, 121, 0.25);
      color: #8a103f;
      font-size: 0.875rem;
    }

    .ft-error[data-visible="true"] {
      display: block;
    }

    .ft-card__hero .ft-error {
      background: rgba(255, 255, 255, 0.97);
      color: #8a103f;
      border: 1px solid rgba(227, 28, 121, 0.35);
    }

    /* Results — light panel, ties to gradient above */
    .ft-body {
      padding: clamp(1.25rem, 3vw, 1.75rem);
      background: linear-gradient(180deg, #f8f8f9 0%, #fff 100%);
    }

    .ft-live-caption {
      margin: 0 0 1rem;
      padding: 0.55rem 0.75rem;
      font-size: 0.875rem;
      line-height: 1.4;
      color: var(--ft-muted);
      background: #fff;
      border: 1px solid var(--ft-border);
      border-radius: var(--ft-radius-sm);
    }

    .ft-live-caption[hidden] {
      display: none !important;
    }

    .ft-result[hidden] {
      display: none !important;
    }

    .ft-summary {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      align-items: flex-start;
      justify-content: space-between;
      margin-bottom: 1.25rem;
    }

    .ft-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.35rem 0.65rem;
      border-radius: 999px;
      font-size: 0.8125rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      background: rgba(244, 192, 28, 0.2);
      color: #6a4b00;
      border: 1px solid rgba(244, 192, 28, 0.45);
    }

    .ft-badge::before {
      content: "";
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--ft-yellow);
      box-shadow: 0 0 0 3px rgba(244, 192, 28, 0.35);
    }

    .ft-badge--ok::before {
      background: #16a34a;
      box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.25);
    }

    .ft-badge--ok {
      background: rgba(22, 163, 74, 0.12);
      color: #14532d;
      border-color: rgba(22, 163, 74, 0.35);
    }

    .ft-badge--transit-main {
      background: rgba(245, 158, 11, 0.18);
      color: #92400e;
      border-color: rgba(245, 158, 11, 0.45);
    }

    .ft-badge--transit-main::before {
      background: #f59e0b;
      box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35);
    }

    .ft-badge--warehouse-main {
      background: rgba(59, 130, 246, 0.14);
      color: #1e3a8a;
      border-color: rgba(59, 130, 246, 0.4);
    }

    .ft-badge--warehouse-main::before {
      background: #3b82f6;
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
    }

    .ft-id {
      margin: 0;
      text-align: right;
      min-width: min(100%, 360px);
    }

    .ft-id__label {
      display: block;
      font-size: 0.75rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--ft-muted);
      margin-bottom: 0.25rem;
    }

    .ft-id__value {
      display: flex;
      gap: 0.5rem;
      align-items: flex-start;
      justify-content: flex-end;
      flex-wrap: wrap;
    }

    .ft-id__num {
      font-family: "IBM Plex Mono", ui-monospace, monospace;
      font-size: clamp(0.8rem, 2.6vw, 0.95rem);
      line-height: 1.35;
      word-break: break-all;
      text-align: right;
      color: var(--ft-black);
    }

    .ft-copy {
      flex: 0 0 auto;
      padding: 0.35rem 0.55rem;
      border-radius: 8px;
      border: 1px solid var(--ft-border);
      background: #fafafa;
      font-size: 0.75rem;
      font-weight: 700;
      cursor: pointer;
    }

    .ft-copy:hover {
      background: #f3f3f3;
    }

    /* History: readable cards (replaces cramped modal table) */
    .ft-hist {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .ft-hist__card {
      display: grid;
      gap: 0.55rem;
      grid-template-columns: 1fr;
      border: 1px solid var(--ft-border);
      border-radius: var(--ft-radius-sm);
      background: #fff;
      padding: 1rem 1.1rem;
      box-shadow: 0 1px 0 rgba(10, 10, 10, 0.04);
    }

    @media (min-width: 768px) {
      .ft-hist__card {
        grid-template-columns: 148px 120px minmax(0, 1fr) minmax(0, 1fr);
        gap: 0.65rem 1rem;
        align-items: start;
      }

      .ft-hist__when {
        margin-bottom: 0;
      }

      .ft-pill {
        margin-bottom: 0;
      }
    }

    .ft-hist__card:first-child {
      border-color: rgba(227, 28, 121, 0.28);
      box-shadow: 0 0 0 1px rgba(227, 28, 121, 0.12);
    }

    .ft-hist__when {
      font-family: "IBM Plex Mono", ui-monospace, monospace;
      font-size: 0.8125rem;
      line-height: 1.45;
      color: var(--ft-muted);
      margin-bottom: 0;
    }

    .ft-hist__date {
      display: block;
      color: var(--ft-black);
      font-weight: 600;
      font-size: 0.9rem;
      font-family: "DM Sans", system-ui, sans-serif;
    }

    .ft-hist__time {
      display: block;
      margin-top: 0.2rem;
      letter-spacing: 0.03em;
      font-weight: 500;
    }

    .ft-pill {
      display: inline-block;
      padding: 0.25rem 0.55rem;
      border-radius: 6px;
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.03em;
      text-transform: uppercase;
      margin-bottom: 0;
      width: fit-content;
    }

    .ft-pill--transit {
      background: rgba(245, 158, 11, 0.18);
      color: #92400e;
      border: 1px solid rgba(245, 158, 11, 0.4);
    }

    .ft-pill--warehouse {
      background: rgba(59, 130, 246, 0.14);
      color: #1e3a8a;
      border: 1px solid rgba(59, 130, 246, 0.35);
    }

    .ft-pill--landed {
      background: rgba(22, 163, 74, 0.14);
      color: #14532d;
      border: 1px solid rgba(22, 163, 74, 0.35);
    }

    .ft-pill--other {
      background: #f3f4f6;
      color: #374151;
      border: 1px solid #e5e7eb;
    }

    .ft-hist__loc {
      margin: 0;
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--ft-black);
      word-break: break-word;
    }

    .ft-hist__note {
      margin: 0;
      font-size: 0.84rem;
      line-height: 1.5;
      color: #4b5563;
    }

    .ft-hist__head {
      display: none;
    }

    @media (min-width: 768px) {
      .ft-hist__head {
        display: grid;
        grid-template-columns: 148px 120px minmax(0, 1fr) minmax(0, 1fr);
        gap: 0.65rem 1rem;
        padding: 0 0.25rem 0.35rem;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--ft-muted);
        border-bottom: 1px solid var(--ft-border);
        margin-bottom: 0.25rem;
      }
    }

    .ft-section-title {
      margin: 0 0 0.65rem;
      font-size: 0.8125rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      font-weight: 700;
      color: var(--ft-muted);
    }

    .ft-pkg {
      margin: 0 0 1.35rem;
      padding: 0;
      background: #fff;
      border-radius: var(--ft-radius-sm);
      border: 1px solid var(--ft-border);
      overflow: hidden;
    }

    .ft-pkg__title {
      margin: 0;
      padding: 0.75rem 1rem;
      font-size: 0.8125rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #fff;
      background: linear-gradient(90deg, #2d2a32 0%, #45404d 100%);
    }

    .ft-pkg__row {
      display: grid;
      grid-template-columns: minmax(120px, 34%) 1fr;
      gap: 0.35rem 1rem;
      padding: 0.75rem 1rem;
      border-top: 1px solid grey;
      align-items: baseline;
    }

    @media (max-width: 520px) {
      .ft-pkg__row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
      }
    }

    .ft-pkg__label {
      font-size: 0.75rem;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--ft-muted);
      font-weight: 600;
    }

    .ft-pkg__value {
      margin: 0;
      font-size: 0.95rem;
      font-weight: 600;
      line-height: 1.4;
      word-break: break-word;
    }

    .ft-pkg__value--mono {
      font-family: "IBM Plex Mono", ui-monospace, monospace;
      font-size: 0.85rem;
      font-weight: 500;
    }

    .ft-pkg__media {
      padding: 1rem;
      border-top: 1px solid var(--ft-border);
      background: #fafafa;
    }

    .ft-pkg__thumb {
      max-width: 220px;
      max-height: 140px;
      width: auto;
      height: auto;
      border-radius: 8px;
      border: 1px solid var(--ft-border);
      object-fit: cover;
      display: block;
    }

    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    @media (max-width: 520px) {
      .ft-summary {
        flex-direction: column;
      }
      .ft-id {
        text-align: left;
        min-width: 0;
      }
      .ft-id__value {
        justify-content: flex-start;
      }
      .ft-id__num {
        text-align: left;
      }
    }

    /* Modal */
    .ft-modal {
      position: fixed;
      inset: 0;
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: clamp(0.75rem, 3vw, 1.5rem);
      box-sizing: border-box;
    }

    .ft-modal[hidden] {
      display: none !important;
    }

    .ft-modal__backdrop {
      position: absolute;
      inset: 0;
      background: rgba(10, 10, 14, 0.55);
      backdrop-filter: blur(4px);
    }

    .ft-modal__panel {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      width: 100%;
      max-width: min(96vw, 720px);
      max-height: min(88vh, 720px);
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28);
      overflow: hidden;
      animation: ft-modal-in 0.22s ease-out;
    }

    @keyframes ft-modal-in {
      from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    .ft-modal__chrome {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.65rem;
      padding: 0.5rem 0.65rem 0.5rem 0.85rem;
      background: linear-gradient(90deg, #2d2a32 0%, #45404d 100%);
      color: #fff;
      flex-shrink: 0;
    }

    .ft-modal__title {
      margin: 0;
      font-size: 0.82rem;
      font-weight: 700;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      line-height: 1.2;
    }

    .ft-modal__close {
      flex-shrink: 0;
      width: 34px;
      height: 34px;
      border: none;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.12);
      color: #fff;
      font-size: 1.35rem;
      line-height: 1;
      cursor: pointer;
      transition: background 0.15s ease;
    }

    .ft-modal__close:hover {
      background: rgba(255, 255, 255, 0.22);
    }

    .ft-modal__scroll {
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      padding: 0.45rem 0.65rem 0.65rem;
      background: linear-gradient(180deg, #f4f4f6 0%, #fafafa 100%);
    }

    .ft-result--modal .ft-live-caption {
      background: #fff;
      margin: 0 0 0.45rem;
      padding: 0.3rem 0.45rem;
      font-size: 0.72rem;
      line-height: 1.35;
    }

    .ft-result--modal .ft-summary {
      gap: 0.4rem;
      margin-bottom: 0.5rem;
    }

    .ft-result--modal .ft-badge {
      padding: 0.22rem 0.45rem;
      font-size: 0.68rem;
    }

    .ft-result--modal .ft-badge::before {
      width: 6px;
      height: 6px;
    }

    .ft-result--modal .ft-id__label {
      font-size: 0.65rem;
      margin-bottom: 0.1rem;
    }

    .ft-result--modal .ft-id__num {
      font-size: 0.78rem;
      line-height: 1.25;
    }

    .ft-result--modal .ft-copy {
      padding: 0.22rem 0.4rem;
      font-size: 0.65rem;
    }

    .ft-result--modal .ft-pkg {
      margin: 0 0 0.55rem;
      border-radius: 8px;
    }

    .ft-result--modal .ft-pkg__title {
      padding: 0.4rem 0.6rem;
      font-size: 0.68rem;
    }

    .ft-result--modal .ft-pkg__row {
      padding: 0.4rem 0.6rem;
      gap: 0.2rem 0.65rem;
    }

    .ft-result--modal .ft-pkg__label {
      font-size: 0.62rem;
    }

    .ft-result--modal .ft-pkg__value {
      font-size: 0.8rem;
      line-height: 1.3;
    }

    .ft-result--modal .ft-pkg__value--mono {
      font-size: 0.74rem;
    }

    .ft-result--modal .ft-pkg__media {
      padding: 0.45rem 0.6rem;
    }

    .ft-result--modal .ft-pkg__thumb {
      max-width: 160px;
      max-height: 88px;
    }

    .ft-result--modal .ft-section-title {
      margin: 0.35rem 0 0.35rem;
      font-size: 0.68rem;
    }

    .ft-result--modal .ft-hist {
      gap: 0.35rem;
    }

    .ft-result--modal .ft-hist__card {
      padding: 0.45rem 0.55rem;
      border-radius: 8px;
      gap: 0.35rem;
    }

    @media (min-width: 768px) {
      .ft-result--modal .ft-hist__card {
        grid-template-columns: 128px 100px minmax(0, 1fr) minmax(0, 1fr);
        gap: 0.4rem 0.65rem;
      }

      .ft-result--modal .ft-hist__head {
        grid-template-columns: 128px 100px minmax(0, 1fr) minmax(0, 1fr);
        gap: 0.4rem 0.65rem;
        padding: 0 0.15rem 0.25rem;
        margin-bottom: 0.15rem;
        font-size: 0.62rem;
      }
    }

    .ft-result--modal .ft-hist__date {
      font-size: 0.78rem;
    }

    .ft-result--modal .ft-hist__time {
      margin-top: 0.08rem;
      font-size: 0.72rem;
    }

    .ft-result--modal .ft-pill {
      padding: 0.15rem 0.4rem;
      font-size: 0.62rem;
    }

    .ft-result--modal .ft-hist__loc {
      font-size: 0.78rem;
    }

    .ft-result--modal .ft-hist__note {
      font-size: 0.72rem;
      line-height: 1.35;
    }

    body.ft-modal-open {
      overflow: hidden;
    }
.form-ajax-loading {
    position: absolute;
    margin-bottom: 11px;
    margin-top: -27px;
    margin-left: 56px;
}
