/* theme-refresh.css: make the BeTheme (WordPress) pages match the static site.
   Loaded after the parent and child styles; versioned by file mtime. */

/* Header: black bar, like the static pages. */
#Header_wrapper,
#Top_bar,
#Top_bar.is-sticky,
.header-classic #Top_bar,
.sticky-white #Top_bar.is-sticky {
  background-color: #000 !important;
}
#Top_bar { border-bottom: 1px solid rgba(255, 255, 255, 0.08); box-shadow: none !important; }

/* Logo: same 2x file and size as the static header. */
#Top_bar .logo {
  display: flex !important;
  align-items: center;
  height: auto !important;
  line-height: normal !important;
  margin: 0 !important;
  padding: 18px 0 !important;
}
#Top_bar .logo a { display: inline-flex; align-items: center; padding: 0 !important; }
/* 48px tall is ~half the 99px source: a clean 2x downscale, sharp on retina. */
#Top_bar .logo img,
#Top_bar .logo .custom-logo {
  width: auto !important;
  height: 48px !important;
  max-height: none !important;
  max-width: min(340px, 70vw) !important;
  object-fit: contain;
  image-rendering: auto;
}
/* Sticky (scrolled) bar: the theme pins it at 60px, which clipped the logo.
   Let it size to the logo, with a little less padding. */
#Top_bar.is-sticky,
#Top_bar.is-sticky .container,
#Top_bar.is-sticky .column,
#Top_bar.is-sticky .top_bar_left {
  height: auto !important;
  min-height: 0 !important;
}
#Top_bar.is-sticky .logo { padding: 12px 0 !important; }
#Top_bar.is-sticky .logo a,
#Top_bar.is-sticky .custom-logo-link { padding: 0 !important; height: auto !important; line-height: 0 !important; }
@media (max-width: 575.98px) {
  #Top_bar .logo { padding: 4px 0 !important; }
  #Top_bar .logo img, #Top_bar .logo .custom-logo { height: 34px !important; }
}

/* Menu: the old theme menu is off-screen on desktop and its links are one-page
   anchors (#how-it-works...) that go nowhere here. These pages are checkout,
   receipt and account screens, so use a logo-only header (logo links home). */
#Top_bar .menu_wrapper,
#Top_bar #menu,
#Top_bar .responsive-menu-toggle,
#Side_slide, .body_overlay { display: none !important; }
#Top_bar .top_bar_left { width: 100% !important; }

/* EDD pages (checkout, thank-you, receipt): no title banner or breadcrumbs,
   no stock photo at the top of the page content. */
body.edd-checkout #Subheader,
body.ac-edd-page #Subheader { display: none !important; }
body.edd-checkout #Header,
body.ac-edd-page #Header { min-height: 0 !important; }
body.edd-checkout .entry-content > .wp-block-image:first-child,
body.edd-checkout .the_content_wrapper > .wp-block-image:first-child,
body.ac-edd-page .the_content_wrapper > .wp-block-image:first-child,
body.ac-edd-page .entry-content > .wp-block-image:first-child { display: none; }
body.ac-edd-page .the_content_wrapper > p:empty { display: none; }
body.edd-checkout #Content,
body.ac-edd-page #Content { padding-top: 48px; }

/* Receipt page: hide the Order Status row of the classic table. */
body.ac-edd-page #edd_purchase_receipt tr:has(td.edd_receipt_payment_status) { display: none; }

/* API key box on the thank-you / receipt pages. */
.ac-apikey {
  margin: 8px 0 28px;
  padding: 24px 28px;
  border-radius: 14px;
  background: #0b1220;
  color: #e6edf7;
  box-shadow: 0 12px 32px rgba(10, 20, 40, 0.18);
}
.ac-apikey__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7fb2ff;
  margin-bottom: 12px;
}
.ac-apikey__row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.ac-apikey__value {
  flex: 1 1 260px;
  display: block;
  padding: 14px 16px;
  border-radius: 10px;
  background: #111b2e;
  border: 1px solid rgba(127, 178, 255, 0.35);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  letter-spacing: 0.02em;
  word-break: break-all;
  user-select: all;
}
.ac-apikey__copy {
  flex: 0 0 auto;
  padding: 0 22px;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: #3d89fb;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.ac-apikey__copy:hover { background: #2a74e4; }
.ac-apikey__help { margin: 14px 0 0; color: #b8c4d6; font-size: 15px; line-height: 1.6; }
.ac-apikey__help strong { color: #fff; }
.ac-apikey__dashboard {
  display: inline-block;
  margin-top: 16px;
  color: #7fb2ff !important;
  font-weight: 700;
  text-decoration: none;
}
.ac-apikey__dashboard::after { content: " →"; }
@media (max-width: 575.98px) {
  .ac-apikey { padding: 18px; }
  .ac-apikey__value { font-size: 16px; }
  .ac-apikey__copy { width: 100%; }
}
