.shop_detail_wrapper{
    display:flex;
    flex-direction: row;
    color: var(--general_text_color);
    padding-top: 2rem;
    height: 100%;
}

.shop_container{
    flex: 2;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: auto;
}

.shop_container > div{
    margin: 0.5rem 0;
    padding: 0;
}

.shop_container .title{
    margin: 0.5rem 0;
}

.shop_container .title h1{
    font-size: 3rem;
    font-weight: bold;
    margin: 0;
    display: inline;
}

.shop_breadcrumb{
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
    height: auto;
    width: auto;
    display: block;
    color: inherit;
    padding: 0;
    overflow: visible;
}

.shop_breadcrumb a{
    color: inherit;
}

.shop_breadcrumb .sep{
    margin: 0 0.4rem;
}

.shop_intro{
    margin-bottom: 1rem;
}

.shop_container .social{
    height: 5rem;
    margin: 0.5rem 0 2rem 0;
    display: flex;
    align-items: center;
}

.shop_container .social > a{
    line-height: 0;
    margin-right: 1.5rem;
}

.shop_container .social .separator{
    display: inline-block;
    border-left: 1px solid var(--general_border_color);
    margin-right: 1.5rem;
    height: 100%;
}

.shop_container .social .svg-icon{
    width: 3.5rem;
    height: 3.5rem;
    fill: white;
    padding: 5px;
    border-radius: 14px;
}

.shop_container .social a[data-link=""] .svg-icon.fb,
.shop_container .social a[data-link=""] .svg-icon.email{
    background-color: #999;
}
.shop_container .social .svg-icon.fb{
    background-color: #1877F2;
}
.shop_container .social .svg-icon.email{
    background-color: #FFC53B;
}
.shop_container .social .svg-icon.share{
    background-color: #2E4E9E;
}

.shop_container .block{
    box-shadow: 0px 3px 5px var(--general_shadow_color);
    border-radius: 3px;
    box-sizing: border-box;
    width: 99%;
    margin: 1rem 0.5%;
    padding: 2rem;
    font-size: 1.5rem;
}

.shop_container .intro{
    display: flex;
    flex-direction: row;
}

.shop_container .intro .group{
    width: 30%;
}

.shop_container .intro .tag{
    display: inline-block;
    margin-right: 1rem;
}

.shop_container .intro .tag i{
    margin-right: 5px;
    color:var(--bg_color);
}
body[data-theme="dark"] .shop_container .intro .tag i{
    color:var(--bg_color_dark);
}
.shop_container .intro .tag img{
    height: 16px;
    width: auto;
    margin-left: 5px;
    vertical-align: text-top;
}
.shop_container .placeholder{
    font-weight: bold;
}

.shop_container .address_container{
    line-height: 1.7;
    min-width: 40%;
}

.shop_container .address_container > div{
    margin: 1rem 0 2rem 0;
}

.shop_container  .address .district_tag{
    color: white;
    font-size: 1.2rem;
    border-radius: 5px;
    padding: 2px 5px;
    margin-right: 10px;
    display: inline-block;
}

.shop_container  .address .district_tag[data-area_id="1"]{
    background-color: var(--area_bg_color_1);
}
.shop_container  .address .district_tag[data-area_id="2"]{
    background-color: var(--area_bg_color_2);
}
.shop_container  .address .district_tag[data-area_id="3"]{
    background-color: var(--area_bg_color_3);
}

.map_wrapper{
    padding: 1rem;
    display: flex;
    flex-direction: row;
    flex: 1;
}
#map {
    overflow: hidden;
    border-radius: 5px;
    height: 400px; 
    flex: 1;
}

.comment_wrapper{
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
    max-width: 350px;
}

.comment_wrapper > div{
    margin: 0.5rem 1rem;
    width: auto;
    box-sizing: border-box;
}

.comment_wrapper .comment_container{
    margin-top: 2rem;
    padding: 1rem;
    border-left: 1px solid var(--general_border_color);
}

.comment_wrapper .hit_rate{
    font-weight: bold;
    font-size: 2rem;
}

.comment_wrapper .comment{
    box-shadow: 0px 3px 4px var(--general_shadow_color);
    padding: 1rem;
    box-sizing: border-box;
    margin: 2rem 0;
    position: relative;
}

.comment .datetime{
    font-size: 1.4rem;
    font-weight: bold;
}

.comment .detail{
    text-align: justify;
    margin: 1rem 0;
}

.comment .name{
    text-align: right;
    font-size: 1.2rem;
    color: var(--shop_title_color);
}

.comment .score_wrapper{
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    line-height: 0;
}
.comment .score_wrapper .star{
    width: 12px; 
    height: 12px;
}

#new_comment{
    display: none;
}

.back_to_search{
    margin-right: 2rem;
    color: var(--general_border_color);
    transform: translate3d(0, -100%, 0);
    font-size: 2.5rem;
}

.form_wrapper{
    text-align: right;
    position: relative;
}

.form_wrapper.processing::before{
    content: '';
    display: block;
    z-index: 2;
    background: rgba(255, 255, 255, 0.5);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
}

.form_wrapper.processing #submit_comment .submit,
.form_wrapper:not(.processing) #submit_comment .processing{
    display: none;
}

.form_container{
    display: none;
}

.form_container input{
    display: block;
    border: 1px solid var(--general_border_color);
    width: 100%;
    border-radius: 3px;
    margin: 0.5rem 0;
    padding: 0.5rem;
    box-sizing: border-box;
}

.form_container textarea{
    resize: none;
    width: 100%;
    border: 1px solid var(--general_border_color);
    border-radius: 3px;
    margin: 0.5rem 0;
    padding: 0.5rem;
    box-sizing: border-box;
}

.form_container .score_wrapper{
    display: inline-block;
    float: left;
    transform: translateY(25%);
}
.form_container .score_wrapper .star{
    cursor: pointer;
}
.form_container .score_wrapper .star path{
    transition: 0.3s ease-out;
}
.score_wrapper[data-score="1"] .star:nth-child(1) path,
.score_wrapper[data-score="2"] .star:nth-child(1) path,
.score_wrapper[data-score="2"] .star:nth-child(2) path,
.score_wrapper[data-score="3"] .star:nth-child(1) path,
.score_wrapper[data-score="3"] .star:nth-child(2) path,
.score_wrapper[data-score="3"] .star:nth-child(3) path,
.score_wrapper[data-score="4"] .star:nth-child(1) path,
.score_wrapper[data-score="4"] .star:nth-child(2) path,
.score_wrapper[data-score="4"] .star:nth-child(3) path,
.score_wrapper[data-score="4"] .star:nth-child(4) path,
.score_wrapper[data-score="5"] .star:nth-child(1) path,
.score_wrapper[data-score="5"] .star:nth-child(2) path,
.score_wrapper[data-score="5"] .star:nth-child(3) path,
.score_wrapper[data-score="5"] .star:nth-child(4) path,
.score_wrapper[data-score="5"] .star:nth-child(5) path{
    fill: #FFC53B;
    stroke: #FFC53B;
}

.form_wrapper button{
    margin: 0.5rem 0 1rem 0;
    border: none;
    background-image: none;
    color: white;
    border-radius: 3px;
    padding: 1rem;

}

.form_container button{
    background-color: var(--bg_color);
}
body[data-theme="dark"] .form_container button{
    background-color: var(--bg_color_dark);
}

.form_wrapper[data-show="1"] button .trigger,
.form_wrapper[data-show="0"] button .close,
.form_wrapper button .thanks,
.form_wrapper.lock button .trigger,
.form_wrapper.lock button .close{
    display:none;
}

.form_wrapper.lock button .thanks{
    display: block;
}

.form_wrapper[data-show="0"] #comment_trigger{
    background-color: #FE8A8A;
    width: 100%;
    transition: 0.3s ease-out;
}

.form_wrapper[data-show="1"] #comment_trigger{
    background-color: transparent;
}

.g_map{
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
    border-radius: 10px;
}

@media (max-width: 1200px){
    .map_wrapper{
        flex-direction: column;
    }
}

@media (max-width: 848px){
    .shop_detail_wrapper{
        flex-direction: column;
    }
    .shop_container{
        flex: none;
    }
    .comment_wrapper{
        flex: none;
        max-width: none;
    }
}

@media (max-width: 768px){
    main{
        overflow: auto !important;
        height: calc(100vh - 60px) !important;
        padding-top: 0 !important;
    }
    
    .shop_detail_wrapper{
        height: auto !important;
    }
    
    .shop_container{
        overflow: visible !important;
        height: auto !important;
    }
    
    .search_wrapper{
        padding-top: 1.5rem !important;
    }
}
