/***********shop************/
/*global*/
body.woocommerce-page .main-page-wrapper{padding-bottom: 80px; padding-left: 15px;  padding-right: 15px;}
body.woocommerce-page .main-page-wrapper *{ font-family: Microsoft JhengHei,Poppins, Arial,woodmart-font, Helvetica, sans-serif,'Font Awesome 5 Pro',"Font Awesome 5 Free"; }

.widget-area.woodmart-sidebar-content .widget_product_categories .product-categories{max-height: 9rem;   overflow: auto;}
.widget-area.woodmart-sidebar-content .widget_product_categories .product-categories::-webkit-scrollbar{width:3px; border-radius: 10px;}
.widget-area.woodmart-sidebar-content .widget_product_categories .product-categories::-webkit-scrollbar-track { background: #f1f1f1; }
.widget-area.woodmart-sidebar-content .product-categories::-webkit-scrollbar-thumb { background: #888; border-radius: 10px;}

body.woocommerce-page.archive .shop-content-area{padding-left: 30px;}
body.woocommerce-page .sidebar-container{padding: 15px;  background-color: #fafafa; border: 1px solid #e2e2e2;}
body.woocommerce-page.archive .main-page-wrapper .align-items-start{}


@media(max-width:1400px){
  body.woocommerce-page.archive .shop-content-area{margin-top: 0;}
  body.woocommerce-page.archive .main-page-wrapper{padding-left:30px}
}
@media(max-width:1025px){
  body.woocommerce-page.archive .shop-content-area{padding-left:15px;}
  a.woodmart-sticky-sidebar-opener.shop-sidebar-opener.woodmart-sidebar-btn-shown{background-color: #3f3f3f;    color: #fff;    left: -10px;}
}
@media(max-width:979px){
  .wd-bottom-actions .wrap-wishlist-button{display:none;}
}
@media(max-width:767px){
  body.woocommerce-page:not(.woocommerce-account) .main-page-wrapper{padding-left: 0;    padding-right: 0;}
  body.woocommerce-page.archive .main-page-wrapper,
  body.woocommerce-page.woocommerce-checkout .main-page-wrapper,
  body.woocommerce-page .main-page-wrapper .shop_table_responsive{padding-left: 15px;    padding-right: 15px;}
}

/*****myaccount******/
body.woocommerce-account .woocommerce-Address{max-width: 100%;   flex: 0 0 100%;}
body.woocommerce-account .woocommerce-address-fields #billing_first_name_field{width:100%}
body.woocommerce-account .woocommerce-form-row--last.form-row-last{display:none!important;}
body.woocommerce-account .woocommerce-form-row--first.form-row-first{width:100%;}

.woodmart-my-account-links .members-area-link a:before{content:"\f439";}
.woodmart-my-account-links .my-points-link a:before{content:"\f431";}

.woodmart-registration-page.active-register .col-register-text h2.wd-login-title{ font-size:0; }
.woodmart-registration-page.active-register .col-register-text h2.wd-login-title:after{ content:'登入'; font-size:22px; }


@media(max-width:767px){
    body.woocommerce-account .woocommerce-MyAccount-navigation:not(.wc-memberships-members-area-navigation) > ul{display: none;}
    
    .woodmart-my-account-links>div{flex-basis: 50%!important; width: 50%!important; }
    body.woocommerce-account h3.woocommerce-MyAccount-title.entry-title{padding-left:0;}
}

/*****checkout******/
p#billing_company_field,p#billing_country_field,p#billing_address_2_field,p#billing_city_field,p#billing_state_field,
p#shipping_company_field,p#shipping_country_field,p#shipping_address_2_field,p#shipping_city_field,p#shipping_state_field
{display:none!important;}

.cart_totals .woocommerce-shipping-destination,.woocommerce-shipping-fields{display: none!important;}
body.woocommerce-checkout tr.choose_cvs span.show_choose_cvs_name{display:block}


table.shop_table tr td:last-child, table.shop_table tr th:last-child{text-align:left;}
#shipping_method > li{ display: flex;   flex-wrap: wrap; padding: 10px;    background-color: #f8f8f8;    border-left: 2px solid #e0e0e0;}
#shipping_method > li input.shipping_method {margin: 0 7px 10px 0;}
#shipping_method > li > .shipping-des{ margin-top:10px; width: 100%;}
#shipping_method .sgi-pop-button{font-size:14px; cursor: pointer;    transition: .3s;    color: #2196f3;}
#shipping_method .sgi-pop-button:hover{ color: #0081e8; }


@media(max-width:979px){
    table.shop_table_responsive td:before{ float:unset; }
}

@media(max-width:767px){
  body.woocommerce-order-received .woocommerce-notice--success{font-size: 20px;}
  body.woocommerce-order-received .wc-bacs-bank-details li,
  body.woocommerce-order-received .woocommerce-thankyou-order-details li{display: flex;    flex-wrap: wrap;    flex-direction: row;    justify-content: space-between; padding: 15px 10px; }
  body.woocommerce-order-received .wc-bacs-bank-details li *,
  body.woocommerce-order-received .woocommerce-thankyou-order-details li *{margin: 0;}
  body.woocommerce-order-received .wc-bacs-bank-details-account-name{margin: 10px 0;    padding-left: 10px;}
  body .checkout-order-review{padding: 15px;}
  
  #shipping_method > li input.shipping_method{ margin: 0 7px 10px 0; }
}

/********shipping des box*********/
#sgi-popup-box{display:none;}
#sgi-popup-box.active{display:block; position: fixed;    top: 0;    left: 0;    width: 100vw;    height: 100vh; z-index: 99999;}
#sgi-popup-box.active .overlay{ position: absolute;    width: 100%;    height: 100%;    top: 0;    left: 0;    z-index: -1;    background-color: rgba(0,0,0,.4); }
#sgi-popup-box.active .box-inner{ position: relative;    z-index: 9;    max-width: 800px;    width: 100vw;    margin: auto;    height: 70vh;    background-color: #fff;    top: -100vh;
    box-shadow: 0 0 15px 5px rgb(0 0 0 / 10%);    border-radius: 10px;    overflow: hidden; transition: .6s; opacity: 0; display: flex;   flex-direction: column;}
#sgi-popup-box.active.box-show .box-inner{ top: 10vh; opacity: 1;}
#sgi-popup-box.active.box-hide .box-inner{ top: -100vh; opacity: 0;}

#sgi-popup-box.active .box-title > *{ margin: 0;  letter-spacing: 2px; }
#sgi-popup-box.active .box-header{ height: 50px; flex: 0 1 50px; align-items: center;    display: grid;    grid-template-columns: 80% 20%;    padding: 10px 15px 0 15px;    border-bottom: 1px solid #ececec; }
#sgi-popup-box.active .box-header .action{text-align:right;}
#sgi-popup-box.active .box-header .action a{font-size: 1.5rem;    cursor: pointer;  line-height: 1;}
#sgi-popup-box.active .box-header .action i{ transition: .3s; }
#sgi-popup-box.active .box-header .action i:hover{ transform: scale(1.2); }

#sgi-popup-box.active .box-body{ flex: 0 1 100%; padding: 15px; overflow-y: auto; }
#sgi-popup-box.active .box-body-inner{ max-height: 100%;    overflow-y: auto; }
#sgi-popup-box:not(.login-form) #sgi-login-form{display:none;}


@media(max-width:767px){
    #sgi-popup-box.active .box-inner{ width: 95vw;  }
    #sgi-popup-box.active.box-show .box-inner{ top:20vh; }
}

/*******single product***********/
.swatch-on-single.swatch-enabled{border: 1px solid #ddd; }
body.single-product .tabs-location-standard.reviews-location-separate.tabs-type-tabs .woocommerce-tabs,body.single-product #reviews{position: relative;    border: unset!important; padding-bottom: 50px;   margin-bottom: 50px;}
body.single-product .woocommerce-tabs.wc-tabs-wrapper.tabs-layout-tabs:after,
body.single-product #reviews:after{  content: '';    width: 100vw;    height: 1px;    background-color: rgba(129,129,129,.2);  position: absolute;    left: calc(-50vw + 50%);    bottom: 0;}

body.single-product #comments .commentlist{overflow: auto; padding: 0 20px 0 0;}
body.single-product #comments ol > li{padding-right: 15px;}
body.single-product #comments .commentlist::-webkit-scrollbar{width:3px; border-radius: 10px;}
body.single-product #comments .commentlist::-webkit-scrollbar-track { background: #f1f1f1; }
body.single-product #comments .commentlist::-webkit-scrollbar-thumb { background: #888; border-radius: 10px;}

body.single-product #reviews{flex-wrap: wrap;}
body.single-product #reviews > h3,body.single-product form[name="checkout"] > h3{width: 100%;   text-align: center; margin-bottom: 40px; display: flex;    flex-wrap: wrap;    justify-content: center;  flex-direction: column;    letter-spacing: 2px;}
body.single-product #reviews > h3 span,body.single-product form[name="checkout"] > h3 span{font-size:80%;}
body.single-product:not(.wcopc-product-single) .product-tabs-wrapper{border-bottom: unset;    margin-bottom: 0;}


@media(max-width:979px){
    body.single-product .product-summary-shadow .summary-inner{padding: 30px 15px 15px;}
    body.single-product #reviews > h3, body.single-product form[name="checkout"] > h3{margin-top: 30px;}
    
    body.single-product .yith-par-message{display:none;}
}

/*********onepageer checkout************/
body.wcopc-product-single .container.related-and-upsells,body.wcopc-product-single #order_review_heading,body.wcopc-product-single .woocommerce-form-coupon-toggle,
body.wcopc-product-single #opc-product-selection{display:none;}

body.wcopc-product-single #customer_details .woocommerce-billing-fields > h3{font-size:0}
body.wcopc-product-single #customer_details .woocommerce-billing-fields > h3:after {    content: '訂購人資料';    font-size: 18px;}
body.wcopc-product-single.single-product header .woodmart-shopping-cart{display:none;}
body.wcopc-product-single #customer_details .woocommerce-billing-fields{margin-top:0;}

body.wcopc-product-single .poduct-tabs-inner>div:not(:last-child){margin-bottom: 0;}
body.wcopc-product-single .opc_cart_item .product-quantity{width: 3em;}

body.wcopc-product-single .scrollToTop{bottom:115px;}
body.wcopc-product-single #order_review table.woocommerce-checkout-review-order-table tr > *:last-child{ padding-left:10%; }
body.wcopc-product-single form.woocommerce-form-login{ max-width:100%; }

body.wcopc-product-single #login-notice{ border: 3px dotted #83b735;    padding: 50px 10px; }
body.wcopc-product-single #login-notice h4{ color:#83b735; }
body.wcopc-product-single #login-notice .action{ display: flex;    flex-wrap: wrap;    justify-content: center; }
body.wcopc-product-single #login-notice .action a{ margin: 20px 15px 0;    background-color: #83b735;    color: #fff;    border-radius: 5rem;    padding: .8rem 2.2rem; }

body.wcopc-product-single #sgi-popup-box #customer_login .col-md-6{ -ms-flex: 0 0 100%;    flex: 0 0 100%;    max-width: 100%; }
body.wcopc-product-single #sgi-popup-box #customer_login{ margin:0; }
body.wcopc-product-single #sgi-popup-box .box-inner{ justify-content: center; }
#sgi-popup-box.login-form .box-inner > *:not(#sgi-login-form):not(.box-header){display:none;}

body.wcopc-product-single #sgi-popup-box h2.wd-login-title,
body.wcopc-product-single #sgi-popup-box .col-register-text{display:none;}
body.wcopc-product-single #sgi_tabs{ padding-bottom: 0;    display: grid;    grid-template-columns: 50% 50%; }
body.wcopc-product-single #sgi_tabs a { background-color: #ff5722;    color: #fff;    font-size: 15px;    letter-spacing: 3px; }
body.wcopc-product-single #sgi_tabs a:first-child{ border-right:1px solid #ffffff; }
#sgi-popup-box.login-form .box-inner{ max-width: 600px; height:auto; }
#sgi-popup-box #customer_login .col-md-6:not(#sgi_tabs){ padding: 0 ; }
#sgi-popup-box #customer_login form{     padding-top: 25px;    padding-right: 40px;    padding-bottom: 25px;    padding-left: 40px;    border: 1px solid #ececec;    margin: 0 40px;    border-top: unset; }

body.wcopc-product-single .woodmart-sticky-btn-cart > *:not(.sgi-sticky-add-to-cart){display:none;}
body.wcopc-product-single a.sgi-sticky-add-to-cart{background-color:#83b735; color: #fff;   border-bottom: 2px solid #80847b;}


@media(max-width:979px){
    body.wcopc-product-single #customer_details .woocommerce-billing-fields > h3:after{font-size: 16px;   color: #666;}
    
    body.wcopc-product-single th.product-name .product-quantity{display:none;}
    body.wcopc-product-single .opc_cart_item .product-quantity{width: 100%;   margin-top: 15px;}
    
    body.wcopc-product-single #order_review table.woocommerce-checkout-review-order-table tr > *:last-child{ padding-left:0; }
    
    body.wcopc-product-single a.sgi-sticky-add-to-cart{ border-bottom:unset; }
    
    #sgi-popup-box #sgi-login-form .woodmart-registration-page{ padding-top: 20px;    padding-bottom: 20px; }
}

@media(max-width:767px){
    body.wcopc-product-single #login-notice h4{ line-height:1.8; }
    body.wcopc-product-single #login-notice{ padding: 30px; }
    body.wcopc-product-single #login-notice .action a{ padding: .8rem 2rem; }
    
    body.wcopc-product-single.sgi_hide_header #sgi-popup-box.login-form .box-inner{ top: 10vh!important; }
    body.wcopc-product-single #sgi-popup-box.login-form .box-inner{ top: 20vh!important;    height: auto;    padding: 0; border-radius: 0;}
    body.wcopc-product-single #sgi-popup-box span.register-or.wood-login-divider{     margin: 10px 0 20px; } 

    body.wcopc-product-single a.sgi-sticky-add-to-cart{ width:100%; }
    
    #sgi-popup-box.login-form .box-header{ display:none; }
    #sgi-popup-box #sgi-login-form .woodmart-registration-page{padding:0;}
    #sgi-popup-box #customer_login form{ padding: 25px 0 ; margin:0 30px; border:unset; }
    #sgi-popup-box #customer_login .col-md-6{padding:0;}
}

/*product pop up box*/
body.single-product .site-content > .wd-action-btn ,
.mfp-with-anim.popup-quick-view .wd-quick-view-btn,
body.wcopc-product-single.wcopc-product-single .woodmart-close-side,
body.wcopc-product-single.wcopc-product-single .cart-widget-side,
body.wcopc-product-single.wcopc-product-single .mfp-with-anim.popup-quick-view .view-details-btn{display:none!important;}
body.wcopc-product-single.wcopc-product-single .mfp-with-anim.popup-quick-view .col-lg-6 {    -ms-flex: 0 0 50%;    flex: 0 0 50%;    max-width: 50%;}


@media(max-width:767px){
    body.wcopc-product-single .mfp-with-anim.popup-quick-view .col-lg-6 {    -ms-flex: 0 0 100%;    flex: 0 0 100%;    max-width: 100%; padding: 0;}
    body.wcopc-product-single .mfp-with-anim.popup-quick-view .woocommerce-product-details__short-description,
    body.wcopc-product-single .mfp-with-anim.popup-quick-view .product_meta{display:none;}
    
    body.wcopc-product-single .popup-quick-view .product-image-summary{height:auto; margin: 0;}
    body.wcopc-product-single .popup-quick-view .woodmart-scroll-content:after{height:0; }
    body.wcopc-product-single .mfp-with-anim.popup-quick-view{ width: 95%; border-radius: 1rem;  }
    body.wcopc-product-single .quick-view-wrapper.mfp-wrap{ top: 0!important;    position: fixed!important; }
    body.wcopc-product-single .mfp-with-anim.popup-quick-view .product-images img{ height: 38vh;  object-fit: contain; }
    body.wcopc-product-single .mfp-with-anim.popup-quick-view .price{ font-size:16px; }
    body.wcopc-product-single .mfp-with-anim.popup-quick-view .product-image-summary .cart{margin:0;}
    body.wcopc-product-single .mfp-with-anim.popup-quick-view .woodmart-scroll-content{ padding: 20px 30px; }
    body.wcopc-product-single .mfp-with-anim.popup-quick-view .woocommerce-variation-add-to-cart{ display: grid;    grid-template-columns: 35% 65%; }
}

/*sy*/
body.wcopc-product-single .row.product-image-summary-inner{display: flex;justify-content: center;align-items: center;flex-direction: column;}
body.wcopc-product-single .tabs.wc-tabs,
body.wcopc-product-single #payment > div{display:none!important;}
body.wcopc-product-single .product-tabs-wrapper{text-align:center;  }
body.wcopc-product-single .checkout{display: flex;justify-content: center;align-items: center;flex-direction: column;}
body.wcopc-product-single .checkout > .col-md-5{ order:9; }
body.wcopc-product-single  label{text-align:left;}
body.wcopc-product-single #reviews{display:none!important;}
body.wcopc-product-single .product-tabs-wrapper{border:none!important;}
body.wcopc-product-single ul.wc_payment_methods{text-align:left;}
body.wcopc-product-single .woocommerce-terms-and-conditions-wrapper{text-align:left;}

body.wcopc-product-single form.woocommerce-checkout.no-products{display:none!important;}

body.wcopc-product-single .single-product-page.single-product-content{max-width:700px; margin: auto; padding-top: 70px; background-color: #fff;}
body.wcopc-product-single .single-product-content .col-lg-6{ -ms-flex: 0 0 100%;    flex: 0 0 100%;    max-width: 100%; }
body.wcopc-product-single .woodmart-sticky-btn-cart >form.cart{ margin-left: 10px; }
body.single-product.wcopc-product-single .woocommerce-tabs.wc-tabs-wrapper.tabs-layout-tabs:after,
body.single-product.wcopc-product-single #reviews:after{  width: 100%; left:0; }

body.wcopc-product-single.sgi_hide_header header,
body.wcopc-product-single.sgi_hide_header .single-breadcrumbs-wrapper{display:none!important;}
body.wcopc-product-single.sgi_hide_header .main-page-wrapper{padding-top:0; background-image: radial-gradient(at right bottom, rgba(0,89,255,0.1) 0%, rgba(0,89,255,0.01) 100%);}

@media(max-width:767px){
    body.wcopc-product-single .single-product-page.single-product-content{ padding-top:0; }
}

/*******wcm*********/
#wcm_limit_content{min-height: 75vh; display: flex;    flex-wrap: wrap;    align-items: center;    justify-content: center;    text-align: center;}
#wcm_limit_content .wrap_inner>i{font-size: 3em;    margin-bottom: 22px;    color: #e0b252;}
#wcm_limit_content .wrap_inner{max-width: 100%;    width: 45em;    padding: 5em;}
#wcm_limit_content .actions{margin-top: 3em;}
#wcm_limit_content .actions a{transition: .3s;    margin: 0 16px;    padding: .6em 1.6em;    border: 1px solid;    border-radius: 5em;}
#wcm_limit_content .actions a:hover {    background-color: #3f3f3f;    color: #fff;}
body .woocommerce.wc-memberships.admin-restricted-content-notice{ background-color:#004d8b; }


.woocommerce div.wc-memberships-restriction-message{margin:0!important;}

body.single-post #wcm_limit_content{min-height: 50vh;}
article.type-post:not(.post-single-page) #wcm_limit_content .wrap_inner >*:not(p),
article.type-post:not(.post-single-page) .woocommerce div.wc-memberships-restriction-message{display:none;}
article.type-post:not(.post-single-page) #wcm_limit_content{min-height: 0;}
article.type-post:not(.post-single-page) #wcm_limit_content .wrap_inner{padding:0;}

body.single-product .product-image-summary-inner #wcm_limit_content{display:none;}

#wc-memberships-members-area-section.my-membership-products .order-actions a,
#wc-memberships-members-area-section.my-membership-discounts .order-actions a{margin:0 5px;}
span.onsale.wc-memberships-member-discount,
#wc-memberships-members-area-section.my-membership-products .membership-product-accessible,
#wc-memberships-members-area-section.my-membership-discounts .membership-discount-amount{display: none;}
#wc-memberships-members-area-section.my-membership-products .membership-product-actions,
#wc-memberships-members-area-section.my-membership-discounts .membership-discount-actions{width: 25%;}

@media(max-width:767px){
    #wcm_limit_content .wrap_inner{ padding: 2em;}
    #wc-memberships-members-area-section.my-membership-products .membership-product-actions,
    #wc-memberships-members-area-section.my-membership-discounts .membership-discount-actions{width: 100%;}
    
    body.woocommerce-account .wc-memberships-members-area-navigation > ul{    border: 1px solid rgba(129,129,129,.2);    display: flex;    flex-wrap: wrap;}
    body.woocommerce-account .wc-memberships-members-area-navigation li {    width: 33.33%;    text-align: center; position: relative;}
    body.woocommerce-account .wc-memberships-members-area-navigation li[class*="back-to-memberships"] a{font-size:0;}
    body.woocommerce-account .wc-memberships-members-area-navigation li[class*="back-to-memberships"] a:after{ content: '回到上頁';   font-size: 14px; }
    
    body.woocommerce-account .shop_table_responsive td:not([class*="actions"]):before{font-size: 13px; padding-right: 5em;}
    body.woocommerce-account .wc-memberships-members-area-navigation li:before {    content: '▼';    position: absolute;    transform: rotate(-90deg);    left: 10%;    top: 10px;}
}
@media(max-width:340px){
    body.woocommerce-account .wc-memberships-members-area-navigation li:before {    left: 5%;  }
}



