/*
 * Yoga Booking System - Frontend (Clean Canva) v2.0.21 FINAL (No-Conflict)
 * Scope: فقط داخل .yb-booking-system.yb-ui-canva
 * هدف: حذف کامل کانفیلیکت‌ها + راست‌چین دقیق + یکسان‌سازی دکمه‌ها + چیدمان اسلات‌ها مثل کنوا
 */

:root{
  --yb-bg: #fef7f4;
  --yb-brown: #715148;
  --yb-brown-light: #bc927e;
  --yb-white: #ffffff;
  --yb-border: rgba(188,146,126,0.35);
  --yb-soft: rgba(188,146,126,0.19); /* 19% */
}

/* =========================
   Base wrapper
========================= */
.yb-booking-system.yb-ui-canva{
  background: var(--yb-bg) !important;
  
  padding-top: 70px !important;
  box-sizing: border-box;
padding: 40px 50px !important;
  color: var(--yb-brown) !important;
  font-family: 'Kalameh','KalamehWeb','Kalameh UI','IRANSans','Vazirmatn',sans-serif !important;
  font-size: 24px;
  line-height: 1.2;
  direction: rtl !important;
  text-align: right !important;
}

.yb-booking-system.yb-ui-canva,
.yb-booking-system.yb-ui-canva *{
  box-sizing: border-box;
}

/* پس‌زمینه صفحه (برای جلوگیری از قهوه‌ای شدن والدهای قالب/المنتور) */
body.yb-has-booking-canva,
body.yb-has-booking-canva #page,
body.yb-has-booking-canva #content,
body.yb-has-booking-canva .site,
body.yb-has-booking-canva .site-content,
body.yb-has-booking-canva .content-area,
body.yb-has-booking-canva .entry-content,
body.yb-has-booking-canva main,
body.yb-has-booking-canva article,
body.yb-has-booking-canva .entry-content .elementor,
body.yb-has-booking-canva .entry-content .elementor-section,
body.yb-has-booking-canva .entry-content .elementor-container,
body.yb-has-booking-canva .entry-content .elementor-widget-wrap,
body.yb-has-booking-canva .entry-content .elementor-column{
  background-color: var(--yb-bg) !important;
  background-image: none !important;
}

/* =========================
   Top row: meta 2/3 + dropdown 1/3
========================= */
.yb-booking-system.yb-ui-canva .yb-reserve-top{
  display: flex;
  gap: 16px;
  align-items: flex-end;
  background: transparent !important;
  padding: 0 !important;
  margin-top: 8px;
}

.yb-booking-system.yb-ui-canva .yb-reserve-service{
  flex: 0 0 33.333%;
  max-width: 33.333%;
  text-align: right !important;
  direction:rtl;
}

.yb-booking-system.yb-ui-canva .yb-reserve-label{
  color: var(--yb-brown);
  font-weight: 800;
  margin: 0 0 8px 0;
  font-size: 20px;
  text-align: right !important;
  direction:rtl;
}

/* Dropdown */
.yb-booking-system.yb-ui-canva .yb-service-select{
  width: 100%;
  height: 56px;
  padding: 10px 44px 10px 14px;
  border-radius: 18px;
  border: 2px solid var(--yb-border);
  background-color: var(--yb-white);
  color: var(--yb-brown);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='12' viewBox='0 0 20 12'%3E%3Cpath d='M2 2l8 8 8-8' stroke='%23715148' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 16px 50%;
  direction: rtl;
  text-align: right;
}

/* Meta box (service info) */
.yb-booking-system.yb-ui-canva #yb-service-inline-meta,
.yb-booking-system.yb-ui-canva .yb-reserve-meta{
  flex: 1 1 66.666%;
  max-width: 66.666%;
  min-height: 56px;
  background: var(--yb-soft) !important;
  border-radius: 20px;
  padding: 10px 18px;
  color: var(--yb-brown) !important;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  direction: rtl !important;
  text-align: right !important;
  font-weight: 400;
   justify-content: flex-start !important; /* RTL => سمت راست */
  direction: rtl !important;
}

.yb-booking-system.yb-ui-canva #yb-service-inline-meta *,
.yb-booking-system.yb-ui-canva .yb-reserve-meta *{
  direction: rtl !important;
  text-align: right !important;
  font-weight: 400 !important;
}

/* =========================
   Week calendar: one row, no scroll on desktop
========================= */
.yb-booking-system.yb-ui-canva #yb-week-calendar{
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 0 12px;
  overflow: hidden; /* دسکتاپ بدون اسکرول */
}

/* Nav buttons (هفته قبل/بعد) */
.yb-booking-system.yb-ui-canva .yb-week-nav-btn{
  flex: 0 0 12%;
  height: 100px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 400;
  font-size: 20px;
   background: transparent !important;
  border: none !important;
 color:#715148;
}

.yb-booking-system.yb-ui-canva .yb-week-nav-btn:disabled,
.yb-booking-system.yb-ui-canva .yb-week-nav-btn.is-disabled{
  opacity: .55;
  cursor: not-allowed;
}

/* Day cards */
.yb-booking-system.yb-ui-canva .yb-week-day{
  flex: 1 1 0;
  min-width: 0;
  height: 100px;
  background: var(--yb-white);
  border: 2px solid rgba(188,146,126,0.30);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
  text-align: center;
}

.yb-booking-system.yb-ui-canva .yb-week-day .yb-day-name{
  font-size: 22px;
  font-weight: 700;
  color: var(--yb-brown);
}

.yb-booking-system.yb-ui-canva .yb-week-day .yb-day-date{
  font-size: 20px;
  font-weight: 400;
  color: var(--yb-brown);
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.yb-booking-system.yb-ui-canva .yb-week-day.selected{
  background: rgba(188,146,126,0.25);
  border-color: rgba(188,146,126,0.45);
}
.yb-booking-system.yb-ui-canva .yb-week-day.selected .yb-day-name,
.yb-booking-system.yb-ui-canva .yb-week-day.selected .yb-day-date{
  color: var(--yb-brown) !important;
}

.yb-booking-system.yb-ui-canva .yb-week-day.is-past{
  opacity: .5;
  cursor: not-allowed;
    background: transparent !important;

}

.yb-booking-system.yb-ui-canva .yb-today-badge{
  position: absolute;
  top: 3px;
  right: 8px;
  background: var(--yb-brown);
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 400;
}

/* Divider */
.yb-booking-system.yb-ui-canva .yb-white-divider{
  height: 1px;
  background: rgba(255,255,255,0.95);
  border-radius: 2px;
  margin: 14px 0;
}

/* =========================
   Slots (FINAL layout)
   Right: time | Middle: teacher | Left: button
========================= */
.yb-booking-system.yb-ui-canva #yb-day-slots{ margin-top: 10px; }

.yb-booking-system.yb-ui-canva .yb-slots-list-rows{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Slot container */
.yb-booking-system.yb-ui-canva .yb-slot-item{
  display: grid !important;
  grid-template-columns: 120px 1fr 150px !important; /* time | teacher | button */
  align-items: center !important;
  gap: 14px;
  padding: 20px;
  border-radius: 22px;
  border: 2px solid var(--yb-brown-light);
  background: transparent;
  direction: rtl !important;
}

/* Selected slot background (رنگ‌ها اوکی) */
.yb-booking-system.yb-ui-canva .yb-slot-item.is-selected{
  background: rgba(188,146,126,0.19);
}

/* Time column (right) */
.yb-booking-system.yb-ui-canva .yb-slot-right{
  display: grid !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: right;
  direction: rtl;
}

.yb-booking-system.yb-ui-canva .yb-slot-time{
  font-size: 22px;
  font-weight: 700;
  color: var(--yb-brown);
  line-height: 1.2;
}

.yb-booking-system.yb-ui-canva .yb-slot-duration{
  font-size: 13px;
  font-weight: 400;
  color: rgba(113,81,72,0.85);
  line-height: 1.2;
}

/* Teacher column (middle) */
.yb-booking-system.yb-ui-canva .yb-slot-teacher{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  direction: rtl;
  text-align: right;
    line-height: 1.2;

}

.yb-booking-system.yb-ui-canva .yb-slot-avatar{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 44px;
  background: rgba(113,81,72,0.12);
  display:flex;
  align-items:center;
  justify-content:center;
    line-height: 1.2;

}
.yb-booking-system.yb-ui-canva .yb-slot-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yb-booking-system.yb-ui-canva .yb-slot-teacher-name{
  font-size: 16px;
  font-weight: 600;
  color: var(--yb-brown);
  line-height: 1.2;
  text-align: right;
}
.yb-booking-system.yb-ui-canva .yb-slot-service-name{
  font-size: 13px;
  font-weight: 400;
  color: rgba(113,81,72,0.85);
  line-height: 1.2;
  text-align: right;
}

/* Button column (left) */
.yb-booking-system.yb-ui-canva .yb-slot-left{
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  direction: ltr; /* قیمت سمت چپ دکمه */
}

.yb-slot-price{
  font-weight: 900;
  font-size: 16px;
  color: var(--yb-brown);
  white-space: nowrap;
}

/* Unify ALL button states (رزرو و انتخاب شد) */
.yb-booking-system.yb-ui-canva .yb-slot-left button,
.yb-booking-system.yb-ui-canva .yb-slot-left a,
.yb-booking-system.yb-ui-canva .yb-slot-btn,
.yb-booking-system.yb-ui-canva .yb-slot-btn.is-selected,
.yb-booking-system.yb-ui-canva .yb-slot-btn.yb-selected-badge,
.yb-booking-system.yb-ui-canva .yb-selected-badge,
.yb-booking-system.yb-ui-canva .yb-slot-action{
  width: 140px !important;
  min-width: 140px !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 10px 16px !important;
  border-radius: 18px !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

/* Default (رزرو) */
.yb-booking-system.yb-ui-canva .yb-slot-btn,
.yb-booking-system.yb-ui-canva .yb-slot-action{
  background: var(--yb-brown-light) !important;
  border: 2px solid var(--yb-brown-light) !important;
  color: #ffffff !important;
}

/* Selected (انتخاب شد) */
.yb-booking-system.yb-ui-canva .yb-slot-btn.is-selected,
.yb-booking-system.yb-ui-canva .yb-slot-btn.yb-selected-badge,
.yb-booking-system.yb-ui-canva .yb-selected-badge{
  background: #ffffff !important;
  border: 2px solid #ffffff !important;
  color: #715148 !important;
}

.yb-booking-system.yb-ui-canva .yb-slot-btn:disabled,
.yb-booking-system.yb-ui-canva .yb-slot-action.full{
  opacity: .55 !important;
  cursor: not-allowed !important;
}

/* راست‌چین قطعی متن‌های داخل اسلات */
.yb-booking-system.yb-ui-canva .yb-slot-item *{
  direction: rtl !important;
  text-align: right !important;
}

/* =========================
   Cart bar
========================= */
.yb-booking-system.yb-ui-canva .yb-cart-bar{
  margin-top: 14px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  padding: 0;
}

.yb-booking-system.yb-ui-canva .yb-cart-summary{
  flex: 1;
  background: var(--yb-soft);
  border-radius: 22px;
    font-size: 20px;

  padding: 12px 18px;
  color: var(--yb-brown);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-weight: 400;
  direction: rtl !important;
  text-align: right !important;
   justify-content: flex-start !important; /* RTL => سمت راست */
  
}

.yb-booking-system.yb-ui-canva .yb-cart-summary *{
  direction: rtl !important;
  text-align: right !important;
}

.yb-booking-system.yb-ui-canva .yb-cart-summary .yb-cart-dot{ display:none; }

.yb-booking-system.yb-ui-canva .yb-cart-total,
.yb-booking-system.yb-ui-canva .yb-cart-currency{
  font-size: 16px;
  font-weight: 400;
}

/* Checkout/pay button */
.yb-booking-system.yb-ui-canva .yb-checkout-btn{
  height: 48px;
  border-radius: 18px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 20px;
  background: var(--yb-white);
  color: var(--yb-brown);
  border: 2px solid rgba(188,146,126,0.30);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  direction: rtl;
  width: 180px !important;   /* عدد را بزرگ/کوچک کن */
  min-width: 180px !important;
}

/* =========================
   States: loading/empty/error
========================= */
.yb-booking-system.yb-ui-canva .yb-loading{
  min-height: 120px;
  position: relative;
}
.yb-booking-system.yb-ui-canva .yb-loading:after{
  content:'';
  position:absolute;
  top:50%; left:50%;
  width: 40px; height: 40px;
  border: 3px solid rgba(188,146,126,0.25);
  border-top-color: var(--yb-brown-light);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  animation: ybspin 1s linear infinite;
}
@keyframes ybspin{ to{ transform: translate(-50%,-50%) rotate(360deg);} }

.yb-booking-system.yb-ui-canva .yb-empty-state,
.yb-booking-system.yb-ui-canva .yb-no-slots,
.yb-booking-system.yb-ui-canva .yb-error-message{
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(188,146,126,0.22);
  border-radius: 16px;
  padding: 16px;
  color: var(--yb-brown);
  text-align: right;
  direction: rtl;
}

/* =========================
   Responsive (mobile): allow week scroll
========================= */
@media (max-width: 980px){
  .yb-booking-system.yb-ui-canva{
    padding: 24px 18px !important;
  }

  .yb-booking-system.yb-ui-canva .yb-reserve-top{
    flex-direction: column;
    align-items: stretch;
  }
  .yb-booking-system.yb-ui-canva .yb-reserve-service,
  .yb-booking-system.yb-ui-canva #yb-service-inline-meta,
  .yb-booking-system.yb-ui-canva .yb-reserve-meta{
    max-width: 100%;
    flex: 1 1 auto;
  }

  /* موبایل: برای جا شدن، اسکرول هفته فعال شود */
  .yb-booking-system.yb-ui-canva #yb-week-calendar{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .yb-booking-system.yb-ui-canva .yb-week-day{ min-width: 130px; }
  .yb-booking-system.yb-ui-canva .yb-week-nav-btn{ min-width: 80px; }

  /* اسلات‌ها: در موبایل ستونی */
  .yb-booking-system.yb-ui-canva .yb-slot-item{
    grid-template-columns: 1fr !important;
  }
  .yb-booking-system.yb-ui-canva .yb-slot-left{
    justify-content: flex-end;
  }
}
/* --- Force RTL for service meta text --- */
.yb-booking-system.yb-ui-canva #yb-service-inline-meta,
.yb-booking-system.yb-ui-canva #yb-service-inline-meta *{
  direction: rtl !important;
  text-align: right !important;
  font-size:20px;
  unicode-bidi: plaintext;
}

/* --- Force RTL for selected count/summary text --- */
.yb-booking-system.yb-ui-canva .yb-cart-summary,
.yb-booking-system.yb-ui-canva .yb-cart-summary *{
  direction: rtl !important;
  text-align: right !important;
  unicode-bidi: plaintext;
}

/* --- Fix slot inner alignment (name/job + avatar) --- */
.yb-booking-system.yb-ui-canva .yb-slot-mid,
.yb-booking-system.yb-ui-canva .yb-slot-mid *{
  direction: rtl !important;
  text-align: right !important;
}
.yb-booking-system.yb-ui-canva .yb-slot-teacher-info{
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  text-align: right !important;
}

/* =============================
 * Checkout (مرحله بررسی رزروها)
 * ============================= */
.yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-header{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 18px;
   text-align: right !important;
}

.yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-title{
  font-size: 26px;
  font-weight: 800;
  color: var(--yb-brown);
    justify-content: flex-end;

     text-align: right !important;

}

.yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-slots{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-slot{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 2px solid var(--yb-brown-light);
  background: rgba(255,255,255,0.38);
  direction: rtl;
}

.yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-time{
  width: 120px;
  flex: 0 0 120px;
  text-align: right;
  display: grid;
  flex-direction: column;
  gap: 6px;
}

.yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-date{
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
}

.yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-clock{
  font-size: 16px;
  font-weight: 400;
  opacity: .9;
}

.yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-teacher{
  flex: 1 1 auto;
  display: flex;
  align-items: right;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
}

.yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-teacher .yb-slot-teacher-info{
  min-width: 0;
}

.yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-price{
  width: 120px;
  flex: 0 0 120px;
  text-align: right;
  font-size: 22px;
  font-weight: 700;
    justify-content: flex-start;
      line-height: 1.7;


}

.yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-remove{
  width: 110px;
  flex: 0 0 110px;
  height: 48px;
  border-radius: 18px;
  border: 2px solid rgba(188,146,126,0.35);
  background: var(--yb-white);
  color: var(--yb-brown);
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
}

.yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-remove:disabled{
  opacity: .55;
  cursor: not-allowed;
}

.yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-footer{
  margin-top: 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  direction: rtl;
  text-align: right;
}

.yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-total{
  background: var(--yb-soft);
  border-radius: 22px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  direction: rtl;
  text-align: right;
  font-size: 18px;
  font-weight: 700;
}

.yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-total-val{
  white-space: nowrap;
}

.yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-buttons{
  display: flex;
  gap: 12px;
  flex-direction: row-reverse; /* پرداخت سمت چپ (مثل ووکامرس) */
  direction: rtl;
}

/* موبایل */
@media (max-width: 640px){
  .yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-footer{
    flex-direction: column;
    align-items: stretch;
  }
  .yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-buttons{
    width: 100%;
    justify-content: space-between;
  }
  .yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-btn{
    width: 48% !important;
    min-width: 0 !important;
  }
}


.yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-actions .yb-checkout-btn{
  width: 160px;
  height: 48px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
}

.yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-pay{
  background: var(--yb-brown-light);
  border: 2px solid var(--yb-brown-light);
  color: #fff;
}

.yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-prev{
  background: var(--yb-white);
  border: 2px solid rgba(188,146,126,0.30);
  color: var(--yb-brown);
}

@media (max-width: 980px){
  .yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-slot{
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-time,
  .yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-price,
  .yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-remove{
    width: auto;
    flex: 0 0 auto;
  }
  .yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-footer{
  margin-top: 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  direction: rtl;
  text-align: right;
}

.yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-total{
  background: var(--yb-soft);
  border-radius: 22px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  direction: rtl;
  text-align: right;
  font-size: 18px;
  font-weight: 700;
}

.yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-total-val{
  white-space: nowrap;
}

.yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-buttons{
  display: flex;
  gap: 12px;
  flex-direction: row-reverse; /* پرداخت سمت چپ (مثل ووکامرس) */
  direction: rtl;
}

/* موبایل */
@media (max-width: 640px){
  .yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-footer{
    flex-direction: column;
    align-items: stretch;
  }
  .yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-buttons{
    width: 100%;
    justify-content: space-between;
  }
  .yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-btn{
    width: 48% !important;
    min-width: 0 !important;
  }
}

  .yb-booking-system.yb-ui-canva.yb-checkout .yb-checkout-actions .yb-checkout-btn{
    flex: 1;
    width: auto;
  }
}



/* =========================
   WooCommerce My Account sizing
========================= */
.woocommerce-account .yb-booking-system.yb-ui-canva.yb-ui-account{
  font-size: 16px !important;
  line-height: 1.65 !important;
  padding: 22px 26px !important;
}
.woocommerce-account .yb-booking-system.yb-ui-canva.yb-ui-account h3{
  font-size: 20px !important;
}
.woocommerce-account .yb-booking-system.yb-ui-canva.yb-ui-account .yb-btn,
.woocommerce-account .yb-booking-system.yb-ui-canva.yb-ui-account button{
  font-size: 16px !important;
}


/* v2.0.20.6 UI fixes */
.yb-checkout-header,
.yb-checkout-header h2,
.yb-checkout-title {
  width: 100% !important;
  text-align: right !important;
  direction: rtl;
}

.yb-slot-left,
.yb-slot-price {
  direction: ltr;
}

.yb-slot-price {
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  margin: 0 12px;
}

.yb-slot-coach-info,
.yb-slot-service {
  text-align: right;
  direction: rtl;
}



/* --- v2.0.20.7 UI fixes --- */
.yb-booking-system.yb-ui-canva .yb-slot-teacher-info{
  text-align: right !important;
  direction: rtl !important;
}
.yb-booking-system.yb-ui-canva .yb-slot-service-name{
  text-align: right !important;
  direction: rtl !important;
}

/* قیمت در صفحه رزرو مثل صفحه بررسی (بولد و خوانا) */
.yb-booking-system.yb-ui-canva .yb-slot-price{
  font-weight: 800 !important;
  font-size: 16px !important;
  white-space: nowrap;
}

/* جلوگیری از رفتن زیر منو/هدر قالب */
.yb-booking-system.yb-ui-canva .yb-booking-panel,
.yb-booking-system.yb-ui-canva .yb-checkout-panel{
  scroll-margin-top: 90px;
}


/* تیتر بررسی رزروها همیشه سمت راست */
.yb-booking-system.yb-ui-canva .yb-checkout-header{
  justify-content: flex-end !important;
}
.yb-booking-system.yb-ui-canva .yb-checkout-title{
  text-align: right !important;
  margin-left: auto !important;
  margin-right: 0 !important;
}


/* v2.0.20.8 fixes: align service with coach + prevent header overlap on WC pages */
.yb-slot-teacher-info, .yb-slot-teacher-info * { text-align: right !important; direction: rtl !important; }
.yb-slot-teacher-info { display:flex; flex-direction:column; align-items:flex-end; gap:2px; }
.yb-slot-service, .yb-slot-service-name { text-align:right !important; direction:rtl !important; }

/* Make sure booking UI isn't hidden under sticky headers */
.yb-booking-shell, .yb-booking-container, .yb-booking-root, .yb-booking-system { padding-top: 70px !important; }

/* WooCommerce order-pay / order-received pages often sit under sticky headers in RTL themes */
body.woocommerce-checkout.woocommerce-page .woocommerce,
body.woocommerce-order-received.woocommerce-page .woocommerce,
body.woocommerce-checkout.woocommerce-page #primary,
body.woocommerce-order-received.woocommerce-page #primary {
  padding-top: 70px !important;
}

