/* VR Next 0.5.18 | canonical article layout – applies to native WP AND Elementor recovery.
   Existing 970x250 and 300x250 ad placements, logos, avatars and product grids
   are intentionally excluded. No JS is required for styling or share cleanup. */
body.vrfe-studio-active .vrfe-single {
  --vr18-ink:#182437;--vr18-navy:#101828;--vr18-blue:#2563EB;
  --vr18-muted:#53627A;--vr18-border:#DCE4EE;--vr18-soft:#F3F7FF;
}
body.vrfe-studio-active .vrfe-single .vrfe-single__content,
body.vrfe-studio-active .vrfe-single .vrfe-article-source {
  min-width:0;max-width:100%;color:var(--vr18-ink);
  overflow-wrap:anywhere;
}
body.vrfe-studio-active .vrfe-single .vrfe-single__content :is(h2,h3,h4),
body.vrfe-studio-active .vrfe-single .vrfe-article-source :is(h2,h3,h4),
body.vrfe-studio-active .vrfe-single .vrfe-single__content :is(.wp-block-heading) {
  color:#1B2A44!important;-webkit-text-fill-color:#1B2A44!important;
  line-height:1.35;text-align:left;overflow-wrap:anywhere;
}
body.vrfe-studio-active .vrfe-single .vrfe-single__content :is(.vr-deal-container,.vr-news-card,.vr-post) {
  width:100%;max-width:100%;min-width:0;overflow-wrap:anywhere;
}
body.vrfe-studio-active .vrfe-single .vrfe-single__content :is(.cta-button,.vr-offer-cta,.btn-orange,.vr-news-button,.wp-block-button__link) {
  color:#fff!important;-webkit-text-fill-color:#fff!important;
  background:#2563EB!important;border-color:#2563EB!important;
  border-radius:10px;min-height:40px;max-width:100%;text-decoration:none!important;
}
/* NEW WP articles use .vrfe-source-fallback, Elementor articles .vrfe-article-source.
   Price card must be readable even if it contains white inline legacy colors. */
body.vrfe-studio-active .vrfe-single .vrfe-single__content .price-calc-card,
body.vrfe-studio-active .vrfe-single .vrfe-single__content .wp-block-table {
  min-width:0!important;max-width:100%!important;box-sizing:border-box;
}
body.vrfe-studio-active .vrfe-single .vrfe-single__content .price-calc-card {
  background:var(--vr18-soft)!important;color:var(--vr18-ink)!important;
  border:1px solid var(--vr18-border)!important;border-radius:15px!important;
  padding:clamp(15px,2.3vw,23px)!important;
  overflow-wrap:anywhere;
}
body.vrfe-studio-active .vrfe-single .vrfe-single__content .price-calc-card > :is(h2,h3,h4) {
  color:#1B2A44!important;-webkit-text-fill-color:#1B2A44!important;
  background:#fff!important;border-radius:10px!important;
  margin:0 0 14px!important;padding:12px 14px!important;line-height:1.35;
}
body.vrfe-studio-active .vrfe-single .vrfe-single__content .price-calc-card :is(p,small,span,strong,th,td,td strong,table),
body.vrfe-studio-active .vrfe-single .vrfe-single__content .price-calc-card .price-table :is(td,td *,th,th *) {
  color:#182437!important;-webkit-text-fill-color:#182437!important;
}
body.vrfe-studio-active .vrfe-single .vrfe-single__content .price-calc-card .price-table {
  display:table!important;width:100%!important;max-width:100%!important;
  min-width:0!important;table-layout:fixed!important;border-collapse:collapse!important;
  margin:0 0 14px!important;border:0!important;background:transparent!important;
  font-size:clamp(12px,1.15vw,15px)!important;
}
body.vrfe-studio-active .vrfe-single .vrfe-single__content .price-calc-card .price-table :is(td,th) {
  padding:11px 9px!important;background:transparent!important;
  border-bottom:1px solid #DCE4EE!important;white-space:normal!important;
  vertical-align:top;overflow-wrap:anywhere;word-break:normal;
}
body.vrfe-studio-active .vrfe-single .vrfe-single__content .price-calc-card .price-table td:first-child {width:60%!important;}
body.vrfe-studio-active .vrfe-single .vrfe-single__content .price-calc-card .price-table td:last-child {width:40%!important;text-align:right;}
body.vrfe-studio-active .vrfe-single .vrfe-single__content .price-calc-card .effektiv-price {
  display:block;max-width:100%;box-sizing:border-box;
  color:#1D4ED8!important;-webkit-text-fill-color:#1D4ED8!important;
  background:#fff!important;border:1px solid var(--vr18-border)!important;
  border-radius:11px!important;padding:13px 14px!important;
  font-weight:800!important;overflow-wrap:anywhere;
}
body.vrfe-studio-active .vrfe-single .vrfe-single__content .wp-block-table {overflow-x:auto;}
body.vrfe-studio-active .vrfe-single .vrfe-single__content .wp-block-table table {
  max-width:100%;width:100%;border-collapse:collapse;
}
body.vrfe-studio-active .vrfe-single .vrfe-single__content .wp-block-table :is(td,th){
  color:#182437!important;background:#fff!important;border:1px solid var(--vr18-border)!important;
  padding:10px 12px;overflow-wrap:anywhere;
}
body.vrfe-studio-active .vrfe-single .vrfe-single__content .wp-block-table th{
  background:#EDF3FF!important;color:#1B2A44!important;
}
/* Native Gutenberg and recovered Elementor: primary editorial hero – max 500x500,
   always 1:1 at any viewport. For source 4:3 images use letterboxing, never stretch. */
body.vrfe-studio-active .vrfe-single .vrfe-single__content > .vrfe-native-featured,
body.vrfe-studio-active .vrfe-single .vrfe-single__content :is(.vr-deal-hero,.vr-news-hero,.wp-block-post-featured-image),
body.vrfe-studio-active .vrfe-single .vrfe-article-hero {
  display:block!important;aspect-ratio:1 / 1!important;
  width:min(100%,500px)!important;max-width:500px!important;
  height:auto!important;min-width:0!important;box-sizing:border-box;
  margin:0 auto 22px!important;padding:0!important;
  overflow:hidden!important;background:#F4F7FB!important;
  border:1px solid var(--vr18-border)!important;border-radius:13px!important;
}
body.vrfe-studio-active .vrfe-single .vrfe-single__content > .vrfe-native-featured img,
body.vrfe-studio-active .vrfe-single .vrfe-single__content :is(.vr-deal-hero,.vr-news-hero,.wp-block-post-featured-image) > img,
body.vrfe-studio-active .vrfe-single .vrfe-article-hero img {
  display:block!important;aspect-ratio:1 / 1!important;width:100%!important;
  height:100%!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center center!important;
  border-radius:0!important;
}
/* Standalone WP paragraph image blocks: only the specific featured image class
   gets square treatment. Regular 970x250/300x250 ad banners remain unchanged. */
body.vrfe-studio-active .vrfe-article-v17 .vrfe-article-head {
  grid-template-columns:minmax(0,1fr)!important;
}
/* Keep the compact square thumbnails in existing cards. */
body.vrfe-studio-active .vrx-main-column :is(.deal-card,.vrfe-card,.vrx-post-card) :is(.media-btn,.vrfe-card__media,.vrx-post-card__image){
  aspect-ratio:1/1!important;max-width:100%;overflow:hidden;
}
body.vrfe-studio-active .vrx-main-column :is(.deal-card,.vrfe-card,.vrx-post-card) :is(.media-btn,.vrfe-card__media,.vrx-post-card__image) img {
  display:block;aspect-ratio:1/1!important;object-fit:contain!important;
  width:100%;height:100%;max-width:100%;
}
/* Server-side share renderer is authoritative. Defensive CSS stops a cached old
   action-bar from displaying a second in-body toolbar if the HTML cache is stale. */
body.vrfe-studio-active .vrfe-single:has(.vrfe-unified-share) .vrfe-single__content .action-bar > .share-buttons,
body.vrfe-studio-active .vrfe-single:has(.vrfe-unified-share) .vrfe-single__content .action-bar > p:first-child:has(+ .share-buttons),
body.vrfe-studio-active .vrfe-single .vrfe-single__content .action-bar > .share-buttons {
  display:none!important;
}
body.vrfe-studio-active .vrfe-single .vrfe-single__content .action-bar > hr:first-child {
  display:none!important;
}
body.vrfe-studio-active .vrfe-single .vrfe-single__content .vrfe-unified-share {
  margin:18px 0 18px!important;clear:both;max-width:100%;box-sizing:border-box;
}
body.vrfe-studio-active .vrfe-single .vrfe-single__content .action-bar {
  border-top:0!important;margin-top:10px!important;padding-top:5px!important;
}
/* Responsive: true available center-column width, no horizontal page overflow. */
@media(max-width:768px){
 body.vrfe-studio-active .vrfe-single .vrfe-single__content > .vrfe-native-featured,
 body.vrfe-studio-active .vrfe-single .vrfe-single__content :is(.vr-deal-hero,.vr-news-hero),
 body.vrfe-studio-active .vrfe-single .vrfe-article-hero {width:min(100%,500px)!important;}
 body.vrfe-studio-active .vrfe-single .vrfe-single__content .price-calc-card .price-table {font-size:13px!important;}
}
