.tncode {
    border: 1px solid #f5f5f5;
    border-radius: 2px;
    width: 260px;
    height: 44px;
    cursor: pointer;
    opacity: 1;
    line-height: 44px;
}

.tncode_div {
    display: none;
    background-color: white;
    z-index: 1;
    width: 262px;
    height: 275px;
    position: relative;
    margin:0 auto;
    border: 1px dashed #f5f5f5;
    border-radius: 2px;
    overflow: hidden;
    filter: progid:DXImageTransform.Microsoft.Shadow(color='#969696', Direction=135, Strength=5); /*for ie6,7,8*/
    transition: opacity .3s ease;
}

.tncode_div.locked {
    pointer-events:none;
    opacity:.8;
}

.tncode_div .tncode_canvas_bg {
    z-index: 0;
}

.tncode_div .tncode_canvas_mark {
    z-index: 10000;
}

.tncode_div canvas {
    position: absolute;
    left: 10px;
    top: 10px;
}

.tncode_div .loading {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 10px;
    top: 10px;
    background-color: #f5f5f5;
    width: 240px;
    height: 150px;
    box-sizing: border-box;
}

.dd {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
    -webkit-animation: ddf 0.1s ease-in 0s infinite;
    -o-animation: ddf 0.1s ease-in 0s infinite;
    animation: ddf 0.1s ease-in 0s infinite;
}

@-webkit-keyframes ddf {
    0% {
        -webkit-transform: translate(-8px, 3px);
    }
    20% {
        -webkit-transform: translate(-3px, 1.5px);
    }
    50% {
        -webkit-transform: translate(0px, 0px);
    }
    70% {
        -webkit-transform: translate(5px, -1.5px);
    }
    100% {
        -webkit-transform: translate(0px, 0px);
    }
}

@-o-keyframes ddf {
    0% {
        -o-transform: translate(-8px, 3px);
    }
    20% {
        -o-transform: translate(-3px, 1.5px);
    }
    50% {
        -o-transform: translate(0px, 0px);
    }
    70% {
        -o-transform: translate(5px, -1.5px);
    }
    100% {
        -o-transform: translate(0px, 0px);
    }
}

@-moz-keyframes ddf {
    0% {
        -moz-transform: translate(-8px, 3px);
    }
    20% {
        -moz-transform: translate(-3px, 1.5px);
    }
    50% {
        -moz-transform: translate(0px, 0px);
    }
    70% {
        -moz-transform: translate(5px, -1.5px);
    }
    100% {
        -moz-transform: translate(0px, 0px);
    }
}

@keyframes ddf {
    0% {
        transform: translate(-8px, 3px);
    }
    20% {
        transform: translate(-3px, 1.5px);
    }
    50% {
        transform: translate(0px, 0px);
    }
    70% {
        transform: translate(5px, -1.5px);
    }
    100% {
        transform: translate(0px, 0px);
    }
}

@-webkit-keyframes searchLights {
    0% {
        left: -800px;
        top: 70px;
    }

    to {
        left: 350px;
        top: 70px
    }
}

@-o-keyframes searchLights {
    0% {
        left: -800px;
        top: 70px;
    }

    to {
        left: 350px;
        top: 70px
    }
}

@-moz-keyframes searchLights {
    0% {
        left: -800px;
        top: 70px;
    }

    to {
        left: 350px;
        top: 70px
    }
}

@keyframes searchLights {
    0% {
        left: -800px;
        top: 70px;
    }

    to {
        left: 350px;
        top: 70px
    }
}

.tncode_msg_ok {
    background-color: #24C628;
}

.tncode_msg_error {
    background-color: #DE5145;
}

.tncode_msg_ok, .tncode_msg_error {
    position: absolute;
    top: 140px;
    left: 10px;
    right:10px;
    color: #fff;
    padding: 2px 10px;
    overflow: visible;
    font-size: 14px;
    opacity: 0;
    filter: alpha(opacity=0);
    z-index: 10000;
}

.slide {
    position:absolute;
    left:10px;
    right:10px;
    top:170px;
    background-color: white;
    overflow: visible;
}

.slide:before {
    content:'';
    position:absolute;
    top:21px;
    left:0;
    right:0;
    height:3px;
    border-bottom:2px solid #f5f5f5;
    background-color:#dedede;
    border-radius:20px;
}

.slide_block {
    display:flex;
    justify-content:center;
    align-items:center;
    width: 44px;
    height: 44px;
    position: absolute;
    left: 3px;
    top: 0px;
    cursor: pointer;
    border-radius:50%;
    border:1px solid #dedede;
    background: rgb(254,254,254);
    background: linear-gradient(180deg, rgba(254,254,254,1) 0%, rgba(236,235,235,1) 100%);
    box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.17);
}

.tools .tncode_close {
    background-position: 0 50%;
    height: 30px;
    width: 30px;
    float: left;
    margin-right: 10px;
    cursor: pointer;
}

.tools {
    position: absolute;
    top:222px;
    left:10px;
    right:10px;
    display:flex;
}

.tools .tncode_refresh {
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 36px;
    height:36px;
    max-width:36px;
    cursor: pointer;
    font-size:11px;
    padding:0;
    min-height:unset;
}

.tools .note {
    display:flex;
    align-items:center;
    flex:1;
    margin-left:10px;
    font-size:13px;
    line-height:14px;
    color:#747474;
}