/* ==========================================================================
   Texan Tea - Gallon & Half Gallon Pre-Order Form
   Load AFTER common.css / desktop.css / tablet.css / mobile.css.
   Desktop-first with max-width queries, matching the theme convention.

   Brand: brown #754c29  teal #41c1c3  yellow #ffce07  red #96291f
          dark #351c06   cream #ecebe4
   ========================================================================== */

/* ---------- Section headings ------------------------------------------- */

.ttPreorder h5 {
  color: #754c29;
  border-bottom: 3px solid #ffce07;
  padding-bottom: 8px;
  margin: 40px 0 18px;
}

.ttPreorder h5:first-child { margin-top: 0; }

.ttPreorder .ttIntro {
  color: #754c29;
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 160%;
}

.ttPreorder .smalltext {
  display: block;
  color: #754c29;
  opacity: .85;
  font-size: 14px;
  line-height: 140%;
  margin: -10px 0 14px;
}

/* Location / time helper notes sit right under their select. */
.ttPreorder .ttLocNote,
.ttPreorder .ttTimeNote { display: block; }

.ttPreorder .ttLocNote .smalltext strong { color: #96291f; }

/* ---------- Drink rows -------------------------------------------------- */

.ttPreorder .ttItems { margin-bottom: 8px; }

.ttPreorder .ttItem {
  position: relative;
  background: #fff;
  border: 2px solid rgba(117, 76, 41, .18);
  border-radius: 6px;
  padding: 20px 22px 6px;
  margin-bottom: 16px;
}

.ttPreorder .ttItem:before {
  content: "";
  position: absolute;
  left: -2px;
  top: -2px;
  bottom: -2px;
  width: 6px;
  background: #41c1c3;
  border-radius: 6px 0 0 6px;
}

/* Extra rows stay out of the way until asked for, but only when the script
   is running. With no JS every row shows and the form still submits. */
.ttPreorder.ttJs .ttItemExtra { display: none; }
.ttPreorder.ttJs .ttItemExtra.ttItemOn { display: block; }

.ttPreorder .ttItemHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

/* The brand grunge face has no clear numerals - its "1" reads as an "i" and
   its digits collide. Anything containing a number uses a plain face. */
.ttPreorder .ttItemTitle {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #754c29;
  font-size: 18px;
  line-height: 1;
}

.ttPreorder .ttRemove {
  background: none;
  border: 0;
  color: #96291f;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 6px 4px;
}

.ttPreorder .ttRemove:hover { color: #351c06; }

/* The first drink is the order - it cannot be removed. */
.ttPreorder .ttItem[data-item="1"] .ttRemove { display: none; }

/* ---------- Fields ------------------------------------------------------ */

.ttPreorder .ttField h6 {
  font-size: 15px !important;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #754c29;
  opacity: .9;
}

/* The theme sizes .wpcf7-text/-select/-textarea/-date. Tel and email inherit
   that through CF7's own wpcf7-text class - pin them anyway so a 40-char
   default size can never push the layout sideways on a phone. */
.ttPreorder .wpcf7-tel,
.ttPreorder .wpcf7-email,
.ttPreorder .wpcf7-text,
.ttPreorder .wpcf7-select,
.ttPreorder .wpcf7-textarea,
.ttPreorder .wpcf7-date {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* A field whose value is fixed by the drink choice. */
.ttPreorder .ttMuted { opacity: .45; }

.ttPreorder .ttMuted select { background: #f5f5f1; }

.ttPreorder .ttIceNote { margin-top: -12px; font-size: 13px; }

/* ---------- Half & half ------------------------------------------------- */

.ttPreorder .ttHalf {
  border-top: 1px dashed rgba(117, 76, 41, .25);
  padding-top: 14px;
  margin-top: 2px;
}

.ttPreorder .ttHalfLabel {
  display: block;
  font-family: "momoco_grungeregular", Helvetica, sans-serif;
  color: #41c1c3;
  font-size: 17px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.ttPreorder.ttJs .ttHalfB { display: none; }
.ttPreorder.ttJs .ttHalfB.ttHalfOn { display: block; }

.ttPreorder .ttHalfB .ttHalfLabel { color: #96291f; }

/* ---------- Per-row running price -------------------------------------- */

.ttPreorder .ttItemLine { min-height: 0; }

.ttPreorder .ttItemLine .ttLinePrice {
  display: block;
  text-align: right;
  color: #754c29;
  font-size: 16px;
  padding: 10px 0 12px;
  border-top: 1px solid rgba(117, 76, 41, .12);
  margin-top: 6px;
}

.ttPreorder .ttItemLine strong { color: #96291f; font-size: 19px; }

/* ---------- Add another drink ------------------------------------------ */

.ttPreorder .ttAddWrap { margin: 0 0 30px; }

.ttPreorder .ttAdd {
  background: #fff;
  border: 2px dashed #41c1c3;
  border-radius: 6px;
  color: #754c29;
  font-family: "momoco_grungeregular", Helvetica, sans-serif;
  font-size: 19px;
  letter-spacing: 1px;
  padding: 16px 20px;
  width: 100%;
  cursor: pointer;
  transition: all .2s linear;
}

.ttPreorder .ttAdd:hover {
  background: #41c1c3;
  border-color: #41c1c3;
  color: #fff;
}

/* ---------- Order summary ---------------------------------------------- */

.ttPreorder .ttSummary {
  background: #ecebe4;
  border: 2px solid #754c29;
  border-radius: 6px;
  padding: 22px 24px 18px;
  margin: 0 0 10px;
}

.ttPreorder .ttSummaryTitle {
  display: block;
  font-family: "momoco_grungeregular", Helvetica, sans-serif;
  color: #754c29;
  font-size: 24px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.ttPreorder .ttSummaryList {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.ttPreorder .ttSummaryList li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px dashed rgba(117, 76, 41, .3);
  font-size: 17px;
  line-height: 145%;
  color: #754c29;
}

.ttPreorder .ttSummaryList li:first-child { border-top: 0; }

.ttPreorder .ttSummaryList .ttSumEmpty {
  display: block;
  opacity: .7;
  font-style: italic;
}

.ttPreorder .ttSumQty {
  flex: 0 0 auto;
  font-weight: 700;
  color: #96291f;
  min-width: 34px;
}

.ttPreorder .ttSumDesc { flex: 1 1 auto; }
.ttPreorder .ttSumDesc em { color: #96291f; font-style: normal; }

.ttPreorder .ttSumPrice {
  flex: 0 0 auto;
  font-weight: 700;
  white-space: nowrap;
}

.ttPreorder .ttSummaryTotal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 3px solid #754c29;
  padding-top: 12px;
  font-family: "momoco_grungeregular", Helvetica, sans-serif;
  font-size: 21px;
  letter-spacing: 1px;
  color: #754c29;
}

/* Money in a plain face: the grunge numerals overlap and drop the decimal. */
.ttPreorder .ttSummaryTotal strong {
  font-size: 30px;
  color: #96291f;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

.ttPreorder .ttSummary .smalltext { margin: 10px 0 0; }

/* ---------- Confirmation checkbox --------------------------------------- */

/* The theme floats list items into two 48% columns - this one needs the row. */
.ttPreorder .wpcf7-form-control-wrap .wpcf7-checkbox { display: block; }

.ttPreorder span.wpcf7-list-item {
  width: 100%;
  display: flex;
  align-items: flex-start;
  margin: 6px 0 0;
}

.ttPreorder span.wpcf7-list-item input { margin-top: 5px; }

.ttPreorder span.wpcf7-list-item-label {
  font-size: 16px;
  line-height: 150%;
}

/* ---------- Submit ------------------------------------------------------ */

.ttPreorder .ctText {
  text-align: center;
  margin: 26px 0 10px;
}

/* ---------- Tablet ------------------------------------------------------ */

@media only screen and (max-width: 768px) {
  .ttPreorder .ttItem { padding: 18px 16px 4px; }
  .ttPreorder h5 { margin: 32px 0 16px; }
  .ttPreorder .ttSummary { padding: 18px 18px 16px; }
  .ttPreorder .ttSummaryTotal strong { font-size: 26px; }
}

/* ---------- Phone ------------------------------------------------------- */

@media only screen and (max-width: 480px) {
  .ttPreorder .ttItem {
    padding: 16px 14px 4px;
    border-radius: 5px;
  }

  .ttPreorder .ttItemTitle { font-size: 19px; }

  /* Give every control a full-width, thumb-sized target. */
  .ttPreorder .wpcf7-select,
  .ttPreorder .wpcf7-text,
  .ttPreorder .wpcf7-date {
    font-size: 16px; /* stops iOS zooming on focus */
    padding: 13px 12px;
  }

  .ttPreorder .wpcf7-select { height: 50px; }

  .ttPreorder .ttField h6 { font-size: 14px !important; }

  .ttPreorder .ttSummaryList li {
    flex-wrap: wrap;
    gap: 2px 8px;
  }

  .ttPreorder .ttSumDesc {
    flex: 1 1 100%;
    order: 3;
    padding-left: 34px;
  }

  .ttPreorder .ttSumPrice { margin-left: auto; }

  .ttPreorder .ttSummaryTotal {
    font-size: 18px;
    flex-wrap: wrap;
  }

  .ttPreorder .ttSummaryTotal strong { font-size: 24px; }

  .ttPreorder .ttAdd { font-size: 17px; padding: 15px 14px; }

  .ttPreorder .ctText .wpcf7-submit,
  .ttPreorder .ctText input[type="submit"] { width: 100%; }
}
