:root {
  --b2brf-accent: #1a6c39;
  --b2brf-bg: #ffffff;
  --b2brf-text: #1d2327;
  --b2brf-muted: #606a73;
  --b2brf-border: #dcdcde;
  --b2brf-danger: #b32d2e;
}

.b2brf-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.b2brf-wrap,
.b2brf-wrap * {
  box-sizing: border-box;
}

.b2brf-card {
  background: var(--b2brf-bg);
  border: 1px solid var(--b2brf-border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.b2brf-intro {
  margin: 0 0 12px;
  color: #000;
  font-size: 20px;
  line-height: 1.45;
  text-align: center;
  font-weight: 600;
}

.b2brf-accordion-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px !important;
  border-radius: 999px !important;
  font-size: 15px !important;
  /* Ensure theme button styles can’t override our CTA color. */
  background-color: var(--b2brf-accent) !important;
  border-color: var(--b2brf-accent) !important;
  color: #fff !important;
}

.b2brf-accordion-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 260ms ease, opacity 180ms ease;
}

.b2brf-accordion.is-open .b2brf-accordion-panel {
  margin-top: 14px;
  max-height: 2400px;
  opacity: 1;
  pointer-events: auto;
}

.b2brf-accordion-panel[aria-hidden="true"] {
  margin-top: 0;
}

.b2brf-title {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.2;
}

.b2brf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .b2brf-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

.b2brf-field {
  position: relative;
}

.b2brf-wrap input.b2brf-input {
  width: 100%;
  padding: 30px 12px 10px !important;
  border: 1px solid var(--b2brf-border) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--b2brf-text) !important;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
  box-shadow: none !important;
  height: auto !important;
  min-height: 48px;
  line-height: 1.2 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  margin: 0 !important;
}

.b2brf-wrap input.b2brf-input:focus {
  border-color: var(--b2brf-accent) !important;
  box-shadow: 0 0 0 3px rgba(26,108,57,0.15) !important;
}
.b2brf-register-form.woocommerce-form.woocommerce-form-register.register {
  display: grid;
  gap: 14px;
}
.b2brf-label {
  position: absolute;
  left: 12px;
  top: 14px;
  color: var(--b2brf-muted);
  background: transparent;
  padding: 0 4px;
  transition: transform 120ms ease, color 120ms ease, top 120ms ease, background 120ms ease;
  pointer-events: none;
}

.b2brf-field.is-filled .b2brf-label,
.b2brf-wrap input.b2brf-input:focus + .b2brf-label {
  top: 6px;
  transform: scale(0.88);
  transform-origin: left top;
  color: var(--b2brf-accent);
  background: #fff;
}

.b2brf-help {
  margin: 8px 2px 0;
  font-size: 12px;
  color: var(--b2brf-muted);
}

.b2brf-afm-status {
  margin: 8px 2px 0;
  font-size: 12px;
}
.b2brf-afm-status[data-kind="checking"] { color: var(--b2brf-muted); }
.b2brf-afm-status[data-kind="ok"] { color: var(--b2brf-accent); font-weight: 600; }
.b2brf-afm-status[data-kind="bad"] { color: var(--b2brf-danger); font-weight: 600; }
.b2brf-afm-status[data-kind="warn"] { color: #8a6d3b; }

/* Notices inside the card */
.b2brf-wrap .woocommerce-error,
.b2brf-wrap .woocommerce-message,
.b2brf-wrap .woocommerce-info {
  margin: 0 0 14px !important;
  border-radius: 10px !important;
}

.b2brf-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.b2brf-wrap .b2brf-btn,
.b2brf-wrap button.b2brf-btn,
.b2brf-wrap input.b2brf-btn {
  appearance: none;
  border: 1px solid var(--b2brf-accent) !important;
  background-color: var(--b2brf-accent) !important;
  background-image: none !important;
  color: #fff !important;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 600 !important;
  cursor: pointer;
  transition: filter 120ms ease, transform 60ms ease;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.b2brf-wrap .b2brf-btn:hover {
  filter: brightness(0.95);
  background-color: var(--b2brf-accent) !important;
  color: #fff !important;
}
.b2brf-wrap .b2brf-btn:focus,
.b2brf-wrap .b2brf-btn:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(26,108,57,0.20) !important;
}
.b2brf-wrap .b2brf-btn:active { transform: translateY(1px); }

.b2brf-legal {
  font-size: 12px;
  color: var(--b2brf-muted);
}

.b2brf-legal a {
  color: var(--b2brf-accent);
}


