/* GalaxyTrip — جدول‌های برنامه تور (ادمین + سایت) */

.rich-content .gt-table,
.mce-content-body .gt-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
  direction: rtl;
  table-layout: auto;
}

.rich-content .gt-table th,
.rich-content .gt-table td,
.mce-content-body .gt-table th,
.mce-content-body .gt-table td {
  padding: 10px 14px;
  text-align: right;
  vertical-align: top;
  line-height: 1.7;
}

.rich-content .gt-table caption,
.mce-content-body .gt-table caption {
  caption-side: top;
  text-align: right;
  font-weight: 700;
  color: #0f172a;
  padding-bottom: 0.5rem;
}

/* کلاسیک — حاشیه کامل */
.rich-content .gt-table--classic th,
.rich-content .gt-table--classic td,
.mce-content-body .gt-table--classic th,
.mce-content-body .gt-table--classic td {
  border: 1px solid #cbd5e1;
}

.rich-content .gt-table--classic th,
.mce-content-body .gt-table--classic th {
  background: #f1f5f9;
  font-weight: 700;
  color: #0f172a;
}

.rich-content .gt-table--classic tbody tr:nth-child(even) td,
.mce-content-body .gt-table--classic tbody tr:nth-child(even) td {
  background: #f8fafc;
}

/* راه‌راه */
.rich-content .gt-table--striped,
.mce-content-body .gt-table--striped {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.rich-content .gt-table--striped th,
.rich-content .gt-table--striped td,
.mce-content-body .gt-table--striped th,
.mce-content-body .gt-table--striped td {
  border: none;
  border-bottom: 1px solid #e2e8f0;
}

.rich-content .gt-table--striped thead th,
.mce-content-body .gt-table--striped thead th {
  background: #1e293b;
  color: #fff;
  font-weight: 700;
}

.rich-content .gt-table--striped tbody tr:nth-child(even) td,
.mce-content-body .gt-table--striped tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.rich-content .gt-table--striped tbody tr:last-child td,
.mce-content-body .gt-table--striped tbody tr:last-child td {
  border-bottom: none;
}

/* کهکشانی — هدر برند */
.rich-content .gt-table--galaxy,
.mce-content-body .gt-table--galaxy {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.12);
}

.rich-content .gt-table--galaxy th,
.rich-content .gt-table--galaxy td,
.mce-content-body .gt-table--galaxy th,
.mce-content-body .gt-table--galaxy td {
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.rich-content .gt-table--galaxy thead th,
.mce-content-body .gt-table--galaxy thead th {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #fff;
  font-weight: 700;
  border-color: rgba(255, 255, 255, 0.2);
}

.rich-content .gt-table--galaxy tbody td,
.mce-content-body .gt-table--galaxy tbody td {
  background: #fff;
  border-color: #e2e8f0;
}

.rich-content .gt-table--galaxy tbody tr:nth-child(even) td,
.mce-content-body .gt-table--galaxy tbody tr:nth-child(even) td {
  background: #f0f9ff;
}

/* مینیمال */
.rich-content .gt-table--minimal th,
.rich-content .gt-table--minimal td,
.mce-content-body .gt-table--minimal th,
.mce-content-body .gt-table--minimal td {
  border: none;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 8px;
}

.rich-content .gt-table--minimal thead th,
.mce-content-body .gt-table--minimal thead th {
  font-weight: 700;
  color: #334155;
  border-bottom: 2px solid #3b82f6;
  background: transparent;
}

.rich-content .gt-table--minimal tbody tr:last-child td,
.mce-content-body .gt-table--minimal tbody tr:last-child td {
  border-bottom: none;
}

/* کادر اطلاعات — کارت اقامت / نرخ تور */
:root {
  --gt-info-accent: #1e56a0;
  --gt-info-accent-light: #3b82f6;
  --gt-info-title: #c2410c;
  --gt-info-body: #1e56a0;
  --gt-info-footer-bg: #f8fafc;
  --gt-info-footer-text: #64748b;
  --gt-info-border: rgba(59, 130, 246, 0.22);
  --gt-info-radius: 16px;
  --gt-info-shadow:
    0 10px 36px rgba(30, 86, 160, 0.1),
    0 2px 10px rgba(30, 86, 160, 0.05);
}

table.gt-table.gt-table--info,
.rich-content table.gt-table--info,
.mce-content-body table.gt-table--info,
body#tinymce table.gt-table--info,
.rich-content table[border="1"]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))),
.mce-content-body table[border="1"]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))),
body#tinymce table[border="1"]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))),
.page-tour-detail .rich-content table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))),
.page-tour-detail .tour-detail-section__panel table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))),
.content-body table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) {
  width: min(100%, 36rem) !important;
  max-width: 100%;
  display: table !important;
  margin-inline: auto !important;
  border: 1px solid var(--gt-info-border) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: var(--gt-info-radius) !important;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.07) 0%, rgba(255, 255, 255, 0) 72px),
    #fff !important;
  margin: 1.5rem 0 !important;
  box-shadow: var(--gt-info-shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

table.gt-table.gt-table--info:hover,
.rich-content table.gt-table--info:hover,
.mce-content-body table.gt-table--info:hover,
body#tinymce table.gt-table--info:hover,
.rich-content table[border="1"]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))):hover,
.page-tour-detail .rich-content table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))):hover,
.page-tour-detail .tour-detail-section__panel table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))):hover,
.content-body table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))):hover {
  box-shadow:
    0 14px 44px rgba(30, 86, 160, 0.14),
    0 4px 14px rgba(30, 86, 160, 0.07);
  transform: translateY(-2px);
}

table.gt-table.gt-table--info th,
table.gt-table.gt-table--info td,
.rich-content table.gt-table--info th,
.rich-content table.gt-table--info td,
.mce-content-body table.gt-table--info th,
.mce-content-body table.gt-table--info td,
body#tinymce table.gt-table--info th,
body#tinymce table.gt-table--info td,
.rich-content table[border="1"]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) td,
.mce-content-body table[border="1"]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) td,
body#tinymce table[border="1"]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) td,
.page-tour-detail .rich-content table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) td,
.page-tour-detail .tour-detail-section__panel table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) td,
.content-body table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) td {
  border: 0 !important;
  background: transparent !important;
  text-align: center !important;
  vertical-align: middle !important;
  padding: 1.15rem 1.5rem !important;
  line-height: 1.65 !important;
}

table.gt-table.gt-table--info tbody tr:first-child td,
.rich-content table.gt-table--info tbody tr:first-child td,
.mce-content-body table.gt-table--info tbody tr:first-child td,
body#tinymce table.gt-table--info tbody tr:first-child td,
.rich-content table[border="1"]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:first-child td,
.page-tour-detail .rich-content table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:first-child td,
.page-tour-detail .tour-detail-section__panel table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:first-child td,
.content-body table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:first-child td {
  padding-top: 1.35rem !important;
}

table.gt-table.gt-table--info tbody tr:last-child:not(:only-child) td,
.rich-content table.gt-table--info tbody tr:last-child:not(:only-child) td,
.mce-content-body table.gt-table--info tbody tr:last-child:not(:only-child) td,
body#tinymce table.gt-table--info tbody tr:last-child:not(:only-child) td,
.rich-content table[border="1"]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:last-child:not(:only-child) td,
.page-tour-detail .rich-content table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:last-child:not(:only-child) td,
.page-tour-detail .tour-detail-section__panel table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:last-child:not(:only-child) td,
.content-body table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:last-child:not(:only-child) td {
  background: var(--gt-info-footer-bg) !important;
  border-top: 1px dashed rgba(100, 116, 139, 0.32) !important;
  padding: 0.8rem 1.25rem !important;
  font-size: 0.8rem !important;
  color: var(--gt-info-footer-text) !important;
  line-height: 1.75 !important;
}

table.gt-table.gt-table--info tr + tr td,
.rich-content table.gt-table--info tr + tr td,
.mce-content-body table.gt-table--info tr + tr td,
body#tinymce table.gt-table--info tr + tr td,
.rich-content table[border="1"]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tr + tr td,
.mce-content-body table[border="1"]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tr + tr td,
body#tinymce table[border="1"]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tr + tr td {
  border-top: 0 !important;
}

table.gt-table.gt-table--info tbody tr:first-child td > p:first-child strong,
table.gt-table.gt-table--info tbody tr:first-child td > p:first-child b,
.rich-content table.gt-table--info tbody tr:first-child td > p:first-child strong,
.rich-content table.gt-table--info tbody tr:first-child td > p:first-child b,
.mce-content-body table.gt-table--info tbody tr:first-child td > p:first-child strong,
.mce-content-body table.gt-table--info tbody tr:first-child td > p:first-child b,
body#tinymce table.gt-table--info tbody tr:first-child td > p:first-child strong,
body#tinymce table.gt-table--info tbody tr:first-child td > p:first-child b,
.rich-content table[border="1"]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:first-child td > p:first-child strong,
.rich-content table[border="1"]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:first-child td > p:first-child b,
.page-tour-detail .rich-content table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:first-child td > p:first-child strong,
.page-tour-detail .rich-content table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:first-child td > p:first-child b,
.page-tour-detail .tour-detail-section__panel table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:first-child td > p:first-child strong,
.page-tour-detail .tour-detail-section__panel table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:first-child td > p:first-child b,
.content-body table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:first-child td > p:first-child strong,
.content-body table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:first-child td > p:first-child b {
  display: inline-block;
  font-size: 1.12rem !important;
  font-weight: 800 !important;
  color: var(--gt-info-title) !important;
  letter-spacing: -0.01em;
  margin-bottom: 0.15rem;
}

table.gt-table.gt-table--info tbody tr:first-child td > p:not(:first-child):not(:last-child),
.rich-content table.gt-table--info tbody tr:first-child td > p:not(:first-child):not(:last-child),
.mce-content-body table.gt-table--info tbody tr:first-child td > p:not(:first-child):not(:last-child),
body#tinymce table.gt-table--info tbody tr:first-child td > p:not(:first-child):not(:last-child),
.rich-content table[border="1"]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:first-child td > p:not(:first-child):not(:last-child),
.page-tour-detail .rich-content table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:first-child td > p:not(:first-child):not(:last-child),
.page-tour-detail .tour-detail-section__panel table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:first-child td > p:not(:first-child):not(:last-child),
.content-body table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:first-child td > p:not(:first-child):not(:last-child) {
  color: var(--gt-info-body);
  font-size: 0.94rem;
}

table.gt-table.gt-table--info tbody tr:first-child:not(:last-child) td > p:last-child,
.rich-content table.gt-table--info tbody tr:first-child:not(:last-child) td > p:last-child,
.mce-content-body table.gt-table--info tbody tr:first-child:not(:last-child) td > p:last-child,
body#tinymce table.gt-table--info tbody tr:first-child:not(:last-child) td > p:last-child,
.rich-content table[border="1"]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:first-child:not(:last-child) td > p:last-child,
.page-tour-detail .rich-content table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:first-child:not(:last-child) td > p:last-child,
.page-tour-detail .tour-detail-section__panel table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:first-child:not(:last-child) td > p:last-child,
.content-body table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:first-child:not(:last-child) td > p:last-child {
  margin-top: 0.85rem !important;
  margin-bottom: 0 !important;
}

table.gt-table.gt-table--info tbody tr:first-child:not(:last-child) td > p:last-child strong,
table.gt-table.gt-table--info tbody tr:first-child:not(:last-child) td > p:last-child b,
.rich-content table.gt-table--info tbody tr:first-child:not(:last-child) td > p:last-child strong,
.rich-content table.gt-table--info tbody tr:first-child:not(:last-child) td > p:last-child b,
.mce-content-body table.gt-table--info tbody tr:first-child:not(:last-child) td > p:last-child strong,
.mce-content-body table.gt-table--info tbody tr:first-child:not(:last-child) td > p:last-child b,
body#tinymce table.gt-table--info tbody tr:first-child:not(:last-child) td > p:last-child strong,
body#tinymce table.gt-table--info tbody tr:first-child:not(:last-child) td > p:last-child b,
.rich-content table[border="1"]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:first-child:not(:last-child) td > p:last-child strong,
.rich-content table[border="1"]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:first-child:not(:last-child) td > p:last-child b,
.page-tour-detail .rich-content table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:first-child:not(:last-child) td > p:last-child strong,
.page-tour-detail .rich-content table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:first-child:not(:last-child) td > p:last-child b,
.page-tour-detail .tour-detail-section__panel table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:first-child:not(:last-child) td > p:last-child strong,
.page-tour-detail .tour-detail-section__panel table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:first-child:not(:last-child) td > p:last-child b,
.content-body table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:first-child:not(:last-child) td > p:last-child strong,
.content-body table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:first-child:not(:last-child) td > p:last-child b {
  display: inline-block;
  font-size: 1.28rem !important;
  font-weight: 800 !important;
  color: var(--gt-info-accent) !important;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 999px;
  padding: 0.45rem 1.35rem;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}

table.gt-table.gt-table--info strong:not([style*="color"]),
table.gt-table.gt-table--info b:not([style*="color"]),
.rich-content table.gt-table--info strong:not([style*="color"]),
.rich-content table.gt-table--info b:not([style*="color"]),
.mce-content-body table.gt-table--info strong:not([style*="color"]),
.mce-content-body table.gt-table--info b:not([style*="color"]),
body#tinymce table.gt-table--info strong:not([style*="color"]),
body#tinymce table.gt-table--info b:not([style*="color"]) {
  color: var(--gt-info-title);
  font-weight: 700 !important;
}

table.gt-table.gt-table--info p,
.rich-content table.gt-table--info p,
.mce-content-body table.gt-table--info p,
body#tinymce table.gt-table--info p,
.rich-content table[border="1"]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) p,
.page-tour-detail .rich-content table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) p,
.page-tour-detail .tour-detail-section__panel table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) p,
.content-body table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) p {
  margin: 0 0 0.28em !important;
  text-align: center !important;
}

table.gt-table.gt-table--info p:last-child,
.rich-content table.gt-table--info p:last-child,
.mce-content-body table.gt-table--info p:last-child,
body#tinymce table.gt-table--info p:last-child,
.rich-content table[border="1"]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) p:last-child,
.page-tour-detail .rich-content table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) p:last-child,
.page-tour-detail .tour-detail-section__panel table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) p:last-child,
.content-body table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) p:last-child {
  margin-bottom: 0 !important;
}

table.gt-table.gt-table--info tbody tr:last-child:not(:only-child) td p,
.rich-content table.gt-table--info tbody tr:last-child:not(:only-child) td p,
.mce-content-body table.gt-table--info tbody tr:last-child:not(:only-child) td p,
body#tinymce table.gt-table--info tbody tr:last-child:not(:only-child) td p,
.rich-content table[border="1"]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:last-child:not(:only-child) td p,
.page-tour-detail .rich-content table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:last-child:not(:only-child) td p,
.page-tour-detail .tour-detail-section__panel table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:last-child:not(:only-child) td p,
.content-body table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) tbody tr:last-child:not(:only-child) td p {
  margin: 0 !important;
  color: inherit !important;
  font-size: inherit !important;
}

@media (max-width: 640px) {
  table.gt-table.gt-table--info th,
  table.gt-table.gt-table--info td,
  .rich-content table.gt-table--info th,
  .rich-content table.gt-table--info td,
  .page-tour-detail .rich-content table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) td,
  .page-tour-detail .tour-detail-section__panel table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) td {
    padding: 0.95rem 1rem !important;
  }

  table.gt-table.gt-table--info tbody tr:first-child:not(:last-child) td > p:last-child strong,
  table.gt-table.gt-table--info tbody tr:first-child:not(:last-child) td > p:last-child b,
  .rich-content table.gt-table--info tbody tr:first-child:not(:last-child) td > p:last-child strong,
  .rich-content table.gt-table--info tbody tr:first-child:not(:last-child) td > p:last-child b {
    font-size: 1.08rem !important;
    padding: 0.4rem 1rem;
  }
}

/* قیمت / برنامه سفر */
.rich-content .gt-table--pricing,
.mce-content-body .gt-table--pricing {
  border: 1px solid #dbeafe;
  border-radius: 12px;
  overflow: hidden;
}

.rich-content .gt-table--pricing th,
.rich-content .gt-table--pricing td,
.mce-content-body .gt-table--pricing th,
.mce-content-body .gt-table--pricing td {
  border: 1px solid #dbeafe;
}

.rich-content .gt-table--pricing thead th,
.mce-content-body .gt-table--pricing thead th {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
}

.rich-content .gt-table--pricing tbody td:first-child,
.mce-content-body .gt-table--pricing tbody td:first-child {
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
  white-space: nowrap;
}

.rich-content .gt-table--pricing tbody tr:hover td,
.mce-content-body .gt-table--pricing tbody tr:hover td {
  background: #f0f9ff;
}

.rich-content .gt-table--pricing tbody tr:hover td:first-child,
.mce-content-body .gt-table--pricing tbody tr:hover td:first-child {
  background: #e0f2fe;
}

/* گرم سفر — نارنجی */
.rich-content .gt-table--sunset,
.mce-content-body .gt-table--sunset {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.15);
}

.rich-content .gt-table--sunset th,
.rich-content .gt-table--sunset td,
.mce-content-body .gt-table--sunset th,
.mce-content-body .gt-table--sunset td {
  border: 1px solid #fed7aa;
}

.rich-content .gt-table--sunset thead th,
.mce-content-body .gt-table--sunset thead th {
  background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%);
  color: #fff;
  font-weight: 700;
}

.rich-content .gt-table--sunset tbody td,
.mce-content-body .gt-table--sunset tbody td {
  background: #fff;
}

.rich-content .gt-table--sunset tbody tr:nth-child(even) td,
.mce-content-body .gt-table--sunset tbody tr:nth-child(even) td {
  background: #fff7ed;
}

.rich-content .gt-table--sunset tbody tr:hover td,
.mce-content-body .gt-table--sunset tbody tr:hover td {
  background: #ffedd5;
}

@media (max-width: 640px) {
  .rich-content .gt-table:not(.gt-table--info),
  .mce-content-body .gt-table:not(.gt-table--info) {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* پشتیبان — جدول‌های border چندستونه یا بلند */
.page-tour-detail .rich-content table[border]:has(tr > td + td),
.page-tour-detail .rich-content table[border]:has(tr:nth-child(6)),
.page-tour-detail .tour-detail-section__panel table[border]:has(tr > td + td),
.page-tour-detail .tour-detail-section__panel table[border]:has(tr:nth-child(6)),
.content-body table[border]:has(tr > td + td),
.content-body table[border]:has(tr:nth-child(6)) {
  width: 100% !important;
  border: 2px solid #33aadd !important;
  border-collapse: collapse !important;
  background: #fff !important;
  margin: 1.25rem 0 !important;
}

.page-tour-detail .rich-content table[border]:has(tr > td + td) td,
.page-tour-detail .rich-content table[border]:has(tr > td + td) th,
.page-tour-detail .rich-content table[border]:has(tr:nth-child(6)) td,
.page-tour-detail .rich-content table[border]:has(tr:nth-child(6)) th,
.page-tour-detail .tour-detail-section__panel table[border]:has(tr > td + td) td,
.page-tour-detail .tour-detail-section__panel table[border]:has(tr > td + td) th,
.page-tour-detail .tour-detail-section__panel table[border]:has(tr:nth-child(6)) td,
.page-tour-detail .tour-detail-section__panel table[border]:has(tr:nth-child(6)) th,
.content-body table[border]:has(tr > td + td) td,
.content-body table[border]:has(tr > td + td) th,
.content-body table[border]:has(tr:nth-child(6)) td,
.content-body table[border]:has(tr:nth-child(6)) th {
  border: 0 !important;
  background: #fff !important;
  text-align: center !important;
  vertical-align: middle !important;
  padding: 14px 18px !important;
  line-height: 1.85 !important;
}

.page-tour-detail .rich-content table[border]:has(tr > td + td) tr + tr td,
.page-tour-detail .rich-content table[border]:has(tr > td + td) tr + tr th,
.page-tour-detail .rich-content table[border]:has(tr:nth-child(6)) tr + tr td,
.page-tour-detail .rich-content table[border]:has(tr:nth-child(6)) tr + tr th,
.page-tour-detail .tour-detail-section__panel table[border]:has(tr > td + td) tr + tr td,
.page-tour-detail .tour-detail-section__panel table[border]:has(tr > td + td) tr + tr th,
.page-tour-detail .tour-detail-section__panel table[border]:has(tr:nth-child(6)) tr + tr td,
.page-tour-detail .tour-detail-section__panel table[border]:has(tr:nth-child(6)) tr + tr th,
.content-body table[border]:has(tr > td + td) tr + tr td,
.content-body table[border]:has(tr > td + td) tr + tr th,
.content-body table[border]:has(tr:nth-child(6)) tr + tr td,
.content-body table[border]:has(tr:nth-child(6)) tr + tr th {
  border-top: 2px solid #33aadd !important;
}

/* جدول قیمت تک‌ستونه — وسط‌چین در موبایل و دسکتاپ */
@media (max-width: 992px) {
  table.gt-table.gt-table--info,
  .rich-content table.gt-table--info,
  .mce-content-body table.gt-table--info,
  body#tinymce table.gt-table--info,
  .rich-content table[border="1"]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))),
  .page-tour-detail .rich-content table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))),
  .page-tour-detail .tour-detail-section__panel table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))),
  .content-body table[border]:not(:has(tr > td + td)):not(:has(tr:nth-child(6))) {
    display: table !important;
    width: min(100%, 36rem) !important;
    margin-inline: auto !important;
  }
}
