/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.3
 Text Domain:  woodmart-child
*/

.blog-design-masonry .wd-post-excerpt.entry-content {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-design-masonry .wd-post .wd-post-title {
  font-size: 20px;
}

.products .product-image-link,
.products .product-grid-item .product-thumbnail,
.products .product-image img,
.product-image-link img,
.compare-value .product-image img,
.product-image-link img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  height: auto;
}

.checkout.woocommerce-checkout .optional {
  position: relative;
  top: 0px;
  font-size: 0.8em;
}

h2.wd-login-title {
  text-align: center;
}

/* 详情页弹窗 */
.ks-modal-description {
  max-width: 100%;
  overflow-y: auto;
  max-height: 450px;
  -webkit-overflow-scrolling: touch;
}

.ks-modal-description table {
  display: table !important;
  margin: 0;
  table-layout: auto;
  width: 100%;
}

.ks-modal-description tbody {
  display: table-row-group !important;
}

.ks-modal-description tr {
  display: table-row !important;
  width: auto !important;
}

.ks-modal-description td {
  display: table-cell !important;
  width: auto !important;
}

.ks-table-header-cell {
  vertical-align: middle;
}

.ks-table-row td.ks-table-cell {
  background-color: inherit !important;
  background: inherit !important;
  vertical-align: middle;
}

.ks-table-row td.ks-vertical-cell {
  text-align: center;
  vertical-align: middle;
  width: 37px !important;
}

.ks-table-row td.ks-vertical-cell div {
  transform: rotate(180deg);
  -webkit-writing-mode: vertical-rl;
  -moz-writing-mode: vertical-rl;
  -o-writing-mode: vertical-rl;
  writing-mode: vertical-rl;
}

@media (max-width: 768px) {
  .ks-table .ks-table-row td.ks-vertical-cell {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

.ks-table-row td.ks-hidden-cell {
  border: none !important;
}

.ks-table td:after,
.ks-table th:after {
  border: none !important;
  content: none !important;
}

.ks-modal-description table {
  border-collapse: collapse;
}

.ks-modal-description table,
.ks-modal-description td,
.ks-modal-description th {
  border-style: solid;
  border-width: 1px;
  border-color: #e8e9eb;
}

.ks-table tr:first-child td.ks-table-header-cell {
  font-weight: 700 !important;
  font-style: normal;
  text-transform: uppercase;
  color: #000;
}

.ks-table tr td.ks-table-header-cell:first-child {
  font-weight: 700 !important;
  font-style: normal;
  text-transform: uppercase;
  color: #000;
}

.custom-size-chart-modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 20px;
}

.custom-size-chart-content {
  background: #fff;
  padding: 20px;
  max-width: 600px;
  width: 100%;
  border-radius: 8px;
  position: relative;
  box-sizing: border-box;
}

.custom-size-chart-close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
  color: #333;
}

.custom-size-chart-btn {
  display: inline-block;
  margin-bottom: 15px;
  padding: 8px 16px;
  font-size: 14px;
  color: #333;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.custom-size-chart-btn:hover {
  background: #555;
  color: #fff;
}

/* 自定义 header */
.ks-modal-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding-top: 13px !important;
  padding-bottom: 13px !important;
  border-bottom: 1px solid #000;
  justify-content: center;
}

.ks-modal-logo img {
  width: 50px;
  height: auto;
  margin-right: 10px;
}

.modal-title-header {
  color: #333;
  font-weight: 700;
  font-style: normal;
  font-size: 17px;
  font-family: inherit !important;
}

.modal-title-sub-header {
  font-size: 14px;
  color: #888;
}

/* 手机端适配 */
@media (max-width: 767px) {
  .custom-size-chart-content {
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 15px;
    font-size: 14px;
  }

  .custom-size-chart-close {
    top: 5px;
    right: 10px;
    font-size: 36px;
  }

  .custom-size-chart-btn {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
  }

  .ks-modal-logo img {
    width: 40px;
    margin-right: 8px;
  }

  .modal-title-header {
    font-size: 15px;
  }

  .modal-title-sub-header {
    font-size: 13px;
  }
}

.Products-Price .price {
  line-height: revert !important;
}
.Products-SKU {
  display: flex;
  align-items: center;
  justify-content: center;
}
@media screen and (min-width: 1024px) {
  #wd-b811a2ca .wd-carousel-inner .wd-carousel-wrap {
    justify-content: center;
  }
}

.wd-copyrights.wd-layout-two-columns > .wd-grid-g {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.woocommerce-checkout-review-order-table
  tfoot
  .woocommerce-shipping-totals.shipping {
  align-items: normal;
}

.woocommerce-checkout-review-order-table
  tfoot
  .woocommerce-shipping-totals.shipping
  th {
  padding: 15px 0px;
}

.woocommerce-checkout-review-order-table
  tfoot
  .woocommerce-shipping-totals.shipping
  td {
  padding: 15px 0px;
}

.rank-label-img img {
  width: 18%;
  margin-bottom: -8px;
}

.woocommerce-order-details .shipped_via {
  display: none !important;
}

[class*="wd-swatches"].wd-text-style-2 .wd-swatch.wd-text.wd-active {
  background-color: #000;
  color: #fff;
  margin: 0.5rem 0.3rem 0.1rem 0;
  padding: 0.8rem 1rem;
}

[class*="wd-swatches"].wd-text-style-2 .wd-swatch.wd-text {
  margin: 0.5rem 0.3rem 0.1rem 0;
  padding: 0.8rem 1rem;
}

.wd-visits-count:not(.wd-with-icon) .wd-info-icon:before {
  content: "\f11a";
  font-family: "woodmart-font";
}

.wd-single-visitor-count:has(.wd-hide) {
  display: none;
}

.wd-single-add-cart tr {
  display: flex;
  flex-direction: column;
}

table.variations label:after {
  content: "" !important;
}

.wd-swatch.wd-disabled {
  pointer-events: auto !important;
}
@media (max-width: 1024px) {
  .wd-copyrights.wd-layout-two-columns > .wd-grid-g {
    justify-content: center;
  }
}

#google_translate_element {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

body {
  position: initial !important;
  min-height: auto !important;
  top: 0 !important;
}

.skiptranslate,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf {
  display: none !important;
}
.language-currency {
  display: flex;
}

.language-selector .language-list {
  position: absolute;
}

.language-selector {
  position: relative;
  display: inline-block;
  margin-right: 10px;
}

.language-button {
  padding: 8px 12px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
}

.language-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 10%;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 999;
  list-style: none;
  padding: 0;
  margin: auto 0;
  width: 80%;
  text-align: center;
}

.language-list li {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 16px;
  background-color: #fff;
  border: none;
}

.language-list li:hover {
  background-color: #f0f0f0;
}

.language-button svg {
  margin-left: 8px;
  fill: #666;
}

.mobile-nav .language-selector {
  display: flex;
  align-items: center;
  justify-content: center;
}

[class*="wd-swatches"].wd-text-style-2 .wd-swatch.wd-text {
  margin: 0.2rem 0.1rem 0.1rem 0;
  padding: 0.5rem 0.8rem;
}

@media (max-width: 768.98px) {
  .woocommerce-ordering.wd-ordering-mb-icon select option {
    font-size: 14px;
    color: #000000;
  }
}

.payment_method_oceancreditcardonepage #op-payment-icons img {
  display: none !important;
}

.payment_method_oceancreditcardonepage #op-payment-icons::after {
  content: "";
  display: block;
  height: 40px;
  background-image: url("/wp-content/themes/woodmart-child/images/payment_method_credit_card.png");
  background-size: contain;
  background-repeat: no-repeat;
  margin-top: 10px;
}

.payment_method_konbini label img {
  display: none !important;
}

.payment_method_konbini label::after {
  content: "";
  display: inline-block;
  width: 76%;
  height: 40px;
  margin-left: 8px;
  background: url("/wp-content/themes/woodmart-child/images/payment_method_konbini.png")
    no-repeat;
  background-size: contain;
  vertical-align: middle;
}

/* .payment_method_cod label::after {
  content: "";
  display: inline-block;
  width: 76%;
  height: 40px;
  margin-left: 8px;
  background: url("/wp-content/themes/woodmart-child/images/payment_method_cod.jpg")
    no-repeat;
  background-size: contain;
  vertical-align: middle;
} */

#wd-cbc4d2d8 .wd-post-thumb img {
  height: 211px;
  object-fit: cover;
}

#order_review .product-total .shipped_via {
  display: none;
}

@media (min-width: 768px) {
  .wd-ce04580-S .wd-carousel-wrap {
    justify-content: center;
  }
}

.ProductSizeSpecification .wd-single-content > .prodect-features {
  display: none !important;
}
.ProductSizeSpecification .wd-single-content > :not(.prodect-features) {
  display: block !important;
}

.ProductDetails .wd-accordion-content .wd-single-content > .prodect-features {
  display: block !important;
}
.ProductDetails
  .wd-accordion-content
  .wd-single-content
  > :not(.prodect-features) {
  display: none !important;
}

.input-limit-notice {
  color: #e02020 !important;
  font-size: 12px;
  margin-top: 4px;
}

.wd-blog-element .wd-post-thumb img {
  width: 100%;
  object-fit: cover;
}
#wd-80f77562 .wd-single-sold-count {
  display: none !important;
}
.wd-sold-count {
  margin-bottom: 10px;
}
.wd-sold-count .wd-info-number {
  font-weight: bold;
}
#wd-80f77562 .wd-product-info.wd-sold-count {
  padding: 0px 20px;
}

#menu-item-37195,
#menu-item-50564,
#menu-item-51146,
#menu-item-57909,
#menu-item-70503 {
  background-color: #f2f2f2;
  color: #a0a0a0;
}

.mobile-nav {
  display: flex !important;
  flex-direction: column;
  padding-top: 0 !important;
}

.mobile-nav .widgetarea-mobile {
  order: -1 !important;
  width: 100%;
  margin-bottom: 0px;
  background: #fff;
  z-index: 10;
  padding: 10px;
  border-bottom: 1px solid #f3f1ec;
  display: contents;
}

.mobile-nav .wd-search-form {
  order: 1 !important;
  padding: 10px;
  border-bottom: 1px solid #f3f1ec;
}

.mobile-nav .wd-nav-mobile {
  order: 2 !important;
}

.mobile-nav .language-selector {
  order: 101 !important;
  padding-bottom: 20px;
}

.mobile-nav .widgetarea-mobile .wp-block-wd-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5px;
}
.mobile-nav .widgetarea-mobile .wp-block-wd-column {
  flex: 1;
  width: auto !important;
  text-align: center;
  margin-bottom: 0 !important;
}
.mobile-nav .widgetarea-mobile img {
  max-width: 24px;
  height: auto;
  margin: 0 auto 5px;
  display: block;
}
.mobile-nav .widgetarea-mobile h2.title {
  font-size: 11px !important;
  margin: 0;
  font-weight: normal;
}
.mobile-nav .searchform input[type="text"] {
  height: 40px !important;
}
.mobile-nav .searchform {
  box-shadow: none !important;
  border: 1px solid #ccc;
}
#woodmart-html-block-2 {
  margin-bottom: 0px !important;
  padding-bottom: 0px !important;
  padding: 10px;
}

#block-8 {
  order: 100 !important;
  padding: 10px;
}

#menu-item-50564 a,
#menu-item-51146 a,
#menu-item-57909 a,
#menu-item-70503 a {
  line-height: 1;
  padding: 5px 10px;
  min-height: 35px;
  border-bottom: 0;
}
#menu-item-36685 a {
  border-bottom: 0;
}
#wd-e9ff2ed8,
#wd-5a18bced,
#wd-60a33ab7,
#wd-6bfd58ec {
  --wd-row-gap: none !important;
}
#wd-d4ce29df,
#wd-87dff883,
#wd-6ac44bfb,
#wd-a4c2c90f {
  font-size: 13px !important;
}
.mobile-nav .searchform input[type="text"] {
  font-size: 12px !important;
}

.wd-shipping-progress-bar.wd-style-bordered .wd-free-progress-bar {
  padding: 10px;
}

@media (max-width: 768.98px) {
  .header-banner-container.header-banner-container {
    padding-inline: 20px;
  }
}

.social-instagram.social-instagram {
  --wd-social-brand-color: #f9b92b;
  --wd-social-icon: "\f163";
}

.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.grecaptcha-badge {
  visibility: hidden;
}

.wd-accordion.wd-style-default
  > .wd-accordion-item:has(.wd-accordion-content.wd-active) {
  border-bottom: none !important;
}
/* 0401 */
.ins a:nth-child(2) {
  --wd-social-brand-color: #c2a847 !important;
}
.woocommerce-additional-fields h3 {
  display: none !important;
}

/* 0417 */
/* chubaby */
.chubaby_product_css
  .woocommerce-product-gallery__wrapper
  .wd-carousel-wrap
  .woocommerce-product-gallery__image,
.babynippon_css
  .woocommerce-product-gallery__wrapper
  .wd-carousel-wrap
  .woocommerce-product-gallery__image {
  display: flex;
  flex-direction: column;
  justify-content: center;
  aspect-ratio: 1 / 1;
}
.chubaby_product_css
  .wd-carousel-container.wd-gallery-thumb
  .wd-carousel-item
  img,
.babynippon_css .wd-carousel-container.wd-gallery-thumb .wd-carousel-item img {
  object-fit: cover;
  aspect-ratio: 1 / 1;
}
/* bebihome */
.bebihome_product_css .wd-carousel-item {
  aspect-ratio: 7 / 8 !important;
  overflow: hidden;
}
.bebihome_product_css .wd-carousel-item figure,
.bebihome_product_css .wd-carousel-item .woocommerce-product-gallery__image,
.bebihome_product_css .wd-carousel-item a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.bebihome_product_css .wd-carousel-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}
@media (min-width: 1025px) {
  .bebihome_product_css
    .thumbs-position-left
    .wd-gallery-thumb
    .wd-carousel-item {
    margin-bottom: 10px;
  }
}

/* 0512 */
.babynippon_buynow .single_add_to_cart_button.button.alt {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #000000 !important;
  text-transform: none;
}
.babynippon_buynow .single_add_to_cart_button.button.alt:hover {
  background-color: #000000 !important;
  color: #ffffff !important;
}
.babynippon_share .social-instagram {
  background: url(/wp-content/uploads/2026/05/ins@2xn.png) no-repeat !important;
  width: 30px;
  height: 30px;
  background-size: 100% auto !important;
}
.babynippon_share .social-instagram .wd-icon {
  display: none !important;
}

.kids_table_0511 .prodect-features .p-f-item p {
  display: inline;
  margin: 0;
  padding: 0;
}

.kids_table_0511 .prodect-features .p-f-item p:not(:last-child):after {
  content: " / ";
  margin: 0 4px;
}

.babynippon_cart_right_css .custom-size-chart-wrapper {
  display: none;
}
#menu-mobile-navigation .nav-link-text {
  font-weight: 400;
}
.babynippon_footer_tiem {
  font-size: 13px !important;
}
.babynippon_cart_right_css table.variations tr:first-child .cell,
.chubaby_cart_right_css table.variations tr:first-child .cell,
.bebihome_cart_right_css table.variations tr:first-child .cell {
  padding-bottom: 0px !important;
}
.babynippon_cart_right_css table.variations tr:first-child,
.chubaby_cart_right_css table.variations tr:first-child,
.bebihome_cart_right_css table.variations tr:first-child {
  padding-bottom: 20px !important;
}

/* 隐藏规格标题旁边显示的选中值名称（如：ホワイト、120cm） */
.variations .wd-attr-selected {
  display: none !important;
}

.babynippon_cart_right_css .woocs_price_code,
.chubaby_cart_right_css .woocs_price_code,
.bebihome_cart_right_css .woocs_price_code {
  font-size: 18px;
}
.babynippon_cart_right_css .woocs_price_code ins,
.chubaby_cart_right_css .woocs_price_code ins,
.bebihome_cart_right_css .woocs_price_code ins {
  font-size: 30px;
  margin-left: 2px;
}
@media (max-width: 768.98px) {
  .babynippon_cart_right_css .woocs_price_code ins,
  .chubaby_cart_right_css .woocs_price_code ins,
  .bebihome_cart_right_css .woocs_price_code ins {
    font-size: 24px !important;
  }
  .babynippon_cart_right_css .woocs_price_code,
  .chubaby_cart_right_css .woocs_price_code,
  .bebihome_cart_right_css .woocs_price_code {
    font-size: 16px !important;
  }
}

/*隐藏搜索页面包屑里文字链接 隐藏它们之间的斜杠/箭头分隔符 */
body.search-results .wd-breadcrumbs a,
body.search-results .wd-breadcrumbs .wd-delimiter {
  display: none !important;
}

.rank-math-breadcrumb a {
  font-weight: 600;
}

.rank-math-breadcrumb p {
  margin-bottom: unset;
}

#payment .wc_payment_method .input-radio {
  display: unset !important;
}

.woocommerce-cart-form .wd-fg {
  padding: 10px;
  border: 2px dashed var(--brdcolor-gray-300);
  border-radius: var(--wd-brd-radius);
}
.woocommerce-cart-form .wd-fg-table {
  height: 400px;
  overflow: scroll;
  background: url("/wp-content/themes/woodmart-child/images/payment_method_konbini.png")
    no-repeat center center;
  background-size: cover;
}
