/* =========================================================
   DOCES DO CASAL - CHAT INTERATIVO
   ========================================================= */

.ddc-chat-widget{
    position:relative;
    z-index:116;
}

.ddc-chat-launcher{
    position:fixed;
    right:24px;
    bottom:24px;
    z-index:116;
    width:64px;
    height:64px;
    border:0;
    border-radius:50%;
    display:grid;
    place-items:center;
    cursor:pointer;
    background:var(--brown);
    color:#fff;
    box-shadow:0 14px 38px rgba(75,36,24,.30);
    transition:transform .22s ease,box-shadow .22s ease,background .22s ease;
    isolation:isolate;
}

.ddc-chat-launcher::before{
    content:"";
    position:absolute;
    inset:-7px;
    border:1px solid rgba(75,36,24,.18);
    border-radius:50%;
    z-index:-1;
    animation:ddcChatPulse 2.8s ease-out infinite;
}

.ddc-chat-launcher:hover{
    transform:translateY(-3px) scale(1.035);
    box-shadow:0 18px 44px rgba(75,36,24,.36);
}

.ddc-chat-launcher:focus-visible,
.ddc-chat-option:focus-visible,
.ddc-chat-close:focus-visible,
.ddc-chat-send:focus-visible,
.ddc-chat-teaser button:focus-visible{
    outline:3px solid rgba(201,143,130,.45);
    outline-offset:3px;
}

.ddc-chat-launcher-icon{
    width:30px;
    height:30px;
    display:grid;
    place-items:center;
    transition:transform .2s ease,opacity .2s ease;
}

.ddc-chat-launcher-icon svg{
    width:100%;
    height:100%;
    display:block;
}

.ddc-chat-icon-close{
    position:absolute;
    opacity:0;
    transform:rotate(-30deg) scale(.7);
}

.ddc-chat-launcher.active .ddc-chat-icon-chat{
    opacity:0;
    transform:rotate(30deg) scale(.7);
}

.ddc-chat-launcher.active .ddc-chat-icon-close{
    opacity:1;
    transform:rotate(0) scale(1);
}

.ddc-chat-unread{
    position:absolute;
    top:2px;
    right:3px;
    width:13px;
    height:13px;
    border-radius:50%;
    background:#d8959d;
    border:3px solid #fff8f0;
}

.ddc-chat-launcher.active .ddc-chat-unread{
    display:none;
}

.ddc-chat-teaser{
    position:fixed;
    right:100px;
    bottom:32px;
    z-index:115;
    width:min(330px,calc(100vw - 130px));
    opacity:0;
    visibility:hidden;
    transform:translateY(10px) scale(.98);
    transition:opacity .25s ease,transform .25s ease,visibility .25s ease;
}

.ddc-chat-teaser.show{
    opacity:1;
    visibility:visible;
    transform:translateY(0) scale(1);
}

.ddc-chat-teaser-content{
    width:100%;
    min-height:74px;
    border:1px solid var(--line);
    border-radius:18px;
    background:#fff;
    box-shadow:0 14px 38px rgba(75,36,24,.18);
    display:flex;
    align-items:center;
    gap:11px;
    padding:13px 42px 13px 13px;
    text-align:left;
    cursor:pointer;
    color:var(--ink);
}

.ddc-chat-teaser-content strong{
    display:block;
    color:var(--brown);
    font-size:14px;
    margin-bottom:2px;
}

.ddc-chat-teaser-content small{
    display:block;
    color:var(--muted);
    font-size:12px;
    line-height:1.35;
}

.ddc-chat-teaser-avatar,
.ddc-chat-avatar,
.ddc-message-avatar{
    flex:0 0 auto;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:var(--cream);
    color:var(--rose);
}

.ddc-chat-teaser-avatar{
    width:42px;
    height:42px;
}

.ddc-chat-teaser-avatar svg,
.ddc-chat-avatar svg,
.ddc-message-avatar svg{
    width:60%;
    height:60%;
}

.ddc-chat-teaser-close{
    position:absolute;
    right:8px;
    top:8px;
    z-index:2;
    width:28px;
    height:28px;
    border:0;
    border-radius:9px;
    background:transparent;
    color:var(--muted);
    font-size:19px;
    line-height:1;
    cursor:pointer;
}

.ddc-chat{
    position:fixed;
    right:22px;
    bottom:100px;
    z-index:116;
    width:min(390px,calc(100vw - 24px));
    max-height:min(650px,calc(100vh - 126px));
    background:#fff;
    border:1px solid var(--line);
    border-radius:24px;
    box-shadow:0 26px 70px rgba(50,23,15,.24);
    display:none;
    overflow:hidden;
    transform-origin:bottom right;
}

.ddc-chat.open{
    display:flex;
    flex-direction:column;
    animation:ddcChatOpen .2s ease-out both;
}

.ddc-chat-head{
    padding:15px 16px;
    background:var(--brown);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.ddc-chat-brand{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
}

.ddc-chat-avatar{
    width:42px;
    height:42px;
    background:#fff8f0;
}

.ddc-chat-head strong{
    display:block;
    font-size:15px;
}

.ddc-chat-head small{
    display:flex;
    align-items:center;
    gap:6px;
    opacity:.85;
    margin-top:2px;
    font-size:11px;
}

.ddc-chat-online-dot{
    width:7px;
    height:7px;
    border-radius:50%;
    background:#8ad09a;
    box-shadow:0 0 0 3px rgba(138,208,154,.14);
}

.ddc-chat-close{
    border:0;
    background:rgba(255,255,255,.12);
    color:#fff;
    cursor:pointer;
    width:38px;
    height:38px;
    border-radius:11px;
    display:grid;
    place-items:center;
}

.ddc-chat-close svg{
    width:20px;
    height:20px;
}

.ddc-chat-body{
    padding:16px;
    overflow:auto;
    min-height:285px;
    background:var(--bg);
    scroll-behavior:smooth;
}

.ddc-message-row{
    display:flex;
    align-items:flex-end;
    gap:7px;
    margin:0 0 10px;
}

.ddc-message-row.user{
    justify-content:flex-end;
}

.ddc-message-avatar{
    width:26px;
    height:26px;
    margin-bottom:2px;
    background:#fff;
    border:1px solid var(--line);
}

.ddc-message{
    width:fit-content;
    max-width:84%;
    padding:10px 12px;
    border-radius:15px;
    line-height:1.45;
    font-size:13px;
}

.ddc-message.bot{
    background:#fff;
    border:1px solid var(--line);
    border-bottom-left-radius:5px;
}

.ddc-message.user{
    background:var(--brown);
    color:#fff;
    border-bottom-right-radius:5px;
}

.ddc-chat-options{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin:4px 0 14px 33px;
}

.ddc-chat-option{
    min-height:46px;
    border:1px solid var(--line);
    background:#fff;
    color:var(--brown);
    padding:9px 10px;
    border-radius:13px;
    cursor:pointer;
    font-size:12px;
    font-weight:800;
    display:flex;
    align-items:center;
    gap:8px;
    text-align:left;
    transition:transform .16s ease,border-color .16s ease,background .16s ease;
}

.ddc-chat-option:hover{
    transform:translateY(-1px);
    background:var(--cream);
    border-color:rgba(75,36,24,.22);
}

.ddc-chat-option-icon{
    width:24px;
    height:24px;
    border-radius:8px;
    background:var(--cream);
    display:grid;
    place-items:center;
    flex:0 0 auto;
    font-size:13px;
}

.ddc-chat-typing{
    width:58px;
    height:34px;
    margin:0 0 10px 33px;
    border:1px solid var(--line);
    border-radius:14px 14px 14px 5px;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:4px;
}

.ddc-chat-typing span{
    width:5px;
    height:5px;
    border-radius:50%;
    background:var(--muted);
    animation:ddcTyping 1s infinite ease-in-out;
}

.ddc-chat-typing span:nth-child(2){animation-delay:.13s}
.ddc-chat-typing span:nth-child(3){animation-delay:.26s}

.ddc-chat-input{
    border-top:1px solid var(--line);
    background:#fff;
    padding:11px;
    display:grid;
    grid-template-columns:1fr 44px;
    gap:8px;
}

.ddc-chat-input input{
    width:100%;
    min-width:0;
    min-height:44px;
    border:1px solid var(--line);
    border-radius:13px;
    padding:11px 12px;
    outline:none;
    font-size:16px;
    color:var(--ink);
    background:#fff;
}

.ddc-chat-input input:focus{
    border-color:rgba(75,36,24,.38);
    box-shadow:0 0 0 3px rgba(201,143,130,.12);
}

.ddc-chat-send{
    width:44px;
    height:44px;
    border:0;
    border-radius:13px;
    background:var(--brown);
    color:#fff;
    cursor:pointer;
    display:grid;
    place-items:center;
}

.ddc-chat-send svg{
    width:20px;
    height:20px;
}

.ddc-chat-footnote{
    padding:0 12px 10px;
    background:#fff;
    color:var(--muted);
    font-size:10px;
    text-align:center;
}

@keyframes ddcChatPulse{
    0%{transform:scale(.88);opacity:.7}
    70%{transform:scale(1.30);opacity:0}
    100%{transform:scale(1.30);opacity:0}
}

@keyframes ddcChatOpen{
    from{opacity:0;transform:translateY(8px) scale(.98)}
    to{opacity:1;transform:translateY(0) scale(1)}
}

@keyframes ddcTyping{
    0%,60%,100%{transform:translateY(0);opacity:.45}
    30%{transform:translateY(-3px);opacity:1}
}

@media(max-width:720px){
    .ddc-chat-launcher{
        right:18px;
        bottom:18px;
        width:58px;
        height:58px;
    }

    .ddc-chat-teaser{
        right:86px;
        bottom:23px;
        width:min(280px,calc(100vw - 105px));
    }

    .ddc-chat-teaser-content{
        min-height:64px;
        padding:10px 36px 10px 10px;
    }

    .ddc-chat-teaser-avatar{
        width:36px;
        height:36px;
    }

    .ddc-chat-teaser-content small{
        display:none;
    }

    .ddc-chat{
        right:12px;
        bottom:86px;
        width:calc(100vw - 24px);
        max-height:calc(100vh - 106px);
        border-radius:20px;
    }

    .ddc-chat-body{
        min-height:250px;
    }

    .ddc-chat-options{
        grid-template-columns:1fr;
    }
}

@media(max-width:420px){
    .ddc-chat-teaser{
        right:82px;
        width:210px;
    }

    .ddc-chat-teaser-content strong{
        font-size:13px;
    }
}

@media(prefers-reduced-motion:reduce){
    .ddc-chat-launcher::before,
    .ddc-chat-typing span{
        animation:none;
    }

    .ddc-chat.open{
        animation:none;
    }

    .ddc-chat-launcher,
    .ddc-chat-teaser,
    .ddc-chat-option{
        transition:none;
    }
}

.ddc-cookie-banner{
    position:fixed;left:16px;right:16px;bottom:16px;z-index:140;
    background:#fff;border:1px solid var(--line);border-radius:20px;
    box-shadow:0 18px 55px rgba(50,23,15,.18);
    padding:18px;display:none
}
.ddc-cookie-banner.show{display:block}
.ddc-cookie-inner{
    width:min(1120px,100%);margin:auto;display:flex;align-items:center;
    justify-content:space-between;gap:22px
}
.ddc-cookie-copy h3{margin:0 0 5px;color:var(--ink)}
.ddc-cookie-copy p{margin:0;color:var(--muted);line-height:1.5;font-size:14px}
.ddc-cookie-actions{display:flex;gap:8px;flex-wrap:wrap;flex-shrink:0}
.ddc-cookie-btn{
    border:1px solid var(--line);background:#fff;border-radius:12px;
    padding:10px 12px;cursor:pointer;font-weight:800;color:var(--brown)
}
.ddc-cookie-btn.primary{background:var(--brown);color:#fff;border-color:var(--brown)}

.ddc-cookie-modal{
    position:fixed;inset:0;z-index:145;background:rgba(35,16,11,.48);
    display:none;align-items:center;justify-content:center;padding:18px
}
.ddc-cookie-modal.open{display:flex}
.ddc-cookie-panel{
    width:min(620px,100%);max-height:90vh;overflow:auto;background:#fff;
    border-radius:24px;padding:22px;box-shadow:0 24px 65px rgba(35,16,11,.25)
}
.ddc-cookie-panel h2{margin:0 0 6px}
.ddc-cookie-panel>p{color:var(--muted)}
.ddc-cookie-option{
    display:flex;justify-content:space-between;gap:20px;align-items:center;
    padding:15px 0;border-top:1px solid var(--line)
}
.ddc-cookie-option h3{margin:0 0 4px;font-size:16px}
.ddc-cookie-option p{margin:0;color:var(--muted);font-size:13px;line-height:1.45}
.ddc-cookie-switch input{width:20px;height:20px}
.ddc-cookie-foot{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:16px}

.ddc-legal-links{
    width:min(1180px,calc(100% - 32px));margin:0 auto;padding:12px 0 4px;
    display:flex;gap:10px 16px;flex-wrap:wrap;justify-content:center;
    color:var(--muted);font-size:12px
}
.ddc-legal-links button{
    border:0;background:transparent;padding:0;color:inherit;cursor:pointer
}
.ddc-legal-links a:hover,.ddc-legal-links button:hover{color:var(--brown)}

.ddc-page-hero{padding:58px 0 30px}
.ddc-page-hero h1{
    margin:0 0 12px;font-size:clamp(36px,5vw,58px);
    letter-spacing:-.04em
}
.ddc-page-hero p{max-width:720px;color:var(--muted);font-size:17px;line-height:1.65}

.ddc-form-card,.ddc-legal-card{
    background:#fff;border:1px solid var(--line);border-radius:24px;
    box-shadow:0 8px 26px rgba(75,36,24,.06);padding:24px
}
.ddc-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.ddc-form-grid .span-2{grid-column:1/-1}
.ddc-form-card label{display:block;font-weight:700;margin:13px 0}
.ddc-form-card input,.ddc-form-card select,.ddc-form-card textarea{
    width:100%;margin-top:7px;border:1px solid var(--line);border-radius:13px;
    padding:12px 13px;background:#fff;color:var(--ink);outline:none
}
.ddc-form-card textarea{min-height:115px;resize:vertical}
.ddc-flavors{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:10px}
.ddc-flavor-row{
    display:grid;grid-template-columns:1fr 90px;align-items:center;gap:10px;
    border:1px solid var(--line);border-radius:14px;padding:10px 12px;background:var(--bg)
}
.ddc-flavor-row input{margin:0}
.ddc-success{
    padding:18px;border-radius:16px;background:#e3f2e8;color:#205b35;margin-bottom:18px
}
.ddc-error{
    padding:18px;border-radius:16px;background:#f8dedb;color:#7d2119;margin-bottom:18px
}

.ddc-legal-card{max-width:900px;margin:0 auto}
.ddc-legal-card h2{margin-top:30px;color:var(--brown)}
.ddc-legal-card h2:first-child{margin-top:0}
.ddc-legal-card p,.ddc-legal-card li{line-height:1.7;color:var(--muted)}
.ddc-legal-card a{color:var(--brown2);text-decoration:underline}
.ddc-legal-note{margin-top:22px;padding:16px;border-radius:14px;background:var(--cream)}

@media(max-width:720px){
    .ddc-cookie-inner{align-items:flex-start;flex-direction:column}
    .ddc-cookie-actions{width:100%}
    .ddc-cookie-btn{flex:1}
    .ddc-form-grid,.ddc-flavors{grid-template-columns:1fr}
    .ddc-form-grid .span-2{grid-column:auto}
    .ddc-chat{
        right:16px;
        bottom:88px;
        width:min(360px,calc(100vw - 32px));
    }

    .ddc-chat-launcher{
        right:20px;
        bottom:20px;
        width:54px;
        height:54px;
    }
}


/* Ajuste visual do ícone do chat */
.ddc-chat-launcher span{
    display:none;
}

.ddc-chat-launcher .chat-tail{
    display:none;
}


/* CORREÇÃO DO ÍCONE DO BOTÃO FLUTUANTE */
.ddc-chat-launcher{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}
.ddc-chat-launcher-icon{
    position:relative;
    z-index:4;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    color:#fff !important;
}
.ddc-chat-launcher-icon svg{
    display:block !important;
    width:30px !important;
    height:30px !important;
    overflow:visible !important;
    color:#fff !important;
}
.ddc-chat-icon-chat svg path{
    stroke:#fff !important;
}
.ddc-chat-icon-chat svg path:last-child{
    fill:#fff !important;
    stroke:none !important;
}
.ddc-chat-icon-close{
    display:flex !important;
}
.ddc-chat-icon-close svg path{
    stroke:#fff !important;
}


/* AJUSTE ÓPTICO DE CENTRALIZAÇÃO DO ÍCONE */
.ddc-chat-launcher{
    position:fixed !important;
}
.ddc-chat-launcher .ddc-chat-icon-chat{
    position:absolute !important;
    left:50% !important;
    top:50% !important;
    width:28px !important;
    height:28px !important;
    margin:0 !important;
    transform:translate(-47%,-50%) !important;
}
.ddc-chat-launcher .ddc-chat-icon-chat svg{
    width:28px !important;
    height:28px !important;
}
.ddc-chat-launcher.active .ddc-chat-icon-chat{
    opacity:0 !important;
    transform:translate(-47%,-50%) rotate(25deg) scale(.75) !important;
}

.ddc-chat-launcher .ddc-chat-icon-close{
    position:absolute !important;
    left:50% !important;
    top:50% !important;
    width:26px !important;
    height:26px !important;
    margin:0 !important;
    transform:translate(-50%,-50%) rotate(-25deg) scale(.75) !important;
    opacity:0 !important;
}
.ddc-chat-launcher.active .ddc-chat-icon-close{
    opacity:1 !important;
    transform:translate(-50%,-50%) rotate(0) scale(1) !important;
}
