/* QPlus fiyatlar mobil düzeltme
   Amaç: ikinci/dahili dikey scrollu kaldırmak; sayfa aşağıya normal aksın.
   Sadece mobil görünümü etkiler. */

@media (max-width: 768px) {
  html,
  body,
  .page-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  .price-page-content {
    width: 100%;
    max-width: 100%;
    padding: 30px 8px 18px !important;
    margin: 0 auto !important;
    overflow: visible !important;
  }

  .price-section {
    width: 100%;
    max-width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .filters-container {
    margin-bottom: 18px !important;
  }

  .selected-date-info {
    padding: 0 8px;
    font-size: 0.92rem;
  }

  /* İç/dikey scrollbar burada kaldırılır. Sadece yatay tablo kaydırması kalır. */
  .price-table-container {
    display: block;
    width: calc(100vw - 18px) !important;
    max-width: calc(100vw - 18px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 auto 16px !important;
    padding: 0 !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    border-width: 3px !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
  }

  .price-table-container::-webkit-scrollbar {
    height: 8px;
  }

  .price-table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.10);
    border-radius: 999px;
  }

  .price-table-container::-webkit-scrollbar-thumb {
    background: #FAB403;
    border-radius: 999px;
  }

  #price-table {
    width: 690px !important;
    min-width: 690px !important;
    max-width: none !important;
    table-layout: fixed !important;
    margin: 0 !important;
    border-collapse: collapse !important;
  }

  #price-table thead,
  #price-table tbody,
  #price-table tr {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  #price-table tbody {
    display: table-row-group !important;
  }

  #price-table tr {
    display: table-row !important;
  }

  #price-table th,
  #price-table td {
    padding: 10px 8px !important;
    font-size: 0.82rem !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  #price-table th:first-child,
  #price-table td:first-child {
    width: 160px !important;
  }

  #price-table th:nth-child(n+2),
  #price-table td:nth-child(n+2) {
    width: 132px !important;
  }

  #footer-placeholder {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    clear: both;
  }
}

@media (max-width: 420px) {
  #price-table {
    width: 660px !important;
    min-width: 660px !important;
  }

  #price-table th:first-child,
  #price-table td:first-child {
    width: 148px !important;
  }

  #price-table th:nth-child(n+2),
  #price-table td:nth-child(n+2) {
    width: 128px !important;
  }

  #price-table th,
  #price-table td {
    padding: 9px 7px !important;
    font-size: 0.80rem !important;
  }
}
