/* Mobile refinements shared by EuroPoker pages. */
@media (max-width: 900px) {
  .hamburger {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
  .mobile-menu.open {
    justify-content: flex-start;
    padding: 1rem 0 max(1rem, env(safe-area-inset-bottom));
    overscroll-behavior: contain;
  }
  .mobile-menu a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .content .table-scroll {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.75rem 0;
    border-radius: 8px;
  }
  .content .table-scroll > table {
    width: 100%;
    margin: 0;
  }
  .content .table-scroll.wide > table {
    min-width: 520px;
  }
  .content .table-scroll.wide::before,
  .content .table-wrap::before {
    content: "Scorri la tabella verso destra \2192";
    display: block;
    padding: .55rem .7rem;
    background: rgba(0, 0, 0, .22);
    color: #e8f5ee;
    font-size: .8rem;
  }

  /* Each deal becomes a card: logo and offer above a full-width link. */
  .content table.mini-comp {
    display: block;
    min-width: 0 !important;
    max-width: 520px;
    width: 100%;
    margin: 1.5rem auto !important;
    overflow: hidden;
  }
  .content .deal-wrap {
    overflow-x: visible;
  }
  .content .mini-comp tbody {
    display: block;
  }
  .content .mini-comp tr:first-child {
    display: none;
  }
  .content .mini-comp tr:not(:first-child):not(:last-child) {
    display: grid;
    grid-template-columns: minmax(80px, 100px) minmax(0, 1fr);
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, .14);
  }
  .content .mini-comp tr:not(:first-child):not(:last-child) td:first-child {
    grid-column: 1;
    grid-row: 1;
    width: auto !important;
    padding: 12px 8px !important;
  }
  .content .mini-comp tr:not(:first-child):not(:last-child) td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding: 12px 8px !important;
  }
  .content .mini-comp tr:not(:first-child):not(:last-child) td:nth-child(3) {
    grid-column: 1 / -1;
    width: auto !important;
    padding: 0 12px 12px !important;
    text-align: center !important;
  }
  .content .mini-comp td:nth-child(3) a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: 100%;
  }
  .content .mini-comp tr:last-child {
    display: block;
  }
  .content .mini-comp tr:last-child td {
    display: block;
    width: 100%;
  }

  /* Keep the main comparison page useful on phones. */
  .comp-table .op-row {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: .65rem;
    padding: 1rem;
  }
  .comp-table .op-logo-wrap {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .comp-table .op-logo-wrap img {
    max-width: 90px;
    height: auto;
  }
  .comp-table .op-bonus {
    grid-column: 2;
    min-width: 0;
  }
  .comp-table .stars {
    display: block;
    grid-column: 2;
  }
  .comp-table .btn-visita {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    width: 100%;
  }
}

@media (max-width: 380px) {
  .comp-table .op-row {
    grid-template-columns: 80px minmax(0, 1fr);
    padding: .85rem;
  }
  .comp-table .op-logo-wrap img {
    max-width: 75px;
  }
}
