/* Animations
----------------------------------------*/
@keyframes badge-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(119, 201, 33, 0.7);
        -webkit-box-shadow: 0 0 0 0 rgba(119, 201, 33, 0.7);
        -moz-box-shadow: 0 0 0 0 rgba(119, 201, 33, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(119, 201, 33, 0);
        -webkit-box-shadow: 0 0 0 10px rgba(119, 201, 33, 0);
        -moz-box-shadow: 0 0 0 10px rgba(119, 201, 33, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(119, 201, 33, 0);
        -webkit-box-shadow: 0 0 0 0 rgba(119, 201, 33, 0);
        -moz-box-shadow: 0 0 0 0 rgba(119, 201, 33, 0);
    }
}

/* Track
----------------------------------------*/
.track{
    padding: 25px 0;
}
.track__heading {
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 22px;
}

/* Track header
----------------------------------------*/
.track-header{
    margin-bottom: 20px;
}
.track-header__row {
    display: flex;
    align-items: flex-end;
}
.track-header__left {
    width: 100%;
}
.track-header__right {
    width: 100%;
    text-align: right;
}
.track-header__detail {
    font-size: 14px;
}
.track-header__detail:not(:last-child) {
    margin-bottom: 15px;
}
.track-header__detail--strong {
    font-weight: 700;
}
.track-header__row:not(:last-child) {
    margin-bottom: 10px;
}
.track-header__attributes {
    padding: 15px;
    background-color: #fff;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}
.track-header__attribute {
    display: flex;
    line-height: 1.4;
    align-items: center;
}
.track-header__attribute:not(:last-child) {
    margin-bottom: 10px;
}
.track-header__attribute-key {
    min-width: 110px;
    font-weight: 700;
    font-size: 14px;
}
.track-header__attribute-value {
    font-size: 14px;
}
.track-header__attribute-value--red {
    color: #f44336;
}
.track-header__attribute-value--green {
    color: #4caf50;
}
.track-header__payment {
    padding: 3px 6px;
    font-size: 14px;
    border-radius: 4px;
    color: #fff;
    display: inline-block;
}
.track-header__payment--warning {
    background-color: #f8ac59;
    margin-right: 5px;
}
.track-header__payment--success {
    background-color: #1ab394;
}

/* Track message
----------------------------------------*/
.track-message {
    margin-bottom: 20px;
    padding: 10px 15px;
    background-color: #fce389;
    font-size: 14px;
    line-height: 1.5;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}
.track-message--critical{
    color: #fff;
    background-color: #ef5350;
}

/* Track steps
----------------------------------------*/
.track-steps {
    padding: 20px 15px;
    border-radius: 4px;
    background-color: #fff;
}
.track-steps__item {
    position: relative;
    padding-left: 65px;
}
.track-steps__item:not(:last-child) {
    margin-bottom: 50px;
}
.track-steps__info {
    position: relative;
}
.track-steps__indicator {
    position: absolute;
    top: 50%;
    left: 0;
    width: 16px;
    height: 16px;
    background-color: #ccc;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    margin-top: -8px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.track-steps__indicator:before{
    display: none;
    font-size: 10px;
    color: #fff;
    font-weight: 700;
}
.track-steps__icon {
    position: absolute;
    left: 30px;
    font-size: 20px;
    top: 50%;
    margin-top: -10px;
}
.track-steps__name {
    font-weight: 700;
    font-size: 14px;
}
.track-steps__desc:not(:empty) {
    padding-top: 5px;
    font-size: 14px;
    color: #999;
}
.track-steps__date {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 12px;
    color: #999;
}
.track-steps__dotes{
    position: absolute;
    top: -45px;
    left: 6px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}
.track-steps__dot {
    width: 4px;
    height: 4px;
    display: block;
    background-color: #ccc;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}

/* Track steps (done)
----------------------------------------*/
.track-steps__item--done .track-steps__name,
.track-steps__item--done .track-steps__icon{
    filter: alpha(opacity=70);
    opacity: .7;
}
.track-steps__item--done .track-steps__indicator{
    background-color: #a9cf44;
}
.track-steps__item--done .track-steps__indicator:before{
    display: inline-block;
}

/* Track steps (active)
----------------------------------------*/
.track-steps__item--active .track-steps__indicator{
    background-color: #77C921;
    transform: scale(1);
    animation: badge-pulse 2s infinite;
}

/* Track steps (failed)
----------------------------------------*/
.track-steps__item--failed .track-steps__name,
.track-steps__item--failed .track-steps__icon{
    filter: alpha(opacity=70);
    opacity: .7;
}
.track-steps__item--failed .track-steps__indicator{
    background-color: #ef5350;
}
.track-steps__item--failed .track-steps__indicator:before{
    display: inline-block;
}

/* Track check
----------------------------------------*/
.track-check {
    padding: 100px 300px 200px;
}
.track-check__title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    padding: 20px 0;
}
.track-check-form__group {
    display: flex;
}
.track-check-form__field {
    position: relative;
    flex: 1;
}
.track-check-form__input {
    -webkit-border-radius: 4px 0 0 4px;
    -moz-border-radius: 4px 0 0 4px;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    padding-left: 40px;
    border-right: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    outline: none;
}
.track-check-form__input:focus{
    border: 1px solid rgba(79, 120, 254, 0.9);
}
.track-check__icon {
    position: absolute;
    top: 12px;
    left: 14px;
    color: #a3a3a3;
}
.track-check-form__btn {
    background-color: #aacf44;
    height: 40px;
    padding: 0 20px;
    color: #fff;
    -webkit-border-radius: 0 4px 4px 0;
    -moz-border-radius: 0 4px 4px 0;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
}

/* Track delivery
----------------------------------------*/
.track-status {
    margin-bottom: 20px;
}
.track-status__body{
    padding: 15px;
    background-color: #fff;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 85px;
    text-align: center;
}
.track-status__heading {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 700;
}
.track-status__description {
    font-size: 14px;
    color: #999;
    line-height: 1.2;
}
.track-status__description span{
    color: #4f78fe;
    font-weight: 700;
}
.track-status__description strong{
    color: #3c3c3c;
}
.track-status__warning{
    color: #ef5350;
    margin-left: 3px;
}
.track-status__button{
    background-color: #4f78fe;
    padding: 8px 15px;
    border-radius: 4px;
    color: #fff;
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    display: inline-block;
}

/* Track loader
----------------------------------------*/
.track-loader {
    display: inline-block;
}
.track-loader__circle {
    content: '';
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #ccc;
    border-top-color: #a9cf44;
    animation: loader 0.9s linear infinite;
    z-index: 6;
    cursor: not-allowed;
    display: inline-block;
    vertical-align: top;
}

/* Track section
----------------------------------------*/
.track-section{
    padding: 15px;
    background-color: #fff;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Media
----------------------------------------*/
@media only screen and (max-width: 768px) {
    .track-check {
        padding: 50px 0 0 0;
    }
    .track-check__title {
        font-size: 22px;
    }
    .track-check-form__input{
        -webkit-appearance: none;
    }
    .track-check-form__btn{
        margin: 0 !important;
    }
}