/*
 Theme Name:   manacloud Child
 Description:  manacloud Child Theme
 Author:       manacloud
 Author URI:   http://manacloud.com
 Template:     manacloud
 Version:      1.0.0
 Text Domain:  manacloud
*/


/* استایل های کامپوننت جدول خدمات */
button.plan-buy {
    background: #2b55ff;
    color: #fff;
    border-radius: 12px;
    padding: 8px 20px;
}
button.plan-buy:hover {
    background: #0033ff;
    color: #fff;
}
.plans-toggle-desktop,
.feature-title {
  box-sizing: border-box;
}
.feature-title {
  padding: 0 1rem;
}
.plans-table-container {
  border: 1.5px solid #e0e0e0;
  background: #fff;
  border-radius: 12px;
  overflow: auto;
  position: relative;
  height: 80vh;
  direction: rtl;
}
.plans-header-cols .plan-col {
  border-left: 1px solid #e0e0e0;
}
.plans-header-cols .plan-col:last-child {
  border-left: none;
}
.features-row {
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  background: #fafbfc;
}
.features-row:nth-child(even) {
  background: #f1f3f6;
}
.feature-title,
.feature-col {
  border-left: 1px solid #e0e0e0;
}
.feature-col:last-child {
  border-left: none;
}
.feature-title {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.8rem 1rem;
  font-weight: bold;
  color: #444;
  text-align: right;
}
.feature-col {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 0.8rem 0.5rem;
  font-size: 1rem;
}
.feature-check {
  color: #43a047;
  font-size: 1.3rem;
}
.feature-cross {
  color: #e53935;
  font-size: 1.3rem;
}

.plans-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
  z-index: 100;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
}
.plans-toggle {
  flex: 1.5 1 0;
  padding: 0.8rem 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  height: 100%;
  box-sizing: border-box;
}
.toggle-sec {
  background: #f1f1f1;
  display: flex;
  gap: 5px;
  padding: 10px 8px;
  border-radius: 40px;
  align-items: center;
  height: 55px;
}
.plans-toggle button {
  border: none;
  background: none;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: background 0.2s;
}
.plans-toggle button.active {
  background: #222;
  color: #fff;
}
.plans-header .plan-col {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 0.8rem 0.5rem;
}
.plan-title {
  font-size: 1.1rem;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plan-price {
  font-size: 1.3rem;
  color: #1e88e5;
  margin: 0.5rem 0 0.2rem 0;
}
.plan-desc {
  font-size: 0.95rem;
  color: #888;
}
.plan-buy {
  margin-top: 0.7rem;
  padding: 0.5rem 1.5rem;
  background: #1e88e5;
  color: #fff;
  border: none;
  border-radius: 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.plan-buy:hover {
  background: #1565c0;
}
.plans-header-cols .plan-col {
  border-left: 1px solid #e0e0e0;
}
.plans-header-cols .plan-col:last-child {
  border-left: none;
}
.features-row {
  border-bottom: 1px solid #e0e0e0;
}
.feature-title,
.feature-col {
  border-left: 1px solid #e0e0e0;
}
.feature-col:last-child {
  border-left: none;
}
.plans-table-container {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.plans-table-container::-webkit-scrollbar {
  display: none;
}

.plans-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
  z-index: 100;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
}
.plans-toggle {
  flex: 1.5 1 0;
  padding: 5px;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  height: 100%;
  box-sizing: border-box;
  height: 138px;
}
.toggle-sec {
  background: #f1f1f1;
  display: flex;
  gap: 5px;
  padding: 10px 8px;
  border-radius: 40px;
  align-items: center;
  height: 55px;
}
.plans-toggle button {
  border: none;
  background: none;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: background 0.2s;
}
.plans-toggle button.active {
  background: #222;
  color: #fff;
}
.plans-header .plan-col {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 5px;
}
.plan-title {
  font-size: 14px;
  font-weight: bold;
}
.plan-price {
  font-size: 16px;
  color: #1e88e5;
  margin: 0.5rem 0 0.2rem 0;
}
.plan-desc {
  font-size: 12px;
  color: #888;
}
.plan-buy {
  margin-top: 10px;
  padding: 4px 16px;
  background: #1e88e5;
  color: #fff;
  border: none;
  border-radius: 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.plan-buy:hover {
  background: #1565c0;
}
.features-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  background: #fafbfc;
}
.features-row:nth-child(even) {
  background: #f1f3f6;
}
.feature-title {
  flex: 1.5 1 0;
  min-width: 0;
  padding: 0.8rem 1rem;
font-weight: bold;
  color: #444;
  text-align: right;
}
.feature-col {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 0.8rem 0.5rem;
  font-size: 1rem;
}
.feature-check {
  color: #43a047;
  font-size: 1.3rem;
}
.feature-cross {
  color: #e53935;
  font-size: 1.3rem;
}

/* ======================= */
/*  استایل دسکتاپ (عرض > 900px)  */
/* ======================= */
@media (min-width: 901px) {
  .plans-slider-nav,
  .plans-slider-content,
  .plans-slider-top {
    display: none !important;
  }
  .plans-header {
    display: flex;
    align-items: stretch;
    width: 100%;
  }
  .plans-toggle-desktop {
    flex: 0 0 20%;
    max-width: 220px;
    min-width: 0;
    box-sizing: border-box;
  }
  .plans-header-cols {
    display: flex;
    align-items: stretch;
    flex: 0 0 82%;
    max-width: 82%;
    min-width: 0;
  }
  .feature-title,
  .plans-header-cols .plan-col {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: none;
  }
  .feature-title {
    max-width: 220px;
    min-width: 220px !important;
    font-size: 14px;
    font-weight: bold;
  }
  .plans-toggle {
    border-left: 1px solid #e0e0e0;
}
}

/* ======================= */
/*  استایل تبلت و موبایل (عرض ≤ 900px)  */
/* ======================= */
@media (max-width: 900px) {
  /* استایل اختصاصی کاربر برای feature-title و feature-col */
  .feature-title,
  .feature-col {
    font-size: 12px;
  }
  .plans-toggle.plans-toggle-mobile {
  margin-bottom: 3px;
}
  .mobile-only.plans-slider-top,
  .plans-slider-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
  }
  .plans-toggle.plans-toggle-mobile {
    height: 50px;
    display: flex;
    justify-content: flex-start;
    padding: 0px 10px;
    margin-top: 10px;
  }

  .plans-toggle {
    padding: 0px 10px;
    align-items: center;
    justify-content: flex-start;
    height: 50px;
    display: flex;
  }
  .plans-header-cols {
    display: none !important;
  }
  .plans-toggle-desktop {
    display: none !important;
  }
  .plans-slider-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 0 8px 0;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 8px;
    scrollbar-width: thin;
  }
  .plans-slider-nav button {
    padding: 0.3rem 0.7rem;
    border: none;
    border-radius: 2rem;
    background: #f1f1f1;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .plans-slider-nav button.active {
    background: #1e88e5;
    color: #fff;
  }
  .plans-slider-content {
    display: block;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 8px #0001;
    padding: 8px 0 0 0;
    margin-bottom: 16px;
    position: relative;
  }
  .plan-slider-table {
    width: 100%;
    max-height: 55vh;
    overflow-y: auto;
    margin-bottom: 0;
    border-radius: 8px 8px 0 0;
  }
  .plan-slider-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
  }
  .plan-slider-row:last-child {
    border-bottom: none;
  }
  .plan-slider-feature {
    color: #444;
    font-weight: 500;
    flex: 1 1 0;
    text-align: right;
  }
  .plan-slider-value {
    flex: 1 1 0;
    text-align: left;
    font-weight: bold;
    color: #1e88e5;
  }
  .plan-slider-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 16px 16px 12px 16px;
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 -1px 8px #0001;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
  }
  .plan-slider-price {
    font-size: 1.1rem;
    color: #1e88e5;
    font-weight: bold;
  }
  .plan-slider-desc {
    font-size: 0.95rem;
    color: #888;
    margin: 0 8px;
  }
  .plan-slider-buy {
    background: #1e88e5;
    color: #fff;
    border: none;
    border-radius: 1.5rem;
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
  }
  .plan-slider-buy:hover {
    background: #1565c0;
  }
  .desktop-only {
    display: none !important;
  }
  .features-table {
    display: block !important;
  }
  .plans-slider-top {
    display: block;
  }
  .plans-table-container {
    max-width: 98vw;
    height: 80vh;
    min-width: unset;
    border-radius: 8px;
    overflow-x: auto;
    padding: 8px 0;
  }
  .plans-header,
  .features-row {
    min-width: 600px;
    border-radius: 10px;
    box-shadow: 0 1px 6px #0001;
  }
  .plans-header {
    padding: 0 0 0 0;
  }
  .plan-title {
    font-size: 1rem;
  }
  .plan-price {
    font-size: 1.1rem;
  }
  .plan-desc {
    font-size: 0.85rem;
  }
  .plan-buy {
    font-size: 0.95rem;
    padding: 0.4rem 1rem;
    margin-top: 0.5rem;
  }
  .feature-title,
  .feature-col {
    font-size: 12px;
    padding: 5px;
  }
  .plans-toggle {
    padding: 0.5rem 0.5rem;
  }
  .toggle-sec {
    padding: 2px 4px;
    border-radius: 20px;
    height: 55px;
    font-size: 0.85rem;
  }
  .feature-title,
  .feature-col {
    padding: 5px !important;
  }
}

/* ======================= */
/*  استایل موبایل کوچک (عرض ≤ 600px)  */
/* ======================= */
@media (max-width: 600px) {
  .plans-slider-nav button {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .feature-title,
  .feature-col {
    min-width: 90px;
    max-width: 120px;
    font-size: 0.85rem;
    padding: 8px 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .plan-col {
    min-width: 110px !important;
  }
  .plans-table-container {
    max-width: 100vw;
    height: 75vh;
    min-width: unset;
    border-radius: 4px;
    overflow-x: auto;
    padding: 0px 0;
  }
  .plans-header,
  .features-row {
    min-width: 320px;
    border-radius: 8px;
    box-shadow: 0 1px 8px #0001;
  }
  .plans-header {
    padding: 0 0 0 0;
  }
  .plan-title {
    font-size: 0.95rem;
  }
  .plan-price {
    font-size: 1rem;
  }
  .plan-desc {
    font-size: 0.8rem;
  }
  .plan-buy {
    font-size: 0.9rem;
    padding: 0.3rem 0.7rem;
    margin-top: 0.4rem;
  }
  .plans-toggle {
    padding: 0.3rem 0.2rem;
  }
  .toggle-sec {
    padding: 1px 2px;
    border-radius: 14px;
    height: 40px !important;
    font-size: 0.8rem;
  }
    .features-row {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
    }
}