/* Een gewone WhatsApp-link: er wordt pas na aanklikken contact met WhatsApp gemaakt. */
body { --ocw-mobile-contact-bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px)); }

.ocw-whatsapp-icon {
    display: block;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    fill: currentColor;
}

body a.ocw-whatsapp-float {
    position: fixed;
    left: max(18px, env(safe-area-inset-left));
    right: auto;
    bottom: var(--ocw-mobile-contact-bottom);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 56px;
    height: 56px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: linear-gradient(135deg, #146c43, #105b38) !important;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 9px 24px rgba(15, 79, 47, .25), inset 0 1px 0 rgba(255, 255, 255, .16);
    -webkit-tap-highlight-color: transparent;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.ocw-whatsapp-float .ocw-whatsapp-label { display: none; }

body a.ocw-whatsapp-float:hover {
    background: linear-gradient(135deg, #17794b, #11663e) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 79, 47, .3);
}

body a.ocw-whatsapp-float:focus-visible {
    outline: 3px solid #f3a523;
    outline-offset: 4px;
}

body a.ocw-whatsapp-float:active { transform: translateY(0); }

/* De kleinere cookieknop staat gecentreerd boven WhatsApp. */
body #ocwCookie .ocw-cookie__reopen {
    left: calc(max(18px, env(safe-area-inset-left)) + 6px);
    bottom: calc(var(--ocw-mobile-contact-bottom) + 66px);
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
}

body #ocwCookie .ocw-cookie__reopen span { display: none; }

/* Gesprekken mogen niet over de cookiekeuze, menu's of invoervelden heen staan. */
body:has(#ocwCookie.is-visible) .ocw-whatsapp-float,
body:has(#ocwCookie.settings-open) .ocw-whatsapp-float,
html.orion-menu-open .ocw-whatsapp-float,
body:has(input:focus, textarea:focus, select:focus) .ocw-whatsapp-float {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ocw-footer address a.ocw-whatsapp-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ocw-whatsapp-footer-link .ocw-whatsapp-icon { width: 18px; height: 18px; }

@media (prefers-reduced-motion: reduce) {
    body a.ocw-whatsapp-float { transition: none; }
}

#orionWhatsAppNotice {
    box-sizing: border-box; width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
    overflow: auto; padding: 30px; border: 1px solid #dce8e1; border-radius: 24px;
    background: linear-gradient(145deg, #fff, #f5faf7); color: #224;
    font-family: Arial, Helvetica, sans-serif; box-shadow: 0 28px 90px rgba(17, 36, 30, .28);
}
#orionWhatsAppNotice[open] { animation: ocwWhatsAppNoticeIn .18s ease-out; }
#orionWhatsAppNotice::backdrop { background: rgba(18, 25, 38, .5); backdrop-filter: blur(5px); }
#orionWhatsAppNotice .ocw-whatsapp-dialog-close { position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; padding: 0; border: 1px solid #dce8e1; border-radius: 50%; background: #fff; color: #33443a; font-size: 26px; cursor: pointer; }
#orionWhatsAppNotice .ocw-whatsapp-dialog-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 16px; background: #e1f2e7; color: #146c43; }
#orionWhatsAppNotice .ocw-whatsapp-eyebrow { margin: 0 0 8px; color: #146c43; font-size: 11px; line-height: 1.4; font-weight: 700; text-transform: uppercase; letter-spacing: 1.1px; }
#orionWhatsAppNotice h2 { margin: 0 24px 14px 0; background: none; color: #224; font-size: 26px; line-height: 1.17; font-weight: 700; }
#orionWhatsAppNoticeDescription { margin: 0; color: #56625d; font-size: 15px; line-height: 1.65; }
#orionWhatsAppNotice .ocw-whatsapp-hours { margin-top: 18px; padding: 13px 15px; border: 1px solid #dce8e1; border-radius: 13px; background: #fff; }
#orionWhatsAppNotice summary { color: #344d40; font-size: 13px; font-weight: 700; cursor: pointer; }
#orionWhatsAppNotice dl { display: grid; gap: 8px; margin: 16px 0 12px; font-size: 13px; line-height: 1.4; }
#orionWhatsAppNotice dl > div { display: flex; justify-content: space-between; gap: 14px; }
#orionWhatsAppNotice dt, #orionWhatsAppNotice dd { margin: 0; }
#orionWhatsAppNotice dd { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
#orionWhatsAppNotice small { color: #69776f; font-size: 11px; }
#orionWhatsAppNotice .ocw-whatsapp-dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 22px; }
#orionWhatsAppNotice .ocw-whatsapp-dialog-actions > * { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; margin: 0; padding: 11px 15px; border: 1px solid #dce8e1; border-radius: 999px; background: #fff; color: #344d40; font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; }
#orionWhatsAppNotice .ocw-whatsapp-dialog-actions > a { border-color: #146c43; background: #146c43; color: #fff; }
#orionWhatsAppNotice .ocw-whatsapp-dialog-actions > a:hover { background: #105b38; }
#orionWhatsAppNotice button:focus-visible, #orionWhatsAppNotice a:focus-visible, #orionWhatsAppNotice summary:focus-visible { outline: 3px solid #f3a523; outline-offset: 3px; }
@keyframes ocwWhatsAppNoticeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) { #orionWhatsAppNotice { padding: 26px 22px; } #orionWhatsAppNotice h2 { font-size: 24px; } #orionWhatsAppNotice .ocw-whatsapp-dialog-actions { flex-direction: column-reverse; } #orionWhatsAppNotice .ocw-whatsapp-dialog-actions > * { width: 100%; } }
@media (prefers-reduced-motion: reduce) { #orionWhatsAppNotice[open] { animation: none; } }

