/* Shared site additions: media sizing, video facades, product facts/FAQ blocks and the consent banner.
   Uses the theme's existing colours (#42a5f5 primary, #f6f6f6 body, #525f7f text) and panel/button classes. */

/* Images now carry width/height attributes (for layout stability); keep their natural aspect ratio. */
img[width][height] { height: auto; }
picture { display: contents; }
.cover.overlay.cover-image-full > picture > img { width: 100%; }

/* Home "Featured Products" slider: centre the cards without flexbox. The theme's `.slick-list { display: flex }`
   squeezed the slider track on phones, so the cards slid out of view. A centred block track works at every width. */
.slick-basic .slick-list { display: block; }
.slick-basic .slick-track { margin-left: auto; margin-right: auto; }
.slick-basic .panel_magic-body > .media { display: flex; flex-direction: column; align-items: center; text-align: center; }
.slick-basic .media_magic-left { display: block; float: none; padding: 0; margin: 0 0 12px; }
.slick-basic .media_magic-left .cover { width: 90px !important; margin: 0 auto; }
.slick-basic .media_magic-body { display: block; width: auto; }

/* Demo GIFs converted to looping videos */
.media-video { display: block; width: 100%; height: auto; background: #f6f6f6; }

/* Click-to-load YouTube facade */
.video-demo { padding-block: 3rem; background-color: #f9f9fc; }
.video-demo .container_magic { max-width: 1000px; }
.video-demo h2 { margin-block: 0 12px; text-align: center; }
.video-demo .video-summary { max-width: 760px; margin: 0 auto 24px; text-align: center; font-size: 17.6px; line-height: 1.7; color: #525f7f; }
.yt-facade { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 0 auto; overflow: hidden; border-radius: 12px; background: #000; box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
.yt-facade-btn { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.yt-facade-btn img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yt-facade-btn:focus-visible { outline: 3px solid #42a5f5; outline-offset: -3px; }
.yt-facade-play { position: absolute; top: 50%; left: 50%; width: 72px; height: 50px; margin: -25px 0 0 -36px; border-radius: 14px; background: rgba(33, 33, 33, .85); transition: background-color .2s ease; }
.yt-facade-play::after { content: ""; position: absolute; top: 50%; left: 50%; margin: -10px 0 0 -7px; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff; }
.yt-facade-btn:hover .yt-facade-play, .yt-facade-btn:focus-visible .yt-facade-play { background: #e53935; }
.yt-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-demo .video-links { margin-top: 14px; text-align: center; }

/* Product facts table and FAQ */
.product-facts, .product-faq { padding-block: 3rem; }
.product-facts .container_magic, .product-faq .container_magic { max-width: 1000px; }
.product-facts h2, .product-faq h2 { margin-block: 0 20px; text-align: center; }
.product-facts table { width: 100%; margin: 0; border-collapse: collapse; font-size: 16px; line-height: 1.6; }
.product-facts th, .product-facts td { padding: 12px 16px; border-bottom: 1px solid #e2e9e6; vertical-align: top; text-align: start; }
.product-facts th { width: 32%; font-weight: 600; color: #333; }
.product-facts td { color: #525f7f; }
.product-facts tr:last-child th, .product-facts tr:last-child td { border-bottom: 0; }
.product-facts ul { margin: 0; padding-inline-start: 18px; }
.product-faq .faq-item { margin-bottom: 16px; }
.product-faq .faq-item h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; line-height: 1.4; }
.product-faq .faq-item p { margin: 0; color: #525f7f; font-size: 16px; line-height: 1.7; }
@media (max-width: 767px) {
  .product-facts th, .product-facts td { display: block; width: 100%; padding: 8px 12px; }
  .product-facts th { border-bottom: 0; padding-bottom: 0; }
}

/* Blog article typography (used by /blogs/*) */
.article-body { font-size: 17px; line-height: 1.75; color: #3d4451; }
.article-body h2 { margin: 2rem 0 .75rem; font-size: 26px; line-height: 1.3; }
.article-body h3 { margin: 1.5rem 0 .5rem; font-size: 20px; line-height: 1.35; }
.article-body figure { margin: 1.5rem 0; }
.article-body figure img { display: block; max-width: 100%; height: auto; border: 1px solid rgba(0, 0, 0, .12); border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.article-body figcaption { margin-top: .5rem; font-size: 14px; color: #6e7882; }
.article-body table { width: 100%; margin: 1rem 0 1.5rem; border-collapse: collapse; font-size: 15px; }
.article-body th, .article-body td { padding: 10px 12px; border: 1px solid #e2e9e6; vertical-align: top; text-align: start; }
.article-body th { background: #f6f6f6; font-weight: 600; }
.article-body .table-wrap { overflow-x: auto; }
.article-body .note { padding: 12px 16px; border-inline-start: 4px solid #42a5f5; background: #f4f9fe; }
.article-body .key-takeaways { padding: 16px 20px; border-radius: 6px; background: #f9f9fc; border: 1px solid #e2e9e6; }
.article-meta { color: #6e7882; font-size: 14px; }
.related-posts ul { padding-inline-start: 18px; }

/* Cookie consent banner */
.cookie-consent { display: none; }
.consent-pending .cookie-consent { display: block; }
.cookie-consent { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 10000; max-width: 560px; margin-inline-start: auto; padding: 18px 20px; border-radius: 6px; background: #fff; color: #333; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); font-size: 15px; line-height: 1.6; }
.cookie-consent p { margin: 0 0 12px; }
.cookie-consent a { text-decoration: underline; }
.cookie-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-consent-actions .btn_magic { min-width: 110px; margin: 0; }
.cookie-consent-actions .btn_magic:focus-visible { outline: 3px solid #1e88e5; outline-offset: 2px; }
@media (max-width: 480px) {
  .cookie-consent { inset-inline: 8px; bottom: 8px; }
  .cookie-consent-actions .btn_magic { flex: 1 1 auto; }
}
