/* =========================================================
   RESET LOCAL
========================================================= */

.track-page,
.track-page * {
    box-sizing: border-box;
}

.track-page {
    --track-black: #111111;
    --track-black-soft: #181818;
    --track-text: #181818;
    --track-muted: #747474;
    --track-light-muted: #9b9b9b;
    --track-border: #e6e6e6;
    --track-bg: #f5f5f3;
    --track-card: #ffffff;
    --track-soft: #f7f7f7;

    width: 100%;
    min-height: calc(100vh - 80px);

    padding: 64px 20px 80px;

    background: var(--track-bg);
    color: var(--track-text);
}

.track-shell {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}


/* =========================================================
   CARD DE CONSULTA
========================================================= */

.track-auth {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);

    width: 100%;

    background: var(--track-card);

    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 28px;

    overflow: hidden;

    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.03);
}


/* =========================================================
   LATERAL
========================================================= */

.track-aside {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 590px;
    padding: 42px;

    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(255, 255, 255, 0.09),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #101010 0%,
            #191919 100%
        );

    color: #ffffff;

    overflow: hidden;
}

.track-aside::after {
    content: "";

    position: absolute;

    right: -120px;
    bottom: -130px;

    width: 320px;
    height: 320px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.track-brand {
    position: relative;
    z-index: 2;

    width: fit-content;

    color: #ffffff;
    text-decoration: none;

    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.track-brand span {
    color: #9a9a9a;
}

.track-aside-content {
    position: relative;
    z-index: 2;

    margin-top: auto;
    margin-bottom: 18px;

    max-width: 390px;
}

.track-eyebrow {
    display: inline-block;

    margin-bottom: 15px;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.14em;
    text-transform: uppercase;

    color: #9e9e9e;
}

.track-aside-content h2 {
    margin: 0 0 18px;

    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.03;

    letter-spacing: -0.055em;

    color: #ffffff;
}

.track-aside-content > p {
    max-width: 340px;

    margin: 0;

    color: #b6b6b6;

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   BENEFÍCIOS
========================================================= */

.track-benefits {
    display: flex;
    flex-direction: column;
    gap: 14px;

    margin: 28px 0 0;
    padding: 0;

    list-style: none;
}

.track-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #d1d1d1;

    font-size: 13px;
    line-height: 1.5;
}

.track-check {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    flex-shrink: 0;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.09);
}

.track-check svg {
    width: 12px;
    height: 12px;

    fill: none;
    stroke: currentColor;

    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   FORMULÁRIO
========================================================= */

.track-form-side {
    display: flex;
    flex-direction: column;

    min-width: 0;

    padding: 54px 54px 42px;

    background: #ffffff;
}

.track-form-header {
    margin-bottom: 34px;
}

.track-form-eyebrow {
    display: block;

    margin-bottom: 9px;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.13em;
    text-transform: uppercase;

    color: #a0a0a0;
}

.track-form-header h1 {
    margin: 0 0 9px;

    font-size: clamp(1.9rem, 4vw, 2.55rem);
    line-height: 1.1;

    letter-spacing: -0.045em;

    color: #111111;
}

.track-form-header p {
    max-width: 430px;

    margin: 0;

    color: #777777;

    font-size: 14px;
    line-height: 1.6;
}

.track-form {
    width: 100%;
}


/* =========================================================
   CAMPOS
========================================================= */

.track-field {
    width: 100%;
    margin-bottom: 22px;
}

.track-field label {
    display: block;

    margin-bottom: 9px;

    color: #292929;

    font-size: 12px;
    font-weight: 700;
}

.track-input-wrapper {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    min-height: 56px;

    border: 1px solid #dedede;
    border-radius: 13px;

    background: #fafafa;

    overflow: hidden;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.track-input-wrapper:hover {
    border-color: #c5c5c5;
    background: #ffffff;
}

.track-input-wrapper:focus-within {
    border-color: #111111;

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(0, 0, 0, 0.055);
}

.track-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    min-width: 52px;

    color: #8b8b8b;
}

.track-input-icon svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.track-input-wrapper:focus-within .track-input-icon {
    color: #111111;
}

.track-input-wrapper input {
    width: 100%;
    height: 54px;

    min-width: 0;

    padding: 0 16px 0 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: #111111;

    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
}

.track-input-wrapper input::placeholder {
    color: #aaaaaa;
    font-weight: 400;
}

.track-field small {
    display: block;

    margin-top: 7px;

    color: #9a9a9a;

    font-size: 11px;
    line-height: 1.5;
}


/* =========================================================
   SEGURANÇA
========================================================= */

.track-secure {
    display: flex;
    align-items: center;
    gap: 7px;

    margin: 2px 0 20px;

    color: #929292;

    font-size: 11px;
}

.track-secure svg {
    width: 14px;
    height: 14px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   BOTÃO
========================================================= */

.track-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    min-height: 56px;

    padding: 0 20px;

    border: 0;
    border-radius: 13px;

    background: #111111;
    color: #ffffff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 750;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.track-submit svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;

    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: transform 0.2s ease;
}

.track-submit:hover {
    background: #282828;

    transform: translateY(-1px);

    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.16);
}

.track-submit:hover svg {
    transform: translateX(3px);
}

.track-submit:active {
    transform: translateY(0);
}


/* =========================================================
   ALERTA
========================================================= */

.track-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-top: 20px;
    padding: 15px;

    border-radius: 12px;
}

.track-alert-error {
    border: 1px solid #f0cccc;
    background: #fff4f4;
    color: #801d1d;
}

.track-alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #801d1d;
    color: #ffffff;

    font-size: 12px;
    font-weight: 800;
}

.track-alert strong {
    display: block;

    margin-bottom: 3px;

    font-size: 12px;
}

.track-alert p {
    margin: 0;

    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   RODAPÉ DO FORM
========================================================= */

.track-form-footer {
    display: flex;
    justify-content: center;
    gap: 5px;

    margin-top: auto;
    padding-top: 28px;

    color: #929292;

    font-size: 12px;
}

.track-form-footer a {
    color: #111111;

    font-weight: 700;
    text-decoration: none;
}

.track-form-footer a:hover {
    text-decoration: underline;
}


/* =========================================================
   RESULTADO
========================================================= */

.track-result {
    margin-top: 34px;
    padding: 36px;

    border: 1px solid var(--track-border);
    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.05);
}

.track-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 20px;

    margin-bottom: 26px;
}

.track-result-eyebrow,
.track-shipment-eyebrow {
    display: block;

    margin-bottom: 6px;

    color: #929292;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.track-result-header h2 {
    margin: 0 0 5px;

    color: #111111;

    font-size: 25px;
    letter-spacing: -0.035em;
}

.track-result-header p {
    margin: 0;

    color: #777777;

    font-size: 13px;
}

.track-order-status,
.track-shipment-status {
    display: inline-flex;
    align-items: center;

    width: fit-content;

    padding: 8px 12px;

    border-radius: 999px;

    background: #111111;
    color: #ffffff;

    font-size: 10px;
    font-weight: 800;

    white-space: nowrap;
}


/* =========================================================
   RESUMO
========================================================= */

.track-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 1px;

    margin-bottom: 24px;

    overflow: hidden;

    border: 1px solid #e7e7e7;
    border-radius: 14px;

    background: #e7e7e7;
}

.track-summary-item {
    display: flex;
    flex-direction: column;
    gap: 5px;

    min-width: 0;

    padding: 17px;

    background: #fafafa;
}

.track-summary-item span,
.track-info-item > span {
    color: #939393;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.track-summary-item strong {
    overflow-wrap: anywhere;

    color: #222222;

    font-size: 13px;
}


/* =========================================================
   ENVIOS
========================================================= */

.track-shipments {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.track-shipment {
    padding: 28px;

    border: 1px solid #e5e5e5;
    border-radius: 18px;

    background: #ffffff;
}

.track-shipment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 20px;
}

.track-shipment-header h3 {
    margin: 0 0 5px;

    font-size: 20px;
    color: #111111;
}

.track-shipment-header p {
    margin: 0;

    max-width: 590px;

    color: #777777;

    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   PROGRESSO
========================================================= */

.track-progress {
    display: flex;

    width: 100%;

    margin: 36px 0;

    overflow: hidden;
}

.track-progress-step {
    position: relative;

    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;

    min-width: 0;

    color: #aaaaaa;
}

.track-progress-bar {
    position: absolute;

    top: 14px;
    left: 50%;

    width: 100%;
    height: 2px;

    background: #e4e4e4;
}

.track-progress-step:last-child .track-progress-bar {
    display: none;
}

.track-progress-circle {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 29px;
    height: 29px;

    border: 2px solid #dddddd;
    border-radius: 50%;

    background: #ffffff;

    color: #999999;

    font-size: 10px;
    font-weight: 800;
}

.track-progress-circle svg {
    width: 14px;
    height: 14px;

    fill: none;
    stroke: currentColor;

    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.track-progress-step small {
    margin-top: 9px;

    max-width: 90px;

    text-align: center;

    font-size: 10px;
    line-height: 1.35;
}

.track-progress-step.is-complete,
.track-progress-step.is-active {
    color: #111111;
}

.track-progress-step.is-complete .track-progress-circle,
.track-progress-step.is-active .track-progress-circle {
    border-color: #111111;
    background: #111111;
    color: #ffffff;
}

.track-progress-step.is-complete .track-progress-bar {
    background: #111111;
}


/* =========================================================
   INFORMAÇÕES DO ENVIO
========================================================= */

.track-shipment-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 12px;

    margin-bottom: 30px;
}

.track-info-item {
    min-width: 0;

    padding: 15px;

    border-radius: 12px;

    background: #f7f7f7;
}

.track-info-item > strong {
    display: block;

    margin-top: 6px;

    overflow-wrap: anywhere;

    color: #222222;

    font-size: 12px;
}

.track-code-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-top: 6px;

    min-width: 0;
}

.track-code-wrapper strong {
    min-width: 0;

    overflow-wrap: anywhere;

    font-size: 12px;
}

.track-copy {
    flex-shrink: 0;

    padding: 6px 9px;

    border: 1px solid #dedede;
    border-radius: 7px;

    background: #ffffff;
    color: #222222;

    font-size: 10px;
    font-weight: 700;

    cursor: pointer;
}

.track-copy:hover,
.track-copy.is-copied {
    border-color: #111111;
    background: #111111;
    color: #ffffff;
}


/* =========================================================
   HISTÓRICO
========================================================= */

.track-history {
    padding-top: 25px;

    border-top: 1px solid #ededed;
}

.track-history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 20px;

    margin-bottom: 22px;
}

.track-history-header span {
    display: block;

    margin-bottom: 4px;

    color: #9b9b9b;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.track-history-header h4 {
    margin: 0;

    color: #111111;

    font-size: 16px;
}

.track-history-header small {
    color: #999999;

    font-size: 10px;
}

.track-history-list {
    display: flex;
    flex-direction: column;
}

.track-history-item {
    position: relative;

    display: grid;
    grid-template-columns: 22px 1fr;

    gap: 13px;

    min-width: 0;

    padding-bottom: 24px;
}

.track-history-item:last-child {
    padding-bottom: 0;
}

.track-history-marker {
    position: relative;

    display: flex;
    justify-content: center;
}

.track-history-marker::after {
    content: "";

    position: absolute;

    top: 15px;

    width: 1px;
    height: calc(100% + 9px);

    background: #dddddd;
}

.track-history-item:last-child .track-history-marker::after {
    display: none;
}

.track-history-marker span {
    position: relative;
    z-index: 2;

    width: 11px;
    height: 11px;

    margin-top: 3px;

    border: 2px solid #bdbdbd;
    border-radius: 50%;

    background: #ffffff;
}

.track-history-item.is-latest .track-history-marker span {
    border-color: #111111;
    background: #111111;
}

.track-history-body {
    min-width: 0;
}

.track-history-body strong {
    display: block;

    overflow-wrap: anywhere;

    color: #222222;

    font-size: 12px;
    line-height: 1.5;
}

.track-history-body p {
    margin: 4px 0;

    color: #777777;

    font-size: 11px;
}

.track-history-body time {
    color: #a0a0a0;

    font-size: 10px;
}

.track-latest {
    display: inline-block;

    margin-bottom: 5px;

    color: #111111;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.track-history-empty {
    padding: 18px;

    border-radius: 12px;

    background: #f7f7f7;
}

.track-history-empty strong {
    display: block;

    margin-bottom: 4px;

    font-size: 12px;
}

.track-history-empty p {
    margin: 0;

    color: #777777;

    font-size: 11px;
    line-height: 1.5;
}


/* =========================================================
   PEDIDO SEM RASTREIO
========================================================= */

.track-waiting {
    display: flex;
    align-items: flex-start;

    gap: 18px;

    padding: 24px;

    border: 1px solid #e5e5e5;
    border-radius: 16px;

    background: #fafafa;
}

.track-waiting-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    flex-shrink: 0;

    border-radius: 12px;

    background: #111111;
    color: #ffffff;
}

.track-waiting-icon svg {
    width: 22px;
    height: 22px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.track-waiting span {
    display: block;

    margin-bottom: 5px;

    color: #929292;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.track-waiting h3 {
    margin: 0 0 6px;

    color: #111111;

    font-size: 16px;
}

.track-waiting p {
    margin: 0;

    max-width: 650px;

    color: #777777;

    font-size: 11px;
    line-height: 1.6;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .track-page {
        padding: 36px 16px 60px;
    }

    .track-auth {
        grid-template-columns: 1fr;
    }

    .track-aside {
        min-height: auto;
        padding: 32px;

        border-bottom: 0;
    }

    .track-aside-content {
        margin-top: 80px;
        margin-bottom: 0;
    }

    .track-aside-content h2 {
        max-width: 500px;
    }

    .track-aside-content > p {
        max-width: 550px;
    }

    .track-form-side {
        padding: 40px 32px 32px;
    }

    .track-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .track-shipment-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 620px) {

    .track-page {
        min-height: auto;

        padding: 20px 12px 42px;
    }

    .track-auth {
        border-radius: 20px;
    }

    .track-aside {
        padding: 25px 22px;
    }

    .track-aside-content {
        margin-top: 55px;
    }

    .track-aside-content h2 {
        font-size: 30px;
    }

    .track-aside-content > p {
        font-size: 12px;
    }

    .track-benefits {
        gap: 11px;
        margin-top: 22px;
    }

    .track-benefits li {
        font-size: 11px;
    }

    .track-form-side {
        padding: 30px 20px 24px;
    }

    .track-form-header {
        margin-bottom: 28px;
    }

    .track-form-header h1 {
        font-size: 27px;
    }

    .track-form-header p {
        font-size: 12px;
    }

    .track-result {
        margin-top: 22px;
        padding: 22px 16px;

        border-radius: 18px;
    }

    .track-result-header {
        flex-direction: column;
    }

    .track-summary {
        grid-template-columns: 1fr;
    }

    .track-shipment {
        padding: 20px 14px;
    }

    .track-shipment-header {
        flex-direction: column;
    }

    .track-progress {
        width: calc(100% + 12px);

        margin: 30px -6px;

        overflow-x: auto;
        overflow-y: hidden;

        scrollbar-width: none;
    }

    .track-progress::-webkit-scrollbar {
        display: none;
    }

    .track-progress-step {
        flex: 0 0 78px;
    }

    .track-progress-step small {
        font-size: 9px;
    }

    .track-shipment-info {
        grid-template-columns: 1fr;
    }

    .track-code-wrapper {
        align-items: flex-start;
    }

    .track-history-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .track-waiting {
        flex-direction: column;
    }

}


/* =========================================================
   TELAS MUITO PEQUENAS
========================================================= */

@media (max-width: 380px) {

    .track-page {
        padding-left: 8px;
        padding-right: 8px;
    }

    .track-aside {
        padding: 22px 18px;
    }

    .track-form-side {
        padding: 27px 16px 22px;
    }

    .track-input-icon {
        width: 44px;
        min-width: 44px;
    }

    .track-result {
        padding: 18px 12px;
    }

}