/* Former inline styles: merged into css/style.css (theme). Add overrides here only if you need edits without touching the main bundle. */

/* Author box: layout tuning across breakpoints (320–1440) */
.author-box {
  box-sizing: border-box;
  width: 100%;
  max-width: 560px;
}

@media (max-width: 479px) {
  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 16px;
    gap: 16px;
    margin-left: auto;
    margin-right: auto;
  }

  .author-photo img {
    margin-top: 0;
  }

  .author-content {
    align-items: center;
  }

  .author-dates {
    align-items: center;
  }

  .author-socials {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .author-box {
    padding: 16px 18px;
    gap: 20px;
  }
}

@media (min-width: 768px) {
  .author-box {
    padding: 18px 22px;
  }
}

@media (min-width: 1024px) {
  .author-box {
    margin-top: 28px;
    margin-bottom: 28px;
  }
}

@media (min-width: 1280px) {
  .author-box {
    max-width: 560px;
  }
}

@media (min-width: 1440px) {
  .author-box {
    max-width: 560px;
  }
}

/* Plain tables in article body (replaces .bt-table / .bt-table-scroll classes on elements) */
.entry-content-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 1.5em 0;
}

.entry-content-table-scroll table {
  width: max-content;
  min-width: 100%;
  margin: 0;
  font-size: inherit;
  table-layout: auto;
  border-collapse: collapse;
}

.entry-content .entry-content-table-scroll table {
  font-size: inherit;
}

.entry-content-table-scroll table td,
.entry-content-table-scroll table th {
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.entry-content-table-scroll thead {
  font-size: inherit;
}

.entry-content-table-scroll table th {
  text-align: left;
}

.entry-content-table-scroll thead th {
  color: #fff !important;
  background-color: #f1c137 !important;
}

.entry-content-table-scroll tbody tr:nth-child(2n) {
  color: #fff !important;
  background-color: #131313 !important;
}

.entry-content-table-scroll tbody tr:nth-child(odd) {
  color: #fff !important;
  background-color: #000 !important;
}

.entry-content-table-scroll tbody tr:hover {
  color: #fff !important;
  background-color: #474c51 !important;
}

/* H1 without .entry-title */
.article-post h1[itemprop="headline"] {
  margin-top: 0.8em;
}

/* FAQ: semantic h2 + h3; arrow from theme CSS stays on .expert-review-faq-item */
.faq-container > h2 {
  padding: 1em 0;
  font-weight: 700;
  font-size: 1.1em;
  margin: 0;
}

@media (min-width: 768px) {
  .faq-container > h2 {
    font-size: 1.3em;
  }
}

@media (min-width: 992px) {
  .faq-container > h2 {
    font-size: 1.4em;
  }
}

.faq-container .faq-arrow {
  display: none;
}

.faq-container .faq-question h3 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.faq-container .faq-answer p {
  margin: 0;
}

/* Full-area links for promo images and logo CTA */
.external-offer-link {
  display: block;
}

/* ============================================================
   Welcome bonus banner (tune colors via :root below)
   ============================================================ */
:root {
  --wb-bg: #080c15;
  --wb-bg-gradient: linear-gradient(135deg, #080c15 0%, #121a28 55%, #1a2233 100%);
  --wb-accent: #fc634f;
  --wb-label-color: #ef8c26;
  --wb-title-color: #ffffff;
  --wb-subtitle-color: #abb8c3;
  --wb-cta-bg: #fc634f;
  --wb-cta-bg-hover: #ef8c26;
  --wb-cta-color: #ffffff;
  --wb-close-color: #ffffff;
  --wb-close-hover: #ef8c26;
  --wb-shadow: 0 -4px 40px rgba(252, 99, 79, 0.22);
  --wb-anim-speed: 0.5s;
}

.wb-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  box-sizing: border-box;
  background: var(--wb-bg-gradient);
  box-shadow: var(--wb-shadow);
  border-top: 2px solid var(--wb-accent);
  padding: 12px 16px;
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--wb-anim-speed) cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity var(--wb-anim-speed) ease;
}

.wb-banner.wb-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.wb-banner.wb-hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

.wb-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  padding-right: 44px;
}

.wb-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(252, 99, 79, 0.45));
  animation: wb-pulse 2s ease-in-out infinite;
}

@keyframes wb-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

.wb-text-col {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.wb-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.wb-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wb-label-color);
}

.wb-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--wb-title-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wb-subtitle {
  font-size: 0.78rem;
  color: var(--wb-subtitle-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wb-bottom-row {
  display: contents;
}

.wb-cta {
  display: inline-block;
  flex-shrink: 0;
  padding: 10px 22px;
  border-radius: 6px;
  background: var(--wb-cta-bg);
  color: var(--wb-cta-color);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(252, 99, 79, 0.35);
}

.wb-cta:hover {
  background: var(--wb-cta-bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(252, 99, 79, 0.5);
}

.wb-cta:active {
  transform: translateY(0);
}

.wb-cta:focus {
  outline: none;
}

.wb-cta:focus-visible {
  outline: 2px solid var(--wb-cta-bg-hover);
  outline-offset: 3px;
}

.wb-close {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--wb-close-color);
  font-size: 1rem;
  line-height: 1;
  padding: 8px;
  z-index: 2;
  transition: color 0.15s, transform 0.15s;
}

.wb-close:hover {
  color: var(--wb-close-hover);
  transform: translateY(-50%) rotate(90deg);
}

.wb-close:focus {
  outline: none;
}

.wb-close:focus-visible {
  outline: 2px solid var(--wb-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wb-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  gap: 2px;
}

.wb-countdown-ring {
  position: relative;
  width: 42px;
  height: 42px;
}

.wb-countdown-ring svg {
  transform: rotate(-90deg);
}

.wb-countdown-ring circle.track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 3;
}

.wb-countdown-ring circle.progress {
  fill: none;
  stroke: var(--wb-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 113;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.wb-countdown-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.wb-countdown-label {
  font-size: 0.58rem;
  color: var(--wb-subtitle-color);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Scroll-to-top: lift above banner when visible (theme .scrolltop uses bottom: 40px) */
body.wb-banner-is-visible .scrolltop.js-scrolltop {
  bottom: calc(40px + 118px);
}

@media (max-width: 549px) {
  body.wb-banner-is-visible .scrolltop.js-scrolltop {
    bottom: calc(40px + 150px);
  }
}

@media (max-width: 360px) {
  body.wb-banner-is-visible .scrolltop.js-scrolltop {
    bottom: calc(40px + 108px);
  }
}

/* --- 361px–549px: icon + text + ring; next row CTA ~95% + close ~5% --- */
@media (max-width: 549px) and (min-width: 361px) {
  .wb-banner {
    padding: 10px 12px 12px;
  }

  .wb-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 8px 10px;
    align-items: start;
    padding-right: 0;
  }

  .wb-icon {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }

  .wb-text-col {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    align-items: flex-start;
    padding-right: 46px;
    min-height: 3.4rem;
  }

  .wb-text {
    padding-right: 0;
  }

  .wb-title {
    font-size: 0.92rem;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .wb-subtitle {
    font-size: 0.72rem;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .wb-countdown {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
  }

  .wb-bottom-row {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }

  .wb-cta {
    flex: 1 1 95%;
    max-width: 95%;
    text-align: center;
    padding: 10px 12px;
    white-space: normal;
  }

  .wb-close {
    position: static;
    flex: 0 0 auto;
    width: 5%;
    min-width: 40px;
    transform: none;
    align-self: center;
  }

  .wb-close:hover {
    transform: rotate(90deg);
  }
}

/* --- ≤550px: CTA uses full row width (paired with close per layout above) --- */
@media (max-width: 550px) {
  .wb-cta {
    box-sizing: border-box;
  }
}

/* --- ≤360px: hide ring; two-row compact grid; close top-right --- */
@media (max-width: 360px) {
  .wb-countdown {
    display: none !important;
  }

  .wb-banner {
    padding: 10px 10px 10px;
  }

  .wb-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 6px 8px;
    align-items: start;
    padding-right: 42px;
  }

  .wb-icon {
    grid-column: 1;
    grid-row: 1;
    font-size: 1.65rem;
  }

  .wb-text-col {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    padding-right: 0;
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .wb-title {
    font-size: 0.86rem;
    -webkit-line-clamp: 2;
  }

  .wb-subtitle {
    font-size: 0.66rem;
    line-height: 1.2;
    -webkit-line-clamp: 2;
  }

  .wb-bottom-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 6px;
    width: 100%;
    position: relative;
    padding-right: 0;
  }

  .wb-cta {
    width: 100%;
    max-width: none;
    flex: none;
    text-align: center;
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .wb-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: auto;
    min-width: 44px;
    transform: none;
    z-index: 3;
  }

  .wb-close:hover {
    transform: rotate(90deg);
  }
}
