
/* LUCAS EATS CREAMIS — BUILD YOUR PINT */

.lec-byp {
  --lec-ink: #26352d;
  --lec-green: #376c4d;
  --lec-line: #e1e6df;
  --lec-soft: #f5f8f4;
  color: var(--lec-ink);
  font: inherit;
  max-width: 1080px;
  margin: 20px auto;
  padding: clamp(16px, 3vw, 30px);
  border: 1px solid var(--lec-line);
  border-radius: 18px;
  box-sizing: border-box;
  background: #fff;
}

.lec-byp * {
  box-sizing: border-box;
}

.lec-byp .lec-head h2 {
  font-size: clamp(27px, 4vw, 39px);
  margin: 6px 0;
}

.lec-byp .lec-head p {
  margin: 0 0 22px;
}

.lec-byp .lec-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  color: var(--lec-green);
}

.lec-byp .lec-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(270px, 1fr);
  gap: 22px;
}

.lec-byp .lec-section {
  margin-bottom: 22px;
}

.lec-byp h3 {
  font-size: 19px;
  margin: 0 0 12px;
}

.lec-byp .lec-select,
.lec-byp .lec-placement select {
  width: 100%;
  padding: 11px;
  border: 1px solid #cbd6ca;
  border-radius: 9px;
  background: #fff;
  color: var(--lec-ink);
  font: inherit;
}

/* TOPPING ROWS */

.lec-byp .lec-topping {
  border: 1px solid var(--lec-line);
  padding: 12px;
  margin: 8px 0;
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.lec-byp .lec-topping strong,
.lec-byp .lec-topping small {
  display: block;
}

.lec-byp .lec-topping small,
.lec-byp .lec-muted {
  font-size: 12px;
  color: #58685d;
  line-height: 1.5;
}

.lec-byp .lec-counter {
  display: flex;
  align-items: center;
  gap: 9px;
}

.lec-byp button {
  cursor: pointer;
}

.lec-byp .lec-counter button {
  min-width: 34px;
  min-height: 34px;
  background: #fff;
  color: var(--lec-ink);
  border: 1px solid #bdcbbc;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
}

.lec-byp button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.lec-byp .lec-count {
  min-width: 18px;
  text-align: center;
}

.lec-byp .lec-placement {
  width: 100%;
  font-size: 12px;
}

.lec-byp .lec-placement select {
  margin-left: 8px;
  width: auto;
  padding: 6px;
}

/* BUTTONS */

.lec-byp .lec-reset {
  padding: 10px 16px;
  border: 1px solid #b7c8b9;
  background: #fff;
  color: var(--lec-ink);
  border-radius: 8px;
  font: inherit;
}

.lec-byp .lec-reset:hover {
  background: #edf3ec;
}

/* NUTRITION SUMMARY */

.lec-byp .lec-summary {
  background: var(--lec-soft);
  padding: 20px;
  border-radius: 14px;
  align-self: start;
}

.lec-byp .lec-summary h3 {
  margin-top: 8px;
}

.lec-byp .lec-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}

.lec-byp .lec-stat {
  background: #fff;
  padding: 13px;
  border-radius: 10px;
}

.lec-byp .lec-stat small,
.lec-byp .lec-stat strong {
  display: block;
}

.lec-byp .lec-stat strong {
  font-size: 25px;
}

.lec-byp .lec-total {
  border-top: 1px solid var(--lec-line);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.lec-byp .lec-total strong {
  font-size: 21px;
}

.lec-byp .lec-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.lec-byp .lec-badges span {
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 20px;
}

.lec-byp .lec-pass {
  background: #d8efdd;
  color: #19502a;
}

.lec-byp .lec-over {
  background: #fbe7d1;
  color: #7c3c00;
}

.lec-byp .lec-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--lec-green);
  font-weight: 700;
}

.lec-byp .lec-guide {
  margin-top: 18px;
  border-top: 1px solid var(--lec-line);
  padding-top: 12px;
}

.lec-byp .lec-guide p {
  margin: 5px 0;
}

/* SEARCH */

.lec-byp .lec-search {
  width: 100%;
  padding: 11px;
  margin: 0 0 10px;
  border: 1px solid #cbd6ca;
  border-radius: 9px;
  background: #fff;
  color: var(--lec-ink);
  font: inherit;
}

.lec-byp .lec-search::placeholder {
  color: #7b877f;
}

/* TOPPING CATEGORIES */

.lec-byp .lec-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 16px;
}

.lec-byp .lec-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  min-height: 36px;
  border: 1px solid #cbd6ca;
  border-radius: 20px;
  background: #fff;
  color: var(--lec-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.lec-byp .lec-category:hover {
  background: var(--lec-soft);
  border-color: var(--lec-green);
}

.lec-byp .lec-category.is-active {
  background: var(--lec-green);
  border-color: var(--lec-green);
  color: #fff;
}

.lec-byp .lec-category.is-active:hover {
  background: #2d593f;
}

/* SELECTED TOPPINGS */

.lec-byp .lec-selected-section {
  margin: 12px 0 18px;
}

.lec-byp .lec-selected-section:empty {
  display: none;
}

.lec-byp .lec-selected-section h4 {
  font-size: 16px;
  margin: 0 0 12px;
  color: var(--lec-ink);
}

.lec-byp .lec-selected-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid #cbd6ca;
  border-radius: 11px;
  background: var(--lec-soft);
}

.lec-byp .lec-selected-detail {
  flex: 1;
  min-width: 140px;
}

.lec-byp .lec-selected-detail strong,
.lec-byp .lec-selected-detail small {
  display: block;
}

.lec-byp .lec-selected-detail small {
  font-size: 12px;
  color: #58685d;
  margin-top: 3px;
}

.lec-byp .lec-selected-item .lec-placement {
  padding-top: 6px;
  border-top: 1px solid var(--lec-line);
}

/* SAVE AND SHARE */

.lec-byp .lec-save-share {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--lec-line);
  border-radius: 14px;
  background: #fff;
}

.lec-byp .lec-save-share h3 {
  margin: 0 0 10px;
}

.lec-byp .lec-save-share > .lec-muted {
  margin: 0 0 14px;
}

.lec-byp .lec-save-share .lec-search {
  margin-bottom: 12px;
}

.lec-byp .lec-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lec-byp .lec-actions .lec-reset {
  flex: 1;
  min-width: 110px;
}

.lec-byp .lec-save-share [role="status"] {
  margin: 12px 0;
  overflow-wrap: anywhere;
}

.lec-byp .lec-saved-list {
  margin-top: 16px;
}

.lec-byp .lec-saved-list h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.lec-byp .lec-saved-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--lec-line);
}

.lec-byp .lec-saved-item > span {
  flex: 1;
  min-width: 120px;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.lec-byp .lec-saved-item .lec-actions {
  flex-shrink: 0;
}

.lec-byp .lec-saved-item .lec-reset {
  padding: 7px 12px;
  font-size: 13px;
}

/* ACCESSIBILITY */

.lec-byp :focus-visible {
  outline: 3px solid #638e70;
  outline-offset: 2px;
}

/* MOBILE */

@media (max-width: 680px) {
  .lec-byp {
    padding: 16px;
  }

  .lec-byp .lec-layout {
    grid-template-columns: 1fr;
  }

  .lec-byp .lec-summary {
    order: -1;
  }

  .lec-byp .lec-categories {
    gap: 6px;
  }

  .lec-byp .lec-category {
    padding: 8px 11px;
    font-size: 12px;
  }

  .lec-byp .lec-save-share {
    padding: 15px;
  }

  .lec-byp .lec-actions {
    flex-direction: column;
  }

  .lec-byp .lec-actions .lec-reset {
    width: 100%;
  }

  .lec-byp .lec-saved-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .lec-byp .lec-saved-item .lec-actions {
    width: 100%;
  }

  .lec-byp .lec-selected-item {
    align-items: flex-start;
  }
}
