/* استایل‌های بخش انتخاب افزودنی‌ها در صفحه محصول */
.lw-cpa-addon-container {
    margin-bottom: 20px;
    border-radius: 8px;
    position: relative;
    width: 100%;
    display: inline-block;
    background: #fff;
    padding: 20px 15px;
}
.lw-cpa-label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 14px;
}
.lw-cpa-label input[type="checkbox"] {
    margin-left: 8px;display: none;
}
.lw-cpa-total-box {
    font-family: Num-Medium, sans-serif;
    font-weight: normal !important;
    float: left;
	margin-top: 15px;  font-size: 18px;
    width: 100%;
    border-top: 2px dashed #F6F6F8;
    padding-top: 10px;
    text-align: left;
}
.total-txt{float: right;
    font-family: Num-Medium, sans-serif;
    font-weight: normal !important;
font-size: 16px;
}

/* استایل‌های مربوط به زیباسازی variation در سبد خرید و تسویه حساب */
dl.variation {
   grid-template-columns: auto 1fr;
  gap: 5px 10px;   
display: grid;
}
dl.variation p {
  margin: 0;
  font-size: 12px;
  color: #000;
  text-align: left;
}
dl.variation dt {
color: #888;
  font-weight: normal !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: right;
  font-size: 12px;
}
dl.variation dd {
margin: 0;
  text-align: left;
  line-height: 20px !important;
}
/* ردیف جمع کل */
dl.variation dt:last-of-type,
dl.variation dd:last-of-type {
    color: #888;
    font-weight: normal !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: right;
    font-size: 12px;
}
/* مخفی کردن قیمت اصلی ووکامرس در بخش آیتم‌های سبد خرید برای جلوگیری از شلوغی */
.product-price > .woocommerce-Price-amount {
    display: none !important;
}

/* مخفی کردن چک‌باکس اصلی */
.lw-cpa-checkbox {
    display: none; 
}

/* استایل لیبل نگهدارنده */
.lw-cpa-label {
    display: inline-flex; 
    align-items: center;
    margin-bottom: 5px; 
    cursor: pointer;
    font-size: 16px;
    color: #888;
    user-select: none;
    width: 100%;
    font-weight: normal !important;
    font-family: Num-Light, sans-serif;
    line-height: 15px;
}

/* استایل پس‌زمینه اسلایدر (سوئیچ) */
.lw-cpa-switch {
    position: relative;
    width: 42px;
    min-width: 42px;
    height: 22px;
    background-color: #ccc;
    border-radius: 30px;
    transition: background-color 0.3s ease;
    margin-left: 15px; /* فاصله از متن در حالت راست‌چین */
    direction: rtl; /* برای عملکرد صحیح انیمیشن چپ به راست */
}

/* استایل دایره (توپی) درون اسلایدر */
.lw-cpa-switch::after {
    content: '';
    position: absolute;
    left: 2px;
    top: 3px;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius:50%;
    transition: transform 0.3s ease;
}

/* استایل وقتی چک‌باکس انتخاب شده است */
.lw-cpa-checkbox:checked + .lw-cpa-switch {
    background-color: #15C502; /* رنگ سبز */
}

.lw-cpa-checkbox:checked + .lw-cpa-switch::after {
    transform: translateX(22px); /* حرکت دایره */
}

/* استایل متن‌ها */
.lw-cpa-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px; /* فاصله بین عنوان و قیمت */
}

.lw-cpa-title {
    font-weight: normal;
    font-family: Num-Light, sans-serif;
    color: #444;
}

.lw-cpa-price {
    font-size: 16px;
    color: #444;
    font-family: Num-Light, sans-serif;
    position: absolute;
    left: 15px;
}

/* وقتی انتخاب شد، رنگ متن کمی تغییر کند (اختیاری) */
.lw-cpa-label.checked .lw-cpa-title {
    color: #15C502;
    font-family: Num-Medium, sans-serif;
}