:root {
    --color-lightblue: #CFE5F8;
    --color-blue: #85C4E8;
    --color-darkblue: #102D69;
    --color-green: #76b82a;
}

.history-box {
    display: flex;
    justify-content: center;
    min-height: 190px;
}

.history-box__container {
    max-width: 900px;
    width: 100%;
    position: relative;
}

.history-box__table {
    margin: 0 auto;
    max-width: 750px;
    width: 100%;
    background-color: white;
    border-radius: 25px;
    box-shadow: 0 0 20px 1px #e6e6e6;
    padding: 10px;
}

.history-box__m-title {
    margin-top: 15px;
    display: flex;
    font-family: 'Cocon', sans-serif;
    color: var(--color-darkblue);
    text-transform: uppercase;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.history-box__m-title img {
    width: 100px;
    margin: -17px 0 0 10px;
}

.history-box__form form {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 15px auto 5px auto;
}

.history-box__form-item {
    width: 235px;
}

.history-box__form-item input {
    width: 100%;
    height: 50px;
    text-align: center;
    border-radius: 50px;
    font-size: 15px;
    color: #808285;
    border: 2px solid var(--color-blue);
}

._inerror {
    color: red !important;
}

._hb-res {
    display: none;
}

.history-box__form-item input ::-webkit-input-placeholder {
    color: #808285df;
    font-weight: bold;
}

.history-box__form-item input:-moz-placeholder {
    color: #808285df;
    font-weight: bold;
    opacity: 1;
}

.history-box__form-item input::-moz-placeholder {
    color: #808285df;
    font-weight: bold;
    opacity: 1;
}

.history-box__form-item input:-ms-input-placeholder {
    color: #808285df;
    font-weight: bold;
}

.history-box__form-item input::-ms-input-placeholder {
    color: #808285df;
    font-weight: bold;
}

.history-box__form-item input::placeholder {
    color: #808285df;
    font-weight: bold;
}

.history-box__form-item button {
    width: 100%;
    height: 50px;
    text-align: center;
    border-radius: 50px;
    font-size: 25px;
    font-weight: bold;
    text-transform: uppercase;
    background: var(--color-blue);
}

.history-box__form-error {
    text-align: center;
    color: red;
    display: none;
}

.history-box__end {
    margin: 10px auto 5px auto;
    color: var(--color-green);
    text-align: center;
    font-size: 20px;
    text-decoration: underline;
    cursor: pointer;
}

.history-box__popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 0%);
    width: 900px;
    border: 1px solid var(--color-blue);
    padding: 15px;
    z-index: 150;
    background-color: white;
    border-radius: 25px;
    top: 220px;
    display: none;
}

.history-box__popup-close {
    position: absolute;
    right: -20px;
    top: -25px;
    line-height: 1;
    color: var(--color-blue);
    font-size: 35px;
}

.history-box__popup-close:hover {
    cursor: pointer;
}

.history-box__popup-title {
    text-align: center;
    font-weight: bold;
    font-size: 24px;
    margin-top: 20px;
    color: var(--color-darkblue);
}

.history-box__popup-numbers,
.history-box__popup-img {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.history-box__popup-numbers-item {
    width: 33%;
    margin: 0 30px;
}

.history-box__popup-numbers-item span {
    text-align: center;
    font-size: 22px;
    display: block;
    color: #808285;
    margin-bottom: 5px;
}

.history-box__popup-numbers-img {
    border: 1px solid var(--color-darkblue);
    display: flex;
    padding: 5px;
    border-radius: 25px;
}

.history-box__popup-img div:nth-child(1) {
    width: 55%;
    margin: auto 10px;
}

.history-box__popup-img div:nth-child(2) {
    width: 40%;
    margin: auto 10px;
}

.history-box__popup-numbers-img img {
    object-fit: cover;
}

.history-box__code-num {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.history-box__code-num-item {
    width: 230px;
    height: 50px;
    background-color: var(--color-blue);
    color: white;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    border-radius: 50px;
    line-height: 50px;
    margin: 7px;
}

.history-box__way {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.history-box__way-item {
    width: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.history-box__way-item-title {
    color: var(--color-darkblue);
    font-size: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    line-height: 1;
    margin-bottom: 10px;
    height: 40px;
}

.history-box__way-item-img {
    width: 90%;
}

.history-box__way-item-img img {
    object-fit: cover;
}

.history-box__way-item-txt {
    color: var(--color-darkblue);
    font-size: 13px;
    line-height: 1;
    text-align: center;
    height: 90px;
}

.history-box__way-next {
    width: 35px;
    margin-bottom: 30px;
}

.history-box__way-next img {
    object-fit: cover;
}

@media (max-width: 950px) {
    .history-box__container,
    .history-box__popup {
        width: 650px;
    }
    .history-box__popup-title {
        line-height: 1;
    }
    .history-box__form-item {
        margin: 0 5px;
    }
    .history-box__way {
        flex-wrap: wrap;
        justify-content: center;
    }
    ._st-1 {
        display: none;
    }
}

@media (max-width: 700px) {
    .history-box__container,
    .history-box__popup {
        width: 350px;
    }
    .history-box__m-title {
        margin-top: 10px;
        font-size: 14px;
        line-height: 1;
    }
    .history-box__m-title img {
        width: 55px;
        margin: -12px 0 0 5px;
    }
    ._title-res {
        font-size: 20px;
    }
    ._title-res img {
        width: 70px;
        margin: -10px 0 0 5px;
    }
    .history-box__form form {
        flex-direction: column;
    }
    .history-box__form-item {
        margin: 5px 5px;
    }
    .history-box__end {
        font-size: 16px;
        line-height: 1;
    }
    .history-box__popup {
        top: 290px;
    }
    .history-box__popup-title {
        font-size: 18px;
        margin-top: 10px;
    }
    .history-box__popup-numbers-item {
        width: 50%;
        margin: 0 10px;
    }
    .history-box__popup-numbers-item span {
        font-size: 16px;
        line-height: 1;
    }
    .history-box__popup-close {
        right: -9px;
        top: -18px;
        font-size: 25px;
    }
    .history-box__code-num-item {
        width: 155px;
        height: 45px;
        font-size: 20px;
        line-height: 45px;
    }
    ._st-1 {
        display: block;
    }
    ._st-2 {
        display: none;
    }
}

@media (max-width: 380px) {
    .history-box__container {
        margin-top: -20px;
    }
    .history-box__container,
    .history-box__popup {
        width: 300px;
    }
    .history-box__m-title {
        font-size: 13px;
    }
    .history-box__m-title img {
        width: 40px;
        margin: -7px 0 0 5px;
    }
    ._title-res {
        font-size: 18px;
    }
    ._title-res img {
        width: 60px;
        margin: -8px 0 0 5px;
    }
    .history-box__popup {
        top: 305px;
    }
    .history-box__popup-title {
        font-size: 16px;
        margin-top: 10px;
    }
    .history-box__popup-numbers-item {
        width: 78%;
        margin: 5px 10px;
    }
    .history-box__popup-numbers,
    .history-box__popup-img {
        flex-direction: column;
        align-items: center;
    }
    .history-box__popup-img div:nth-child(1) {
        width: 80%;
    }
    .history-box__popup-img div:nth-child(2) {
        width: 75%;
    }
    .history-box__popup-numbers {
        margin-top: 10px;
    }
    .history-box__way {
        flex-direction: column;
    }
    .history-box__way-next {
        display: none;
    }
    .history-box__way-item-txt {
        height: auto;
        margin-bottom: 20px;
    }
    .history-box__code-num {
        flex-direction: column;
        align-items: center;
    }
    .history-box__way-item {
        width: 170px;
    }
}