.braces_wrapper{
    max-width: 700px;
    margin: auto;
    position: relative;
}
.color_wrapper {
    border: 1px solid #ccc;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.braces_color {
    width: 46px;
    height: 46px;
    margin: 5px;
    cursor: pointer;
    transition: .3s linear;
	border-radius: 100px;
	outline: 1px solid #333;
	box-shadow: inset 0px 0px 0px #fff;
	border: 3px solid var(--color);
}
.braces_color:hover{
    border-color: #fff;
    box-shadow: inset 0px 0px 0px 2px #fff, inset 0px 0px 0px 3px #333;
}
.braces_container{
    position: relative;
}
.braces_image{
    position: relative;
}
.braces_image img{
    width: 100%;
}
.teeth_wrapper {
    position: absolute;
    width: 49%;
    height: 34%;
    left: 25%;
    top: 34%;
    overflow: hidden;
    display: flex;
    z-index:0;
}
.teeth_wrapper.z_index_up{
    z-index: 2;
    opacity: 0;
}
.teeth_wrapper .tooth_item{
    width: 14%;
    box-shadow: inset 0 0 1em black;
    cursor: pointer;
}
.teeth_wrapper .tooth_item.small {
    width: 5%;
}
.teeth_wrapper .tooth_item.large {
    width: 18%;
}
.teeth_wrapper .tooth_item.large {
    width: 14%;
}
.teeth_wrapper .tooth_item.large {
    width: 15.5%;
}
.teeth_wrapper .tooth_item.large {
    width: 15.5%;
}
.braces_sidebar {
    position: absolute;
    z-index: 2;
    left: 10px;
    top: 10px;
}
.bs_item {
    margin-top: 6px;
}
.bs_item_btn {
    width: 46px;
    height: 46px;
    cursor: pointer;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: .3s linear;
}
.bs_item_btn:hover{
    background-color: #dbdbdb;
}
.bs_item svg {
    width: 100%;
    height: auto;
}
.color_container{
    position: relative;
}
.color_all_box {
    position: absolute;
    background: #171616bd;
    width: 100%;
    bottom: calc(100% - 2px);
   
    justify-content: center;
    align-items: center;
    padding: 10px;
    display: none;
}
.color_container:hover .color_all_box{
    display: flex;
}
.bracess_color_all {
    display: block;
    border: 2px solid #fff;
    padding: 4px 10px;
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
}
.bracess_popup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: #0f0f0f57;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.bracess_popup_content {
    position: absolute;
    width: 90%;
    height: 90%;
    overflow: hidden;
    background: #fff;
    padding: 0 0 20px;
}
.bracess_popup_inner {
    position: absolute;
    left: 0;
    top: 0;
    height: calc(100% - 20px);
    width: 100%;
    overflow: auto;
    padding: 20px 20px 0;
}
.braces_embed_video{
    position: relative;
    padding-bottom: 56.2%;
}
.braces_embed_video video{
    position: absolute;
    width: 100%;
    height: 100%;
    top:0;
    left: 0;
}
.popup_close {
    float: right;
    position: relative;
    z-index: 9;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    color: #f00;
    padding-right: 16px;
}
.braces_embed_audio {
    text-align: center;
}
.braces_embed_audio audio{
    max-width: 100%;
}
@media (max-width:600px){
    .braces_color {
        width: 24px;
        height: 24px;
        margin: 5px;
        cursor: pointer;
    }
}