/*
 * buypalletstock.com — theme styles.
 * Palette and type come from theme.json; this file carries what blocks cannot express. Values are
 * taken from the original site's markup so the two render alike. Shared pieces reused everywhere:
 * .bps-btn-primary, .bps-btn-secondary, .bps-card, .bps-field, .bps-badge.
 */
:root {
  --brand: var(--wp--preset--color--brand, #006a3b);
  --brand-dark: var(--wp--preset--color--brand-dark, #004d2a);
  --brand-light: var(--wp--preset--color--brand-light, #e6f3ec);
  --ink: var(--wp--preset--color--ink, #1f2420);
  --soft: var(--wp--preset--color--soft, #5c6660);
  --line: var(--wp--preset--color--line, #e1e5e2);
  --paper: var(--wp--preset--color--paper, #f7f8f6);
  --gold: var(--wp--preset--color--gold, #c99a3c);
  --danger: var(--wp--preset--color--danger, #b3402e);
  --danger-light: var(--wp--preset--color--danger-light, #fbeae7);
  --display: var(--wp--preset--font-family--display, Poppins, sans-serif);
  --body: var(--wp--preset--font-family--body, Inter, sans-serif);
}

html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
a { text-decoration: none; }
/* Links that sit inside running text carry an underline; green alone is 1.1:1 against the soft grey around it. */
.bps-hint a, .bps-listing__hint a, .bps-auth__foot a, .bps-auth__lead a, .bps-modal__foot a, .bps-modal__lead a, .bps-panel__text a, .bps-buy__offer a, .bps-form-done p a, .bps-empty a, .bps-sell__text a, .bps-zip p a, .bps-faq details p a, .bps-faq__foot a, .bps-rfqs__pages a, .bps-pagehead p a { text-decoration: underline; text-underline-offset: 2px; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---- layout ------------------------------------------------------------------------------- */
.bps-wrap, .bps-wrap.wp-block-group { width: 100%; max-width: 1180px; margin-left: auto; margin-right: auto; padding-left: 28px; padding-right: 28px; }
.bps-icon { width: 14px; height: 14px; flex: none; }

/* ---- shared: buttons ---------------------------------------------------------------------- */
.bps-btn-primary, .bps-btn-secondary, .bps-btn-header {
  display: inline-block; cursor: pointer; border-radius: 4px; font-family: var(--display); font-weight: 700; text-align: center;
  line-height: 1.5; transition: background-color .15s, color .15s, border-color .15s;
}
.bps-btn-primary { background: var(--brand); color: #fff; border: 0; padding: 12px 22px; font-size: 13.5px; }
.bps-btn-primary:hover { background: var(--brand-dark); color: #fff; }
.bps-btn-primary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.bps-btn-secondary { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); padding: 10.5px 20px; font-size: 13.5px; }
.bps-btn-secondary:hover { background: var(--brand); color: #fff; }
.bps-btn-secondary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.bps-btn-primary.is-disabled, .bps-btn-primary[disabled], .bps-btn-secondary.is-disabled { cursor: not-allowed; opacity: .45; }
.bps-btn-primary.is-disabled:hover { background: var(--brand); }
.bps-btn-block { display: block; width: 100%; }
.wp-block-button__link { transition: background-color .15s, color .15s; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); padding: 10.5px 20px; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--brand); color: #fff; }

/* ---- shared: card, field, badge ----------------------------------------------------------- */
.bps-card { border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.bps-label { display: block; margin-bottom: 7px; font-family: var(--display); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--soft); }
.bps-label a { float: right; font-family: var(--body); font-weight: 500; text-transform: none; letter-spacing: 0; }
.bps-field, .bps-form input[type=text], .bps-form input[type=email], .bps-form input[type=password], .bps-form input[type=tel], .bps-form input[type=number], .bps-form input[type=date], .bps-form select, .bps-form textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 4px; background: #fff; padding: 10px 12px; font-family: var(--body); font-size: 14.5px; color: var(--ink); margin-bottom: 14px;
}
.bps-field:focus-visible, .bps-form :is(input, select, textarea):focus-visible { border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: 1px; }
.bps-badge { display: inline-block; border-radius: 3px; background: var(--brand); color: #fff; padding: 5px 9px; font-family: var(--display); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; vertical-align: middle; }
.bps-badge--gold { background: var(--gold); color: var(--ink); }
.bps-badge--muted { background: var(--soft); }
.bps-badge--soft { background: var(--brand-light); color: var(--brand-dark); }
.bps-form-message { margin: 0 0 14px; padding: 10px 12px; border-radius: 4px; background: var(--danger-light); color: var(--danger); font-size: 13.5px; }
.bps-form-message.is-good { background: var(--brand-light); color: var(--brand-dark); }

/* ---- under-construction notice ------------------------------------------------------------ */
.bps-notice { background: var(--gold); color: var(--ink); padding: 9px 16px; text-align: center; font-size: 13.5px; font-weight: 600; }
.bps-notice p { margin: 0; }
.bps-notice p::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 6px; vertical-align: -2px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M11.5 8a3.5 3.5 0 0 0 3.362-4.476c-.094-.325-.497-.39-.736-.15L12.099 5.4a.48.48 0 0 1-.653.033 8.554 8.554 0 0 1-.879-.879.48.48 0 0 1 .033-.653l2.027-2.028c.24-.239.175-.642-.15-.736a3.502 3.502 0 0 0-4.476 3.427c.018.99-.133 2.093-.914 2.7l-5.31 4.13a2.015 2.015 0 1 0 2.828 2.827l4.13-5.309c.607-.78 1.71-.932 2.7-.914L11.5 8ZM3 13.5a.5.5 0 1 1 0-1 .5.5 0 0 1 0 1Z' clip-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M11.5 8a3.5 3.5 0 0 0 3.362-4.476c-.094-.325-.497-.39-.736-.15L12.099 5.4a.48.48 0 0 1-.653.033 8.554 8.554 0 0 1-.879-.879.48.48 0 0 1 .033-.653l2.027-2.028c.24-.239.175-.642-.15-.736a3.502 3.502 0 0 0-4.476 3.427c.018.99-.133 2.093-.914 2.7l-5.31 4.13a2.015 2.015 0 1 0 2.828 2.827l4.13-5.309c.607-.78 1.71-.932 2.7-.914L11.5 8ZM3 13.5a.5.5 0 1 1 0-1 .5.5 0 0 1 0 1Z' clip-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat; }
.bps-notice a { color: inherit; font-weight: 700; }
.bps-notice a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ---- header ------------------------------------------------------------------------------- */
header.wp-block-template-part { display: contents; }
.bps-topbar { background: var(--brand-dark); padding: 7px 0; font-size: 13px; color: #cfe0d6; }
.bps-contact { list-style: none; display: flex; gap: 24px; margin: 0; line-height: 1.55; }
.bps-contact li { display: flex; }
.bps-topbar .bps-contact { justify-content: flex-end; }
.bps-contact a, .bps-contact span { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.bps-contact a:hover { color: #fff; }
.bps-contact--list { flex-direction: column; gap: 9px; }
.bps-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.admin-bar .bps-header { top: 32px; }
.bps-header__inner.wp-block-group { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.bps-logo { flex: none; line-height: 0; }
.bps-logo img { display: block; height: 44px; width: auto; }
.bps-nav.wp-block-group { display: flex; align-items: center; gap: 30px; flex-wrap: nowrap; }
.bps-nav .wp-block-navigation { font-family: var(--display); font-size: 14px; font-weight: 600; gap: 30px; }
.bps-nav .wp-block-navigation__container { gap: 30px; }
.bps-nav .wp-block-navigation a { color: var(--ink); }
.bps-nav .wp-block-navigation a:hover { color: var(--brand); text-decoration: none; }
.bps-nav .wp-block-buttons { flex: none; }
.bps-btn-header { border: 1.5px solid var(--brand); color: var(--brand); padding: 10.5px 20px; font-size: 13.5px; white-space: nowrap; }
.bps-btn-header:hover { background: var(--brand); color: #fff; }
.bps-btn-header:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.bps-nav .wp-block-navigation__responsive-container-open, .bps-nav .wp-block-navigation__responsive-container-close { color: var(--ink); }
.bps-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 28px; }
.bps-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 18px; font-size: 18px; }
/* The toggle's place in the row: after the buttons, as phones expect. */
@media (max-width: 599px) { .bps-nav .wp-block-navigation { order: 3; } }
@media (max-width: 480px) {
  .bps-logo img { height: 30px; }
  .bps-nav.wp-block-group { gap: 8px; }
  .bps-header__inner.wp-block-group { gap: 10px; }
  .bps-nav .wp-block-button__link { padding: 10px 12px; font-size: 12.5px; }
  .bps-btn-header { padding: 8.5px 12px; font-size: 12.5px; }
  .bps-topbar .bps-contact { justify-content: center; gap: 16px; font-size: 12px; }
}

/* ---- hero --------------------------------------------------------------------------------- */
.wp-block-cover.bps-hero { position: relative; display: block; overflow: hidden; min-height: 0; padding: 0; background: var(--brand-dark); color: #fff; }
.wp-block-cover.bps-hero .wp-block-cover__background { display: none; }
.wp-block-cover.bps-hero .wp-block-cover__image-background { opacity: .28; z-index: 0; }
.wp-block-cover.bps-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; opacity: 1; background: linear-gradient(100deg, #004d2a 38%, rgba(20, 51, 35, .55) 100%); }
.wp-block-cover.bps-hero .wp-block-cover__inner-container { position: relative; z-index: 2 !important; flex: 1 1 auto; width: 100%; max-width: 1180px; margin: 0 auto; padding: 76px 28px 90px; color: #fff; }
.wp-block-cover.bps-hero .wp-block-cover__inner-container > :not(.bps-zip) { max-width: 604px; margin-left: 0; margin-right: auto; }
.bps-hero__eyebrow { margin-bottom: 16px; font-family: var(--display); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); }
.bps-hero h1 { margin-bottom: 20px; font-family: var(--display); font-size: clamp(34px, 4.6vw, 52px); font-weight: 800; line-height: 1.08; color: #fff; }
.bps-hero__lead { margin-bottom: 34px; max-width: 48ch !important; font-size: 16.5px; color: #d7e3db; }
.bps-zip { max-width: 560px; border-radius: 6px; background: #fff; padding: 20px 22px; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); color: var(--ink); }
.bps-zip label { display: block; margin-bottom: 8px; font-family: var(--display); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); }
.bps-zip__row { display: flex; gap: 10px; }
.bps-zip input[type=text] { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 4px; background: var(--paper); padding: 12px 14px; font-family: var(--body); font-size: 16px; color: var(--ink); }
.bps-zip input[type=text]:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.bps-zip button { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border: 0; border-radius: 4px; background: var(--brand); padding: 0 22px; font-family: var(--display); font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; transition: background-color .15s; }
.bps-zip button:hover { background: var(--brand-dark); }
.bps-zip button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.bps-zip button .bps-icon { width: 16px; height: 16px; }
.bps-zip p { margin-top: 10px; font-size: 12.5px; color: var(--soft); }
@media (max-width: 480px) { .bps-zip__row { flex-direction: column; } .bps-zip button { padding: 12px 22px; justify-content: center; } .bps-hero .wp-block-cover__inner-container { padding: 48px 28px 56px; } }

/* ---- browse bar --------------------------------------------------------------------------- */
.bps-browse { border-bottom: 1px solid var(--line); padding: 40px 0 28px; scroll-margin-top: 80px; }
.bps-browse__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.bps-browse__title { font-family: var(--display); font-size: 20px; font-weight: 700; }
.bps-seeall { white-space: nowrap; border: 1px solid var(--soft); border-radius: 4px; padding: 10px 16px; font-family: var(--display); font-size: 12.5px; font-weight: 600; color: var(--soft); }
.bps-seeall:hover { border-color: var(--brand); color: var(--brand); }
.bps-seeall.is-active { border-color: var(--brand); background: var(--brand); color: #fff; }
.bps-seeall.is-active:hover { background: var(--brand-dark); color: #fff; }
.bps-browse__groups { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px; }
.bps-filter { display: flex; flex-direction: column; gap: 8px; }
.bps-filter__label { font-family: var(--display); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); }
.bps-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bps-chip { display: inline-flex; align-items: center; gap: 6px; user-select: none; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); padding: 10px 14px; font-size: 13.5px; font-weight: 500; color: var(--ink); transition: border-color .15s; }
.bps-chip:hover { border-color: var(--brand); color: var(--ink); }
.bps-chip.is-active { border-color: var(--brand); background: var(--brand-light); font-weight: 600; color: var(--brand-dark); }

/* ---- listings ----------------------------------------------------------------------------- */
.bps-loads { background: var(--paper); padding: 40px 0 66px; scroll-margin-top: 80px; }
.bps-loads__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.bps-loads__head h2 { font-family: var(--display); font-size: 24px; font-weight: 700; }
.bps-loads__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; }
.bps-loads__count { font-size: 13px; color: var(--soft); }
.bps-sort { display: flex; align-items: center; gap: 6px; }
.bps-sort__label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--soft); }
.bps-sort__option { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-size: 12.5px; color: var(--ink); transition: border-color .15s; }
a.bps-sort__option:hover { border-color: var(--brand); color: var(--ink); }
.bps-sort__option.is-active { border-color: var(--brand); background: var(--brand-light); font-weight: 600; color: var(--brand-dark); }
.bps-sort__option--needs-zip { border-style: dashed; color: var(--soft); }
a.bps-sort__option--needs-zip:hover { color: var(--brand); }
.bps-empty { border: 1px dashed var(--line); border-radius: 6px; background: #fff; padding: 48px 24px; text-align: center; font-size: 14.5px; color: var(--soft); }
.bps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }

.bps-listing { position: relative; display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.bps-listing:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20, 51, 35, .10); }
.bps-listing__photo { position: relative; height: 170px; width: 100%; overflow: hidden; background: var(--brand-light); }
.bps-listing__photo > a { display: block; width: 100%; height: 100%; }
.bps-listing__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bps-stamp { position: absolute; left: 10px; top: 10px; z-index: 2; border-radius: 3px; background: var(--brand); padding: 5px 9px; font-family: var(--display); font-size: 12px; font-weight: 700; line-height: 1.5; text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.bps-stamp--pending { background: var(--gold); color: var(--ink); }
.bps-sample { position: absolute; left: 10px; bottom: 8px; z-index: 2; border-radius: 3px; background: rgba(255, 255, 255, .92); padding: 3px 8px; font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.bps-gallery__sample { margin-top: 10px; font-size: 13.5px; color: var(--soft); }
.bps-listing__count { position: absolute; bottom: 8px; right: 8px; z-index: 2; border-radius: 999px; background: rgba(0, 0, 0, .55); padding: 2px 8px; font-size: 12px; font-weight: 600; color: #fff; }
.bps-listing__nav, .bps-gallery__nav { position: absolute; top: 50%; z-index: 2; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; transform: translateY(-50%); cursor: pointer; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff; opacity: 0; transition: opacity .15s; }
.bps-listing__nav:hover, .bps-gallery__nav:hover { background: rgba(0, 0, 0, .7); }
.bps-listing__nav--prev, .bps-gallery__nav--prev { left: 6px; }
.bps-listing__nav--next, .bps-gallery__nav--next { right: 6px; }
.bps-listing:hover .bps-listing__nav, .bps-listing__nav:focus-visible, .bps-gallery__nav { opacity: 1; }
.bps-listing__nav .bps-icon, .bps-gallery__nav .bps-icon { width: 16px; height: 16px; }
.bps-listing__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 16px 16px 18px; }
.bps-listing__number { margin-bottom: -6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); }
.bps-listing__title { font-family: var(--display); font-size: 17px; font-weight: 700; line-height: 1.5; }
.bps-listing__title a { color: var(--ink); }
.bps-listing__title a:hover { color: var(--brand-dark); }
.bps-listing__spec { font-size: 12.5px; line-height: 1.5; color: var(--soft); }
.bps-listing__ready { margin-top: -4px; font-size: 12.5px; color: var(--soft); }
.bps-listing__ready strong { font-weight: 600; color: var(--ink); }
.bps-listing__notes { margin-top: -4px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; white-space: pre-line; font-size: 12.5px; line-height: 1.5; color: var(--ink); }
.bps-prices { display: flex; gap: 10px; margin-top: 2px; }
.bps-price { flex: 1; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); padding: 8px 10px; text-align: center; }
.bps-price__value { display: block; font-family: var(--display); font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--brand-dark); }
.bps-price__label { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.5; text-transform: uppercase; letter-spacing: .05em; color: var(--soft); }
.bps-price__empty { display: block; padding: 4px 0; font-size: 12px; color: var(--soft); }
.bps-prices--large .bps-price { padding: 10px 12px; }
.bps-prices--large .bps-price__value { font-size: 20px; }
.bps-prices--large .bps-price__empty { padding: 8px 0; }
.bps-listing__actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.bps-listing__actions > * { flex: 1; padding: 10px 8px; font-size: 12.5px; }
.bps-listing__actions .bps-btn-secondary { padding: 8.5px 8px; }
.bps-listing__hint { margin-top: -2px; font-size: 12px; color: var(--soft); }

/* ---- list your load ----------------------------------------------------------------------- */
.bps-sell { background: #fff; padding: 54px 0; scroll-margin-top: 80px; }
.bps-sell__panel.wp-block-group { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; max-width: 1124px; margin: 0 auto; border-radius: 8px; background: var(--brand-light); padding: 34px 36px; }
.bps-sell h2 { margin-bottom: 8px; font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--brand-dark); }
.bps-sell__text p { max-width: 46ch; font-size: 15px; color: var(--soft); }
.bps-sell__action.wp-block-group { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.bps-sell__action .wp-block-button__link { padding: 14px 26px; font-size: 14.5px; }
.bps-sell__caption { font-size: 12px; color: var(--soft); }
@media (max-width: 1180px) { .bps-sell { padding-left: 28px; padding-right: 28px; } }

/* ---- footer ------------------------------------------------------------------------------- */
footer.wp-block-template-part { display: block; }
.bps-footer { background: var(--brand-dark); padding: 50px 0 26px; color: #cfe0d6; }
.bps-footer__cols.wp-block-group { display: grid; grid-template-columns: 1fr; gap: 36px; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
@media (min-width: 720px) { .bps-footer__cols.wp-block-group { grid-template-columns: 1.4fr 1fr 1fr; } }
.bps-footer__logo { margin-bottom: 14px; line-height: 0; }
.bps-footer__logo img { height: 34px; width: auto; }
.bps-footer__about { max-width: 34ch; font-size: 13.5px; color: #b9cabf; }
.bps-footer h2 { margin-bottom: 14px; font-family: var(--display); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); }
.bps-footer__links { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.bps-footer a, .bps-footer .bps-signin-link { color: inherit; }
.bps-footer a:hover { color: #fff; }
.bps-footer .bps-contact { font-size: 13.5px; }
.bps-footer__staff { margin-top: 9px; font-size: 13.5px; }
.bps-copyright { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 20px; font-size: 12.5px; color: #9fb3a7; }

/* ---- modals: a native <dialog>, so Tab stays inside, Escape closes and the page behind is inert ---- */
.bps-modal { width: calc(100% - 40px); max-width: 400px; max-height: none; margin: auto; border: 0; padding: 0; overflow: visible; background: transparent; color: var(--ink); }
.bps-modal:not([open]) { display: none; }
.bps-modal::backdrop { background: rgba(20, 26, 22, .6); }
.bps-modal__panel { position: relative; width: 100%; max-height: 92vh; overflow-y: auto; border-radius: 8px; background: #fff; padding: 30px 30px 24px; box-shadow: 0 24px 80px rgba(0, 0, 0, .35); }
.bps-modal__panel h2 { font-family: var(--display); font-size: 22px; font-weight: 700; }
.bps-modal__lead { margin: 4px 0 18px; font-size: 13.5px; color: var(--soft); }
.bps-modal__close { position: absolute; right: 6px; top: 4px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; cursor: pointer; border: 0; border-radius: 999px; background: none; font-size: 26px; line-height: 1; color: var(--soft); }
.bps-modal__close:hover { background: var(--paper); color: var(--ink); }
.bps-modal__close:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.bps-modal__foot { margin-top: 16px; text-align: center; font-size: 13.5px; color: var(--soft); }
.bps-modal__foot a { font-weight: 600; }

/* ---- product page ------------------------------------------------------------------------- */
.bps-page { padding: 40px 0 66px; }
.bps-page--paper { background: var(--paper); }
.bps-back { display: inline-block; margin-bottom: 18px; font-size: 13.5px; font-weight: 600; }
.bps-product-layout.wp-block-group { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
@media (min-width: 900px) { .bps-product-layout.wp-block-group { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }
.bps-product-main.wp-block-group, .bps-product-side.wp-block-group { border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 24px; }
.bps-product-side.wp-block-group { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 900px) { .bps-product-side.wp-block-group { position: sticky; top: 96px; } }
.bps-product-side .bps-zip { max-width: none; padding: 0; box-shadow: none; }
.bps-product__number { margin-bottom: 6px; font-family: var(--display); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); }
.bps-product__number .bps-badge { margin-left: 8px; }
.bps-product__title { margin-bottom: 16px; font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1.2; }
.bps-gallery__stage { position: relative; display: flex; align-items: center; justify-content: center; height: min(52vh, 420px); overflow: hidden; border-radius: 6px; background: var(--brand-light); }
.bps-gallery__stage img { width: 100%; height: 100%; object-fit: contain; }
.bps-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-top: 20px; }
@media (min-width: 560px) { .bps-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bps-facts dt { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); }
.bps-facts dd { margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--ink); }
.bps-product__notes { margin-top: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); padding: 14px 16px; }
.bps-product__notes-label { margin-bottom: 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); }
.bps-product__notes p:last-child { font-size: 13.5px; line-height: 1.6; }
.bps-buy__sold { font-size: 14px; color: var(--soft); }
.bps-more-title { margin: 44px 0 0; font-family: var(--display); font-size: 22px; font-weight: 700; }
.bps-more .bps-loads { padding: 18px 0 0; background: none; }
.bps-more .bps-loads .bps-wrap { padding: 0; }
.bps-more .bps-loads__head { display: none; }

/* ---- generic pages ------------------------------------------------------------------------ */
.bps-pagehead { background: var(--brand-dark); padding: 44px 0; color: #fff; }
.bps-pagehead h1 { font-family: var(--display); font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; line-height: 1.1; color: #fff; }
.bps-pagehead p { margin-top: 8px; max-width: 60ch; color: #d7e3db; }
.bps-prose { max-width: 760px; margin: 0 auto; padding: 44px 28px 66px; }
.bps-prose > * + * { margin-top: 16px; }
.bps-prose h2 { margin-top: 32px; font-size: 22px; }
.bps-prose h3 { margin-top: 24px; font-size: 18px; }
.bps-prose ul, .bps-prose ol { padding-left: 22px; }
.bps-prose a { text-decoration: underline; text-underline-offset: 2px; }
.bps-narrow { max-width: 520px; margin: 0 auto; padding: 48px 28px 72px; }
.bps-404 { padding: 90px 28px; text-align: center; }
.bps-404 h1 { font-family: var(--display); font-size: 40px; font-weight: 800; color: var(--brand-dark); }
.bps-404 p { margin: 10px 0 24px; color: var(--soft); }

/* ---- account pages and forms -------------------------------------------------------------- */
.bps-auth { max-width: 520px; margin: 0 auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 28px; box-shadow: 0 1px 2px rgba(20, 51, 35, .06); }
.bps-auth--wide { max-width: 620px; }
.bps-auth h1, .bps-account h1 { font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.2; }
.bps-auth h1 { margin-bottom: 8px; font-size: 24px; line-height: 1.25; }
.bps-auth .bps-form :is(input[type=text], input[type=email], input[type=password], input[type=tel], select) { margin-bottom: 16px; line-height: 1.5; }
.bps-auth .bps-btn-block { padding: 13px 22px; font-size: 14.5px; }
.bps-auth__step { margin-bottom: 6px; font-family: var(--display); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); }
.bps-auth__lead { margin: 0 0 20px; font-size: 14px; line-height: 1.625; color: var(--soft); }
.bps-auth h1 + .bps-form, .bps-auth h1 + .bps-form-message { margin-top: 18px; }
.bps-auth__foot { margin-top: 16px; text-align: center; font-size: 13px; color: var(--soft); }
.bps-auth__foot a, .bps-auth__lead a, .bps-panel__text a { font-weight: 600; }
.bps-auth__foot a:hover, .bps-panel__text a:hover { color: var(--brand-dark); }
.bps-form__two, .bps-form__three { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 480px) { .bps-form__two { grid-template-columns: 1fr 1fr; } .bps-form__three { grid-template-columns: 2fr 1fr 1fr; } }
.bps-form textarea { resize: vertical; }
.bps-form input[type=file] { width: 100%; margin-bottom: 14px; border: 1.5px dashed var(--line); border-radius: 4px; background: var(--paper); padding: 12px; font-size: 13.5px; }
.bps-hint { display: block; margin: -8px 0 14px; font-size: 12px; color: var(--soft); }
.bps-check { display: flex; gap: 9px; align-items: flex-start; margin: 4px 0 16px; font-size: 13.5px; line-height: 1.45; color: var(--ink); cursor: pointer; }
.bps-check input { margin-top: 3px; accent-color: var(--brand); }
.bps-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bps-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 18px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); }
.bps-divider::before, .bps-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.bps-callout { margin: 2px 0 16px; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 0 4px 4px 0; background: var(--paper); padding: 12px 14px; font-size: 13.5px; }
.bps-callout__title { margin-bottom: 4px; font-family: var(--display); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--soft); }
.bps-callout a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.bps-account { max-width: 900px; margin: 0 auto; }
.bps-account__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.bps-account__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 680px) { .bps-account__grid { grid-template-columns: 1fr 1fr; } .bps-panel--wide { grid-column: 1 / -1; } }
.bps-panel { padding: 20px 22px; }
.bps-panel h2 { display: flex; justify-content: space-between; margin-bottom: 10px; font-family: var(--display); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); }
.bps-panel__edit { font-family: var(--body); font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.bps-panel__text { margin-top: 8px; font-size: 13.5px; color: var(--soft); }
.bps-panel .bps-facts { margin-top: 0; }
.bps-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 16px; border: 1px solid #ead9b0; border-radius: 6px; background: #fdf6e8; padding: 12px 16px; font-size: 13.5px; }
.bps-linkbutton { cursor: pointer; border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

/* ---- public forms: done state, chat, RFQs, terms ------------------------------------------- */
.bps-form-done h2 { margin-bottom: 8px; font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--brand-dark); }
.bps-form-done p { margin-bottom: 16px; font-size: 14.5px; color: var(--soft); }
.bps-chat { position: fixed; left: 20px; bottom: 20px; z-index: 60; }
.bps-chat__button { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: 0; border-radius: 999px; background: var(--brand); padding: 12px 18px 12px 15px; font-family: var(--display); font-size: 13.5px; font-weight: 700; color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); transition: background-color .15s; }
.bps-chat__button:hover { background: var(--brand-dark); }
.bps-chat__button svg { width: 20px; height: 20px; }
.bps-chat__panel { position: absolute; left: 0; bottom: 58px; width: min(340px, calc(100vw - 40px)); border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 22px 22px 18px; box-shadow: 0 16px 48px rgba(0, 0, 0, .25); }
.bps-chat__panel h2 { margin-bottom: 14px; font-family: var(--display); font-size: 18px; font-weight: 700; }
.bps-rfqs__layout { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
@media (min-width: 960px) { .bps-rfqs__layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } .bps-rfqs__form { position: sticky; top: 96px; } }
.bps-rfqs__states { margin-bottom: 16px; }
.bps-rfqs__form { padding: 24px; }
.bps-rfqs__form > h2 { margin-bottom: 16px; font-family: var(--display); font-size: 20px; font-weight: 700; }
.bps-rfq { margin-bottom: 14px; padding: 18px 20px; }
.bps-rfq__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.bps-rfq .bps-facts { margin: 12px 0 0; }
.bps-rfq .bps-listing__notes { margin-top: 12px; }
.bps-rfq__quote { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.bps-rfq__quote summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--brand); }
.bps-rfq__quote[open] summary { margin-bottom: 14px; }
.bps-rfqs__pages { display: flex; justify-content: center; gap: 18px; margin-top: 18px; font-size: 13.5px; color: var(--soft); }
.bps-terms__version { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); }
.bps-terms h2 { margin-top: 28px; font-size: 19px; }
.bps-terms p { margin-top: 10px; }

/* ---- orders ------------------------------------------------------------------------------- */
.bps-orders__row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); padding: 14px 18px; color: var(--ink); }
.bps-orders__row:last-child { border-bottom: 0; }
.bps-orders__row:hover { background: var(--paper); color: var(--ink); }
.bps-orders__no { font-family: var(--display); font-weight: 700; color: var(--brand-dark); }
.bps-orders__what small { display: block; font-size: 12px; color: var(--soft); }
.bps-orders__total { font-family: var(--display); font-weight: 700; }
@media (max-width: 600px) { .bps-orders__row { grid-template-columns: 1fr auto; } .bps-orders__what { grid-column: 1 / -1; order: 3; } }
.bps-lines { width: 100%; border-collapse: collapse; font-size: 14px; }
.bps-lines td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.bps-lines td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.bps-lines__total td { border-bottom: 0; font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--brand-dark); }
.bps-doclinks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bps-doclinks__pdf { margin-right: 10px; font-size: 13px; font-weight: 600; }
.bps-banner .bps-btn-primary { margin-left: auto; }
.bps-buy__form { margin-top: 4px; }
.bps-buy__form .bps-check { margin: 0 0 8px; }
.bps-buy__offer { margin-top: 12px; text-align: center; font-size: 13.5px; color: var(--soft); }
.bps-buy__offer a { font-weight: 600; }
#bps-pay-element { margin-bottom: 16px; }
p.bps-callout { margin-bottom: 18px; }

/* ---- order review before Place Order ---- */
.bps-review { margin: 4px 0 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); padding: 16px 18px 6px; }
.bps-review .bps-lines { margin-bottom: 12px; }
.bps-review .bps-lines td:first-child { padding-right: 14px; color: var(--soft); }
.bps-review .bps-lines td:last-child { color: var(--ink); }
.bps-review .bps-hint { margin: 0 0 8px; }
.bps-review .bps-check { margin-top: 12px; }
.bps-link-button { display: block; margin: 10px auto 0; border: 0; background: none; padding: 4px; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--brand); }
.bps-link-button:hover { text-decoration: underline; text-underline-offset: 2px; }
.bps-link-button[hidden] { display: none; }
/* ---- FAQ ---- */
.bps-faq { max-width: 820px; margin: 0 auto; }
.bps-faq h2 { margin: 34px 0 10px; font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--brand-dark); }
.bps-faq details { border-bottom: 1px solid var(--line); }
.bps-faq summary { cursor: pointer; padding: 14px 28px 14px 0; font-family: var(--display); font-size: 15.5px; font-weight: 600; list-style: none; position: relative; }
.bps-faq summary::-webkit-details-marker { display: none; }
.bps-faq summary::after { content: "+"; position: absolute; right: 4px; top: 11px; font-size: 20px; font-weight: 400; color: var(--brand); }
.bps-faq details[open] summary::after { content: "–"; }
.bps-faq details p { margin: 0 0 16px; font-size: 15px; line-height: 1.65; color: var(--soft); }
.bps-faq__foot { margin-top: 28px; font-size: 14px; color: var(--soft); }
.bps-hint[hidden] { display: none; }

/* ---- pages of loads ---- */
.bps-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin-top: 32px; font-family: var(--display); font-size: 14px; font-weight: 600; }
.bps-pages__numbers { display: flex; align-items: center; gap: 6px; }
.bps-pages__number, .bps-pages__step { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); text-decoration: none; }
.bps-pages a:hover { border-color: var(--brand); color: var(--brand); }
.bps-pages a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.bps-pages__number.is-current { border-color: var(--brand); background: var(--brand); color: #fff; }
.bps-pages__step.is-disabled { color: var(--soft); opacity: .45; }
.bps-pages__gap { color: var(--soft); }
@media (max-width: 480px) { .bps-pages__number:not(.is-current) { display: none; } .bps-pages__gap { display: none; } }

/* ---- articles ---- */
.bps-articles__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.bps-articles__grid > li { margin: 0; }
.bps-article-card { height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.bps-article-card .wp-block-post-featured-image { margin: 0; }
.bps-article-card .wp-block-post-featured-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bps-article-card__body { padding: 18px 20px 22px; }
.bps-article-card__date, .bps-article-head__date { font-family: var(--display); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); }
.bps-article-card h2 { margin: 6px 0 8px; font-family: var(--display); font-size: 19px; font-weight: 700; line-height: 1.3; }
.bps-article-card h2 a { color: var(--ink); text-decoration: none; }
.bps-article-card h2 a:hover { color: var(--brand); }
.bps-article-card .wp-block-post-excerpt { font-size: 14.5px; line-height: 1.6; color: var(--soft); }
.bps-article-card .wp-block-post-excerpt__more-text { margin-top: 10px; }
.bps-article-card .wp-block-post-excerpt__more-link { font-family: var(--display); font-size: 13.5px; font-weight: 700; color: var(--brand); text-decoration: none; }
.bps-article-card .wp-block-post-excerpt__more-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.bps-articles__pages { margin-top: 32px; gap: 8px; font-family: var(--display); font-size: 14px; font-weight: 600; }
.bps-articles__pages a, .bps-articles__pages .page-numbers { padding: 9px 13px; border: 1.5px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); text-decoration: none; }
.bps-articles__pages .page-numbers.current { border-color: var(--brand); background: var(--brand); color: #fff; }
.bps-article-head .bps-article-head__date { color: #cfe0d6; margin-bottom: 8px; }
.bps-article { font-size: 17px; line-height: 1.75; }
.bps-article .wp-block-post-featured-image { margin: 0 0 28px; }
.bps-article .wp-block-post-featured-image img { width: 100%; height: auto; border-radius: 6px; }
.bps-article img { max-width: 100%; height: auto; }
.bps-article h3 { margin-top: 26px; font-size: 19px; }
.bps-article blockquote { margin-left: 0; border-left: 3px solid var(--gold); padding-left: 18px; color: var(--soft); }
.bps-article__back { margin-top: 40px; font-family: var(--display); font-size: 14px; font-weight: 700; }
