:root {
    --ewom-header-bg: #052b4b;
    --ewom-accent: #00d084;
    --ewom-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --ewom-admin-offset: 0px;
}

body.admin-bar {
    --ewom-admin-offset: 32px;
}

body.ewom-central-layout-active {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 138px !important;
}

body.ewom-central-layout-active > main,
body.ewom-central-layout-active > #page,
body.ewom-central-layout-active > #content,
body.ewom-central-layout-active > .site-content {
    flex: 1 0 auto;
}

body.ewom-central-layout-active > #site-header,
body.ewom-central-layout-active > .site-header,
body.ewom-central-layout-active #masthead,
body.ewom-central-layout-active .elementor-location-header,
body.ewom-central-layout-active > #site-footer,
body.ewom-central-layout-active > .site-footer,
body.ewom-central-layout-active #colophon,
body.ewom-central-layout-active .elementor-location-footer {
    display: none !important;
}

/* Verberg een achtergebleven oude EWOM-uitvoer zodra de centrale variant actief is. */
body.ewom-central-layout-active #ewom-test-header:not(.ewom-central-header),
body.ewom-central-layout-active #ewom-mobile-menu:not(.ewom-central-mobile-menu),
body.ewom-central-layout-active #ewom-footer:not(.ewom-central-footer) {
    display: none !important;
}

#ewom-test-header,
#ewom-test-header *,
#ewom-mobile-menu,
#ewom-mobile-menu *,
#ewom-footer,
#ewom-footer *,
#ewom-nl-popup-overlay,
#ewom-nl-popup-overlay * {
    box-sizing: border-box;
}

#ewom-test-header {
    position: fixed;
    top: var(--ewom-admin-offset);
    right: 0;
    left: 0;
    z-index: 99999;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 24px 48px;
    background: var(--ewom-header-bg);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-family: var(--ewom-font);
    font-size: 16px;
    line-height: 1.5;
    transition: padding .35s ease;
}

#ewom-test-header.ewom-hide-logo {
    padding: 6px 12px;
}

#ewom-test-header.ewom-hide-logo .ewom-logo,
#ewom-test-header.ewom-hide-logo .ewom-header-cta {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    pointer-events: none;
}

#ewom-test-header .ewom-logo {
    display: flex;
    align-items: center;
    transition: opacity .35s ease, transform .35s ease;
}

#ewom-test-header .ewom-logo a {
    display: block;
}

#ewom-test-header .ewom-logo img {
    display: block;
    width: 160px;
    height: auto;
    max-width: 100%;
}

#ewom-test-header nav {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
}

#ewom-test-header nav ul,
#ewom-test-header nav li,
#ewom-mobile-menu ul,
#ewom-mobile-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

#ewom-test-header nav li::before,
#ewom-mobile-menu li::before {
    content: none !important;
}

#ewom-test-header nav > ul {
    display: flex;
    justify-content: center;
    gap: 36px;
}

#ewom-test-header nav li {
    position: relative;
}

#ewom-test-header nav li > a {
    position: relative;
    color: #fff !important;
    font-family: var(--ewom-font);
    font-size: 16px;
    font-weight: 400;
    text-decoration: none !important;
    transition: color .18s ease;
}

#ewom-test-header nav > ul > li > a:hover,
#ewom-test-header nav > ul > li > a:focus {
    color: var(--ewom-accent) !important;
}

#ewom-test-header nav li.menu-item-has-children > a {
    padding-left: 18px;
}

@keyframes ewom-pulse-dot {
    0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
    50% { opacity: .25; transform: translateY(-50%) scale(1.7); }
}

#ewom-test-header nav li.menu-item-has-children > a.ewom-pulse-dot::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ewom-accent);
    animation: ewom-pulse-dot 1.6s ease infinite;
    animation-delay: var(--ewom-pulse-delay, 0s);
    transform: translateY(-50%);
}

#ewom-test-header nav li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;
    min-width: 260px;
    padding: 14px 0 18px;
    border-radius: 12px;
    background: var(--ewom-header-bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .24s ease, visibility .24s ease, transform .24s ease;
}

#ewom-test-header nav li:hover > ul.sub-menu,
#ewom-test-header nav li:focus-within > ul.sub-menu,
#ewom-test-header nav li.ewom-submenu-open > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#ewom-test-header nav li ul.sub-menu a {
    display: block;
    padding: 10px 26px;
    color: #fff !important;
    white-space: nowrap;
    transition: background .18s ease, padding-left .18s ease;
}

#ewom-test-header nav li ul.sub-menu a:hover,
#ewom-test-header nav li ul.sub-menu a:focus {
    padding-left: 30px;
    background: #003553;
}

#ewom-header-right {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 14px;
}

#ewom-test-header .ewom-header-cta {
    position: relative;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    min-height: 70px;
    padding: 10px 16px 12px;
    border: 2px solid #fff;
    border-radius: 14px;
    background: var(--ewom-header-bg);
    cursor: pointer;
    text-align: center;
    transition: opacity .35s ease, transform .35s ease;
}

#ewom-test-header .ewom-header-cta::after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 50%;
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #fff transparent transparent;
    transform: translateX(-50%);
}

#ewom-test-header .ewom-header-clock {
    display: block;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

#ewom-test-header .ewom-contact-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 5px;
    z-index: 9999;
    display: none;
    flex-direction: column;
    min-width: 320px;
    padding: 6px 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 10px;
    background: var(--ewom-header-bg);
    box-shadow: 0 18px 34px rgba(0, 0, 0, .22);
    text-align: left;
}

#ewom-test-header .ewom-header-cta.open .ewom-contact-dropdown,
#ewom-test-header .ewom-header-cta:hover .ewom-contact-dropdown,
#ewom-test-header .ewom-header-cta:focus-within .ewom-contact-dropdown {
    display: flex;
}

#ewom-test-header .ewom-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #fff !important;
    font-size: 15px;
    text-decoration: none !important;
}

#ewom-test-header .ewom-contact-item:hover,
#ewom-test-header .ewom-contact-item:focus {
    background: rgba(255, 255, 255, .08);
}

#ewom-test-header .ewom-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex: 0 0 18px;
}

#ewom-test-header .ewom-open-timer,
#ewom-test-header .ewom-holiday-list {
    padding: 8px 14px;
    border-top: 1px solid rgba(255, 255, 255, .25);
    color: #fff !important;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
}

#ewom-test-header .ewom-open-timer {
    white-space: nowrap;
}

#ewom-test-header .ewom-holiday-list {
    display: none;
}

#ewom-test-header .ewom-holiday-list-title {
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 700;
}

#ewom-test-header .ewom-holiday-list div {
    padding: 4px 0;
}

#ewom-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

#ewom-burger span {
    width: 26px;
    height: 3px;
    border-radius: 999px;
    background: #fff;
}

#ewom-mobile-menu {
    position: fixed;
    top: calc(138px + var(--ewom-admin-offset));
    right: 0;
    left: 0;
    z-index: 99998;
    display: none;
    flex-direction: column;
    padding: 20px 24px;
    background: var(--ewom-header-bg);
    font-family: var(--ewom-font);
}

#ewom-mobile-menu ul {
    text-align: center;
}

#ewom-mobile-menu li > a {
    display: block;
    padding: 8px 0;
    color: #fff !important;
    font-size: 18px;
    text-decoration: none !important;
}

#ewom-mobile-menu ul.sub-menu {
    display: none;
}

#ewom-mobile-menu li.ewom-mobile-sub-open > ul.sub-menu {
    display: block;
}

#ewom-mobile-menu ul.sub-menu li > a {
    width: 100%;
    font-size: 16px;
}

#ewom-footer {
    width: 100%;
    margin-top: auto;
    padding: 60px 0 50px;
    background: #052b4b;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

#ewom-footer * {
    color: #fff !important;
}

#ewom-footer a {
    text-decoration: none !important;
    transition: color .2s ease, text-shadow .2s ease;
}

#ewom-footer a:hover,
#ewom-footer a:focus {
    color: #fff !important;
    text-shadow: 0 0 8px rgba(5, 43, 75, .9);
}

#ewom-footer .ewom-footer-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 1fr 1.1fr .9fr;
    width: 100%;
    padding: 0 40px;
    gap: 40px;
}

#ewom-footer .ewom-footer-title {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
    padding-bottom: 6px;
    font-size: 20px;
    font-weight: 700;
}

#ewom-footer .ewom-footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    border-radius: 99px;
    background: #fff;
    transition: width .25s ease;
}

#ewom-footer .ewom-footer-wrapper > div:hover .ewom-footer-title::after {
    width: 100%;
}

#ewom-footer .ewom-footer-col-logo {
    display: flex;
    align-items: flex-start;
    padding-top: 12px;
}

#ewom-footer .ewom-logo-wrapper {
    position: relative;
    display: inline-block;
}

@keyframes ewomRunwaySlow {
    0%, 100% { background-position: 100% 0; }
    25% { background-position: 100% 100%; }
    50% { background-position: 0 100%; }
    75% { background-position: 0 0; }
}

#ewom-footer .ewom-logo-halo {
    position: absolute;
    inset: -12px;
    z-index: 0;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.95) 50%, rgba(255,255,255,0) 100%) 0 0 / 300% 300%;
    box-shadow: 0 0 16px rgba(255,255,255,.75), 0 0 28px rgba(255,255,255,.55), 0 0 44px rgba(255,255,255,.35);
    animation: ewomRunwaySlow 12s linear infinite;
    pointer-events: none;
}

#ewom-footer .ewom-footer-logo {
    position: relative;
    z-index: 1;
    display: block;
    width: 240px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

#ewom-footer p {
    margin: 0 0 .9rem;
}

#ewom-footer .ewom-icon-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#ewom-footer .ewom-mini-ico {
    display: inline-block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

#ewom-footer .ewom-newsletter-inner form {
    margin: 0;
}

#ewom-footer .ewom-newsletter-inner input {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 6px;
    background: transparent;
    color: #fff !important;
    font: inherit;
    text-align: center;
}

#ewom-footer .ewom-newsletter-inner input::placeholder {
    color: rgba(255,255,255,.86);
}

#ewom-footer .ewom-newsletter-inner button {
    width: 100% !important;
    padding: 12px 20px !important;
    border: 1px solid #fff !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #052b4b !important;
    font: inherit;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
}

#ewom-footer .ewom-newsletter-inner button:hover,
#ewom-footer .ewom-newsletter-inner button:focus {
    border-color: #fff !important;
    background: #052b4b !important;
    box-shadow: 0 0 10px rgba(255,255,255,.6) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

#ewom-footer .ewom-newsletter-inner button:disabled {
    opacity: .65;
    cursor: wait !important;
    transform: none;
}

#ewom-footer .ewom-newsletter-hp {
    position: absolute;
    top: auto;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

#ewom-footer .ewom-footer-social {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

#ewom-footer .ewom-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    font-size: 20px;
    text-transform: lowercase;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

#ewom-footer .ewom-footer-social svg {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

#ewom-footer .ewom-footer-social a:hover,
#ewom-footer .ewom-footer-social a:focus {
    border-color: var(--ewom-accent);
    background: var(--ewom-accent);
    box-shadow: 0 0 12px rgba(0,208,132,.55);
    color: var(--ewom-header-bg) !important;
    text-shadow: none;
    transform: translateY(-2px);
}

#ewom-footer .ewom-footer-social a:hover svg,
#ewom-footer .ewom-footer-social a:focus svg {
    color: var(--ewom-header-bg) !important;
}

#ewom-footer .ewom-footer-bottom {
    margin-top: 40px;
    padding: 25px 40px 0;
    border-top: 1px solid rgba(255,255,255,.18);
    font-size: 16px;
    text-align: center;
    opacity: .8;
}

#ewom-nl-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0,0,0,.55);
    font-family: system-ui, sans-serif;
}

#ewom-nl-popup-overlay.is-visible {
    display: flex;
}

#ewom-nl-popup {
    position: relative;
    width: min(360px, 90%);
    padding: 38px 26px 24px;
    border: 2px solid #fff;
    border-radius: 14px;
    background: #052b4b;
    box-shadow: 0 14px 36px rgba(0,0,0,.5);
    color: #fff;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

#ewom-nl-popup .ewom-nl-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

#ewom-nl-popup .ewom-nl-popup-close:hover,
#ewom-nl-popup .ewom-nl-popup-close:focus {
    border-color: var(--ewom-accent);
    background: rgba(0,208,132,.12);
    color: var(--ewom-accent);
}

@media (max-width: 1150px) {
    #ewom-test-header { gap: 12px; padding-right: 12px; padding-left: 12px; }
    #ewom-test-header .ewom-logo img { width: 120px; }
    #ewom-test-header nav > ul { gap: 20px; }
    #ewom-footer .ewom-footer-wrapper { grid-template-columns: repeat(3, 1fr); row-gap: 55px; column-gap: 35px; text-align: center; }
    #ewom-footer .ewom-footer-col-logo, #ewom-footer .ewom-footer-social { justify-content: center; }
    #ewom-footer .ewom-footer-title::after { left: 50%; transform: translateX(-50%); }
}

@media (max-width: 900px) {
    body.ewom-central-layout-active { padding-top: 118px !important; }
    #ewom-test-header { grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); gap: 8px; padding: 14px 16px; }
    #ewom-test-header nav { display: none !important; }
    #ewom-test-header .ewom-logo { grid-column: 1; grid-row: 1; min-width: 0; }
    #ewom-test-header .ewom-logo img { width: 104px; }
    /* Eigen kolommen houden de menuknop vrij, ook op een scherm van 320px. */
    #ewom-header-right { display: contents; }
    #ewom-test-header .ewom-header-cta { grid-column: 3; grid-row: 1; justify-self: end; width: 100%; max-width: 160px; min-width: 0; padding-right: 6px; padding-left: 6px; }
    #ewom-burger { position: static !important; grid-column: 2; grid-row: 1; display: flex !important; align-items: center; justify-content: center; width: 44px; height: 44px; transform: none !important; }
    #ewom-mobile-menu { top: calc(118px + var(--ewom-admin-offset)); }
    #ewom-test-header .ewom-contact-dropdown { right: 0; width: min(320px, calc(100vw - 32px)); min-width: 0; }
    #ewom-test-header .ewom-open-timer { white-space: normal; }
	#ewom-test-header .ewom-header-cta:not(.open) .ewom-contact-dropdown { display: none !important; }
	body.ewom-mobile-menu-open { overflow: hidden !important; touch-action: none; }
	#ewom-mobile-menu { right: auto !important; left: calc(50% - 50vw) !important; width: 100vw !important; max-width: none !important; height: auto !important; max-height: calc(100dvh - 118px - var(--ewom-admin-offset)) !important; margin: 0 !important; padding: 18px 24px 20px !important; overflow-y: auto !important; overscroll-behavior: contain; background: var(--ewom-header-bg) !important; }
}

@media (max-width: 800px) {
    #ewom-footer { padding: 40px 0 35px; }
    #ewom-footer .ewom-footer-wrapper { grid-template-columns: 1fr; gap: 28px; padding: 0 24px; }
    #ewom-footer .ewom-footer-wrapper > div { text-align: center; }
    #ewom-footer .ewom-footer-col-logo { margin-bottom: 16px; }
    #ewom-footer .ewom-footer-logo { max-width: 230px; margin: 0 auto; }
    #ewom-footer .ewom-footer-bottom { padding-right: 24px; padding-left: 24px; }
}

@media screen and (max-width: 782px) {
    body.admin-bar { --ewom-admin-offset: 46px; }
}

@media (prefers-reduced-motion: reduce) {
    #ewom-test-header *, #ewom-footer * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
