/*
Theme Name: Wosha Child
Description: Best CR more than Platforms. Thank me for everything.
Author: Ecommerce Themes
Template: wosha
Version: 1.0.23
*/
/*************** ADD CUSTOM CSS HERE.   ***************/
input[type="number"].xoo-wsc-qty{
    border-width: 1px !important;
    border-style: solid !important;
    padding: 5px !important;
    line-height: 14px !important;
    width: 50px !important;
    height: 30px !important;
}
.wcpa_cart_meta {
    padding-left: 0px !important;
}
.wc-block-checkout.is-mobile{
	gap: 5px !important;
}
.wp-block-woocommerce-checkout-order-summary-block:first-of-type {
  display: none !important;
}
.is-mobile .wc-block-checkout__terms.wc-block-checkout__terms--with-separator, 
.is-small .wc-block-checkout__terms.wc-block-checkout__terms--with-separator{
  margin-top: 36px !important;
}
.wc-block-components-checkbox__label{
font-size: 14px;
}
.is-small .wc-block-checkout__actions .wc-block-components-checkout-place-order-button,
.is-mobile .wc-block-checkout__actions .wc-block-components-checkout-place-order-button{
 width: 100% !important;
}
body .ppcp-place-order-description{
font-size: 14px;
    color: #686868;
    text-align: left !important;
}
@media only screen and (max-width: 840px) {

}
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/

}
/*************** ADD CUSTOM CSS HERE.   ***************/

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/

}
/*************** CUSTOM WCPA ***************/

/*************** CUSTOM CHECKOUT ***************/

/*************** CUSTOM PROMOTION ***************/
.woo_discount_rules_table tr {
    z-index: 15;
    width: 100%;
    height: 50px;
    padding: 0 8px;
    background: #ffffff;
    border-radius: 8px;
    border: none;
    display: table;
    margin-bottom: 5px;
	border: 1px solid #bcbcbc !important;
}
.woo_discount_rules_table tr td {
    padding: 15px 8px;
    border: none;
    font-size: 12px;
}
.promo-label {
    font-weight: bold;
    font-size: 14px;
    background: #4bf280 !important;
    color: #383838;
    padding: 4px 5px;
    min-width: 75px;
    display: inline-block;
    text-align: center;
    border-radius: 0px;
}
.discount-item-title {
    color: #000000;
    font-weight: bold;
    line-height: 20px;
    text-align: left;
	display: block;
}
.quantity__discount--button a {
    display: block;
    text-align: center;
    background: #fff;
    padding: 10px 10px;
    color: #000;
    border-radius: 6px;
    min-width: 100px;
    font-weight: bold;
    font-size: 0.85rem;
    border: 2px solid #000;
}
.quantity__discount--button a:hover{
	color: #ffffff;
	background: #000;
}
.discount-item-text{
	margin-bottom: 10px;
}
div.product table.variations td, div.product table.variations th {
    display: list-item;
    padding: 0;
    background-color: transparent;
    list-style: none;
	border: none;
}
/* Upload */
.wc-pao-addon-file-upload{
	padding: 10px 5px;
    border: 1px solid #ddd;
    cursor: pointer;
    border-radius: 4px;
	border-style: dashed;
}
.wc-pao-addon-wrap small{
	display: none;
}
.wc-pao-addon .form-row{
	margin-bottom: 0px;
}
/* Size Chart */
/* 1. Ẩn radio inputs */
.size-switcher input[type="radio"] {
  display: none;
}

/* 2. Container cho 2 nút toggle */
.size-switcher-handle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0rem;
  overflow-x: auto;
  width: 100%;
}

/* 3. Style chung cho labels (nút) */
.size-switcher-handle label {
  flex: none;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border: 1px solid var(--wp--preset--color--gray-500);
  background: #fafafa;
  border-radius: var(--wp--preset--spacing--8);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

/* 4. Style khi được chọn */
#men-toggle:checked ~ .size-switcher-handle label[for="men-toggle"],
#women-toggle:checked ~ .size-switcher-handle label[for="women-toggle"] {
  background: var(--wp--preset--color--primary-500);
  color: #fff;
  border-color: var(--wp--preset--color--primary-500);
}

/* 5. Ẩn/hiện bảng nội dung */
.size-content {
  display: none;
  width: 100%;
  overflow-x: auto;
  margin: 0 auto;
}
#men-toggle:checked ~ .size-content.men,
#women-toggle:checked ~ .size-content.women {
  display: block;
}

/* 6. Tinh chỉnh bảng */
.size-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.size-content th,
.size-content td {
  border: 1px solid #eee;
  padding: 0.4rem;
  text-align: center;
}
.size-content th {
  background: #f7f7f7;
  font-weight: 600;
}
.size-content td h3 strong,
.size-content td h3{
    font-size: 1rem;
    margin: 0.5rem 0rem;
}
/* 7. Desktop tweaks */
@media (min-width: 768px) {
  .size-switcher-handle {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  .size-switcher-handle label {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
  }
  .size-content table {
    font-size: 1rem;
  }
}
.single_add_to_cart_button.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.single_add_to_cart_button.loading::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

