/* ── FOGGY BAY PRINT ORDER UI ── */
/* Loaded as external stylesheet. No inline style injection anywhere. */

/* ── PRINT PICKER MODAL ── */
#fbpPrintOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(0,0,0,.85);
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
#fbpPrintOverlay.open { display: flex; }

#fbpPrintModal {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 12px 12px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0 0 32px;
  animation: fbpSlideUp .25s cubic-bezier(.16,1,.3,1) both;
}

@keyframes fbpSlideUp {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@media (min-width: 600px) {
  #fbpPrintOverlay { align-items: center; }
  #fbpPrintModal   { border-radius: 12px; max-height: 80vh; }
}

.fbp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  background: #141414;
  z-index: 1;
}

.fbp-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #f0ece6;
  letter-spacing: .02em;
}

.fbp-modal-close {
  background: none;
  border: none;
  color: #666;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
}
.fbp-modal-close:hover { color: #f0ece6; }

.fbp-photo-preview {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  background: #0e0e0e;
  border-bottom: 1px solid #222;
}

.fbp-section {
  padding: 16px 20px 0;
}

.fbp-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 10px;
}

/* ── Product grid ── */
.fbp-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 4px;
}

.fbp-product-btn {
  background: #1a1a1a;
  border: 1.5px solid #2a2a2a;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, background .15s;
  color: #f0ece6;
}
.fbp-product-btn:hover  { border-color: #e8401c; background: #1f1f1f; }
.fbp-product-btn.selected { border-color: #e8401c; background: #1f1212; }

.fbp-product-size   { font-size: 15px; font-weight: 700; display: block; margin-bottom: 2px; }
.fbp-product-finish { font-size: 11px; color: #888; display: block; margin-bottom: 6px; }
.fbp-product-price  { font-size: 14px; font-weight: 700; color: #e8401c; }

/* ── Qty row ── */
.fbp-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid #1e1e1e;
  border-bottom: 1px solid #1e1e1e;
  margin-top: 12px;
}

.fbp-qty-label { font-size: 13px; color: #aaa; flex: 1; }

.fbp-qty-ctrl { display: flex; align-items: center; }

.fbp-qty-btn {
  width: 32px;
  height: 32px;
  background: #222;
  border: 1px solid #333;
  color: #f0ece6;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  user-select: none;
}
.fbp-qty-btn:first-child { border-radius: 6px 0 0 6px; }
.fbp-qty-btn:last-child  { border-radius: 0 6px 6px 0; }
.fbp-qty-btn:hover { background: #333; }

.fbp-qty-val {
  width: 36px;
  height: 32px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-left: none;
  border-right: none;
  color: #f0ece6;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Add to cart button ── */
.fbp-add-btn {
  display: block;
  width: calc(100% - 40px);
  margin: 14px 20px 0;
  background: #e8401c;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.fbp-add-btn:hover    { background: #b83010; }
.fbp-add-btn:disabled { background: #333; color: #666; cursor: not-allowed; }

/* ── Cart modal ── */
#fbpCartOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1600;
  background: rgba(0,0,0,.85);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#fbpCartOverlay.open { display: flex; }

#fbpCartModal {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  width: 100%;
  max-width: 460px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 0 0 24px;
}

/* ── Cart summary ── */
#fbpCartSummary { padding: 14px 20px 0; }

.fbp-cart-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 10px;
}

.fbp-cart-items { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }

.fbp-cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1a1a1a;
  border: 1px solid #222;
  border-radius: 6px;
  padding: 8px 10px;
}

.fbp-cart-thumb {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #2a2a2a;
  flex-shrink: 0;
  background: #0e0e0e;
}

.fbp-cart-item-info  { flex: 1; min-width: 0; }
.fbp-cart-item-name  { font-size: 12px; color: #f0ece6; font-weight: 600; }
.fbp-cart-item-meta  { font-size: 11px; color: #888; }
.fbp-cart-item-price { font-size: 13px; font-weight: 700; color: #f0ece6; white-space: nowrap; }

.fbp-cart-item-remove {
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  font-size: 16px;
  padding: 0 4px;
  line-height: 1;
}
.fbp-cart-item-remove:hover { color: #e8401c; }

.fbp-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #222;
  margin-bottom: 12px;
}
.fbp-cart-total-label { font-size: 13px; color: #aaa; }
.fbp-cart-total-val   { font-size: 18px; font-weight: 800; color: #f0ece6; }

.fbp-checkout-btn {
  display: block;
  width: 100%;
  background: #e8401c;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.fbp-checkout-btn:hover    { background: #b83010; }
.fbp-checkout-btn:disabled { background: #333; color: #666; cursor: not-allowed; }

.fbp-empty-cart {
  text-align: center;
  color: #555;
  padding: 16px 0;
  font-size: 13px;
}

/* ── Email input ── */
.fbp-email-row   { margin-bottom: 10px; }
.fbp-email-label {
  font-size: 11px;
  color: #666;
  display: block;
  margin-bottom: 6px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
}
.fbp-email-input {
  width: 100%;
  padding: 10px 12px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #f0ece6;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.fbp-email-input:focus       { border-color: #e8401c; }
.fbp-email-input::placeholder { color: #555; }

/* ── Cart badge ── */
#fbpCartBadge {
  display: none;
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 1200;
  background: #e8401c;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
  align-items: center;
  gap: 4px;
}

/* ── Toast ── */
#fbpToast {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-left: 3px solid #22c55e;
  color: #f0ece6;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  opacity: 0;
  transition: all .25s;
  z-index: 2000;
  pointer-events: none;
  white-space: nowrap;
}
#fbpToast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── DIGITAL SECTION ────────────────────────────────────────────────────── */

.fbp-digital-section {
  padding-bottom: 4px;
}

/* Section title variants */
.fbp-section-title--digital {
  color: #f0ece6;   /* slightly brighter than the default muted gray */
  font-size: 12px;
}

.fbp-section-icon {
  margin-right: 4px;
}

/* Full-width digital product button */
.fbp-digital-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.fbp-product-btn--digital {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1.5px solid #2a2a2a;
  background: #1a1a1a;
  transition: border-color .15s, background .15s;
}
.fbp-product-btn--digital:hover  {
  border-color: #e8401c;
  background: #1f1f1f;
}
.fbp-product-btn--digital.selected {
  border-color: #e8401c;
  background: rgba(232,64,28,.08);
}

.fbp-digital-btn-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fbp-digital-btn-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.fbp-product-name {
  font-size: 15px;
  font-weight: 700;
  color: #f0ece6;
  display: block;
}

.fbp-product-desc {
  font-size: 12px;
  color: #888;
  display: block;
}

.fbp-digital-btn-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.fbp-product-price--digital {
  font-size: 16px;
  font-weight: 800;
  color: #f0ece6;
  display: block;
}

/* Instant badge pill */
.fbp-instant-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #22c55e;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.25);
  border-radius: 20px;
  padding: 2px 8px;
  white-space: nowrap;
}

/* ── SECTION DIVIDER ────────────────────────────────────────────────────── */

.fbp-section-divider {
  height: 1px;
  background: #222;
  margin: 16px 0 14px;
}

.fbp-print-section {
  padding-top: 0;
}

/* ── FINISH TOGGLE (prints only) ────────────────────────────────────────── */

.fbp-finish-row {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 0;
  margin-top: 4px;
}
.fbp-finish-row--visible { display: flex; }

.fbp-finish-row-label {
  font-size: 12px;
  color: #666;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.fbp-finish-toggle {
  display: flex;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  overflow: hidden;
}

.fbp-finish-btn {
  background: #1a1a1a;
  border: none;
  color: #888;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background .12s, color .12s;
}
.fbp-finish-btn + .fbp-finish-btn {
  border-left: 1px solid #2a2a2a;
}
.fbp-finish-btn:hover { background: #222; color: #f0ece6; }
.fbp-finish-btn.active { background: #252525; color: #f0ece6; }

/* ── DELIVERY NOTE (digital — shown in place of qty row) ────────────────── */

#fbpDelivNote {
  display: none;           /* shown via JS when digital selected */
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 12px;
  color: #666;
  border-top: 1px solid #1e1e1e;
  border-bottom: 1px solid #1e1e1e;
  margin-top: 12px;
}

#fbpDelivNote .fbp-deliv-icon {
  color: #22c55e;
  font-size: 14px;
  flex-shrink: 0;
}
