/* Standard DIVIA consent panel. */
#diviaGDPR{position:fixed;left:70px;bottom:70px;width:395px;max-width:calc(100% - 28px);max-height:calc(100dvh - 100px);overflow-y:auto;padding:25px 15px 15px;border-radius:10px;background:#fff;color:#000;box-shadow:0 6px 6px rgba(0,0,0,.25);font-family:inherit;z-index:90;box-sizing:border-box}
#diviaGDPR[hidden],#cookieTypes[hidden]{display:none!important}
#diviaGDPR p{font-size:14px;line-height:1.7;margin:0 0 10px}
#cookieSettings{display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px;margin-bottom:20px}
#cookieSettings a,#cookieCustomize{font:inherit;font-size:14px;color:#000;background:none;border:0;padding:0;text-decoration:underline;cursor:pointer}
#cookieTypes h2{font-size:12px;text-transform:uppercase;line-height:1.5;margin:0 0 10px}
#cookieTypes ul{display:grid;grid-template-columns:1fr 1fr;gap:8px;list-style:none;margin:0 0 18px;padding:0}
#cookieTypes label{display:flex;align-items:center;gap:8px;font-size:13px;cursor:pointer}
#cookieTypes input{width:14px;height:14px;margin:0;accent-color:#000}
#diviaGDPR .btn-wrap{display:flex;gap:10px}
#diviaGDPR .btn-wrap button{flex:1;min-width:0;border:1px solid #000;border-radius:20px;font:inherit;font-size:16px;line-height:36px;padding:0 7px;cursor:pointer}
#cookieReject{background:#fff;color:#000}
#cookieAccept{background:#000;color:#fff}
#diviaGDPR button:focus-visible,#diviaGDPR a:focus-visible,#diviaGDPR input:focus-visible,.cookie-preferences:focus-visible,#divia-gdpr:focus-visible{outline:2px solid #151515;outline-offset:3px}
#divia-gdpr{position:fixed;bottom:20px;left:20px;width:55px;height:55px;padding:0;border:0;border-radius:50%;background:#000;opacity:.5;box-shadow:0 6px 5px #595959;cursor:pointer;z-index:89;display:flex;align-items:center;justify-content:center}
#divia-gdpr img{width:43px;height:43px;object-fit:contain}
#divia-gdpr:hover,#divia-gdpr:focus-visible{opacity:1}
@media(max-width:1080px){#diviaGDPR{left:14px;bottom:141px;width:315px;max-height:calc(100dvh - 161px);padding:18px 15px 15px}#divia-gdpr{bottom:80px}}
@media(max-width:360px){#cookieSettings{gap:8px 12px}#cookieSettings a,#cookieCustomize{font-size:13px}}

/* Align the standard DIVIA controls with the Cadesul theme. */
#diviaGDPR{font-family:var(--cv-font);z-index:1032}
#diviaGDPR p,#diviaGDPR h2{color:#000}
#divia-gdpr{z-index:1031}
body.modal-open #diviaGDPR,body.modal-open #divia-gdpr{display:none}
.cv-footer .divia-footer-legal{border-top:1px solid var(--cv-line);display:flex;align-items:center;justify-content:space-between;gap:24px 32px;padding:24px 0}
.cv-footer .divia-footer-legal p{margin:0;color:var(--cv-ink);font-size:16px;font-weight:400;line-height:1.5}
.divia-footer-signature{display:flex;align-items:center;flex-shrink:0;margin-left:auto}
.divia-footer-signature img{display:block;width:120px;height:40px;object-fit:contain}
.cv-footer .cookie-preferences{border:0;background:none;color:var(--cv-muted);font:inherit;font-size:13px;line-height:1.8;text-align:left;padding:0;cursor:pointer}
.cv-footer .cookie-preferences:hover{color:var(--cv-accent)}
.cv-footer .cv-payments{padding:0 0 24px}
.cv-site .whatsapp-desktop[hidden]{display:none}
@media(max-width:600px){.cv-footer .divia-footer-legal{flex-wrap:wrap}.cv-footer .divia-footer-legal p{flex-basis:100%;font-size:14px}}

/* The footer preference link remains available when the floating control yields to the legal line. */
body.cv-footer-in-view #divia-gdpr{visibility:hidden}

/* Keep the production CAPTCHA badge clear of contact controls and the legal line. */
@media(min-width:576px){body:not(.cv-footer-in-view) .grecaptcha-badge{bottom:138px!important}}
@media(max-width:575px){.grecaptcha-badge{bottom:65px!important}body.cv-footer-in-view .grecaptcha-badge{bottom:220px!important}}
