/* Kegs (page-kegs.php): the keg request form. The card, fields, choices, buttons and messages are the event pages'
   (css/events.css, loaded first; the column has both classes); this adds what only this form has. */

/* At most 760px wide in every window, like the hiring form (the store column is 980px, or 1240px from 1500px), in a
   paper panel just as wide plus its 20px margins: this file loads after events.css, whose panel rule for this template
   says 1060px (owner, 2026-11-07) */
#FullColumn.Kegs {
  max-width: 760px;
}
body.page-template-page-kegs #Container {
  max-width: 800px;
}

/* One card across the store column, like the hiring form. Rows: the beer and a second choice; the sizes; how
   many, when and the tap; name, email and phone; the note */
#FullColumn.Kegs .Fields.Beer {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#FullColumn.Kegs .Fields.When {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr);
}
#FullColumn.Kegs .Fields.When fieldset {
  margin: 0;
}
#FullColumn.Kegs .Fields.Contact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Keg sizes: one card per size, all four in a row, each a label around a radio that is hidden but still
   focusable */
#FullColumn.Kegs .Sizes .Cards {
  display: -ms-grid;
  display: grid;
  grid-gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
#FullColumn.Kegs label.Size {
  cursor: pointer;
  letter-spacing: 0;
  position: relative;
  text-transform: none;
}
#FullColumn.Kegs label.Size input {
  height: 1px;
  left: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  top: 0;
  width: 1px;
}
#FullColumn.Kegs label.Size span {
  background: #fff;
  border: 1px solid #ccb671;
  border-radius: 6px;
  box-sizing: border-box;
  display: block;
  font-size: 13px;
  font-weight: 500;
  height: 100%;
  line-height: 18px;
  padding: 10px 12px;
  transition: background 0.15s, color 0.15s;
}
#FullColumn.Kegs label.Size span:hover {
  background: #fdf0ea;
}
#FullColumn.Kegs label.Size strong {
  color: #3d3a1c;
  display: block;
  font-size: 15px;
  font-weight: 800; /* master.css's reset leaves <strong> at the normal weight */
  line-height: 20px;
  margin: 0 0 2px;
}
#FullColumn.Kegs label.Size input:checked + span {
  background: #cc4410;
  border-color: #cc4410;
  color: #fff;
}
#FullColumn.Kegs label.Size input:checked + span strong {
  color: #fff;
}
#FullColumn.Kegs label.Size input:focus-visible + span {
  box-shadow: inset 0 0 0 2px #65612f;
}

/* The questions under the form (tasty_kegs_faq() in inc/kegs.php): plain text on the paper, under the cards' quiet
   gold heading. master.css hides every #FullColumn h3 at 480px and narrower, so these say display:block */
#FullColumn.Kegs .KegFaq {
  margin: 0 0 30px;
  max-width: 760px;
}
#FullColumn.Kegs .KegFaq h3 {
  color: #3d3a1c;
  display: block;
  font-size: 16px;
  font-weight: 800;
  line-height: 22px;
  margin: 18px 0 4px;
}
#FullColumn.Kegs .KegFaq h2 + h3 {
  margin-top: 0;
}
#FullColumn.Kegs .KegFaq p {
  font-size: 15px;
  font-weight: 500;
  line-height: 23px;
  margin: 0;
  text-wrap: pretty;
}

/* Narrow windows: one field to a row, the sizes two to a row */
@media all and (max-width: 640px) {
  #FullColumn.Kegs .Fields.Beer,
  #FullColumn.Kegs .Fields.When,
  #FullColumn.Kegs .Fields.Contact {
    grid-template-columns: minmax(0, 1fr);
  }
  #FullColumn.Kegs .Sizes .Cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
