/* Only the disabled legacy wrapper is hidden. WordPress footer hooks remain intact. */
body.epic-modern-footer-active .footer-wrapper.boxed-style {display:none !important;}
.epic-site-footer {background:#082c42;color:#d5e5ee;font:400 15px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;clear:both;width:100%;}
.epic-site-footer,.epic-site-footer * {box-sizing:border-box;}
.epic-site-footer .epic-footer-inner {max-width:1200px;margin:0 auto;padding:44px 28px 22px;}
.epic-site-footer h2 {color:#fff;font-size:17px;line-height:1.3;margin:0 0 14px;font-weight:700;}
.epic-site-footer p {color:#d5e5ee;margin:0 0 16px;font-size:15px;line-height:1.6;}
.epic-site-footer a {color:#d5e5ee;text-decoration:none;overflow-wrap:anywhere;}
.epic-site-footer a:hover {color:#ffc72c;}
.epic-site-footer a:focus-visible {outline:2px solid #ffc72c;outline-offset:4px;}
.epic-footer-cta {text-align:center;padding:0 0 34px;border-bottom:1px solid #345568;}
.epic-site-footer .epic-footer-cta h2 {font-size:clamp(26px,3.5vw,40px);color:#ffc72c;margin-bottom:10px;}
.epic-footer-buttons {display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:22px;}
.epic-site-footer .epic-footer-buttons a {display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 24px;border-radius:8px;background:#0879b8;color:#fff;font-weight:700;border:1px solid transparent;}
.epic-site-footer .epic-footer-buttons a:first-child:hover {background:#056296;}
.epic-site-footer .epic-footer-buttons a+a {background:transparent;border-color:#7197ac;}
.epic-site-footer .epic-footer-buttons a+a:hover {border-color:#ffc72c;color:#ffc72c;}
.epic-footer-grid {display:grid;grid-template-columns:1.25fr repeat(3,minmax(0,1fr));gap:32px;padding:34px 0;border-bottom:1px solid #345568;}
.epic-footer-grid > * {min-width:0;margin:0;padding:0;}
.epic-site-footer .epic-footer-logo {display:inline-block;color:white;font-weight:800;font-size:24px;margin:0 0 16px;}
.epic-footer-logo img {display:block;width:auto;max-width:190px;max-height:72px;height:auto;object-fit:contain;}
.epic-footer-social {display:flex;flex-wrap:wrap;gap:8px 14px;font-size:13px;}
.epic-site-footer .epic-footer-links ul {list-style:none;margin:0;padding:0;}
.epic-site-footer .epic-footer-links li {list-style:none;margin:0;padding:0;}
.epic-site-footer .epic-footer-links a {display:inline-block;padding:4px 0;}
.epic-footer-legal {display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;justify-content:space-between;padding-top:20px;font-size:13px;color:#bccfd9;}
@media(max-width:900px){.epic-footer-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:26px;}}
@media(max-width:480px){.epic-site-footer .epic-footer-inner {padding:34px 20px 20px;}.epic-footer-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px;}.epic-footer-brand {grid-column:1/-1;}.epic-footer-buttons a {flex:1 1 100%;}.epic-site-footer .epic-footer-links a {padding:8px 0;}.epic-footer-legal {justify-content:flex-start;}}
/* ui.css already reserves body padding for the fixed package action bar. */
@media(min-width:901px){.epic-footer-grid{grid-template-columns:1.25fr repeat(var(--epic-footer-columns,3),minmax(0,1fr));}.epic-footer-grid[style="--epic-footer-columns:0"]{grid-template-columns:1fr;}}

/* Keep the footer brand image visible independently of theme logo styling. */
.epic-site-footer .epic-footer-logo img{display:block!important;visibility:visible;opacity:1;width:190px;max-width:100%;height:auto;max-height:72px;object-fit:contain;object-position:left center;}
