.hm-trace-page {
    --trace-primary: #15171a;
    --trace-secondary: #ffffff;
    --trace-active: #166534;
    --trace-inactive: #9ca3af;
    --trace-bg: transparent;
    --trace-on-primary: #ffffff;
    --trace-ink: #15171a;
    --trace-muted: #64748b;
    --trace-card: #ffffff;
    --trace-line: rgba(17, 24, 39, 0.14);
    --trace-shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    color: var(--trace-ink);
}

html.iframe .hm-trace-page {
    padding: 0 16px 16px;
}

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

.hm-trace-form .form-group {
    margin: 0;
}

.hm-trace-form .help-block {
    margin: 8px 0 0;
    color: #b91c1c;
    font-size: 13px;
}

.hm-trace-search {
    width: min(440px, 100%);
    max-width: 100%;
    margin: 0 auto;
}

.hm-trace-search--entry {
    min-height: clamp(180px, 34vh, 300px);
    display: flex;
    align-items: flex-start;
    padding-top: 44px;
}

html.iframe .hm-trace-search--entry {
    min-height: 160px;
    align-items: flex-start;
    padding-top: 24px;
}

.hm-trace-search-field {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    align-items: stretch;
    height: 52px;
    min-height: 52px;
    border: 1px solid var(--trace-primary);
    border-radius: 4px;
    background: #ffffff;
    box-shadow: none;
    overflow: hidden;
}

.hm-trace-page input.hm-trace-input.form-control {
    width: 100%;
    min-width: 0;
    height: 52px;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--trace-ink);
    box-shadow: none;
    font-size: 16px;
    line-height: 1.4;
    padding: 0 16px;
    appearance: none;
}

.hm-trace-page input.hm-trace-input.form-control:focus {
    outline: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.hm-trace-search-field:focus-within {
    border-color: var(--trace-primary);
    box-shadow: 0 0 0 2px rgba(5, 73, 153, 0.12);
}

.hm-trace-page input.hm-trace-input.form-control::placeholder {
    color: var(--trace-muted);
    opacity: 1;
}

.hm-trace-form--zipcode .hm-trace-search-field {
    height: 34px;
    min-height: 34px;
}

.hm-trace-form--zipcode input.hm-trace-input.form-control {
    height: 34px;
    min-height: 0;
    padding: 0 12px;
}

.hm-trace-icon-button,
.hm-trace-submit {
    border: 0;
    border-radius: 0;
    background: var(--trace-primary);
    color: var(--trace-on-primary);
}

.hm-trace-icon-button {
    width: 56px;
    min-width: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hm-trace-icon-button:hover,
.hm-trace-icon-button:focus,
.hm-trace-submit:hover,
.hm-trace-submit:focus {
    background: var(--trace-primary);
    color: var(--trace-on-primary);
    opacity: 0.92;
    outline: none;
}

.hm-trace-search-icon {
    width: 24px;
    height: 24px;
    display: block;
}

.hm-trace-zipcode-gate {
    width: min(420px, 100%);
    margin: 0 auto 54px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

html.iframe .hm-trace-zipcode-gate {
    margin-bottom: 20px;
}

.hm-trace-gate-title {
    margin: 0 0 12px;
    color: var(--trace-ink);
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.hm-trace-help {
    margin: 16px 0 10px;
    color: var(--trace-ink);
    font-size: 14px;
    line-height: 1.45;
}

.hm-trace-submit {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 4px;
    font-size: 20px;
    font-weight: 700;
}

.hm-trace-shipment {
    width: min(1130px, 100%);
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
}

html.iframe .hm-trace-shipment {
    width: min(760px, 100%);
}

.hm-trace-header {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 5px;
    align-items: stretch;
    margin-bottom: 26px;
}

.hm-trace-back {
    min-width: 0;
    width: 46px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    background: var(--trace-primary);
    color: var(--trace-on-primary);
    box-shadow: none;
}

.hm-trace-back:hover,
.hm-trace-back:focus {
    color: var(--trace-on-primary);
    opacity: 0.92;
    outline: none;
}

.hm-trace-back svg {
    width: 22px;
    height: 22px;
}

.hm-trace-back .fillContainer {
    stroke: currentColor;
}

.hm-trace-meta {
    min-width: 0;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 4px;
    background: var(--trace-primary);
    color: var(--trace-on-primary);
    box-shadow: none;
}

.hm-trace-meta-item {
    min-width: 0;
    display: inline-flex;
    gap: 6px;
    align-items: baseline;
    white-space: nowrap;
}

.hm-trace-meta-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-trace-timeline {
    width: 100%;
    max-width: 100%;
    margin: 0 0 34px;
}

.hm-trace-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hm-trace-step {
    position: relative;
    display: grid;
    grid-template-columns: 38px 52px minmax(0, 1fr);
    gap: 14px;
    min-height: 100px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--trace-inactive);
}

.hm-trace-step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 28px;
    top: 45px;
    bottom: -8px;
    width: 2px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.45;
}

.hm-trace-step--done {
    color: var(--trace-active);
}

.hm-trace-step--pending {
    color: var(--trace-inactive);
}

.hm-trace-step--current {
    border-width: 3px;
    border-color: var(--trace-primary);
    border-radius: 4px;
    background: transparent;
    box-shadow: none;
}

.hm-trace-marker {
    position: relative;
    z-index: 1;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: var(--trace-card);
    font-size: 14px;
    font-weight: 700;
}

.hm-trace-marker svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.hm-trace-step-icon {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 1px;
}

.hm-trace-step-icon svg {
    max-width: 54px;
    max-height: 62px;
    width: auto;
    height: auto;
}

.hm-trace-step-icon svg > g,
.hm-trace-step-icon svg #Ebene_8 > g > path,
.hm-trace-step-icon svg #Ebene_9 > g > path,
.hm-trace-step-icon svg #Ebene_2 > g,
.hm-trace-step-icon svg #Ebene_2 > g > path {
    fill: currentColor;
    stroke: currentColor;
}

.hm-trace-step-body {
    min-width: 0;
    align-self: start;
    padding-top: 11px;
}

.trace-status-text {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
    color: var(--trace-active);
}

.hm-trace-step--pending .trace-status-text {
    color: var(--trace-inactive);
}

.hm-trace-status-label {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.trace-status-detail {
    margin: 3px 0 0;
    font-size: 13px;
    line-height: 1.35;
}

.trace-status-detail:empty {
    display: none;
}

.user-inactive {
    color: var(--trace-inactive);
}

.hm-trace-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 28px;
    color: var(--trace-active);
}

.hm-trace-panel {
    min-width: 0;
}

.hm-trace-panel--map {
    grid-column: span 1;
}

.hm-trace-panel-title {
    min-height: 38px;
    display: flex;
    align-items: center;
    margin: 0 0 12px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--trace-primary);
    color: var(--trace-on-primary);
    font-size: 15px;
    font-weight: 700;
}

.hm-trace-panel-body {
    padding: 0 10px;
    line-height: 1.55;
}

.hm-trace-address-line {
    margin: 0 0 4px;
}

.hm-trace-date-line {
    margin-top: 9px;
}

.hm-trace-data-row {
    display: grid;
    grid-template-columns: minmax(90px, 40%) minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 5px;
}

.hm-trace-data-label {
    color: var(--trace-muted);
}

.hm-trace-map {
    width: 100%;
}

.hm-trace-map-frame {
    width: 100%;
    min-height: 420px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
}

.hm-trace-map-frame #map {
    width: 100%;
    min-height: inherit;
    height: 100%;
}

@media (max-width: 720px) {
    .hm-trace-page {
        --trace-mobile-rail: min(320px, 100%);
        padding: 0 20px;
    }

    html.iframe .hm-trace-page {
        padding: 0 20px 16px;
    }

    .hm-trace-search--entry {
        min-height: 220px;
        align-items: flex-start;
        padding-top: 34px;
    }

    .hm-trace-search {
        width: var(--trace-mobile-rail);
    }

    .hm-trace-search .hm-trace-search-field {
        width: 100%;
    }

    .hm-trace-zipcode-gate {
        width: var(--trace-mobile-rail);
        margin: 0 0 30px;
        padding: 0;
    }

    .hm-trace-form--zipcode {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .hm-trace-form--zipcode .hm-trace-search-field,
    .hm-trace-form--zipcode .hm-trace-submit,
    .hm-trace-header {
        width: var(--trace-mobile-rail);
        max-width: 100%;
    }

    .hm-trace-header {
        grid-template-columns: 46px minmax(0, 1fr);
        margin-bottom: 24px;
    }

    .hm-trace-timeline {
        width: 100%;
        padding: 0;
        margin-left: 0;
    }

    .hm-trace-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .hm-trace-meta-item {
        width: 100%;
        white-space: normal;
    }

    .hm-trace-step {
        grid-template-columns: 38px 52px minmax(0, 1fr);
        gap: 12px;
        min-height: 92px;
        margin-right: 0;
        margin-left: 0;
        padding-right: 8px;
        padding-left: 18px;
    }

    .hm-trace-step:not(:last-child)::before {
        left: 37px;
    }

    .hm-trace-step-icon svg {
        max-width: 54px;
        max-height: 54px;
    }

    .hm-trace-details {
        grid-template-columns: 1fr;
    }

    .hm-trace-map-frame {
        min-height: 320px;
    }
}

@media (max-width: 420px) {
    html.iframe .hm-trace-page {
        padding: 0 20px 14px;
    }

    .hm-trace-step {
        grid-template-columns: 34px 48px minmax(0, 1fr);
        gap: 10px;
        margin-right: 0;
        margin-left: 0;
        padding-right: 6px;
        padding-left: 16px;
    }

    .hm-trace-marker {
        width: 34px;
        height: 34px;
    }

    .hm-trace-step:not(:last-child)::before {
        left: 33px;
        top: 42px;
    }

    .hm-trace-status-label {
        font-size: 14px;
    }
}
