/**
 * Grassington House — wine list styles
 * Scoped to .gh-wine inside menu pages.
 */

.gh-wine {
  text-align: left;
}

.gh-wine .wine_nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.65rem;
  margin: 0 0 2rem;
  padding: 0 0 1.25rem;
  border-bottom: 1px dotted #ccc;
}

.gh-wine .wine_nav_link {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #a1824d;
  border: 1px solid #d8c9a8;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.gh-wine .wine_nav_link:hover,
.gh-wine .wine_nav_link:focus {
  background: #a1824d;
  color: #fff;
  text-decoration: none;
}

.gh-wine .wine_tools {
  margin: 0 0 1.75rem;
  text-align: center;
}

.gh-wine .wine_search {
  width: 100%;
  max-width: 22rem;
  padding: 0.55rem 0.85rem;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  color: #444;
}

.gh-wine .wine_search:focus {
  outline: none;
  border-color: #a1824d;
  box-shadow: 0 0 0 2px rgba(161, 130, 77, 0.15);
}

.gh-wine .wine_meta {
  margin: 0.75rem 0 0;
  font-size: 14px;
  color: #777;
  font-style: italic;
}

.gh-wine .wine_section {
  margin-bottom: 3rem;
  scroll-margin-top: 1.5rem;
}

.gh-wine .wine_section:last-child {
  margin-bottom: 0;
}

.gh-wine .wine_section_title {
  font-family: "Open Sans", sans-serif;
  margin: 0 0 1rem;
  padding: 0 0 4px;
  font-weight: 300;
  font-size: 25px;
  font-style: normal;
  color: #a1824d;
  text-transform: uppercase;
  text-align: center;
  border-bottom: 1px dotted #a1824d;
}

.gh-wine .wine_subsection_title {
  font-family: "Open Sans", sans-serif;
  margin: 1.75rem 0 0.75rem;
  padding: 0;
  font-weight: 600;
  font-size: 16px;
  color: #a1824d;
  text-transform: uppercase;
  text-align: center;
  border: none;
}

.gh-wine .wine_price_head {
  display: none;
}

.gh-wine .wine_item {
  padding: 1rem 0;
  border-bottom: 1px solid #ece7dc;
}

.gh-wine .wine_item:last-child {
  border-bottom: none;
}

.gh-wine .wine_item.is-hidden {
  display: none;
}

.gh-wine .wine_head {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto auto;
  gap: 0.5rem 0.75rem;
  align-items: start;
}

.gh-wine .wine_item:not(:has(.wine_num)) .wine_head {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.gh-wine .wine_num {
  font-weight: 700;
  font-size: 15px;
  color: #a1824d;
  line-height: 1.4;
  padding-top: 0.1rem;
}

.gh-wine .wine_name {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: #444;
  text-transform: none;
  border: none;
}

.gh-wine .wine_prices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin: 0;
  justify-content: flex-end;
}

.gh-wine .wine_price {
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.gh-wine .wine_price dt {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #999;
}

.gh-wine .wine_price dd {
  margin: 0.1rem 0 0;
  font-size: 15px;
  font-weight: 700;
  color: #666;
}

.gh-wine .wine_price_na {
  color: #bbb;
  font-weight: 400;
}

.gh-wine .wine_toggle {
  align-self: start;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid #d8c9a8;
  border-radius: 50%;
  background: #faf8f4;
  color: #a1824d;
  cursor: pointer;
  line-height: 1;
}

.gh-wine .wine_toggle:hover,
.gh-wine .wine_toggle:focus {
  background: #a1824d;
  border-color: #a1824d;
  outline: none;
}

.gh-wine .wine_toggle:hover .wine_toggle_icon,
.gh-wine .wine_toggle:focus .wine_toggle_icon {
  border-color: #fff;
}

.gh-wine .wine_toggle_icon {
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  margin: 0.55rem auto 0;
  border-right: 2px solid #a1824d;
  border-bottom: 2px solid #a1824d;
  transform: rotate(45deg);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.gh-wine .wine_toggle[aria-expanded="true"] .wine_toggle_icon {
  margin-top: 0.7rem;
  transform: rotate(-135deg);
}

.gh-wine .wine_note_wrap {
  display: none;
  margin-top: 0.35rem;
  padding-left: 2.75rem;
}

.gh-wine .wine_item.is-open .wine_note_wrap {
  display: block;
}

.gh-wine .wine_note {
  margin: 0;
  padding: 0.65rem 0 0;
  max-width: 40em;
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.55;
  color: #777;
}

@media (max-width: 767px) {
  .gh-wine .wine_head {
    grid-template-columns: 2rem minmax(0, 1fr) auto;
  }

  .gh-wine .wine_item:not(:has(.wine_num)) .wine_head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .gh-wine .wine_prices {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 2.75rem;
  }

  .gh-wine .wine_item:not(:has(.wine_num)) .wine_prices {
    padding-left: 0;
  }

  .gh-wine .wine_toggle {
    grid-row: 1;
    grid-column: 3;
  }

  .gh-wine .wine_note_wrap {
    padding-left: 2.75rem;
  }

  .gh-wine .wine_item:not(:has(.wine_num)) .wine_note_wrap {
    padding-left: 0;
  }
}

@media (min-width: 768px) {
  .gh-wine .wine_head {
    grid-template-columns: 2rem minmax(0, 1fr) auto auto;
  }

  .gh-wine .wine_note_wrap {
    padding-left: 2.75rem;
  }

  .gh-wine .wine_item:not(:has(.wine_num)) .wine_note_wrap {
    padding-left: 0;
  }
}
