.lm-tracking-home {
    box-sizing: border-box;
    min-height: 238px;
    padding: 34px 40px 30px;
    border: 1px solid rgba(6, 45, 84, .08);
    border-radius: 8px;
    background: #fff !important;
    box-shadow: 0 18px 48px rgba(6, 45, 84, .14);
    color: #172536;
}

.lm-tracking-home *,
.lm-tracking-home *:before,
.lm-tracking-home *:after {
    box-sizing: border-box;
}

.lm-query-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 26px;
}

.lm-query-heading-copy {
    flex: 0 0 auto;
}

.lm-query-kicker {
    display: block;
    margin-bottom: 7px;
    color: #d87511;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .16em;
}

.lm-query-title {
    margin: 0;
    color: #062d54;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.lm-tabs-list {
    display: flex;
    flex: 0 0 auto;
    gap: 28px;
    border-bottom: 1px solid #dfe6ed;
}

.lm-tabs-button {
    position: relative;
    min-width: 88px;
    padding: 0 2px 12px;
    border: 0;
    outline: none;
    background: transparent;
    color: #718092;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
    cursor: pointer;
    transition: color .2s ease;
}

.lm-tabs-button:after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: transparent;
    content: '';
    transition: background-color .2s ease;
}

.lm-tabs-button:hover,
.lm-tabs-button:focus {
    color: #062d54;
}

.lm-tabs-button-active,
.lm-tabs-button-active:hover,
.lm-tabs-button-active:focus {
    color: #062d54;
    font-weight: 700;
}

.lm-tabs-button-active:after {
    background: #f19326;
}

.lm-tabs-panel[hidden] {
    display: none;
}

.lm-query-form {
    margin: 0;
}

.lm-query-main-row,
.lm-query-sub-row,
.lm-query-actions {
    display: flex;
    gap: 10px;
}

.lm-query-main-row,
.lm-query-actions {
    align-items: stretch;
}

.lm-query-main-row {
    width: 100%;
}

.lm-query-sub-row {
    align-items: flex-start;
}

.lm-query-input {
    min-width: 0;
    height: 52px;
    padding: 13px 16px;
    border: 1px solid #ccd6df;
    border-radius: 4px;
    outline: none;
    background: #fff;
    color: #172536;
    font-family: inherit;
    font-size: 15px;
    line-height: 24px;
    transition: border-color .2s, box-shadow .2s;
}

.lm-query-input::placeholder {
    color: #95a2af;
}

.lm-query-input:focus {
    border-color: #377aa9;
    box-shadow: 0 0 0 3px rgba(55, 122, 169, .12);
}

.lm-query-input-error {
    border-color: #c74242;
    box-shadow: 0 0 0 3px rgba(199, 66, 66, .1);
}

.lm-query-input-error:focus {
    border-color: #c74242;
    box-shadow: 0 0 0 3px rgba(199, 66, 66, .14);
}

.lm-query-main-input {
    flex: 1 1 auto;
}

.lm-query-sub-main-input {
    flex: 0 1 260px;
}

.lm-query-sub-input-wrap {
    position: relative;
    flex: 1 1 360px;
    min-width: 0;
}

.lm-query-sub-input {
    display: block;
    width: 100%;
    padding-right: 98px;
    resize: none;
    overflow: hidden;
}

.lm-query-count {
    position: absolute;
    top: 17px;
    right: 14px;
    color: #7a8997;
    font-size: 12px;
    line-height: 18px;
    pointer-events: none;
}

.lm-query-count-limit {
    color: #b52d2d;
    font-weight: 700;
}

.lm-query-field-help {
    display: block;
    margin-top: 6px;
    color: #7a8997;
    font-size: 12px;
    line-height: 18px;
}

.lm-query-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
}

.lm-query-button {
    flex: 0 0 auto;
    width: 86px;
    min-width: 86px;
    height: 52px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    line-height: 50px;
    white-space: nowrap;
    text-align: center;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}

.lm-query-button:disabled {
    cursor: wait;
    opacity: .72;
}

.lm-query-button-primary {
    border-color: #f19326;
    background: #f19326;
    color: #fff;
    font-weight: 700;
}

.lm-query-button-primary:hover,
.lm-query-button-primary:focus {
    border-color: #d87511;
    background: #d87511;
    color: #fff;
}

.lm-query-button-clear {
    border-color: #ccd6df;
    background: #fff;
    color: #5f6f7f;
}

.lm-query-button-clear:hover,
.lm-query-button-clear:focus {
    border-color: #9aabba;
    background: #f7f9fb;
    color: #28394a;
}

.lm-query-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 23px;
    padding-top: 8px;
    color: #7a8997;
    font-size: 12px;
    line-height: 18px;
}

.lm-query-hint {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lm-query-message {
    flex: 0 0 auto;
    color: #3c6a8f;
    font-weight: 700;
    text-align: right;
}

.lm-query-message-error {
    color: #b52d2d;
}

.lm-query-message-success {
    color: #2f7351;
}

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

@media (max-width: 991px) {
    .lm-tracking-home {
        padding: 30px 30px 26px;
    }

    .lm-query-sub-main-input {
        flex-basis: 220px;
    }
}

@media (max-width: 767px) {
    .lm-tracking-home {
        min-height: 0;
        padding: 24px 20px 22px !important;
        border-radius: 7px !important;
        box-shadow: 0 14px 36px rgba(6, 45, 84, .13);
    }

    .lm-query-heading {
        display: block;
        margin-bottom: 22px;
    }

    .lm-query-heading-copy {
        margin-bottom: 18px;
    }

    .lm-query-title {
        font-size: 25px;
    }

    .lm-tabs-list {
        width: 100%;
        gap: 0;
    }

    .lm-tabs-button {
        flex: 1 1 50%;
    }

    .lm-query-sub-row {
        flex-wrap: wrap;
    }

    .lm-query-sub-main-input,
    .lm-query-sub-input-wrap {
        flex: 1 1 100%;
    }

    .lm-query-sub-input {
        height: 66px;
        padding-top: 11px;
        padding-right: 94px;
        padding-bottom: 11px;
        resize: vertical;
        overflow: auto;
    }

    .lm-query-actions {
        width: 100%;
    }

    .lm-query-actions .lm-query-button {
        flex: 1 1 50%;
        width: auto;
    }

    .lm-query-footer-row {
        display: block;
    }

    .lm-query-hint,
    .lm-query-message {
        display: block;
        white-space: normal;
        text-align: left;
    }

    .lm-query-message:not(:empty) {
        padding-top: 3px;
    }
}

@media (max-width: 479px) {
    .lm-tracking-home {
        padding-right: 16px !important;
        padding-left: 16px !important;
    }

    .lm-query-main-row {
        flex-wrap: wrap;
    }

    .lm-query-main-input {
        flex-basis: 100%;
    }

    .lm-query-main-row .lm-query-button {
        flex: 1 1 calc(50% - 5px);
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lm-tracking-home * {
        transition: none !important;
    }
}

@media print {
    .lm-tracking-home {
        border: 1px solid #999;
        box-shadow: none;
    }
}
