/* LiFePO4 Australia reusable content blocks.
   Used for richer product descriptions, guides, FAQs and landing sections. */

:root {
  --lfp-ink: #171717;
  --lfp-charcoal: #242424;
  --lfp-charcoal-2: #303030;
  --lfp-muted: #5f6368;
  --lfp-orange: #f28c18;
  --lfp-orange-dark: #c96800;
  --lfp-orange-soft: #fff3e2;
  --lfp-green: #2f7d4f;
  --lfp-green-dark: #1f5f3b;
  --lfp-green-soft: #edf7f1;
  --lfp-line: #eadfce;
  --lfp-soft: #fffaf3;
  --lfp-white: #ffffff;
  --lfp-warning: #b45309;
}

.lfp-content,
.lfp-bundle,
.lfp-ruixu,
.cec-guide {
  --ink: var(--lfp-ink);
  --muted: var(--lfp-muted);
  --line: var(--lfp-line);
  --soft: var(--lfp-soft);
  --blue: var(--lfp-orange-soft);
  --blue-soft: var(--lfp-orange-soft);
  --green: var(--lfp-orange);
  --green-dark: var(--lfp-orange-dark);
  --warn: var(--lfp-warning);
  --amber: var(--lfp-warning);
  color: var(--lfp-ink);
}

.lfp-content *,
.lfp-bundle *,
.lfp-ruixu *,
.cec-guide * {
  box-sizing: border-box;
}

.lfp-content p,
.lfp-content li,
.lfp-bundle p,
.lfp-bundle li,
.lfp-ruixu p,
.lfp-ruixu li,
.cec-guide p,
.cec-guide li {
  font-size: 16px;
  line-height: 1.7;
}

.lfp-content h1,
.lfp-content h2,
.lfp-content h3,
.lfp-bundle h1,
.lfp-bundle h2,
.lfp-bundle h3,
.lfp-ruixu h1,
.lfp-ruixu h2,
.lfp-ruixu h3,
.cec-guide h1,
.cec-guide h2,
.cec-guide h3 {
  color: var(--lfp-ink);
  line-height: 1.18;
  letter-spacing: 0;
}

.lfp-content h2,
.lfp-bundle h2,
.lfp-ruixu h2,
.cec-guide h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 38px);
}

.lfp-content h3,
.lfp-bundle h3,
.lfp-ruixu h3,
.cec-guide h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.lfp-content .lfp-hero,
.lfp-content .cec-hero,
.lfp-bundle .lfp-hero,
.lfp-ruixu .lfp-hero,
.cec-guide .cec-hero {
  border: 1px solid var(--lfp-line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 95% 0%, rgba(242, 140, 24, .16), transparent 30%),
    linear-gradient(135deg, #fff7ec 0%, #ffffff 58%, #f7f7f7 100%);
  padding: clamp(24px, 4vw, 46px);
  margin: 0 0 26px;
  box-shadow: 0 12px 30px rgba(23, 23, 23, .08);
}

.lfp-content .lfp-eyebrow,
.lfp-content .cec-eyebrow,
.lfp-bundle .lfp-eyebrow,
.lfp-ruixu .lfp-eyebrow,
.cec-guide .cec-eyebrow {
  margin: 0 0 10px;
  color: var(--lfp-orange-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.lfp-content .lfp-lead,
.lfp-content .cec-lead,
.lfp-bundle .lfp-lead,
.lfp-ruixu .lfp-lead,
.cec-guide .cec-lead {
  max-width: 930px;
  color: #333;
  font-size: clamp(18px, 2vw, 22px);
}

.lfp-content .lfp-pills,
.lfp-content .cec-pills,
.lfp-bundle .lfp-pills,
.lfp-ruixu .lfp-pills,
.cec-guide .cec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.lfp-content .lfp-pill,
.lfp-content .cec-pill,
.lfp-bundle .lfp-pill,
.lfp-ruixu .lfp-pill,
.cec-guide .cec-pill {
  border: 1px solid #efd6b6;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  padding: 8px 12px;
  color: var(--lfp-charcoal);
  font-size: 14px;
  font-weight: 900;
}

.lfp-content .lfp-section,
.lfp-content .cec-section,
.lfp-bundle .lfp-section,
.lfp-ruixu .lfp-section,
.cec-guide .cec-section {
  margin: 34px 0;
}

.lfp-content .lfp-grid,
.lfp-content .cec-grid,
.lfp-bundle .lfp-grid,
.lfp-ruixu .lfp-grid,
.cec-guide .cec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.lfp-content .lfp-two,
.lfp-content .cec-two,
.lfp-bundle .lfp-two,
.lfp-ruixu .lfp-two,
.cec-guide .cec-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr);
  gap: 22px;
  align-items: start;
}

.lfp-content .lfp-card,
.lfp-content .cec-card,
.lfp-bundle .lfp-card,
.lfp-ruixu .lfp-card,
.cec-guide .cec-card {
  border: 1px solid var(--lfp-line);
  border-radius: 10px;
  background: var(--lfp-white);
  padding: 20px;
  box-shadow: 0 8px 22px rgba(23, 23, 23, .05);
}

.lfp-content .lfp-card p:last-child,
.lfp-content .cec-card p:last-child,
.lfp-bundle .lfp-card p:last-child,
.lfp-ruixu .lfp-card p:last-child,
.cec-guide .cec-card p:last-child {
  margin-bottom: 0;
}

.lfp-content .lfp-note,
.lfp-content .cec-note,
.lfp-bundle .lfp-note,
.lfp-ruixu .lfp-note,
.cec-guide .cec-note {
  border-left: 4px solid var(--lfp-orange);
  border-radius: 10px;
  background: var(--lfp-soft);
  padding: 18px 20px;
}

.lfp-content .lfp-warning,
.lfp-content .cec-warning,
.lfp-bundle .lfp-warning,
.lfp-ruixu .lfp-warning,
.cec-guide .cec-warning {
  border-left-color: var(--lfp-warning);
  background: #fff7ed;
}

.lfp-content .lfp-list,
.lfp-content .cec-list,
.lfp-bundle .lfp-list,
.lfp-ruixu .lfp-list,
.cec-guide .cec-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.lfp-content .lfp-list li,
.lfp-content .cec-list li,
.lfp-bundle .lfp-list li,
.lfp-ruixu .lfp-list li,
.cec-guide .cec-list li {
  position: relative;
  padding-left: 28px;
}

.lfp-content .lfp-list li::before,
.lfp-content .cec-list li::before,
.lfp-bundle .lfp-list li::before,
.lfp-ruixu .lfp-list li::before,
.cec-guide .cec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lfp-orange);
  box-shadow: 0 0 0 4px var(--lfp-orange-soft);
}

.lfp-content .lfp-list li:nth-child(4n)::before,
.lfp-content .cec-list li:nth-child(4n)::before,
.lfp-bundle .lfp-list li:nth-child(4n)::before,
.lfp-ruixu .lfp-list li:nth-child(4n)::before,
.cec-guide .cec-list li:nth-child(4n)::before {
  background: var(--lfp-green);
  box-shadow: 0 0 0 4px var(--lfp-green-soft);
}

.lfp-content .lfp-specs,
.lfp-content .cec-table-wrap,
.lfp-bundle .lfp-specs,
.lfp-ruixu .lfp-specs,
.cec-guide .cec-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--lfp-line);
  border-radius: 10px;
  background: var(--lfp-white);
}

.lfp-content table,
.lfp-bundle table,
.lfp-ruixu table,
.cec-guide table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.lfp-content th,
.lfp-content td,
.lfp-bundle th,
.lfp-bundle td,
.lfp-ruixu th,
.lfp-ruixu td,
.cec-guide th,
.cec-guide td {
  border-bottom: 1px solid var(--lfp-line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.lfp-content th,
.lfp-bundle th,
.lfp-ruixu th,
.cec-guide th {
  background: #fff7ec;
  color: var(--lfp-ink);
  font-size: 13px;
}

.lfp-content details,
.lfp-bundle details,
.lfp-ruixu details,
.cec-guide details {
  border: 1px solid var(--lfp-line);
  border-radius: 9px;
  background: var(--lfp-white);
  margin: 10px 0;
}

.lfp-content summary,
.lfp-bundle summary,
.lfp-ruixu summary,
.cec-guide summary {
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 900;
}

.lfp-content details > div,
.lfp-bundle details > div,
.lfp-ruixu details > div,
.cec-guide details > div {
  padding: 0 18px 16px;
  color: var(--lfp-muted);
}

.lfp-content .lfp-cta,
.lfp-content .lfp-form,
.lfp-content .cec-cta,
.lfp-bundle .lfp-form,
.lfp-bundle .lfp-cta,
.lfp-ruixu .lfp-cta,
.lfp-ruixu .lfp-form,
.cec-guide .cec-cta {
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(242, 140, 24, .16), transparent 42%),
    var(--lfp-charcoal);
  color: #fff;
  padding: clamp(24px, 4vw, 38px);
  margin-top: 34px;
}

.lfp-content .lfp-cta h2,
.lfp-content .lfp-cta p,
.lfp-content .lfp-form h2,
.lfp-content .lfp-form p,
.lfp-content .cec-cta h2,
.lfp-content .cec-cta p,
.lfp-bundle .lfp-form h2,
.lfp-bundle .lfp-form p,
.lfp-bundle .lfp-cta h2,
.lfp-bundle .lfp-cta p,
.lfp-ruixu .lfp-cta h2,
.lfp-ruixu .lfp-cta p,
.lfp-ruixu .lfp-form h2,
.lfp-ruixu .lfp-form p,
.cec-guide .cec-cta h2,
.cec-guide .cec-cta p {
  color: #fff;
}

.lfp-content .lfp-cta a,
.lfp-content .cec-cta a,
.lfp-ruixu .lfp-cta a,
.cec-guide .cec-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  background: var(--lfp-orange);
  color: #111;
  padding: 10px 16px;
  font-weight: 900;
  text-decoration: none;
}

.lfp-content .lfp-cta a:hover,
.lfp-content .cec-cta a:hover,
.lfp-ruixu .lfp-cta a:hover,
.cec-guide .cec-cta a:hover {
  background: #ff9d2e;
  color: #111;
}

/* Stronger selectors override legacy inline product description styles. */
.woocommerce div.product .lfp-bundle,
.woocommerce div.product .lfp-ruixu,
.site-content .cec-guide,
.entry-content .lfp-content {
  --ink: var(--lfp-ink);
  --muted: var(--lfp-muted);
  --line: var(--lfp-line);
  --soft: var(--lfp-soft);
  --blue: var(--lfp-orange-soft);
  --blue-soft: var(--lfp-orange-soft);
  --green: var(--lfp-orange);
  --green-dark: var(--lfp-orange-dark);
  --warn: var(--lfp-warning);
  --amber: var(--lfp-warning);
}

.woocommerce div.product .lfp-bundle .lfp-hero,
.woocommerce div.product .lfp-ruixu .lfp-hero,
.site-content .cec-guide .cec-hero,
.entry-content .lfp-content .lfp-hero {
  border-color: var(--lfp-line);
  background:
    radial-gradient(circle at 95% 0%, rgba(242, 140, 24, .16), transparent 30%),
    linear-gradient(135deg, #fff7ec 0%, #ffffff 58%, #f7f7f7 100%);
  box-shadow: 0 12px 30px rgba(23, 23, 23, .08);
}

.woocommerce div.product .lfp-bundle .lfp-eyebrow,
.woocommerce div.product .lfp-ruixu .lfp-eyebrow,
.site-content .cec-guide .cec-eyebrow,
.entry-content .lfp-content .lfp-eyebrow {
  color: var(--lfp-orange-dark);
}

.woocommerce div.product .lfp-bundle .lfp-pill,
.woocommerce div.product .lfp-ruixu .lfp-pill,
.site-content .cec-guide .cec-pill,
.entry-content .lfp-content .lfp-pill {
  border-color: #efd6b6;
}

.woocommerce div.product .lfp-bundle .lfp-note,
.woocommerce div.product .lfp-ruixu .lfp-note,
.site-content .cec-guide .cec-note,
.entry-content .lfp-content .lfp-note {
  border-left-color: var(--lfp-orange);
  background: var(--lfp-soft);
}

.woocommerce div.product .lfp-bundle .lfp-list li::before,
.woocommerce div.product .lfp-ruixu .lfp-list li::before,
.site-content .cec-guide .cec-list li::before,
.entry-content .lfp-content .lfp-list li::before {
  background: var(--lfp-orange);
  box-shadow: 0 0 0 4px var(--lfp-orange-soft);
}

.woocommerce div.product .lfp-bundle .lfp-list li:nth-child(4n)::before,
.woocommerce div.product .lfp-ruixu .lfp-list li:nth-child(4n)::before,
.site-content .cec-guide .cec-list li:nth-child(4n)::before,
.entry-content .lfp-content .lfp-list li:nth-child(4n)::before {
  background: var(--lfp-green);
  box-shadow: 0 0 0 4px var(--lfp-green-soft);
}

.woocommerce div.product .lfp-bundle .lfp-form,
.woocommerce div.product .lfp-bundle .lfp-cta,
.woocommerce div.product .lfp-ruixu .lfp-cta,
.woocommerce div.product .lfp-ruixu .lfp-form,
.site-content .cec-guide .cec-cta,
.entry-content .lfp-content .lfp-cta,
.entry-content .lfp-content .lfp-form {
  background:
    linear-gradient(135deg, rgba(242, 140, 24, .16), transparent 42%),
    var(--lfp-charcoal);
}

@media (max-width: 850px) {
  .lfp-content .lfp-grid,
  .lfp-content .cec-grid,
  .lfp-content .lfp-two,
  .lfp-content .cec-two,
  .lfp-bundle .lfp-grid,
  .lfp-bundle .lfp-two,
  .lfp-ruixu .lfp-grid,
  .lfp-ruixu .lfp-two,
  .cec-guide .cec-grid,
  .cec-guide .cec-two {
    grid-template-columns: 1fr;
  }
}

