/* Checkout and order confirmation (replace SureCart's forms). Site fonts and colors: Karla, gold #DAA520, text #2D2D2D. */

/* SureCart's column layout (the purchase pages: product on the left, checkout on the right). */
.wp-block-surecart-columns { width: 100%; display: flex; box-sizing: border-box; gap: var(--sc-column-spacing, 0); margin-left: auto; margin-right: auto; flex-wrap: wrap; align-items: initial !important; }
.wp-block-surecart-columns > .wp-block-surecart-column { max-width: none; box-sizing: border-box; min-width: 0; }
@media (max-width: 781px) {
  .wp-block-surecart-columns > .wp-block-surecart-column { flex-basis: 100% !important; max-width: 100%; }
  .wp-block-surecart-columns.is-full-height > .wp-block-surecart-column { padding: 30px !important; }
}
@media (min-width: 782px) {
  .wp-block-surecart-columns { flex-wrap: nowrap !important; }
  .wp-block-surecart-columns.is-full-height { min-height: 100vh !important; }
  .wp-block-surecart-columns > .wp-block-surecart-column { flex-basis: 0; flex-grow: 1; }
  .wp-block-surecart-columns > .wp-block-surecart-column[style*='flex-basis'] { flex-grow: 0; }
  .wp-block-surecart-column.is-sticky { position: sticky !important; align-self: flex-start; top: 0; }
  .wp-block-surecart-column.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { max-width: var(--sc-column-content-width, 450px) !important; margin-left: auto !important; margin-right: auto !important; }
  .wp-block-surecart-column.is-layout-constrained.is-horizontally-aligned-left > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { margin-left: 0 !important; margin-right: auto !important; }
  .wp-block-surecart-column.is-layout-constrained.is-horizontally-aligned-right > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { margin-left: auto !important; margin-right: 0 !important; }
}

.sb-checkout { display: block; text-align: left; font-family: Karla, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.5; color: #2D2D2D; }
.sb-checkout *, .sb-checkout *::before, .sb-checkout *::after { box-sizing: border-box; }
.sbc-form { display: block; margin: 0; }
.sbc-form > * + *, .sbc-form .wp-block-surecart-column > * + * { margin-top: var(--sc-form-row-spacing, 24px); }
.sbc-form [data-sbc]:empty { display: none; }
.sbc-label { display: block; margin: 0 0 6px; font-weight: 600; font-size: 15px; color: #4B5563; }
.sbc-req { color: #DC2626; }
.sbc-input { display: block; width: 100%; height: 44px; padding: 0 14px; border: 1px solid #DCE0E6; border-radius: 6px; background: #fff; font: inherit; font-size: 16px; color: #2D2D2D; transition: border-color .15s, box-shadow .15s; }
.sbc-input::placeholder { color: #9CA3AF; }
.sbc-input:focus { outline: none; border-color: #DAA520; box-shadow: 0 0 0 2px rgba(218, 165, 32, .25); }
.is-invalid .sbc-input { border-color: #DC2626; }
.sbc-help { margin: 4px 0 0; font-size: 13px; color: #6B7280; }
/* An email that already has an account confirms it's theirs with an emailed code before paying (checkout.js,
   drawVerify): a warm panel under the email in the checkout's own form look, then a green line once signed in. */
.sbc-verify { margin: 12px 0 0; padding: 16px; border: 1px solid #DCE0E6; border-radius: 6px; background: #FDF9F1; }
.sbc-verify[hidden], .sbc-verify [hidden] { display: none; }
.sbc-verify.is-done { padding: 0; border: 0; background: none; }
.sbc-verify-title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; color: #2D2D2D; }
.sbc-verify-text { margin: 4px 0 12px; font-size: 14px; line-height: 1.5; color: #2D2D2D; opacity: 0.8; }
.sbc-verify-step { margin: 4px 0 0; }
.sbc-verify-step .sbc-verify-text { margin-top: 0; }
.sbc-verify-row { display: flex; gap: 8px; }
.sbc-verify-row .sbc-input { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; }
.sbc-verify-again { display: block; margin: 8px 0 0; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; color: #2C40D0; cursor: pointer; }
.sbc-verify-again:hover { text-decoration: underline; }
.sbc-verify-msg { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: #B91C1C; }
.sbc-verify-ok { margin: 0; font-size: 14px; line-height: 1.5; color: #15803D; }

/* Price choices */
.sbc-choices { display: grid; gap: 12px; }
.sbc-choice { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 18px; background: #fff; border: 1px solid #DCE0E6; border-radius: 6px; cursor: pointer; }
.sbc-choice.is-on { border: 2px solid #DAA520; padding: 17px; }
/* Radios and checkboxes are drawn white on gold, like the payment-method radio (.sbc-radio). The browser's own,
   tinted with accent-color, put a black dot and tick on this light gold. */
.sbc-choice input { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin: 0; flex: none; border: 1px solid #C9CED6; border-radius: 50%; background: #fff; cursor: pointer; }
.sbc-choice input:checked { border: 5px solid #DAA520; }
.sbc-bump-top input, .sbc-check input { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; flex: none; border: 2px solid #DAA520; border-radius: 4px; background: #fff center / 12px 12px no-repeat; cursor: pointer; }
.sbc-bump-top input:checked, .sbc-check input:checked { background-color: #DAA520; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.4 6.3 4.9 8.7 9.6 3.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.sbc-choice input:focus-visible, .sbc-bump-top input:focus-visible, .sbc-check input:focus-visible { outline: 2px solid #DAA520; outline-offset: 2px; }
.sbc-choice-main { flex: 1; min-width: 0; }
.sbc-choice-title { display: block; font-weight: 600; color: #374151; }
.sbc-choice-sub { display: block; color: #6B7280; }
.sbc-choice-price { color: #374151; white-space: nowrap; }

/* Payment methods */
.sbc-methods { border: 1px solid #DCE0E6; border-radius: 6px; background: #fff; overflow: hidden; }
.sbc-method + .sbc-method { border-top: 1px solid #DCE0E6; }
.sbc-method-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 16px 18px; background: none; border: 0; font: inherit; font-size: 16px; font-weight: 600; color: #374151; text-align: left; cursor: pointer; }
.sbc-method-head svg { width: 22px; height: 22px; flex: none; }
.sbc-method-head .sbc-pp { width: 74px; height: 22px; }
.sbc-method-note { font-weight: 400; font-size: 14px; color: #6B7280; flex: 1; }
@media (max-width: 600px) {
  .sbc-method-head { flex-wrap: wrap; row-gap: 0; }
  .sbc-method-name, .sbc-method-head .sbc-pp { margin-right: auto; }
  .sbc-method-note { order: 9; flex: 0 0 100%; padding-left: 28px; }
}
.sbc-chev { width: 16px !important; height: 16px !important; color: #6B7280; transition: transform .15s; }
.sbc-method.is-on .sbc-chev { transform: rotate(180deg); }
.sbc-radio { width: 18px; height: 18px; border-radius: 50%; border: 1px solid #C9CED6; flex: none; background: #fff; }
.sbc-method.is-on .sbc-radio { border: 5px solid #DAA520; }
.sbc-method-body { display: none; padding: 4px 18px 18px; }
.sbc-method.is-on .sbc-method-body { display: block; }
.sbc-stripe { min-height: 40px; }
.sbc-paypal-note { margin: 0; color: #6B7280; font-size: 14px; }
.sbc-paypal-message { margin-top: 8px; }
.sbc-free { margin: 0; padding: 14px 16px; border: 1px dashed #DCE0E6; border-radius: 6px; color: #4B5563; background: #fff; }

/* Order bumps */
.sbc-bump { display: block; background: #fff; border: 1px solid #DCE0E6; border-radius: 6px; padding: 18px; cursor: pointer; }
.sbc-bump + .sbc-bump { margin-top: 12px; }
.sbc-bump.is-on { border: 2px solid #DAA520; padding: 17px; }
.sbc-bump-top { display: flex; gap: 14px; align-items: flex-start; }
.sbc-bump-top input { margin: 3px 0 0; }
.sbc-bump-title { display: block; font-weight: 600; color: #374151; }
.sbc-bump-price { display: block; margin-top: 2px; }
.sbc-bump-price s { color: #6B7280; }
.sbc-bump-price strong { font-size: 17px; }
.sbc-badge { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 3px; background: #DAA520; color: #fff; font-size: 12px; font-weight: 700; vertical-align: 2px; }
.sbc-bump-body { display: flex; gap: 16px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid #EEF0F3; color: #4B5563; }
.sbc-bump-body img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; border: 1px solid #EEF0F3; flex: none; }

/* Summary */
.sbc-line { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid #E5E7EB; }
.sbc-line img, .sbc-line-noimg { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; border: 1px solid #EEF0F3; flex: none; background: #F7F5EF; }
.sbc-line-main { flex: 1; min-width: 0; }
.sbc-line-title { font-weight: 600; color: #374151; }
.sbc-line-sub { color: #6B7280; font-size: 14px; }
.sbc-line-price { white-space: nowrap; color: #374151; }
.sbc-line-price s, .sbc-total s, .sbc-summary-toggle s { color: #6B7280; font-weight: 400; }
.sbc-coupon { padding: 18px 0; border-top: 1px solid #E5E7EB; }
.sbc-coupon-row { display: flex; gap: 8px; }
.sbc-coupon-row .sbc-input { flex: 1; text-transform: uppercase; }
/* The site's outline button ("Browse Metrics"): dark outline and text, gold on hover. */
.sbc-btn-ghost { flex: none; height: 44px; padding: 0 16px; border: 1px solid #2D2D2D; border-radius: 5px; background: transparent; font: inherit; font-weight: 500; color: #2D2D2D; cursor: pointer; transition: border-color .15s ease-out, color .15s ease-out; }
.sbc-btn-ghost:hover { border-color: #DAA520; color: #DAA520; }
.sbc-btn-ghost:focus-visible { outline: 2px solid #2D2D2D; outline-offset: 2px; }
.sbc-link { padding: 0; border: 0; background: none; font: inherit; color: #2D2D2D; text-decoration: underline; cursor: pointer; }
.sbc-ok { margin: 6px 0 0; color: #15803D; font-size: 14px; }
.sbc-err { margin: 6px 0 0; color: #DC2626; font-size: 14px; }
.sbc-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #E5E7EB; color: #374151; }
.sbc-row .sbc-link { font-size: 13px; color: #6B7280; margin-left: 6px; }
.sbc-tag { display: inline-block; padding: 0 6px; border-radius: 3px; background: #F3F4F6; font-size: 13px; font-weight: 600; }
.sbc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0 0; border-top: 1px solid #E5E7EB; font-weight: 600; color: #374151; }
.sbc-total strong { font-size: 22px; color: #2D2D2D; }
.sbc-summary-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: #374151; cursor: pointer; }
.sbc-summary-toggle > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.sbc-summary-toggle .sbc-chev { width: 14px !important; height: 14px !important; }
.sbc-summary-toggle[aria-expanded="true"] .sbc-chev { transform: rotate(180deg); }
.sbc-summary-toggle strong { font-size: 20px; color: #2D2D2D; }
.sbc-summary-body { margin-top: 12px; }

/* Terms, submit */
.sbc-terms { color: #374151; }
.sbc-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.sbc-check input { margin: 2px 0 0; }
.sbc-terms.is-invalid span { color: #DC2626; }
.sbc-terms a { color: #2C40D0; text-decoration: none; }
/* The site's main button (the header's "Research"): #E6BF66, deeper gold on hover, 5px corners. */
.sbc-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 12px 20px; border: 1px solid #E6BF66; border-radius: 5px; background: #E6BF66; color: #fff; font: inherit; font-size: 19px; font-weight: 500; cursor: pointer; transition: background-color .15s ease-out, border-color .15s ease-out; }
.sbc-submit:hover { background: #DAA520; border-color: #DAA520; }
.sbc-submit:focus-visible { outline: 2px solid #2D2D2D; outline-offset: 2px; }
.sbc-submit[disabled] { opacity: .7; cursor: progress; }
.sbc-submit svg { width: 20px; height: 20px; }
.sbc-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; color: #6B7280; font-size: 14px; }
.sbc-secure svg { width: 14px; height: 14px; }
.sbc-error { margin: 0 0 12px; padding: 12px 14px; border-radius: 6px; background: #FEF2F2; color: #B91C1C; }
.sbc-error a { color: #B91C1C; text-decoration: underline; }
.sbc-paypal-buttons { min-height: 48px; }
[hidden] { display: none !important; }

/* Order confirmation (/sb/order.js), on the StableBread website system (SECSift DESIGN.md, website layer):
   a cream hero band with the title, then white sections; the order in the directory table pattern; the closed
   type and spacing scales; softer text as the body color at 80%. */
.sb-order { --sb-head: #000; --sb-body: #2D2D2D; --warm: #FDF9F1; --border: #E3E3E6; --border-strong: #D6D6DA; display: block; width: 100%; font-family: Karla, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; color: var(--sb-body); font-size: 16px; line-height: 1.5; text-align: left; }
.sbo-hero { background: #F8EDD3; padding: 64px 16px; }
.sbo-hero-in { max-width: 768px; margin: 0 auto; text-align: center; }
.sbo-h { margin: 0 0 12px; font-family: Spectral, Georgia, serif; font-size: clamp(30px, 5vw, 36px); font-weight: 600; line-height: 1.2; color: var(--sb-head); text-wrap: balance; }
.sbo-h:last-child { margin-bottom: 0; }
.sb-order .sbo-sub { max-width: 768px; margin: 0 auto; font-size: 20px; font-weight: 500; line-height: 1.5; }
.sbo-body { max-width: 768px; margin: 0 auto; padding: 32px 0 64px; }
.sbo-sec + .sbo-sec { margin-top: 48px; }
.sbo-h2 { margin: 0 0 12px; font-family: Spectral, Georgia, serif; font-size: 24px; font-weight: 600; line-height: 1.2; color: var(--sb-head); }
.sb-order p { margin: 0 0 12px; font-size: 16px; line-height: 1.5; }
.sb-order a:not(.sbo-btn) { color: #2C40D0; font-weight: 400; text-decoration: none; }
.sb-order a:not(.sbo-btn):hover { text-decoration: underline; }
.sb-order strong { font-weight: 700; color: var(--sb-head); }
.sbo-soft { opacity: .8; }
.sb-order .sbo-note { font-size: 14px; opacity: .8; }
.sbo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.sbo-actions:last-child { margin-bottom: 0; }
/* The site's two buttons: gold like the header's "Research", and the dark outline like "Browse Metrics". */
.sbo-btn { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 5px; border: 1px solid #E6BF66; background: #E6BF66; color: #fff !important; font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none !important; transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out; }
.sbo-btn:hover { background: #DAA520; border-color: #DAA520; }
.sbo-btn-ghost { background: transparent; color: var(--sb-body) !important; border-color: var(--sb-body); }
.sbo-btn-ghost:hover { background: transparent; border-color: #DAA520; color: #DAA520 !important; }
.sbo-btn:focus-visible { outline: 2px solid #DAA520; outline-offset: 2px; }
/* The order, as a table in the directory pattern. */
.sbo-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.sbo-table th { padding: 12px 16px; border-bottom: 2px solid var(--border-strong); background: var(--warm); font-size: 14px; font-weight: 600; line-height: 1.2; text-transform: uppercase; letter-spacing: 0; text-align: left; color: var(--sb-body); }
.sbo-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.sbo-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sbo-table tfoot td { padding: 8px 16px; border-bottom: 0; font-size: 14px; }
.sbo-table tfoot .sum td { opacity: .8; }
.sbo-table tfoot .total td { padding-top: 12px; border-top: 1px solid var(--sb-body); font-size: 18px; font-weight: 700; color: var(--sb-head); }
/* The sign-in for an email that already had an account sits in line with the text above it. */
.sb-order .sb-signin { margin-top: 16px; max-width: 440px; }
.sb-order .sbsi { margin: 0; }
@media (max-width: 780px) { .sbo-hero { padding: 48px 24px; } .sbo-body { padding: 24px 0 48px; } .sbo-sec + .sbo-sec { margin-top: 32px; } }
@media (prefers-reduced-motion: reduce) { .sbo-btn, .sb-order a { transition: none; } }
.sb-order .sbsi-step1 .sbsi-help { display: none; }
