.forecasts--cards {
  --forecast-bg: #f2f2f0;
  --forecast-border: #dbdee0;
  --forecast-ink: #141417;
  --forecast-muted: #7a7d80;
  --forecast-blue: #0591b8;
  --forecast-medium: #ffc70a;
  --forecast-good: #26cc6b;
  --forecast-bad: #e01f1a;
}

.forecasts--cards .forecasts__tableContainer {
  box-sizing: border-box;
  background: var(--forecast-bg);
  padding: 0 32px 28px;
}

.forecasts--cards .forecasts__top {
  box-sizing: border-box;
  min-height: 72px;
  border-top: 3px solid var(--forecast-ink);
  padding-top: 18px;
  align-items: flex-start;
}

.forecasts--cards .forecasts__heading {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.forecasts--cards .forecasts__title {
  margin: 0;
  color: var(--forecast-ink);
  font-size: 24px;
  line-height: 28px;
}

.forecasts--cards .forecasts__top-link img {
  width: 88px;
  height: auto;
}

.forecasts--cards .forecasts__tabsContainerHidden {
  height: 75px;
}

.forecasts--cards .forecasts__tabsContainer {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.forecasts--cards .forecasts__tabsContainer::-webkit-scrollbar {
  display: none;
}

.forecasts--cards .forecasts__tabsContainer-list {
  gap: 10px;
  margin: 20px 0 0;
  padding: 0 0 20px;
  border: 0;
}

.forecasts--cards .beachcamChip {
  box-sizing: border-box;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 17px;
  background: #fff;
  color: var(--forecast-ink);
  white-space: nowrap;
}

.forecasts--cards .beachcamChip.selected {
  background: var(--forecast-blue);
  color: #fff;
}

.forecasts--cards .beachcamChip p,
.forecasts--cards .beachcamChip__date {
  font-size: 11px;
  line-height: 34px;
}

.forecasts--cards .forecasts__tabsContent-item,
.forecasts--cards .forecasts__tabsContent-item.active {
  overflow: visible;
}

.forecasts--cards .forecasts__tabsContent {
  height: auto !important;
}

.forecasts--cards .forecasts__tabsContent-item.active {
  padding: 0;
  cursor: default;
}

.forecasts--cards .forecasts__hoursScroller {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.forecasts--cards .forecasts__hoursScroller::-webkit-scrollbar {
  display: none;
}

.forecasts--cards .forecasts__hoursScroller.selected {
  cursor: grabbing;
}

.forecasts--cards .forecasts__table {
  display: block;
  width: max-content;
  max-width: none;
  border: 0;
  border-collapse: separate;
  color: var(--forecast-ink);
  font-size: 11px;
}

.forecasts--cards .forecasts__table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.forecasts--cards .forecasts__table tbody {
  display: flex;
  gap: 8px;
}

.forecasts--cards .forecasts__table tbody tr {
  position: relative;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: 55px 65px repeat(4, 40px) 56px 40px;
  flex: 0 0 116px;
  width: 116px;
  height: 378px;
  border: 1px solid var(--forecast-border);
  border-radius: 14px;
  background: #fff;
}

.forecasts--cards .forecasts__table tbody tr::before {
  content: "";
  position: absolute;
  top: 43px;
  left: 11px;
  right: 11px;
  height: 3px;
  background: var(--forecast-border);
}

.forecasts--cards .forecasts__table tbody tr[data-condition="medium"]::before { background: var(--forecast-medium); }
.forecasts--cards .forecasts__table tbody tr[data-condition="high"]::before { background: var(--forecast-good); }
.forecasts--cards .forecasts__table tbody tr[data-condition="low"]::before { background: var(--forecast-bad); }

.forecasts--cards .forecasts__table tbody td {
  position: relative;
  box-sizing: border-box;
  display: block;
  min-width: 0;
  width: 100%;
  height: auto;
  padding: 19px 11px 0;
  background: transparent;
  color: var(--forecast-ink);
  text-align: left;
  white-space: nowrap;
  font-size: 11px;
  line-height: 13px;
}

.forecasts--cards .forecasts__table tbody td:nth-child(n+3) {
  border-top: 1px solid #edf0f1;
}

.forecasts--cards .forecasts__table tbody td::after,
.forecasts--cards .forecasts__table tbody td div::after {
  display: none;
}

.forecasts--cards .forecasts__table tbody td::before {
  content: attr(data-label);
  position: absolute;
  left: 11px;
  top: 4px;
  color: var(--forecast-blue);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 12px;
}

.forecasts--cards .forecasts__table tbody td:first-child {
  padding-top: 15px;
  color: var(--forecast-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
}

.forecasts--cards .forecasts__table tbody td:first-child::before { display: none; }
.forecasts--cards .forecasts__table tbody td:nth-child(2)::before { color: #5e666e; }

.forecasts--cards .forecasts__table tbody td:nth-child(2) {
  padding-top: 21px;
}

.forecasts--cards .forecasts__table tbody td:nth-child(2) strong {
  font-family: "GT America Trial", "Arial Narrow", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 26px;
}

.forecasts--cards .forecasts__table tbody td:nth-child(2) span {
  font-size: 17px;
  font-weight: 700;
}

.forecasts--cards .forecasts__table tbody td div,
.forecasts--cards .forecasts__table tbody td .forecasts__cell {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  min-width: 0;
  width: auto;
  height: auto;
  background: transparent;
}

.forecasts--cards .forecasts__table tbody td strong {
  font-weight: 600;
}

.forecasts--cards .forecasts__table tbody td:nth-child(n+3) strong {
  font-size: 15px;
  line-height: 19px;
  font-weight: 700;
}

.forecasts--cards .forecasts__table tbody td:nth-child(n+3) span {
  font-size: 13px;
  line-height: 19px;
}

.forecasts--cards .forecasts__table tbody td:nth-child(3) img,
.forecasts--cards .forecasts__table tbody td:nth-child(6) img {
  width: 14px;
  height: 14px;
  top: auto;
}

.forecasts--cards .forecasts__table tbody td:nth-child(7) .forecasts__cell {
  width: 100%;
  justify-content: space-between;
  padding-right: 1px;
}

.forecasts--cards .forecasts__table tbody td:nth-child(7) .forecasts__cell > div {
  min-width: 0;
  background: transparent;
}

.forecasts--cards .forecasts__table tbody td:nth-child(7) .forecasts__cell > div:last-child {
  position: absolute;
  top: -5px;
  right: 11px;
  width: 30px;
  height: 31px;
  justify-content: center;
}

.forecasts--cards .forecasts__table tbody td:nth-child(7) img {
  width: auto;
  height: auto;
  max-width: none;
  top: auto;
  background: transparent;
}

.forecasts--cards .forecasts__tableBottom {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 58%) minmax(0, 42%);
  min-height: 0;
  margin-top: 24px;
  padding: 12px 18px;
  border: 1px solid var(--forecast-border);
  border-radius: 14px;
  background: #fff;
}

.forecasts--cards .forecasts__tides {
  min-width: 0;
  padding-right: 18px;
  font-family: "Maison Neue", sans-serif;
}

.forecasts--cards .forecasts__tidesTitle {
  margin: 0 0 3px;
  color: #323d45;
  font-family: "Maison Neue", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 17px;
}

.forecasts--cards .forecasts__tideChart {
  position: relative;
  height: 108px;
  overflow: hidden;
  background: #fff;
}

.forecasts--cards .forecasts__tideCurve {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.forecasts--cards .forecasts__tideEvents {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.forecasts--cards .forecasts__tideEvents:not(.is-ready) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.forecasts--cards .forecasts__tideEvent {
  position: absolute;
  z-index: 1;
  top: 0;
  left: var(--tide-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
  color: #25343f;
  text-align: center;
  line-height: 1.05;
  transform: translateX(-50%);
}

.forecasts--cards .forecasts__tideEvents:not(.is-ready) .forecasts__tideEvent {
  position: static;
  width: auto;
  transform: none;
}

.forecasts--cards .forecasts__tideEvents:not(.is-ready) .forecasts__tideEvent[data-kind="LOW_TIDE"] { top: auto; }

.forecasts--cards .forecasts__tideEvent[data-kind="LOW_TIDE"] { top: 34px; }
.forecasts--cards .forecasts__tideEvent strong { font-size: 12px; }
.forecasts--cards .forecasts__tideEvent span { font-size: 10px; }
.forecasts--cards .forecasts__tideEvent b { font-size: 12px; }

.forecasts--cards .forecasts__tideEmpty {
  display: flex;
  align-items: center;
  min-height: 108px;
  margin: 0;
  padding: 16px;
  border-radius: 10px;
  background: #f8fbfd;
  color: #687783;
  font-size: 12px;
}

.forecasts--cards .forecasts__tableBottom .forecasts__table--last {
  display: block;
  width: 100%;
  min-width: 0;
  border: 0;
  color: var(--forecast-ink);
  font-size: 11px;
}

.forecasts--cards .forecasts__tableBottom .forecasts__table--last thead,
.forecasts--cards .forecasts__tableBottom .forecasts__table--last tbody {
  display: block;
}

.forecasts--cards .forecasts__tableBottom .forecasts__table--last tr {
  display: flex;
  width: 100%;
  height: 34px;
  border-bottom: 1px solid var(--forecast-border);
}

.forecasts--cards .forecasts__tableBottom .forecasts__table--last thead tr {
  height: 28px;
  border: 0;
}

.forecasts--cards .forecasts__tableBottom .forecasts__table--last tbody tr:last-child {
  border-bottom: 0;
}

.forecasts--cards .forecasts__tableBottom .forecasts__table--last th,
.forecasts--cards .forecasts__tableBottom .forecasts__table--last td {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  width: auto;
  height: auto;
  padding: 0;
  background: transparent;
  color: var(--forecast-ink);
  text-align: left;
  font-size: 11px;
}

.forecasts--cards .forecasts__tableBottom .forecasts__table--last td::after,
.forecasts--cards .forecasts__tableBottom .forecasts__table--last td div::after {
  display: none;
}

.forecasts--cards .forecasts__tableBottom .forecasts__table--last th:first-child {
  display: none;
}

.forecasts--cards .forecasts__tableBottom .forecasts__table--last td:first-child {
  flex: 0 0 88px;
  color: #616970;
}

.forecasts--cards .forecasts__tableBottom .forecasts__table--last td:nth-child(2) {
  flex: 1;
}

.forecasts--cards .forecasts__tableBottom .forecasts__table--last .forecasts__cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  width: 100%;
  height: auto;
}

.forecasts--cards .forecasts__tableBottom .forecasts__table--last .forecasts__cell div {
  display: flex;
  align-items: center;
  min-width: 0;
  width: auto;
  height: auto;
  background: transparent;
}

.forecasts--cards .forecasts__tableBottom .forecasts__table--last .forecasts__cell div:last-child {
  padding-right: 25px;
}

.forecasts--cards .forecasts__tableBottom .forecasts__table--last tbody tr:nth-child(odd) td:nth-child(2) .forecasts__cell div:first-child strong {
  color: #249fc1;
}

.forecasts--cards .forecasts__tableBottom .forecasts__table--last tbody tr:nth-child(even) td:nth-child(2) .forecasts__cell div:first-child strong {
  color: #fa9729;
}

.forecasts--cards .forecasts__tableBottom .forecasts__table--last.hour {
  box-sizing: border-box;
  padding-left: 29px;
  border-left: 1px solid var(--forecast-border);
}

.forecasts--cards .forecasts__tableBottom .forecasts__table--last.hour th:first-child {
  display: flex;
}

.forecasts--cards .forecasts__tableBottom .forecasts__table--last.hour thead th,
.forecasts--cards .forecasts__tableBottom .forecasts__table--last.hour .forecasts__cell--title {
  color: #323d45;
  font-family: "Maison Neue", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 17px;
}

.forecasts--cards .forecasts__tableBottom .forecasts__table--last.hour thead th strong,
.forecasts--cards .forecasts__tableBottom .forecasts__table--last.hour .forecasts__cell--title strong {
  color: inherit;
  font: inherit;
}

.forecasts--cards .forecasts__tableBottom .forecasts__table--last.hour tbody tr {
  min-height: 34px;
}

.forecasts--cards .forecasts__tableBottom .forecasts__table--last.hour tbody tr:nth-child(3) {
  margin-top: 15px;
  border: 0;
}

.forecasts--cards .forecasts__tableBottom .forecasts__table--last.hour tbody tr:nth-child(4) {
  border: 0;
}

.forecasts--cards .forecasts__tableBottom .forecasts__table--last.hour td {
  flex: 1 1 100%;
  width: 100%;
}

.forecasts--cards .forecasts__tableBottom .forecasts__table--last.hour .forecasts__cell div:first-child {
  min-width: 0;
}

.forecasts--cards .forecasts__tableBottom .forecasts__table--last.hour .forecasts__cell div:last-child {
  padding-right: 0;
}

.forecasts--cards .forecasts__tableBottom .forecasts__table--last.hour tbody tr:nth-child(-n+2) .forecasts__cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px 18px;
  column-gap: 8px;
}

.forecasts--cards .forecasts__tableBottom .forecasts__table--last.hour tbody tr:nth-child(-n+2) .forecasts__cell div:first-child {
  justify-content: flex-start;
}

.forecasts--cards .forecasts__tableBottom .forecasts__table--last.hour tbody tr:nth-child(-n+2) .forecasts__cell div:nth-child(2),
.forecasts--cards .forecasts__tableBottom .forecasts__table--last.hour tbody tr:nth-child(-n+2) .forecasts__cell div:nth-child(3) {
  justify-content: flex-end;
  font-variant-numeric: tabular-nums;
}

.forecasts--cards .forecasts__tableBottom .forecasts__table--last.hour .forecasts__cell strong,
.forecasts--cards .forecasts__tableBottom .forecasts__table--last.hour .forecasts__cell span,
.forecasts--cards .forecasts__tableBottom .forecasts__table--last.hour .forecasts__cell--title strong {
  background: transparent;
}

.forecasts--cards .forecasts__tableBottom .forecasts__table--last.hour img {
  width: 18px;
  height: 18px;
  top: auto;
  background: transparent;
}

.forecasts--cards .forecasts__tableBottom .forecasts__table--last.hour thead tr { height: 22px; }
.forecasts--cards .forecasts__tableBottom .forecasts__table--last.hour tbody tr { height: 27px; min-height: 27px; }
.forecasts--cards .forecasts__tableBottom .forecasts__table--last.hour tbody tr:nth-child(3) {
  height: 21px;
  min-height: 21px;
  margin-top: 2px;
}

@media (max-width: 1100px) {
  .forecasts--cards .forecasts__tableContainer { max-width: 100%; }
}

@media (max-width: 680px) {
  .forecasts--cards .forecasts__tableContainer { padding: 0 16px 24px; }
  .forecasts--cards .forecasts__tabsContainerHidden { height: 70px; }
  .forecasts--cards .forecasts__tableBottom {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 16px;
  }
  .forecasts--cards .forecasts__tableBottom .forecasts__table--last.hour {
    border-left: 0;
    border-top: 1px solid var(--forecast-border);
    padding: 9px 0 0;
  }
  .forecasts--cards .forecasts__tides { padding-right: 0; }
  .forecasts--cards .forecasts__tableBottom .forecasts__table--last .forecasts__cell div:last-child {
    padding-right: 0;
  }
}
