/* ======================================================
   pickup-date.css — 1.02.2026 — 12:40 AM CST
   The Bee Place 3.0 — Block I (Pickup Date + Order Panel)

   BASELINE: matches your approved pre-toggle layout
   ADDITIONS:
   - Date pill text stability (flex min-width fix)
   - Qty steppers: ± buttons (no dropdown caret)
   ====================================================== */

/* ======================================================
   MOBILE LAYOUT FIX
   ====================================================== */
@media (max-width: 640px) {
  .tbp-summary-top {
    flex-direction: column;
    align-items: stretch;
  }

  .tbp-summary-block--i {
    margin-top: 0.85rem;
  }
}

/* ======================================================
   BLOCK WRAPPER
   ====================================================== */
.tbp-pickup-block {
  position: relative;
  margin-top: 0.25rem;
}

/* ======================================================
   LABEL
   ====================================================== */
.tbp-pickup-label {
  font-size: 1.00rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #FFFFFF;
}

/* ======================================================
   DATE PILL (VISIBLE CONTROL)
   ====================================================== */
.tbp-pickup-pill {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;

  border: 0;
  border-radius: 10px;

  background: #FFF299;
  color: #000000;

  font-size: 1.35rem;
  font-weight: 800;

  padding: 0.10rem 0.75rem;
  cursor: pointer;
}

.tbp-pickup-pill:focus {
  outline: 2px solid #ffea9f;
  outline-offset: 2px;
}

/* CRITICAL: prevents date text from collapsing to 0px in flex */
.tbp-pickup-pill-text {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* caret (date dropdown only) */
.tbp-pickup-caret {
  width: 10px;
  height: 10px;
  border-right: 3px solid #000;
  border-bottom: 3px solid #000;
  transform: rotate(45deg);
  margin-left: 0.65rem;
  flex: 0 0 auto;
}

/* ======================================================
   DATE DROPDOWN
   ====================================================== */
.tbp-pickup-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);

  background: #1a1a1a;
  border: 2px solid rgba(0,0,0,0.25);
  border-radius: 10px;

  padding: 0.35rem;
  z-index: 9999;

  display: none;
  max-height: 260px;
  overflow-y: auto;
}

.tbp-pickup-dropdown.is-open { display: block; }

.tbp-pickup-item {
  width: 100%;
  text-align: left;
  border: 2px solid rgba(0,0,0,0.25);
  background: transparent;

  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;

  padding: 0.55rem 0.4rem;
  border-radius: 8px;
  cursor: pointer;
}

.tbp-pickup-item:hover,
.tbp-pickup-item:focus {
  background: #2a2a2a;
  outline: none;
}

.tbp-pickup-item.is-warning { color: #ffd966; }

/* ======================================================
   HIDDEN SELECT
   ====================================================== */
.tbp-pickup-select-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ======================================================
   NOTE
   ====================================================== */
.tbp-pickup-note {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #ffd966;
}

/* ======================================================
   ORDER PANEL
   ====================================================== */
.tbp-order-panel {
  margin-top: 0.85rem;
  padding-top: 0.25rem;
}

.tbp-order-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.35rem 0.1rem 0.55rem 0.1rem;

  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.tbp-order-head-left { flex: 1 1 auto; }
.tbp-order-head-right { flex: 0 0 auto; }

.tbp-order-group { margin-top: 0.55rem; }

.tbp-order-group-title {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: #F6DFA8;
  margin: 0 0 0.35rem 0;
}

.tbp-order-group-title-wax {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: #FFFFFF;
  margin: 0 0 0.35rem 0;
}

.tbp-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.2rem 0;
}

.tbp-order-item {
  flex: 1 1 auto;
  min-width: 0;
}

.tbp-order-item-pill {
  display: inline-block;
  width: 100%;

  padding: 0.30rem 0.65rem;
  border-radius: 10px;

  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.1;

  white-space: normal;
  overflow: visible;

  border: 2px solid rgba(255,255,255,0.28);
}

/* group tinting */
.tbp-order-item-pill.is-wax {
  background: #F6DFA8;
  color: #000;
  border-color: rgba(0,0,0,0.25);
}

.tbp-order-item-pill.is-painted {
  background: #f7f7f7;
  color: #000;
  border-color: rgba(0,0,0,0.18);
}

/* Qty column */
.tbp-order-qty {
  flex: 0 0 86px;
  display: flex;
  justify-content: flex-end;
}

/* Qty pill is now a stepper container */
.tbp-order-qty-pill {
  width: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;

  padding: 0.22rem 0.35rem;
  border-radius: 10px;

  background: #8AB4F2;
  color: #000;

  font-weight: 900;
  font-size: 1.05rem;
  border: 2px solid rgba(0,0,0,0.25);
}

.tbp-order-qty-val {
  display: inline-block;
  min-width: 1.75ch;
  text-align: center;
}

/* ± buttons */
.tbp-qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0.25);
  background: #ffffff;
  color: #000;
  font-weight: 1000;
  font-size: 1.05rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}


.tbp-qty-btn:active { background: #e6e6e6; }
.tbp-qty-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Icon size for normal +/- buttons only */
.tbp-qty-btn:not(.is-trash) svg {
  width: 18px;
  height: 18px;
}


/* ======================================================
   ADD TO CART
   ====================================================== */

/* Total + Add to Cart */
.tbp-order-total { margin-top: 0.85rem; }

.tbp-order-total-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: #8AB4F2;
  color: #000;

  border-radius: 12px;
  padding: 0.30rem 0.75rem;
  font-weight: 1000;
  border: 2px solid rgba(0,0,0,0.25);
}

.tbp-order-total-label {
  font-size: 1.05rem;
  font-weight: 1000;
}

.tbp-order-total-val {
  font-size: 1.15rem;
  font-weight: 1000;
}

.tbp-order-addtocart {
  width: 100%;
  margin-top: 0.65rem;
  border: 2px solid rgba(0,0,0,0.25);
  border-radius: 14px;

  background: #FAE686;
  color: #000;

  font-weight: 1000;
  font-size: 1.15rem;

  padding: 0.35rem 0.85rem;

  cursor: pointer; /* ← ONLY CHANGE */
  opacity: 1;
}

.tbp-order-addtocart:hover {
  background-color: #E7C10F; /* Slightly darker on hover */
}

.tbp-order-addtocart:active {
  transform: translateY(2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* ======================================================
   VIEW CART
   ====================================================== */

.view-cart-container {
  margin-top: 10px; /* Space between Add to Cart and View Cart */
  text-align: center;
}

.view-cart-btn {
  background-color: #E9F375; /* View Cart color */
  border: 2px solid rgba(0,0,0,0.25);
  padding: 8px 40px;
  font-size: 1.15rem;
  font-weight: 1000;
  cursor: pointer;
  border-radius: 14px;
}

.view-cart-btn:hover {
  background-color: #D4E511; /* Slightly darker on hover */
}

.view-cart-btn:active {
  transform: translateY(2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
/* END OF FILE: pickup-date.css */
