/* popup-code 弹窗样式 */
.popup-code{
    display:block;
    position: fixed;
    z-index: 999;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0, 0, 0, 0);
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}
.popup-code.show{
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
    visibility: visible;
}
.popup-code .main{
    position: absolute;
    right: 0;
    top: 0;
    width: 80%;
    height: 100%;
    background: #fff;
    border-radius: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}
.popup-code.show .main{
    transform: translateX(0);
    transition: transform 0.3s ease-out;
}
.popup-code .main dt{
    padding:20px 20px 15px;
    line-height:20px; 
    font-size: 14px;
    color: #333;
    border-bottom:1px solid #eee;
    background: #fafafa;
    font-weight: normal;
}
.user-info{
    text-align: center;
}
.z-arrow-go{
    border: solid #ddd;
    float: right;
    width: 6px;
    height: 6px;
    border-width: 2px 2px 0 0;
    margin-top: 16px;
    margin-right: 10px;
}
.popup-code a{
    color:#2af;
    padding-right:10px;
}
.popup-code .box-close{
    position: absolute;
    right: 15px;
    top: 15px;
    background: url('/statics/templates/yungou/images/mobile/setIcon.png?v=20170802') no-repeat;
    width: 24px;
    height: 24px;
    padding: 0;
    background-size: 100px auto;
    background-position: 0px -65px;
}
#s-code b{
    display: block;
    font-size: 16px;
    height: 40px;
    line-height: 40px;
    padding: 0;
    margin: 0;
    color: #333;
    background-color: #f5f5f5;
    border: none;
    border-radius: 4px;
    font-weight: normal;
    box-shadow: none;
    overflow: hidden;
    position: relative;
    font-family: 'Arial', sans-serif;
    box-sizing: border-box;
    text-align: center;
    width: 100%;
}
#s-code {
    text-align: center;
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    justify-items: center;
    align-items: center;
    white-space: normal;
}
.buy_codes {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.buy_codes dl {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}
.buy_codes dt {
    flex-shrink: 0;
}
.buy_codes dd {
    flex-grow: 1;
    padding: 0;
    height: auto;
    max-height: calc(100% - 150px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
    margin: 0;
}
.popup-code .main dd::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
.popup-code .main dd::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 2px;
}
.popup-code .main dd::-webkit-scrollbar-track {
    background-color: #f5f5f5;
}