/* Bedworld content pages (page.php) + slim app pages (cart, checkout, account, compare). */
.bw-content-page { background: var(--bw-light); padding-bottom: 56px; }
.bw-content-hero, .bw-page-band { background: var(--bw-dark); color: #fff; position: relative; overflow: hidden; }
.bw-content-hero { padding: 26px 0 34px; }
.bw-page-band { padding: 18px 0 22px; }
.bw-content-hero::before, .bw-page-band::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--bw-navy); }
.bw-content-hero::after { content: ""; position: absolute; right: -140px; top: -180px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(175,0,0,.45), transparent 70%); pointer-events: none; }
.bw-content-hero .bw-container, .bw-page-band .bw-container { position: relative; z-index: 1; }
.bw-content-hero .bw-breadcrumb, .bw-content-hero .bw-breadcrumb a, .bw-page-band .bw-breadcrumb, .bw-page-band .bw-breadcrumb a { color: #c98b8b; font-size: 13px; text-decoration: none; }
.bw-content-hero h1, .bw-page-band h1 { font-family: var(--bw-display); color: #fff; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.05; margin: 10px 0 8px; }
.bw-page-band h1 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 0; }
.bw-content-hero p { max-width: 680px; margin: 0; color: rgba(255,255,255,.8); font-size: 16.5px; }

.bw-content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; margin-top: 28px; }
.bw-prose { background: #fff; border-radius: var(--bw-radius); padding: 32px 36px; border: 1px solid var(--bw-gray-light); font-size: 16px; line-height: 1.7; color: var(--bw-text); min-width: 0; }
.bw-prose > *:first-child { margin-top: 0; }
.bw-prose h2 { font-family: var(--bw-display); font-size: 26px; line-height: 1.2; color: var(--bw-text); margin: 32px 0 10px; padding-top: 6px; }
.bw-prose h2::after { content: ""; display: block; width: 44px; height: 3px; background: var(--bw-navy); border-radius: 2px; margin-top: 8px; }
.bw-prose h3 { font-size: 18px; color: var(--bw-navy); margin: 24px 0 6px; }
.bw-prose h4 { font-size: 16px; margin: 18px 0 4px; }
.bw-prose p { margin: 0 0 14px; }
.bw-prose ul, .bw-prose ol { margin: 0 0 16px; padding-left: 1.3em; }
.bw-prose li { margin-bottom: 6px; }
.bw-prose li::marker { color: var(--bw-navy); }
.bw-prose a { color: var(--bw-navy); font-weight: 600; }
.bw-prose strong, .bw-prose b { color: var(--bw-text); }
.bw-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.bw-prose iframe { width: 100%; min-height: 320px; border: 0; border-radius: 12px; margin: 8px 0 16px; }
.bw-prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14.5px; display: block; overflow-x: auto; }
.bw-prose th, .bw-prose td { border-bottom: 1px solid var(--bw-gray-light); padding: 10px 12px; text-align: left; vertical-align: top; }
.bw-prose th { background: var(--bw-light); font-weight: 700; }
.bw-prose hr { border: 0; border-top: 1px solid var(--bw-gray-light); margin: 24px 0; }
.bw-prose__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* FAQ accordion */
.bw-prose .bw-faq__item { border: 1px solid var(--bw-gray-light); border-radius: 12px; margin: 0 0 10px; background: #fff; }
.bw-prose .bw-faq__item summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; font-weight: 700; position: relative; color: var(--bw-text); }
.bw-prose .bw-faq__item summary::-webkit-details-marker { display: none; }
.bw-prose .bw-faq__item summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--bw-light); color: var(--bw-navy); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; }
.bw-prose .bw-faq__item[open] summary::after { content: "–"; background: var(--bw-navy); color: #fff; }
.bw-prose .bw-faq__item[open] { border-color: #e7c3bd; box-shadow: 0 10px 24px -18px rgba(36,17,19,.4); }
.bw-faq__answer { padding: 0 16px 6px; }

/* Help panel */
.bw-help { position: sticky; top: var(--bw-sticky-top, 140px); background: var(--bw-dark); color: #fff; border-radius: var(--bw-radius); padding: 22px; }
.bw-help__title { font-family: var(--bw-display); font-size: 22px; margin: 0 0 4px; color: #fff; }
.bw-help__text { color: rgba(255,255,255,.75); font-size: 14px; margin: 0 0 14px; }
.bw-help__btn { width: 100%; justify-content: center; }
.bw-help__list { list-style: none; padding: 0; margin: 16px 0; }
.bw-help__list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.bw-help__list span { color: rgba(255,255,255,.6); }
.bw-help__list a { color: #fff; text-decoration: none; font-weight: 600; word-break: break-word; text-align: right; }
.bw-help__addr { font-size: 14px; color: rgba(255,255,255,.8); margin: 0 0 8px; }
.bw-help__addr b { color: var(--bw-yellow); }
.bw-help__link { color: var(--bw-yellow); font-weight: 700; font-size: 14px; }

/* Page form */
.bw-page-form { margin-top: 30px; padding: 24px; background: var(--bw-light); border-radius: 14px; border: 1px solid var(--bw-gray-light); }
.bw-page-form h2 { margin-top: 0; }
.bw-page-form .bw-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.bw-page-form .bw-form-field--full { grid-column: 1 / -1; }
.bw-page-form label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.bw-page-form input, .bw-page-form textarea { width: 100%; border: 1.5px solid var(--bw-gray-light); border-radius: 10px; padding: 11px 12px; font: inherit; font-size: 15px; background: #fff; }
.bw-page-form input:focus, .bw-page-form textarea:focus { outline: none; border-color: var(--bw-navy); }
.bw-page-form .bw-form-note { font-size: 13px; color: var(--bw-charcoal); margin: 10px 0 0; }

/* Slim app pages */
.bw-page--app { background: var(--bw-light); padding-bottom: 56px; }
.bw-page-app { padding-top: 26px; }
.bw-page--full { background: var(--bw-light); padding: 24px 0 56px; }

@media (max-width: 960px) {
  .bw-content-layout { grid-template-columns: 1fr; }
  .bw-help { position: static; }
}
@media (max-width: 560px) {
  .bw-prose { padding: 22px 18px; font-size: 15.5px; }
  .bw-prose h2 { font-size: 22px; }
  .bw-page-form { padding: 18px 14px; }
  .bw-page-form .bw-form-grid { grid-template-columns: 1fr; }
  .bw-prose iframe { min-height: 240px; }
}

/* No gap between the header and the page banner. */
main.bw-main.bw-content-page, main.bw-main.bw-page--app { padding-top: 0; margin-top: 0; }

/* Compare page */
.bw-compare__wrap { overflow-x: auto; background: #fff; border-radius: var(--bw-radius); border: 1px solid var(--bw-gray-light); }
.bw-compare__table { width: 100%; border-collapse: collapse; min-width: 640px; }
.bw-compare__table th, .bw-compare__table td { padding: 12px 14px; border-bottom: 1px solid var(--bw-gray-light); text-align: left; vertical-align: top; font-size: 14.5px; }
.bw-compare__table thead th { vertical-align: bottom; }
.bw-compare__table thead a { display: flex; flex-direction: column; gap: 8px; color: var(--bw-text); text-decoration: none; font-weight: 700; }
.bw-compare__table thead img { width: 140px; height: 140px; object-fit: contain; border-radius: 10px; background: var(--bw-light); }
.bw-compare__table tbody th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--bw-charcoal); width: 120px; }
.bw-compare__note { font-size: 14px; color: var(--bw-charcoal); margin-top: 10px; }
.bw-compare__loading { color: var(--bw-charcoal); }

/* Credit options: one card per provider */
.bw-credit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 4px 0 8px; }
.bw-credit-card { display: flex; flex-direction: column; background: var(--bw-light); border: 1px solid var(--bw-gray-light); border-radius: 18px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.bw-credit-card:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -26px rgba(36,17,19,.55); }
.bw-credit-card__logo { height: 104px; display: flex; align-items: center; padding: 18px 22px; background: #fff; border-bottom: 1px solid var(--bw-gray-light); }
.bw-credit-card__logo img, .bw-credit-card__logo p, .bw-credit-card__logo figure { margin: 0; }
.bw-credit-card__logo img { max-height: 62px; max-width: 70%; width: auto; height: auto; object-fit: contain; border-radius: 0; }
.bw-credit-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 22px 20px; }
.bw-prose .bw-credit-card__body h2, .bw-prose .bw-credit-card__body h3 { font-size: 21px; margin: 0 0 8px; padding: 0; color: var(--bw-text); }
.bw-prose .bw-credit-card__body h2::after { display: none; }
.bw-credit-card__body p { font-size: 15px; line-height: 1.6; margin: 0 0 10px; }
.bw-credit-card__body p:has(.bw-credit-card__link) { margin-top: auto; margin-bottom: 0; padding-top: 6px; }
.bw-prose a.bw-credit-card__link { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 999px; background: var(--bw-navy); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.bw-prose a.bw-credit-card__link::after { content: "\2192"; }
.bw-prose a.bw-credit-card__link:hover { background: var(--bw-dark); color: #fff; }
@media (max-width: 720px) { .bw-credit-grid { grid-template-columns: 1fr; } }

/* Numbered steps (e.g. FeverTree how-to): a row of cards, screenshots sized to fit. */
.bw-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 18px 0 24px; counter-reset: none; }
.bw-step { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 16px 16px; background: var(--bw-light); border: 1px solid var(--bw-gray-light); border-radius: 16px; }
.bw-step__num { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bw-navy); color: #fff; font-weight: 800; font-size: 15px; }
.bw-prose .bw-step h3 { margin: 2px 0 0; font-size: 17px; color: var(--bw-text); }
.bw-step p { margin: 0; font-size: 14px; line-height: 1.55; }
.bw-step p:has(img) { order: 5; margin-top: auto; padding-top: 6px; text-align: center; }
.bw-prose .bw-step img { display: block; width: auto; max-width: 100%; max-height: 260px; margin: 0 auto; border-radius: 10px; object-fit: contain; }
@media (max-width: 560px) { .bw-steps { grid-template-columns: 1fr 1fr; gap: 10px; } .bw-prose .bw-step img { max-height: 200px; } }
