/*
 * 3E Yazılım
 * Paket kartları ve karşılaştırma tabloları
 * Mobil görünüm düzeltmesi
 */

@media (max-width: 820px) {

  body.page-packages,
  body.ecommerce-site-page {
    overflow-x: hidden !important;
  }

  /*
   * Paket bölümleri ekran dışına taşmasın.
   */
  body.page-packages #eticaret-paketleri,
  body.ecommerce-site-page #eticaret-paketleri,
  body.page-packages .three-package-grid,
  body.ecommerce-site-page .three-package-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;

    width: calc(100% - 28px) !important;
    max-width: 620px !important;

    margin: 0 auto !important;
    margin-left: auto !important;
    margin-right: auto !important;

    padding: 0 !important;

    transform: none !important;
    translate: none !important;
  }

  /*
   * Perakende ve restoran kartları.
   */
  body.page-packages .pkgv2-rest-grid,
  body.ecommerce-site-page .pkgv2-rest-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;

    width: calc(100% - 28px) !important;
    max-width: 620px !important;

    margin: 0 auto !important;
    padding: 0 !important;

    transform: none !important;
  }

  /*
   * Paket kartları.
   */
  body.page-packages .three-package-card,
  body.ecommerce-site-page .three-package-card,
  body.page-packages .pkgv2-rest-card,
  body.ecommerce-site-page .pkgv2-rest-card {
    position: relative !important;

    display: flex !important;
    flex-direction: column !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 19px !important;

    overflow: hidden !important;

    border-radius: 12px !important;
    transform: none !important;
    translate: none !important;
  }

  body.page-packages .three-package-card-strong,
  body.ecommerce-site-page .three-package-card-strong,
  body.page-packages .pkgv2-rest-card.featured,
  body.ecommerce-site-page .pkgv2-rest-card.featured {
    transform: none !important;
  }

  /*
   * Kart başlıkları.
   */
  body.page-packages .three-package-head,
  body.ecommerce-site-page .three-package-head,
  body.page-packages .pkgv2-rest-card-head,
  body.ecommerce-site-page .pkgv2-rest-card-head {
    width: 100% !important;
    min-width: 0 !important;
  }

  body.page-packages .three-package-head h2,
  body.ecommerce-site-page .three-package-head h2,
  body.page-packages .pkgv2-rest-card-head h3,
  body.ecommerce-site-page .pkgv2-rest-card-head h3 {
    margin: 0 0 10px !important;

    overflow-wrap: anywhere !important;
    word-break: normal !important;

    font-size: 22px !important;
    line-height: 1.16 !important;
    letter-spacing: -.5px !important;
  }

  body.page-packages .three-package-head p,
  body.ecommerce-site-page .three-package-head p,
  body.page-packages .pkgv2-rest-card-head p,
  body.ecommerce-site-page .pkgv2-rest-card-head p {
    margin: 0 !important;

    overflow-wrap: anywhere !important;

    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  /*
   * Kampanya rozetleri kart dışına taşmasın.
   */
  body.page-packages .three-summer-discount-badge,
  body.ecommerce-site-page .three-summer-discount-badge,
  body.page-packages .three-package-campaign-badge,
  body.ecommerce-site-page .three-package-campaign-badge {
    position: static !important;
    inset: auto !important;

    align-self: flex-start !important;

    width: auto !important;
    max-width: 100% !important;

    margin: 0 0 10px !important;
    padding: 6px 9px !important;

    white-space: normal !important;
    text-align: left !important;

    border-radius: 6px !important;
    transform: none !important;

    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  body.page-packages .three-package-campaign-badge,
  body.ecommerce-site-page .three-package-campaign-badge {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
  }

  /*
   * Fiyat kutuları.
   */
  body.page-packages .three-package-price,
  body.ecommerce-site-page .three-package-price,
  body.page-packages .pkgv2-rest-price,
  body.ecommerce-site-page .pkgv2-rest-price {
    width: 100% !important;
    min-width: 0 !important;

    margin: 16px 0 !important;
    padding: 14px !important;

    border-radius: 10px !important;
  }

  body.page-packages .three-package-price strong,
  body.ecommerce-site-page .three-package-price strong,
  body.page-packages .pkgv2-rest-price strong,
  body.ecommerce-site-page .pkgv2-rest-price strong {
    overflow-wrap: anywhere !important;

    font-size: 28px !important;
    line-height: 1.1 !important;
  }

  body.page-packages .three-package-price > div,
  body.ecommerce-site-page .three-package-price > div {
    display: grid !important;
    gap: 5px !important;

    width: 100% !important;
  }

  body.page-packages .three-package-price b,
  body.ecommerce-site-page .three-package-price b {
    white-space: normal !important;
    font-size: 12px !important;
  }

  /*
   * Özellik listeleri.
   */
  body.page-packages .three-package-card ul,
  body.ecommerce-site-page .three-package-card ul,
  body.page-packages .pkgv2-rest-card ul,
  body.ecommerce-site-page .pkgv2-rest-card ul {
    width: 100% !important;

    margin: 0 0 20px !important;
    padding: 0 !important;
  }

  body.page-packages .three-package-card li,
  body.ecommerce-site-page .three-package-card li,
  body.page-packages .pkgv2-rest-card li,
  body.ecommerce-site-page .pkgv2-rest-card li {
    overflow-wrap: anywhere !important;
    font-size: 13px !important;
    line-height: 1.48 !important;
  }

  /*
   * Paket butonları.
   */
  body.page-packages .three-package-btn,
  body.ecommerce-site-page .three-package-btn,
  body.page-packages .pkgv2-rest-card a,
  body.ecommerce-site-page .pkgv2-rest-card a {
    width: 100% !important;
    max-width: none !important;
    min-height: 46px !important;

    margin-top: auto !important;
    padding: 12px 14px !important;

    text-align: center !important;
    justify-content: center !important;

    border-radius: 8px !important;
  }

  /*
   * Karşılaştırma bölümlerinin dış yapısı.
   */
  body.page-packages .three-package-feature-compare,
  body.ecommerce-site-page .three-package-feature-compare,
  body.page-packages .pkgv2-rest-compare,
  body.ecommerce-site-page .pkgv2-rest-compare {
    display: block !important;

    width: calc(100% - 20px) !important;
    max-width: none !important;

    margin: 40px auto !important;
    padding: 0 !important;

    overflow: visible !important;

    transform: none !important;
    translate: none !important;
  }

  body.page-packages .three-package-compare-title,
  body.ecommerce-site-page .three-package-compare-title {
    width: 100% !important;
    margin: 0 0 16px !important;
    padding: 0 4px !important;
  }

  body.page-packages .three-package-compare-title h2,
  body.ecommerce-site-page .three-package-compare-title h2 {
    margin: 0 0 7px !important;

    font-size: 25px !important;
    line-height: 1.18 !important;
    letter-spacing: -.6px !important;
  }

  body.page-packages .three-package-compare-title p,
  body.ecommerce-site-page .three-package-compare-title p {
    margin: 0 !important;

    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  /*
   * Yatay kaydırılabilir tablo alanı.
   */
  body.page-packages .three-package-table-wrap,
  body.ecommerce-site-page .three-package-table-wrap {
    position: relative !important;

    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    overscroll-behavior-x: contain !important;
    -webkit-overflow-scrolling: touch !important;

    scroll-behavior: smooth !important;
    scroll-snap-type: x proximity !important;

    border: 1px solid #d5dfeb !important;
    border-radius: 11px !important;

    background: #ffffff !important;

    scrollbar-width: thin !important;
    scrollbar-color: #55718f #e9eef5 !important;
  }

  body.page-packages .three-package-table-wrap::-webkit-scrollbar,
  body.ecommerce-site-page .three-package-table-wrap::-webkit-scrollbar {
    height: 8px !important;
  }

  body.page-packages .three-package-table-wrap::-webkit-scrollbar-track,
  body.ecommerce-site-page .three-package-table-wrap::-webkit-scrollbar-track {
    background: #e9eef5 !important;
  }

  body.page-packages .three-package-table-wrap::-webkit-scrollbar-thumb,
  body.ecommerce-site-page .three-package-table-wrap::-webkit-scrollbar-thumb {
    background: #55718f !important;
    border-radius: 20px !important;
  }

  /*
   * Kullanıcıya kaydırma bilgisini göster.
   */
  body.page-packages .three-package-table-wrap::before,
  body.ecommerce-site-page .three-package-table-wrap::before {
    content: "← Tabloyu sağa kaydırarak paketleri karşılaştırın →" !important;

    position: sticky !important;
    left: 0 !important;
    z-index: 7 !important;

    display: block !important;

    width: max-content !important;
    max-width: calc(100vw - 42px) !important;

    margin: 0 !important;
    padding: 9px 12px !important;

    color: #234363 !important;
    background: #edf4fb !important;

    border-right: 1px solid #d5dfeb !important;
    border-bottom: 1px solid #d5dfeb !important;
    border-bottom-right-radius: 8px !important;

    white-space: normal !important;

    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
  }

  /*
   * E-ticaret karşılaştırma tablosu.
   */
  body.page-packages .three-package-table,
  body.ecommerce-site-page .three-package-table,
  body.page-packages .pkgv2-rest-table,
  body.ecommerce-site-page .pkgv2-rest-table {
    display: table !important;

    width: max-content !important;
    min-width: 1130px !important;
    max-width: none !important;

    margin: 0 !important;

    border-collapse: separate !important;
    border-spacing: 0 !important;

    table-layout: fixed !important;
  }

  body.page-packages .three-package-table th,
  body.page-packages .three-package-table td,
  body.ecommerce-site-page .three-package-table th,
  body.ecommerce-site-page .three-package-table td,
  body.page-packages .pkgv2-rest-table th,
  body.page-packages .pkgv2-rest-table td,
  body.ecommerce-site-page .pkgv2-rest-table th,
  body.ecommerce-site-page .pkgv2-rest-table td {
    box-sizing: border-box !important;

    width: 132px !important;
    min-width: 132px !important;
    max-width: 132px !important;

    padding: 10px 8px !important;

    white-space: normal !important;
    overflow-wrap: anywhere !important;

    text-align: center !important;
    vertical-align: middle !important;

    font-size: 11px !important;
    line-height: 1.3 !important;
  }

  body.page-packages .three-package-table thead th,
  body.ecommerce-site-page .three-package-table thead th,
  body.page-packages .pkgv2-rest-table thead th,
  body.ecommerce-site-page .pkgv2-rest-table thead th {
    height: 86px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
  }

  /*
   * İlk özellik sütunu kaydırılırken sabit kalsın.
   */
  body.page-packages .three-package-table th:first-child,
  body.page-packages .three-package-table td:first-child,
  body.ecommerce-site-page .three-package-table th:first-child,
  body.ecommerce-site-page .three-package-table td:first-child,
  body.page-packages .pkgv2-rest-table th:first-child,
  body.page-packages .pkgv2-rest-table td:first-child,
  body.ecommerce-site-page .pkgv2-rest-table th:first-child,
  body.ecommerce-site-page .pkgv2-rest-table td:first-child {
    position: sticky !important;
    left: 0 !important;

    width: 174px !important;
    min-width: 174px !important;
    max-width: 174px !important;

    text-align: left !important;

    background: #f6f9fc !important;

    border-right: 1px solid #ccd8e5 !important;

    box-shadow: 5px 0 9px rgba(23, 48, 77, .08) !important;
  }

  body.page-packages .three-package-table tbody td:first-child,
  body.ecommerce-site-page .three-package-table tbody td:first-child,
  body.page-packages .pkgv2-rest-table tbody th:first-child,
  body.ecommerce-site-page .pkgv2-rest-table tbody th:first-child {
    z-index: 3 !important;

    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
  }

  body.page-packages .three-package-table thead th:first-child,
  body.ecommerce-site-page .three-package-table thead th:first-child,
  body.page-packages .pkgv2-rest-table thead th:first-child,
  body.ecommerce-site-page .pkgv2-rest-table thead th:first-child {
    z-index: 6 !important;
    background: #eaf1f8 !important;
  }

  body.page-packages .three-package-table td.yes,
  body.ecommerce-site-page .three-package-table td.yes,
  body.page-packages .pkgv2-rest-table td.yes,
  body.ecommerce-site-page .pkgv2-rest-table td.yes {
    color: #14854f !important;
    font-size: 17px !important;
    font-weight: 900 !important;
  }

  body.page-packages .three-package-table td.no,
  body.ecommerce-site-page .three-package-table td.no,
  body.page-packages .pkgv2-rest-table td.no,
  body.ecommerce-site-page .pkgv2-rest-table td.no {
    color: #9a3d45 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
  }

  /*
   * Eski compare sınıfıyla hazırlanmış tablolar.
   */
  body.page-packages table.compare,
  body.ecommerce-site-page table.compare {
    display: table !important;

    width: max-content !important;
    min-width: 760px !important;
    max-width: none !important;

    margin: 0 !important;

    white-space: normal !important;
    table-layout: fixed !important;
  }
}

@media (max-width: 420px) {

  body.page-packages .three-package-card,
  body.ecommerce-site-page .three-package-card,
  body.page-packages .pkgv2-rest-card,
  body.ecommerce-site-page .pkgv2-rest-card {
    padding: 16px !important;
  }

  body.page-packages .three-package-head h2,
  body.ecommerce-site-page .three-package-head h2 {
    font-size: 20px !important;
  }

  body.page-packages .three-package-table th,
  body.page-packages .three-package-table td,
  body.ecommerce-site-page .three-package-table th,
  body.ecommerce-site-page .three-package-table td {
    width: 116px !important;
    min-width: 116px !important;
    max-width: 116px !important;

    padding: 9px 6px !important;

    font-size: 10px !important;
  }

  body.page-packages .three-package-table th:first-child,
  body.page-packages .three-package-table td:first-child,
  body.ecommerce-site-page .three-package-table th:first-child,
  body.ecommerce-site-page .three-package-table td:first-child {
    width: 154px !important;
    min-width: 154px !important;
    max-width: 154px !important;
  }
}
