/* Home opening hours table — mobile-first, adapted from template hours.css */

.opening-hours {
  padding: 0 20px 56px;
  background: none;
  color: #1c1c1c;
}


.hours-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #818185;
}

.hours-table caption,
.hours-table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hours-table,
.hours-table tbody {
  display: block;
}

.hours-table colgroup {
  display: none;
}

.hours-table tbody tr {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 20px 0;
  border-bottom: 1px solid #eceef0;
}

.hours-table td,
.hours-table tbody th {
  display: block;
  padding: 0;
  border: 0;
  width: auto;
  vertical-align: middle;
  transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease;
}

.hours-table tbody th {
  grid-row: 1;
  color: #414145;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-align: left;
}

.hours-time > span,
.hours-table tbody th > span,
.hours-floor > span {
  display: block;
}

.hours-table .hours-time {
  color: #626268;
  font-size: 14px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.hours-day {
  display: inline;
  margin-left: 6px;
}

.hours-table .hours-floor {
  text-align: left;
  font-size: 12px;
  line-height: 1.6;
}

.hours-next-day {
  display: block;
  margin-top: 3px;
  font-size: 11px;
}

/* Pair store names with floors on stacked mobile rows that share the same time. */
.hours-table tbody tr:nth-child(3) .hours-floor > span:first-child::before {
  content: "Annam Gourmet · ";
}

.hours-table tbody tr:nth-child(3) .hours-floor > span:last-child::before {
  content: "Anh Coffee · ";
}

@media (min-width: 768px) {
  .opening-hours {
    padding: 12px 40px 72px;
  }

  .hours-table,
  .hours-table tbody {
    display: table;
    width: 100%;
  }

  .hours-table tbody {
    display: table-row-group;
  }

  .hours-table colgroup {
    display: table-column-group;
  }

  .hours-col-time {
    width: 32%;
  }

  .hours-col-store {
    width: 44%;
  }

  .hours-col-floor {
    width: 24%;
  }

  .hours-table tbody tr {
    display: table-row;
    padding: 0;
    border: 0;
  }

  .hours-table td,
  .hours-table tbody th {
    display: table-cell;
    padding: 20px 12px;
    border-bottom: 1px solid #eceef0;
  }

  .hours-table tbody th {
    color: inherit;
    font-size: 18px;
  }

  .hours-table .hours-time {
    width: 32%;
    color: inherit;
  }

  .hours-table .hours-floor {
    width: 24%;
    text-align: right;
    font-size: 13px;
    line-height: 1.93;
  }

  .hours-day {
    display: block;
    margin-left: 0;
  }

  .hours-table tbody tr:nth-child(3) .hours-floor > span::before {
    content: none;
  }
}

@media (min-width: 992px) {
  .opening-hours {
    padding: 12px 56px 88px;
  }

  .hours-col-time,
  .hours-table .hours-time {
    width: 30%;
  }

  .hours-col-store,
  .hours-table tbody th {
    width: 50%;
  }

  .hours-col-floor,
  .hours-table .hours-floor {
    width: 20%;
    font-size: 14px;
  }

  .hours-table tbody th {
    font-size: 20px;
  }

  .hours-day {
    display: inline;
    margin-left: 8px;
  }
}

@media (hover: hover) and (min-width: 768px) {
  .hours-table tbody tr:hover > * {
    background: #edffed;
    color: #1c1c1c;
    border-bottom-color: #319b42;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hours-table td,
  .hours-table th {
    transition: none;
  }
}
