/* Blue Water Order Ahead: "Just type what you want" (WB-48). Separate file so it merges cleanly with curbside.css. */

/* mode tabs above the search box — solid / outlined buttons so they read as tappable */
.cbr-choose { margin: 0 0 .4rem; font-weight: 700; font-size: .95rem; color: var(--navy); }
.cbr-modes { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; padding: 0; margin: 0 0 .7rem; background: none; }
.cbr-tab {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  box-sizing: border-box;
  width: 100%;
  border: 2px solid var(--teal);
  border-radius: 12px;
  padding: .7rem .75rem;
  font: inherit;
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.25;
  text-align: center;
  color: var(--teal, #1f5d6b);
  background: #d7ebee;
  cursor: pointer;
  min-height: 44px;
}
.cbr-tab:focus-visible { outline: 2px solid var(--teal, #1f5d6b); outline-offset: 2px; }
.cbr-tab[aria-selected="true"] {
  background: #1f5d6b;
  color: #fff;
  border-color: #1f5d6b;
  box-shadow: 0 3px 10px rgba(16, 42, 51, .28);
}
@media (hover: hover) {
  .cbr-tab:hover { background: #c5e3e8; border-color: var(--teal, #1f5d6b); color: var(--teal, #1f5d6b); }
  .cbr-tab[aria-selected="true"]:hover { background: var(--navy-2, #163844); border-color: var(--navy-2, #163844); color: #fff; }
}
.cbr-tab-search::before,
.cbr-tab-type::before {
  content: "";
  display: block;
  width: 1.15em;
  height: 1.15em;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--cbr-icon) center / contain no-repeat;
  mask: var(--cbr-icon) center / contain no-repeat;
}
.cbr-tab-search { --cbr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l5 5'/%3E%3C/svg%3E"); }
.cbr-tab-type { --cbr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l4.2-1.1L19 8.1a2 2 0 0 0 0-2.8l-.3-.3a2 2 0 0 0-2.8 0L5.1 15.8 4 20z'/%3E%3Cpath d='M14.2 6.2l3.6 3.6'/%3E%3C/svg%3E"); }
.cbr-cant { margin: 0 0 .7rem; font-size: .92rem; color: var(--muted); }
.cb-browse.cbr-mode-type .cbr-cant { display: none; }
/* typed mode hides the search widgets */
.cb-browse.cbr-mode-type > .cb-search, .cb-browse.cbr-mode-type > .cb-chips, .cb-browse.cbr-mode-type > .cb-fresh, .cb-browse.cbr-mode-type > .cb-results { display: none !important; }
.cbr-panel[hidden] { display: none !important; }

/* the form */
.cbr-title { margin: .2rem 0 .3rem; font-size: 1.3rem; }
.cbr-lead { margin: 0 0 .6rem; line-height: 1.45; }
.cbr-form { display: grid; gap: .1rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .4rem 1rem 1rem; }
.cbr-form .cb-field { margin-top: .65rem; }
.cbr-form .cb-field label { font-size: 1rem; }
.cbr-form .cb-field input, .cbr-form .cb-field select { min-height: 2.9rem; font-size: 1rem; }
.cbr-qtyrow, .cbr-two { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.cbr-details[hidden] { display: none !important; }
.cbr-details { display: grid; }
.cbr-upc-ok { margin: .5rem 0 0; padding: .5rem .8rem; border-radius: 10px; background: #e8f2ea; color: #245c38; font-weight: 700; }
.cbr-upc-ok[hidden] { display: none !important; }
.cbr-phone { margin: .7rem 0 0; }
.cbr-msg { margin: .7rem 0 0; }
.cbr-msg[hidden] { display: none !important; }
.cbr-msg.cbr-ok { padding: .55rem .8rem; border-radius: 10px; background: #e8f2ea; color: #245c38; font-weight: 700; }
.cbr-add { width: 100%; margin-top: .8rem; padding: .9rem 1.2rem; font-size: 1.05rem; }

/* typed lines already added */
.cbr-added { margin-top: 1rem; }
.cbr-added:empty { display: none; }
.cbr-added h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.cbr-added-list { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .5rem; }
.cbr-added-item { display: flex; justify-content: space-between; gap: .8rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; }
.cbr-added-text { display: grid; gap: .1rem; min-width: 0; overflow-wrap: anywhere; }
.cbr-added-text span { color: var(--muted); font-size: .88rem; }

/* inside the cart and summary */
.cbr-cart { margin-top: .6rem; padding-top: .5rem; border-top: 2px solid var(--line); }
.cbr-cart h3, .cbr-sum-h { margin: 0 0 .2rem; font-size: 1.02rem; }
.cbr-sum-h { margin-top: .8rem; }
.cbr-noprice { font-weight: 600; color: var(--muted); font-size: .84rem; }
.cb-line-name strong { overflow-wrap: anywhere; }

/* customer's own order page */
.cbr-st-h { margin: 1.1rem 0 .3rem; font-size: 1.2rem; }
.cbr-st-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.cbr-st-item { border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; background: #fff; }
.cbr-st-title { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.cbr-st-qa { display: grid; grid-template-columns: 9.5rem 1fr; gap: .1rem .7rem; margin: .4rem 0 0; font-size: .92rem; }
.cbr-st-qa dt { color: var(--muted); font-weight: 700; }
.cbr-st-qa dd { margin: 0; overflow-wrap: anywhere; }
.cbr-st-qa dd.na { color: #8a9598; }

@media (max-width: 480px) {
  .cbr-form { padding: .3rem .8rem .9rem; }
  .cbr-two { grid-template-columns: 1fr; gap: 0; }
  .cbr-st-qa { grid-template-columns: 7.5rem 1fr; }
  .cbr-tab { font-size: .9rem; padding: .65rem .45rem; min-height: 44px; }
}
