/* ═══════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════ */
.bf-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--wp--preset--font-family--ui);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .8rem 1.6rem;
  border-radius: var(--wp--custom--border-radius--subtle);
  border: none;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s, box-shadow .2s;
  text-decoration: none;
  line-height: 1;
  min-height: 44px;
}

/* Lime CTA */
.bf-btn-lime {
  background: var(--wp--preset--color--lime);
  color: var(--wp--preset--color--ink);
}
.bf-btn-lime:hover {
  background: #b5d651;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(171,208,55,.35);
}

/* Ghost */
.bf-btn-ghost {
  background: transparent;
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.2);
}
.bf-btn-ghost:hover {
  border-color: var(--wp--preset--color--lime);
  color: var(--wp--preset--color--lime);
}

/* WhatsApp */
.bf-btn-wa {
  background: rgba(37,211,102,.9);
  color: #fff;
  box-shadow: 0 4px 24px rgba(37,211,102,.35), inset 0 1px 0 rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
}
.bf-btn-wa:hover {
  background: rgba(37,211,102,1);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════════════ */
.bf-nav {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(248,246,241,.72);
  backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid rgba(20,20,18,.06);
  display: flex;
  align-items: center;
}

.bf-nav__inner {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 1280px) {
  .bf-nav__inner { padding-inline: 3.5rem; }
}

.bf-nav__logo {
  padding-block: 10px;
  display: flex;
  align-items: center;
}
.bf-nav__logo img,
.bf-nav__logo .custom-logo { height: 80px; width: auto; }

.bf-nav__links {
  display: none;
  background: transparent !important;
  color: inherit !important;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 768px) {
  .bf-nav__links { 
    display: flex !important; 
    margin-left: auto;
    margin-right: 1.5rem;
    gap: 2rem;
    align-items: center;
  }
}
.bf-nav__links a {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 300;
  color: var(--wp--preset--color--ink-soft);
  transition: color .2s;
}
.bf-nav__links a:hover { color: var(--wp--preset--color--lime-deep); }

.bf-nav__actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
}
@media (min-width: 768px) {
  .bf-nav__actions {
    margin-left: 0;
  }
}

/* Icon buttons (search, cart) */
.bf-nav__icon-btn {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid var(--wp--preset--color--ink);
  border-radius: var(--wp--custom--border-radius--subtle);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
  min-height: 44px;
  min-width: 44px;
}
.bf-nav__icon-btn:hover {
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--paper);
}

/* Cart badge */
.bf-cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 16px;
  height: 16px;
  background: var(--wp--preset--color--lime);
  color: var(--wp--preset--color--ink);
  font-size: .5rem;
  font-weight: 700;
  border-radius: var(--wp--custom--border-radius--circle);
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}
.bf-cart-badge.visible { display: flex; }

/* Pedir pill */
.bf-nav__pill {
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--paper);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .55rem 1rem;
  border-radius: var(--wp--custom--border-radius--circle);
  transition: background .2s;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.bf-nav__pill:hover { background: var(--wp--preset--color--lime-dark); }

/* Search overlay */
.bf-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.bf-search-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.bf-search-overlay__inner {
  width: min(620px, calc(100vw - 2rem));
  transform: translateY(-12px);
  transition: transform .2s;
}
.bf-search-overlay.open .bf-search-overlay__inner {
  transform: translateY(0);
}
.bf-search-overlay__form {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
.bf-search-overlay__input {
  flex: 1;
  border: none;
  outline: none;
  padding: .85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  background: transparent;
}
.bf-search-overlay__submit,
.bf-search-overlay__close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: .75rem .9rem;
  display: flex;
  align-items: center;
  color: var(--wp--preset--color--ink);
  transition: color .15s;
}
.bf-search-overlay__submit:hover,
.bf-search-overlay__close:hover {
  color: var(--wp--preset--color--lime-dark);
}

/* Hamburger */
.bf-nav__hamburger {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) {
  .bf-nav__hamburger { display: none; }
}

/* Drawer */
.bf-nav__drawer {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(248,246,241,.95);
  backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid rgba(20,20,18,.08);
  padding: 1.5rem 1.25rem;
  transform: translateY(-110%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  z-index: 299;
}
.bf-nav__drawer.open { transform: translateY(0); }

.bf-nav__drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.bf-nav__drawer-links li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(20,20,18,.06);
  font-size: .84rem;
  font-weight: 300;
  letter-spacing: .05em;
  color: var(--wp--preset--color--ink);
  transition: color .15s;
}
.bf-nav__drawer-links li a:hover { color: var(--wp--preset--color--lime-deep); }
/* Chevron via CSS for dynamically-generated menu items */
.bf-nav__drawer-links li a::after {
  content: '›';
  font-size: 1.1rem;
  line-height: 1;
  opacity: .4;
}

/* ═══════════════════════════════════════════════════════════════
   WHATSAPP FLOAT BUTTON
═══════════════════════════════════════════════════════════════ */
.bf-wa-float {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 400;
  width: 50px;
  height: 50px;
  border-radius: var(--wp--custom--border-radius--circle);
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  animation: bf-pulse-shadow 2.5s ease-in-out infinite;
  transition: transform .2s;
}
.bf-wa-float:hover { transform: scale(1.1); }

/* ═══════════════════════════════════════════════════════════════
   MOBILE CART BAR
═══════════════════════════════════════════════════════════════ */
.bf-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 350;
  background: rgba(20,20,18,.92);
  backdrop-filter: blur(20px);
  padding: .75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.bf-cart-bar.visible { transform: translateY(0); }

@media (min-width: 768px) {
  .bf-cart-bar { display: none; }
}

.bf-cart-bar__info {
  color: var(--wp--preset--color--paper);
  font-size: .72rem;
}
.bf-cart-bar__count { opacity: .6; }
.bf-cart-bar__total {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--wp--preset--color--lime);
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORY CARDS
═══════════════════════════════════════════════════════════════ */
.bf-cat-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--wp--custom--border-radius--sharp);
  cursor: pointer;
}
.bf-cat-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
}
.bf-cat-card:hover .bf-cat-card__image { transform: scale(1.06); }
.bf-cat-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,20,18,.75) 0%, rgba(20,20,18,.1) 60%, transparent 100%);
}
.bf-cat-card__content {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  color: #fff;
}
.bf-cat-card__name {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.1;
}
.bf-cat-card__count {
  font-size: .56rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .7;
  margin-top: .25rem;
}
.bf-cat-card__arrow {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s, transform .25s;
}
.bf-cat-card:hover .bf-cat-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT CARDS
═══════════════════════════════════════════════════════════════ */
.bf-product-card {
  background: var(--wp--preset--color--white);
  border-radius: var(--wp--custom--border-radius--subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bf-product-card__image-wrap {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
}
.bf-product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
}
.bf-product-card:hover .bf-product-card__image { transform: scale(1.05); }

.bf-product-card__badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: rgba(248,246,241,.72);
  backdrop-filter: blur(8px);
  border-radius: var(--wp--custom--border-radius--pill);
  padding: .3rem .65rem;
  font-size: .55rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ink);
}

.bf-product-card__heart {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 34px;
  height: 34px;
  border-radius: var(--wp--custom--border-radius--circle);
  background: rgba(248,246,241,.72);
  backdrop-filter: blur(8px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wp--preset--color--ink);
  transition: background .2s, color .2s;
}
.bf-product-card__heart:hover {
  background: rgba(255,255,255,.9);
  color: #e05;
}

.bf-product-card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
}
.bf-product-card__name {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.2;
  color: var(--wp--preset--color--ink);
}
.bf-product-card__note {
  font-size: .7rem;
  font-weight: 200;
  color: var(--wp--preset--color--ink-muted);
}
.bf-product-card__price {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--wp--preset--color--lime-deep);
  margin-top: auto;
}
.bf-product-card__cta {
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .35rem;
  color: var(--wp--preset--color--ink-soft);
  transition: color .2s, gap .2s;
}
.bf-product-card__cta:hover {
  color: var(--wp--preset--color--lime-deep);
  gap: .5rem;
}

/* ═══════════════════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════════════════ */
.bf-testimonial-card {
  position: relative;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(24px) saturate(180%);
  border-radius: var(--wp--custom--border-radius--sharp);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 12px 40px rgba(20,20,18,.03);
  padding: 2rem;
  break-inside: avoid;
  margin-bottom: 1.5rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.bf-testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(20,20,18,.06);
}
.bf-testimonial-card__quote-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--wp--preset--color--lime);
  opacity: .15;
}
.bf-testimonial-card__stars {
  display: flex;
  gap: .25rem;
  margin-bottom: 1.25rem;
  color: #FBBF24;
}
.bf-testimonial-card__stars svg,
.bf-testimonial-card__stars i {
  fill: currentColor;
}
.bf-testimonial-card__quote {
  position: relative;
  z-index: 1;
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--wp--preset--color--ink);
  margin-bottom: 1.5rem;
}
.bf-testimonial-card__author {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--wp--preset--font-family--ui);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ink);
  border-top: 1px solid rgba(20,20,18,.06);
  padding-top: 1.25rem;
}
.bf-testimonial-card__quote--long {
  font-size: .95rem;
}
.bf-testimonial-card__quote ul {
  margin-left: 1.25rem;
  margin-block: .75rem;
  list-style-type: disc;
}
.bf-google-review-icon {
  margin-left: auto;
  width: 16px;
  height: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   DELIVERY FEATURE ICONS
═══════════════════════════════════════════════════════════════ */
.bf-feature-icon {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(171,208,55,.2);
  border-radius: var(--wp--custom--border-radius--subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wp--preset--color--lime);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   TICKER
═══════════════════════════════════════════════════════════════ */
.bf-ticker {
  background: var(--wp--preset--color--ink);
  overflow: hidden;
  white-space: nowrap;
  padding: .9rem 0;
}
.bf-ticker__track {
  display: inline-flex;
  animation: bf-tick 22s linear infinite;
}
.bf-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 1.5rem;
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 300;
  color: var(--wp--preset--color--paper);
}
.bf-ticker__dot {
  width: 5px;
  height: 5px;
  border-radius: var(--wp--custom--border-radius--circle);
  background: var(--wp--preset--color--lime);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   ACCORDION (FAQ)
═══════════════════════════════════════════════════════════════ */
.bf-faq-item {
  border-bottom: 1px solid rgba(20,20,18,.1);
}
.bf-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--wp--preset--color--ink);
}
.bf-faq-item summary::-webkit-details-marker { display: none; }
.bf-faq-item summary .bf-faq-chevron {
  transition: transform .25s;
  flex-shrink: 0;
  color: var(--wp--preset--color--lime-deep);
}
.bf-faq-item[open] summary .bf-faq-chevron {
  transform: rotate(180deg);
}
.bf-faq-item__answer {
  padding-bottom: 1.25rem;
  font-size: .84rem;
  font-weight: 200;
  line-height: 1.65;
  color: var(--wp--preset--color--ink-soft);
}

/* ═══════════════════════════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════════════════════════ */
.bf-stats-bar {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.bf-stat {
  display: flex;
  flex-direction: column;
}
.bf-stat__value {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--wp--preset--color--lime);
  line-height: 1;
}
.bf-stat__label {
  font-size: .56rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(248,246,241,.55);
  margin-top: .2rem;
}

/* ═══════════════════════════════════════════════════════════════
   GENERAL PAGE CONTENT — prose typography
   Applies to all standard WP pages (Aliados, Testimonios,
   Contacto, Términos, etc.) via body.page.
   Excludes home, WooCommerce transactional pages.
═══════════════════════════════════════════════════════════════ */

/* ─── Page title banner ─────────────────────────────────────── */
/* Wrapper groups stripped at render; style h1 directly as sand band */
body.page:not(.home) .wp-block-post-title {
  font-family: var(--wp--preset--font-family--display) !important;
  font-weight: 300 !important;
  font-size: clamp(1.9rem, 6vw, 2.8rem) !important;
  line-height: 1.05 !important;
  color: var(--wp--preset--color--ink) !important;
  background: var(--wp--preset--color--paper-warm) !important;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
  padding: 3rem max(1.25rem, calc(50vw - 450px)) !important;
}

/* ─── Prose container ───────────────────────────────────────── */
body.page:not(.home) .wp-block-post-content {
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
  margin-inline: auto;
  padding: 3rem 1.25rem;
  font-family: var(--wp--preset--font-family--ui);
  font-size: .92rem;
  line-height: 1.75;
  color: rgba(20,20,18,.82);
}
@media (min-width: 1280px) {
  body.page:not(.home) .wp-block-post-content {
    padding: 3rem 0;
  }
}

/* ─── Headings ───────────────────────────────────────────────── */
body.page:not(.home) .wp-block-post-content h2 {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(1.89rem, 4.73vw, 2.57rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--wp--preset--color--ink);
  margin: 2.5rem 0 .7rem;
}

body.page:not(.home) .wp-block-post-content h3 {
  font-family: var(--wp--preset--font-family--ui);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--wp--preset--color--ink);
  margin: 2rem 0 .45rem;
}

body.page:not(.home) .wp-block-post-content h4 {
  font-family: var(--wp--preset--font-family--ui);
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(20,20,18,.45);
  margin: 1.75rem 0 .4rem;
}

/* ─── Paragraphs ─────────────────────────────────────────────── */
body.page:not(.home) .wp-block-post-content p {
  margin: 0 0 1rem;
}
body.page:not(.home) .wp-block-post-content p:last-child {
  margin-bottom: 0;
}

/* ─── Links ──────────────────────────────────────────────────── */
body.page:not(.home) .wp-block-post-content a:not(.wp-block-button__link) {
  color: var(--wp--preset--color--ink);
  text-decoration: underline;
  text-decoration-color: rgba(171,208,55,.55);
  text-underline-offset: 3px;
  transition: color .15s, text-decoration-color .15s;
}
body.page:not(.home) .wp-block-post-content a:not(.wp-block-button__link):hover {
  color: var(--wp--preset--color--lime-deep);
  text-decoration-color: currentColor;
}

/* ─── Lists ──────────────────────────────────────────────────── */
body.page:not(.home) .wp-block-post-content ul,
body.page:not(.home) .wp-block-post-content ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}
body.page:not(.home) .wp-block-post-content li {
  margin-bottom: .4rem;
  line-height: 1.65;
}

/* ─── Blockquote ─────────────────────────────────────────────── */
body.page:not(.home) .wp-block-post-content blockquote {
  margin: 1.5rem 0;
  padding: .75rem 0 .75rem 1.25rem;
  border-left: 2px solid var(--wp--preset--color--lime);
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
  color: var(--wp--preset--color--ink);
  line-height: 1.5;
}

/* ─── Dividers ───────────────────────────────────────────────── */
body.page:not(.home) .wp-block-post-content hr {
  border: none;
  border-top: 1px solid rgba(20,20,18,.08);
  margin: 2rem 0;
}

/* ═══════════════════════════════════════════════════════════════
   REGISTRATION PAGE
═══════════════════════════════════════════════════════════════ */
.bf-register-page {
  min-height: 72vh;
  padding: 4rem 1.25rem 5rem;
  background: var(--wp--preset--color--paper);
}

@media (min-width: 768px) {
  .bf-register-page { padding: 5rem 3.5rem 6rem; }
}

/* wp:shortcode wraps output in .wp-block-shortcode — constrain it so the card centers */
.bf-register-page .wp-block-shortcode {
  width: 100%;
}

.bf-register-card {
  background: var(--wp--preset--color--white);
  border: 1px solid rgba(20, 20, 18, .1);
  border-radius: 10px;
  padding: 2.25rem 1.75rem;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .bf-register-card { padding: 3rem 2.5rem; }
}

.bf-register-card .bf-eyebrow { margin-bottom: 1rem; }

.bf-register-card__heading {
  font-size: var(--wp--preset--font-size--2xl);
  color: var(--wp--preset--color--ink);
  margin: 0 0 .45rem;
}

.bf-register-card__subtitle {
  font-size: var(--wp--preset--font-size--sm);
  line-height: 1.65;
  margin: 0 0 1.25rem;
}

/* Two-column name row */
.bf-register-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}

/* Inputs — mirrors account panel input style */
.bf-register-card input[type="text"],
.bf-register-card input[type="email"],
.bf-register-card input[type="password"] {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid rgba(20, 20, 18, .12);
  border-radius: 7px;
  background: var(--wp--preset--color--paper);
  font-size: var(--wp--preset--font-size--base);
  color: var(--wp--preset--color--ink);
  font-family: var(--wp--preset--font-family--ui);
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  box-sizing: border-box;
}

.bf-register-card input[type="text"]:focus,
.bf-register-card input[type="email"]:focus,
.bf-register-card input[type="password"]:focus {
  outline: none;
  border-color: var(--wp--preset--color--lime-deep);
  box-shadow: 0 0 0 3px rgba(171, 208, 55, .14);
}

/* Required abbr */
.bf-register-card .bf-form-field label abbr.required {
  text-decoration: none;
  border: none;
  color: rgba(180, 50, 50, .65);
  margin-left: .15rem;
}

/* Auto-password notice pill */
.bf-register-auto-password {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--wp--preset--font-size--sm);
  padding: .65rem .85rem;
  background: var(--wp--preset--color--paper-warm);
  border-radius: 6px;
}

/* Already logged in */
.bf-register-card__logged-in {
  text-align: center;
  padding: 1.5rem 0;
  font-size: var(--wp--preset--font-size--sm);
}

.bf-register-card__logged-in a {
  color: var(--wp--preset--color--lime-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Login CTA below form */
.bf-register-card__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(20, 20, 18, .07);
  text-align: center;
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--ink-muted);
}

/* WC notice styles on the registration page */
.bf-register-card .woocommerce-error,
.bf-register-card .woocommerce-message,
.bf-register-card .woocommerce-notice {
  list-style: none;
  padding: .75rem 1rem;
  border-radius: 7px;
  font-size: var(--wp--preset--font-size--sm);
  margin: 0 0 1rem;
}

.bf-register-card .woocommerce-error {
  background: rgba(220, 53, 69, .07);
  border: 1px solid rgba(220, 53, 69, .22);
  color: #b91c1c;
}

.bf-register-card .woocommerce-message {
  background: rgba(171, 208, 55, .1);
  border: 1px solid rgba(171, 208, 55, .35);
  color: var(--wp--preset--color--lime-dark);
}

.bf-register-card .woocommerce-error li,
.bf-register-card .woocommerce-message li {
  padding: .15rem 0;
  list-style: none;
}

/* ═══════════════════════════════════════════════════════════════
   ACCOUNT PANEL (slide-in from right)
═══════════════════════════════════════════════════════════════ */
.bf-account-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 100vw;
  background: var(--wp--preset--color--paper);
  z-index: 600;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
  box-shadow: -4px 0 40px rgba(20,20,18,.12);
}
.bf-account-panel.open { transform: translateX(0); }

.bf-account-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,20,18,.5);
  backdrop-filter: blur(2px);
  z-index: 599;
  opacity: 0;
  pointer-events: none;
  transition: opacity .32s;
}
.bf-account-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.bf-account-panel__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--paper);
}
.bf-account-panel__title {
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-family: var(--wp--preset--font-family--ui);
  font-weight: 300;
}
.bf-account-panel__close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(248,246,241,.2);
  border-radius: var(--wp--custom--border-radius--subtle);
  background: transparent;
  color: var(--wp--preset--color--paper);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, background .2s;
}
.bf-account-panel__close:hover {
  border-color: rgba(248,246,241,.6);
  background: rgba(248,246,241,.08);
}

.bf-account-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.75rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
}

/* Forms */
.bf-auth-form {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.bf-form-field {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
/* core/shortcode block applies wpautop which injects <br> after each <label>.
   Hide them so they don't become rogue flex items in .bf-form-field. */
.bf-auth-form br { display: none; }
.bf-form-field label {
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(20,20,18,.5);
  font-family: var(--wp--preset--font-family--ui);
}
.bf-account-panel input[type="text"],
.bf-account-panel input[type="email"],
.bf-account-panel input[type="password"] {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid #dedad2;
  border-radius: 7px;
  background: #fff;
  font-size: .875rem;
  color: var(--wp--preset--color--ink);
  font-family: var(--wp--preset--font-family--ui);
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}
.bf-account-panel input[type="text"]:focus,
.bf-account-panel input[type="email"]:focus,
.bf-account-panel input[type="password"]:focus {
  outline: none;
  border-color: var(--wp--preset--color--lime-deep);
  box-shadow: 0 0 0 3px rgba(200,230,58,.14);
}

.bf-pw-wrap { position: relative; }
.bf-pw-wrap input { padding-right: 2.8rem !important; }
.bf-pw-toggle {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  color: rgba(20,20,18,.4);
  padding: 0;
  display: flex;
  align-items: center;
  transition: color .2s;
}
.bf-pw-toggle:hover { color: var(--wp--preset--color--ink); }

.bf-form-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  font-size: .72rem;
  color: rgba(20,20,18,.6);
}
.bf-form-remember label { display: flex; align-items: center; gap: .4rem; cursor: pointer; }
.bf-form-remember a {
  font-size: .68rem;
  color: rgba(20,20,18,.45);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.bf-form-remember a:hover { color: var(--wp--preset--color--ink); }

.bf-btn-submit {
  width: 100%;
  padding: .9rem;
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--paper);
  border: none;
  border-radius: 7px;
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-family: var(--wp--preset--font-family--ui);
  cursor: pointer;
  transition: background .2s;
  margin-top: .25rem;
}
.bf-btn-submit:hover { background: var(--wp--preset--color--lime-dark); }

/* Login error message */
.bf-login-error {
  padding: .75rem 1rem;
  background: rgba(220,53,69,.08);
  border: 1px solid rgba(220,53,69,.25);
  border-radius: 7px;
  font-size: .78rem;
  color: #b91c1c;
  line-height: 1.5;
}

/* Register CTA (below login form) */
.bf-account-panel__register-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(20,20,18,.08);
  text-align: center;
  color: rgba(20,20,18,.45);
}
.bf-account-panel__register-cta p {
  font-size: .8rem;
  font-weight: 300;
}
.bf-account-panel__register-link {
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: var(--wp--preset--font-family--ui);
  color: var(--wp--preset--color--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.bf-account-panel__register-link:hover { color: var(--wp--preset--color--lime-deep); }

/* Logged-in state */
.bf-account-panel__greeting {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  background: rgba(200,230,58,.1);
  border: 1px solid rgba(200,230,58,.3);
  border-radius: 8px;
  margin-bottom: 1.75rem;
  color: var(--wp--preset--color--ink);
}
.bf-account-panel__greeting p { font-size: .875rem; font-weight: 300; }
.bf-account-panel__greeting strong { font-weight: 400; }

.bf-account-panel__links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(20,20,18,.08);
}
.bf-account-panel__links a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 0;
  border-bottom: 1px solid rgba(20,20,18,.06);
  font-size: .8rem;
  font-weight: 300;
  letter-spacing: .04em;
  color: var(--wp--preset--color--ink);
  transition: color .15s, padding-left .15s;
}
.bf-account-panel__links a:hover {
  color: var(--wp--preset--color--lime-deep);
  padding-left: .35rem;
}

.bf-account-panel__logout {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 2rem;
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(20,20,18,.35);
  transition: color .2s;
  font-family: var(--wp--preset--font-family--ui);
}
.bf-account-panel__logout:hover { color: var(--wp--preset--color--ink); }
