/*
.mask_popup{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 0;
	opacity: 0;
	background: rgba(0,0,0,0.32);
	transition: opacity 0.3s ease;
}
.on>.mask_popup{
	opacity: 1;
	height: 100%;
}
*/

.box_help_btn {
    display: flex;
    width: 100%;
    margin-bottom: 0;
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
}

.box_help_btn .btn_cancel {
    margin-right: 16px;
}

.box_help_pwd .btn_cancel,
.box_help_pwd .btn_next,
.box_help_pwd .btn_submit,
.box_help_pwd .btn_safecode {
    display: inline-block;
    width: 100%;
    height: 48px;
    line-height: 48px;
    flex: 1 1 auto;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    color: #fff;
}

.btn_submit {
    color: #fff;
    display: block;
    width: 100%;
    height: 48px;
    line-height: 48px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    -webkit-box-flex: 1;
    background: #19805c;
    text-transform: uppercase;
    cursor: pointer;
}

.btn_cancel {
    display: block;
    width: 100%;
    height: 48px;
    line-height: 48px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    background-color: #7a7a7a;
    color: #fff;
    cursor: pointer;
}


/* popup msg model */
.popup_bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 16px 0;
    z-index: 1;
    background: #fff;
    visibility: collapse;
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
    transition: transform 0.3s ease, visibility 0s 0.3s;
}

.ios15 .popup_bottom {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

.popup_bottom.on,
.popup_bottom.now {
    -webkit-transform: translate3d(0, 0%, 0);
    transform: translate3d(0, 0%, 0);
    visibility: visible;
    transition: transform 0.3s ease, visibility 0s;
}

.popup_content {
    width: 100%;
    line-height: 16px;
    margin-bottom: 16px;
    padding: 0 16px;
    font-size: 14px;
    color: rgba(0, 0, 0, 1);
}

.popup_btnbox {
    display: flex;
    width: 100%;
    padding: 0 16px;
}

.popup_btnbox > div ~ div {
    margin-left: 16px;
}


/* popup game model */
.popup_game {
    position: absolute;
    display: flex;
    width: calc(100% - 32px);
    min-width: 288px;
    max-width: 640px;
    height: auto;
    max-height: calc(100% - 32px);
    margin: 16px auto;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    z-index: 1;
    background: #fff;
    visibility: collapse;
    -webkit-transform: translate3d(0, calc(50vh + 50%), 0);
    transform: translate3d(0, calc(50vh + 50%), 0);
    transition: transform 0.3s ease, visibility 0s 0.3s;
}

.popup_bet {
    position: absolute;
    bottom: 0;
    display: flex;
    width: 100%;
    min-width: 320px;
    max-width: 640px;
    height: auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    z-index: 1;
    background: #fff;
    visibility: collapse;
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
    transition: all 0.3s ease;
}

.popup_game.on,
.popup_bet.on {
    -webkit-transform: translate3d(0, 0%, 0) !important;
    transform: translate3d(0, 0%, 0) !important;
    visibility: visible;
    transition: transform 0.3s ease, visibility 0s;
}

.popup_title {
    position: relative;
    display: flex;
    width: 100%;
    height: 48px;
    line-height: 16px;
    /* padding: 4px 16px; */
    padding: 4px 0;
    flex: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    color: #000;
    background: #ededed;
}

.popup_title span {
    display: block;
    width: 100%;
    margin-left: 16px;
    padding-right: 48px;
}

.popup_title .icon_information {
    display: block;
    width: 16px;
    height: 16px;
    margin-left: 16px;
    pointer-events: none;
}

.popup_title .icon_information svg {
    width: 100%;
    height: 100%;
    fill: #00a1db;
}

.popup_game .btn_close,
.popup_bet .btn_close {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 48px;
    padding: 8px;
}

.popup_game .btn_close i,
.popup_bet .btn_close i {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 9px;
}

.popup_game .btn_close svg,
.popup_bet .btn_close svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: rgba(0, 0, 0, 0.56);
}

.popup_game .popup_content,
.popup_bet .popup_content {
    margin: 0;
    padding: 16px;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
}

.popup_game .popup_content p ~ p,
.popup_bet .popup_content p ~ p {
    margin-top: 1rem;
}

/*
.popup_game .popup_content:before{
	content: '';
	display: block;
	width: 100%;
	height: 8px;
	opacity: 0.4;
	background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0) 67%);
}
*/
/*passcode*/
.popup_txt li {
    margin-bottom: 13px;
}

.popup_txt li:last-child {
    margin-bottom: 12px;
}

.popup_checkbox {
    padding: 16px 16px 0;
    color: rgba(0, 0, 0, .64);
    font-size: 14px;
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    -webkit-align-items: center;
    -ms-align-items: center;
    align-items: center;
}

.popup_checkbox input {
    display: none;
}

.popup_checkbox input + i {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 11px;
    vertical-align: middle;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .64);
}

.popup_checkbox input:checked + i {
    background: url(../images/hg/icon_tick.svg) no-repeat #33997a;
    background-size: cover;
    border-color: #33997a;
}

.popup_checkbox input + i {
    -webkit-transition: color .3s linear, background-color .3s linear, opacity .3s linear, box-shadow .3s linear, border-color .3s linear;
    -ms-transition: color .3s linear, background-color .3s linear, opacity .3s linear, box-shadow .3s linear, border-color .3s linear;
    transition: color .3s linear, background-color .3s linear, opacity .3s linear, box-shadow .3s linear, border-color .3s linear;
}

.popup_checkbox tt {
    display: inline-block;
    vertical-align: middle;
}

/* toast msg*/
.popup_toast {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -16px;
    width: 100%;
    z-index: 1;
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
    transition: all 0.3s ease;
}

.popup_toast.on {
    bottom: 56px;
    -webkit-transform: translate3d(0, 0%, 0);
    transform: translate3d(0, 0%, 0);
    margin-bottom: 16px;
}

.ios15 .popup_toast.on {
    margin-bottom: calc(env(safe-area-inset-bottom) + 16px);
}

.popup_toast.high_set.on {
    margin-bottom: 80px;
    margin-bottom: calc(80px + constant(safe-area-inset-bottom));
    margin-bottom: calc(80px + env(safe-area-inset-bottom));
}

.ios15 .popup_toast.high_set.on {
    margin-bottom: calc(env(safe-area-inset-bottom) + 80px);
}

.popup_toast.log_bef {
    bottom: 0px !important;
}

/*
.popup_toast.high_set.on{
	bottom: 64px;
}
*/
.box_toast {
    display: flex;
    width: 100%;
    max-width: 640px;
    min-height: 64px;
    margin: 0 auto;
    padding: 6px 8px 6px 16px;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.88);
    background: #474747;
}

.no_btn .box_toast {
    min-height: 48px;
    padding: 4px 16px;
    justify-content: center;
    text-align: center;
    font-size: 14px;
}

.btn_toast {
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
}

/* POPUP Center*/
.popup_center {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: 100%;
    max-height: 640 p;
    align-items: center;
    justify-content: center;
    padding: 16px;
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
    transition: all 0.3s ease;
    z-index: 2;
    visibility: collapse;
}

.popup_center.on {
    -webkit-transform: translate3d(0, 0%, 0);
    transform: translate3d(0, 0%, 0);
    visibility: visible;
}

.popup_center > div {
    display: flex;
    width: 100%;
    max-width: 480px;
    max-height: 100%;
    flex-direction: column;
    background: #fff;
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
}

.popup_center .popup_title {
    justify-content: center;
    flex: none;
}

.popup_center .popup_content {
    margin: 0;
    padding: 16px 16px 0 16px;
    overflow-y: auto;
}

.popup_center .popup_btnbox {
    padding: 16px;
}

/* POPUP kick */
.popup_kick > div {
    min-width: 288px;
    max-height: 640px;
}

/* PC hover effect */
@media (pointer: fine) and (max-resolution: 2dppx), screen and (pointer: fine) and (-webkit-max-device-pixel-ratio: 2),
(-moz-touch-enabled: 0), screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .btn_popup_selec:hover .checkmark {
        border: 2px solid #33997a;
    }

    .popup_title .btn_close:hover svg,
    .popup_title .btn_fullscr:hover svg {
        fill: #000;
    }

    .btn_toast:hover {
        background: #5c5c5c;
    }

    .btn_submit:hover {
        background: #379e7a;
    }

    .btn_cancel:hover {
        background: #8f8f8f;
    }
}

/* All active effect */
.popup_title .btn_close:active i,
.popup_title .btn_fullscr:active i {
    background-color: rgba(0, 0, 0, 0.08);
}

.popup_title .btn_close:active svg,
.popup_title .btn_fullscr:active svg {
    fill: #000;
}

.btn_toast:active {
    background: #333;
}

.btn_submit:active {
    background: #056b48;
}

.btn_cancel:active {
    background: #666;
}

#alert_show {
    height: auto;
    overflow: unset;
}

.msg_popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: visibility 0s 0.3s;
}

.msg_popup.on {
    transition: visibility 0s;
}

/* popup mask */
.mask_popup,
.mask_popup_left,
.mask_popup_right {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: 0;
    opacity: 0;
    background: rgba(0, 0, 0, 0.32);
    transition: opacity 0.3s ease,
    height 0s ease 0.3s;
}

.mask_popup {
    z-index: 1;
}

.mask_popup_right {
    width: calc(100% / 3);
    left: auto;
    right: 0;
}

.pc_center.on ~ .mask_popup,
.popup_center.on ~ .mask_popup,
.pc_left.on ~ .mask_popup_left,
.pc_right.on ~ .mask_popup_right {
    opacity: 1;
    height: 100%;
    transition: opacity 0.3s ease,
    height 0s ease;
}

@media screen and (min-width: 1px) and (max-width: 1023px) {
    .popup_bet.on ~ .mask_popup_left {
        opacity: 1;
        height: 100%;
        transition: opacity 0.3s ease,
        height 0s ease;
    }
}

/* STAG 2 */
/* Center */
.pc_center.on {
    z-index: 3;
}

@media screen and (min-width: 1024px) {
    /* .mask_popup, */
    .mask_popup_right {
        top: 56px;
    }

    .pc_center.on ~ .mask_popup {
        z-index: 2;
    }

    .pc_center.on ~ .mask_popup,
    .popup_center.on ~ .mask_popup {
        width: 100%;
        top: 0;
    }

    /* Left */
    .mask_popup_left {
        width: calc(200% / 3);
        top: 56px;
    }

    /* Right */
    .pc_right.on > .mask_popup_right {
        width: calc(100% / 3);
        top: 56px;
        left: auto;
        right: 0;
    }
}

/* STAG 2 */
@media screen and (min-width: 1024px) {
    .popup_bottom,
    .popup_game,
    .popup_bet {
        width: calc(200% / 3);
        left: 0;
        right: 0;
        margin-left: calc((66.6% - 640px) / 2);
    }

    .popup_bottom.pc_center {
        margin: 0 auto;
    }

    .popup_game.pc_right,
    .popup_bet {
        top: auto;
        bottom: 0;
        left: auto;
        right: 0;
        width: calc(100% / 3);
        min-width: unset;
        margin-bottom: 0;
        border-radius: 8px 8px 0 0;
        -webkit-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 100%, 0);
        /* display: none!important; */
    }

    .popup_bet {
        left: auto;
        right: 0;
        width: calc(100% / 3);
        min-width: unset;
        max-height: calc(100% - 32px);
        margin: 16px auto 0px auto;
        -webkit-transform: translate3d(0, calc(50vh + 50%), 0);
        transform: translate3d(0, calc(50vh + 50%), 0);
        transition: transform 0.3s ease, visibility 0s 0.3s;
    }

    .popup_bet.on ~ .mask_popup_right {
        opacity: 1;
        height: 100%;
        transition: opacity 0.3s ease,
        height 0s ease;
    }

    .popup_toast {
        /* position: absolute !important; */
        width: 100% !important;
        max-width: 640px !important;
        /*margin-left: calc((66.6% - 640px) / 2);*/
        margin-left: calc((66.6%) / 2);
    }

    .popup_toast.log_bef {
        margin-left: auto;
        margin-right: auto;
    }

    .popup_toast.on {
        bottom: 0;
    }

    .popup_toast.high_set.on {
        margin-bottom: 80px;
        margin-bottom: calc(80px + constant(safe-area-inset-bottom));
        margin-bottom: calc(80px + env(safe-area-inset-bottom));
    }
}

@media screen and (min-width: 1920px) {
    .popup_game.pc_right,
    .popup_bet {
        margin-right: calc((50% / 3) - 320px);
    }
}


.lab_radio {
    position: relative;
    float: left;
    display: block;
    color: rgba(0, 0, 0, 0.64);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.lab_radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin: 3px;
    vertical-align: middle;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.64);
    background: url('../images/hg/icon_check.svg') no-repeat;
    background-size: contain;
    background-position: -24px;

}

.lab_radio tt {
    display: inline-block;
    margin-left: 4px;
    vertical-align: middle;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.64);
}

.lab_radio input:checked ~ .checkmark {
    border: none;
    background-position: 0;
}


/* PC hover effect */
@media (pointer: fine) and (max-resolution: 2dppx), screen and (pointer: fine) and (-webkit-max-device-pixel-ratio: 2),
(-moz-touch-enabled: 0), screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .lab_radio:hover .checkmark {
        border: 2px solid #19805c;
    }
}

.mask_popup.mask_gray {
    background: #fff;
}
