.bb-playset-fulfillment,
#bb-installation-address {
  padding: 20px;
  margin: 20px 0;
  border: 1px solid var(--bb-line, #ddd8cf);
  border-radius: 12px;
  background: var(--bb-surface, #faf8f4);
  color: var(--bb-ink, #262624);
}
.bb-playset-fulfillment p,
#bb-installation-address > p,
.bb-installation-distance p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
}
.bb-playset-fulfillment p:last-child,
.bb-installation-distance p:last-child { margin-bottom: 0; }
.bb-playset-fulfillment a { text-decoration: underline; }
#bb-installation-address { clear: both; }
#bb-installation-address h3 { margin-top: 0; }
.bb-installation-distance { clear: both; padding-top: 12px; }
.bb-installation-fields[hidden],
.bb-installation-same-address[hidden] { display: none !important; }
#bb_installation_use_billing_field { margin-bottom: 8px; }
#bb_installation_use_billing_field label { display: flex; align-items: baseline; gap: 10px; }
#bb_installation_use_billing { flex: 0 0 auto; }
.bb-installation-fields { padding-top: 10px; }
.bb-checkout-notes { clear: both; margin: 20px 0; }
.bb-checkout-notes summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.bb-checkout-notes[open] summary { margin-bottom: 14px; }

/* Square controls wallet eligibility with inline display styles. Only change the
   layout once Square has shown its container; unsupported wallets stay hidden. */
@media (min-width: 640px) {
  body.woocommerce-checkout #wc-square-digital-wallet[style*="display: block"] {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    max-width: 650px;
  }
  body.woocommerce-checkout #wc-square-digital-wallet > #apple-pay-button,
  body.woocommerce-checkout #wc-square-digital-wallet > #wc-square-google-pay {
    flex: 1 1 220px;
    min-width: 0;
    width: auto;
    margin: 0;
  }
  body.woocommerce-checkout #wc-square-digital-wallet > #wc-square-wallet-divider {
    flex: 0 0 100%;
    width: 100%;
    margin: 0;
  }
}
.woocommerce table.bb-order-review {
  border: 1px solid var(--bb-line, #ddd8cf);
  border-radius: 14px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.woocommerce table.bb-order-review thead th {
  padding: 16px 20px;
  background: var(--bb-surface, #faf8f4);
}
.woocommerce table.bb-order-review td,
.woocommerce table.bb-order-review tfoot th { padding: 16px 20px; vertical-align: top; }
/* Shipping notices share the amount column. Let their text wrap so they cannot
   widen the table beyond the checkout column; keep only prices on one line. */
.woocommerce table.bb-order-review .product-total,
.woocommerce table.bb-order-review tfoot td { text-align: right; white-space: normal; }
.woocommerce table.bb-order-review .amount { white-space: nowrap; }
.woocommerce table.bb-order-review tfoot th { font-weight: 600; }
.woocommerce table.bb-order-review .bb-installation-charge small {
  display: block;
  margin-top: 4px;
  color: var(--bb-muted, #69655e);
  font-size: 12px;
  font-weight: 400;
}
.woocommerce table.bb-order-review .order-total th,
.woocommerce table.bb-order-review .order-total td {
  padding-top: 20px;
  padding-bottom: 20px;
  background: var(--bb-surface, #faf8f4);
  border-top: 2px solid var(--bb-line, #ddd8cf);
  font-size: 20px;
  font-weight: 700;
}
.woocommerce table .bb-sales-tax th,
.woocommerce table .bb-sales-tax td { vertical-align: top; }
.woocommerce table .bb-sales-tax td { white-space: normal; }
.bb-sales-tax-amount { white-space: nowrap; }
.bb-tax-breakdown { clear: both; margin-top: 8px; font-size: 13px; text-align: left; }
.bb-tax-breakdown summary {
  cursor: pointer;
  color: var(--bb-accent, #9f502c);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bb-tax-breakdown summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
.bb-tax-breakdown .bb-tax-hide,
.bb-tax-breakdown[open] .bb-tax-show { display: none; }
.bb-tax-breakdown[open] .bb-tax-hide { display: inline; }
.bb-tax-breakdown dl { margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--bb-line, #ddd8cf); }
.bb-tax-jurisdiction { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 6px; }
.bb-tax-jurisdiction:first-child { margin-top: 0; }
.bb-tax-jurisdiction dt { min-width: 0; font-weight: 400; overflow-wrap: anywhere; }
.bb-tax-jurisdiction dt span { color: var(--bb-muted, #69655e); white-space: nowrap; }
.bb-tax-jurisdiction dd { flex-shrink: 0; margin: 0; white-space: nowrap; }
.woocommerce table.shop_table tr.bb-out-of-state-tax > td {
  background: var(--bb-surface, #faf8f4);
  text-align: left !important;
  white-space: normal;
}
.woocommerce table.shop_table tr.bb-out-of-state-tax > td::before { display: none; }
.bb-out-of-state-tax p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--bb-muted, #69655e); }
.bb-out-of-state-tax strong { display: block; margin-bottom: 4px; color: var(--bb-ink, #262624); }
@media (max-width: 480px) {
  .woocommerce table.bb-order-review thead th,
  .woocommerce table.bb-order-review td,
  .woocommerce table.bb-order-review tfoot th { padding-left: 12px; padding-right: 12px; }
}
