
.iberuna-support{--isc-green:#173f32;--isc-border:#dfe5e2;position:relative;z-index:2147483000}
.iberuna-support__launcher{position:fixed;right:18px;bottom:18px;z-index:2147483001;display:flex;align-items:center;gap:7px;min-height:46px;border:0;border-radius:999px;padding:0 14px 0 12px;background:#173f32;color:#fff;box-shadow:0 7px 22px rgba(13,36,29,.20);font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.iberuna-support__launcher:hover{background:#12352a;transform:translateY(-1px)}
.iberuna-support__launcher svg{width:20px;height:20px;fill:currentColor}
.iberuna-support__panel{position:fixed;right:22px;bottom:22px;z-index:2147483002;width:min(410px,calc(100vw - 32px));height:min(640px,calc(100dvh - 118px));min-height:460px;overflow:hidden;border:1px solid var(--isc-border);border-radius:16px;background:#fff;box-shadow:0 18px 50px rgba(13,36,29,.22)}
.iberuna-support__panel[hidden]{display:none!important}
.iberuna-support__header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-height:64px;padding:12px 14px 10px 15px;background:#173f32;color:#fff}
.iberuna-support__header strong{display:block;font-size:15px}
.iberuna-support__header span{display:block;margin-top:3px;color:#d5e3dd;font-size:12px}
.iberuna-support__header small{display:block;margin-top:5px;max-width:310px;color:#c3df65;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.iberuna-support__close{width:34px;height:34px;border:1px solid rgba(255,255,255,.24);border-radius:8px;background:transparent;color:#fff;font-size:25px;cursor:pointer}
.iberuna-support__frame{display:block;width:100%;height:calc(100% - 64px);border:0;background:#fff}
.iberuna-support__loading{position:absolute;inset:64px 0 0;display:flex;align-items:center;justify-content:center;background:#fff;color:#66746f;font-size:13px}
.iberuna-support__panel.is-loaded .iberuna-support__loading{display:none}
@media(max-width:700px){
 .iberuna-support__launcher{right:12px;bottom:12px;width:48px;max-width:48px;min-height:48px;padding:0;justify-content:center}
 .iberuna-support__launcher-label{display:none}
 .iberuna-support__panel{inset:8px;width:auto;height:auto;min-height:0;border-radius:14px}
 body.iberuna-support-open{overflow:hidden}
}

.iberuna-support.is-open .iberuna-support__launcher{display:none!important}

/* Pedido de disponibilidade — formulário contextual no próprio carrinho. */
.iberuna-support.is-availability .iberuna-support__panel{width:min(650px,calc(100vw - 32px));height:auto;max-height:calc(100dvh - 44px);min-height:0}
.iberuna-support__availability{max-height:calc(100dvh - 138px);overflow:auto;padding:18px;background:#fff;color:#173f32}
.iberuna-support__availability[hidden]{display:none!important}
.iberuna-support__availability-intro strong{display:block;font-size:18px;line-height:1.25}
.iberuna-support__availability-intro p{margin:5px 0 14px;color:#5d6a66;font-size:13px;line-height:1.45}
.iberuna-support__availability-summary{margin:0 0 16px;padding:13px 14px;border:1px solid #dfe5e2;border-radius:10px;background:#f7f9f8}
.iberuna-support__availability-summary strong,.iberuna-support__availability-summary span,.iberuna-support__availability-summary small{display:block}
.iberuna-support__availability-summary strong{font-size:14px}
.iberuna-support__availability-summary span{margin-top:3px;color:#5d6a66;font-size:12px}
.iberuna-support__availability-summary p{margin:8px 0 0;font-size:12px;line-height:1.5}
.iberuna-support__availability-details{display:grid;gap:3px;margin-top:9px}
.iberuna-support__availability-details span{display:block;color:#173f32;font-size:12px;line-height:1.45}
.iberuna-support__availability-summary small{margin-top:8px;color:#65716d;font-size:11px}
.iberuna-support__form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.iberuna-support__availability-form label{display:block;min-width:0}
.iberuna-support__availability-form label>span{display:block;margin-bottom:5px;font-size:12px;font-weight:700;color:#173f32}
.iberuna-support__availability-form label>span em{color:#a22;font-style:normal}
.iberuna-support__availability-form label>span small{font-weight:500;color:#6a7773}
.iberuna-support__availability-form input,.iberuna-support__availability-form textarea{box-sizing:border-box;width:100%;border:1px solid #cfd8d4;border-radius:8px;background:#fff;color:#173f32;font:inherit;font-size:14px;outline:none;transition:border-color .15s,box-shadow .15s}
.iberuna-support__availability-form input{height:44px;padding:0 11px}
.iberuna-support__availability-form textarea{min-height:86px;padding:10px 11px;resize:vertical}
.iberuna-support__availability-form input:focus,.iberuna-support__availability-form textarea:focus{border-color:#173f32;box-shadow:0 0 0 2px rgba(23,63,50,.12)}
.iberuna-support__form-message{margin-top:12px}
.iberuna-support__privacy{margin:11px 0 0;color:#697570;font-size:11px;line-height:1.45}
.iberuna-support__privacy a{color:#173f32;text-decoration:underline}
.iberuna-support__form-status{min-height:18px;margin:9px 0 0;font-size:12px;line-height:1.4}
.iberuna-support__form-status.is-error{color:#a12626}
.iberuna-support__submit{display:block;width:100%;min-height:46px;margin-top:8px;border:0;border-radius:8px;background:#8bc400;color:#173f32;font:inherit;font-size:14px;font-weight:800;cursor:pointer}
.iberuna-support__submit:hover{filter:brightness(.96)}
.iberuna-support__submit:disabled{opacity:.6;cursor:wait}
.iberuna-support__availability-success{padding:22px 4px 6px;text-align:center}
.iberuna-support__availability-success[hidden]{display:none!important}
.iberuna-support__availability-success strong{display:block;font-size:21px}
.iberuna-support__availability-success p{margin:9px auto 18px;max-width:480px;color:#5f6d68;font-size:13px;line-height:1.55}
.iberuna-support__hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}
@media(max-width:700px){
 .iberuna-support.is-availability .iberuna-support__panel{inset:8px;width:auto;height:auto;max-height:calc(100dvh - 16px)}
 .iberuna-support__availability{max-height:calc(100dvh - 96px);padding:15px}
 .iberuna-support__form-grid{grid-template-columns:1fr;gap:10px}
 .iberuna-support__availability-form input{font-size:16px}
 .iberuna-support__availability-form textarea{font-size:16px}
}

/* Support Chat V2 — interface Iberuna sobre o SDK Crisp. */
.iberuna-support__badge{position:absolute;top:-5px;right:-4px;display:flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border:2px solid #fff;border-radius:999px;background:#8bc400;color:#173f32;font-size:10px;font-weight:900;line-height:1}
.iberuna-support__badge[hidden]{display:none!important}
.iberuna-support__frame[hidden],.iberuna-support__v2[hidden]{display:none!important}
.iberuna-support__v2{height:calc(100% - 64px);display:flex;flex-direction:column;min-height:0;background:#fff}
.iberuna-support__messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px 14px 12px;scrollbar-width:thin;scrollbar-color:#c7d0cc transparent}
.iberuna-support__message{display:flex;width:100%;margin:0 0 10px}
.iberuna-support__message.is-agent{justify-content:flex-start}
.iberuna-support__message.is-visitor{justify-content:flex-end}
.iberuna-support__bubble{max-width:82%;padding:10px 12px;border-radius:15px;background:#f0f3f2;color:#173f32;font-size:14px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.iberuna-support__message.is-agent .iberuna-support__bubble{border-bottom-left-radius:5px}
.iberuna-support__message.is-visitor .iberuna-support__bubble{border-bottom-right-radius:5px;background:#8bc400;color:#173f32}
.iberuna-support__message.is-welcome{margin-top:3px}
.iberuna-support__chat-status{min-height:17px;padding:0 14px 4px;color:#6a7773;font-size:11px;line-height:1.35}
.iberuna-support__composer{display:flex;align-items:flex-end;gap:8px;margin:0 10px 10px;padding:7px 7px 7px 12px;border:1.5px solid #9aa9a3;border-radius:15px;background:#fff;box-shadow:0 0 0 2px rgba(23,63,50,.04)}
.iberuna-support__composer:focus-within{border-color:#173f32;box-shadow:0 0 0 2px rgba(23,63,50,.10)}
.iberuna-support__composer textarea{flex:1;min-width:0;min-height:30px;max-height:112px;margin:0;padding:5px 0;border:0!important;background:transparent!important;box-shadow:none!important;color:#173f32;font:inherit;font-size:14px;line-height:1.45;resize:none;outline:0}
.iberuna-support__composer textarea::placeholder{color:#788782}
.iberuna-support__send{flex:0 0 38px;width:38px;height:38px;display:flex;align-items:center;justify-content:center;border:0;border-radius:11px;background:#173f32;color:#fff;cursor:pointer}
.iberuna-support__send:hover{background:#12352a}
.iberuna-support__send:disabled{opacity:.45;cursor:not-allowed}
.iberuna-support__send-icon{display:block;color:#fff;font-size:19px;font-weight:900;line-height:1;transform:translateX(1px)}
.iberuna-support__v2-fallback{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:-2px 10px 10px;padding:8px 10px;border-radius:9px;background:#fff7df;color:#6e5200;font-size:11px}
.iberuna-support__v2-fallback[hidden]{display:none!important}
.iberuna-support__v2-fallback button{border:0;background:transparent;color:#173f32;font:inherit;font-size:11px;font-weight:800;text-decoration:underline;cursor:pointer}
.iberuna-support .screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

@media(max-width:700px){
 .iberuna-support__v2{height:calc(100% - 64px)}
 .iberuna-support__messages{padding:15px 11px 10px}
 .iberuna-support__bubble{max-width:88%;font-size:14px}
 .iberuna-support__composer{margin:0 8px 8px;padding-left:11px}
 .iberuna-support__composer textarea{font-size:16px}
 .iberuna-support__badge{top:-4px;right:-3px}
}
.iberuna-support__message.is-pending .iberuna-support__bubble{opacity:.62}
.iberuna-support__message.is-pending .iberuna-support__bubble::after{content:" · a enviar";font-size:11px;opacity:.75}
.iberuna-support__message.is-error .iberuna-support__bubble{outline:1px solid #b42318;background:#fff1f0;color:#7a271a}
.iberuna-support__message.is-error .iberuna-support__bubble::after{content:" · envio não confirmado";font-size:11px;font-weight:700}

/* Fotografias no Support Chat V2. */
.iberuna-support__photo-hint{margin:0 14px 6px;padding:7px 9px;border-radius:8px;background:#f5f8f6;color:#52615c;font-size:11px;line-height:1.4}
.iberuna-support__photo-hint[hidden]{display:none!important}
.iberuna-support__attachment-tray{display:flex;gap:8px;overflow-x:auto;margin:0 10px 7px;padding:2px 2px 4px;scrollbar-width:thin}
.iberuna-support__attachment-tray[hidden]{display:none!important}
.iberuna-support__attachment{position:relative;flex:0 0 64px;width:64px;height:64px;border:1px solid #d8e0dd;border-radius:10px;overflow:hidden;background:#f2f5f4}
.iberuna-support__attachment img{display:block;width:100%;height:100%;object-fit:cover}
.iberuna-support__attachment-remove{position:absolute;top:3px;right:3px;width:22px;height:22px;padding:0;border:0;border-radius:999px;background:rgba(23,63,50,.9);color:#fff;font-size:17px;line-height:20px;cursor:pointer}
.iberuna-support__attachment-remove:disabled{opacity:.55;cursor:wait}
.iberuna-support__attachment-state{position:absolute;inset:auto 0 0;padding:3px 2px;background:rgba(23,63,50,.82);color:#fff;font-size:9px;font-weight:700;text-align:center}
.iberuna-support__attachment.is-error{border-color:#b42318}
.iberuna-support__attach{flex:0 0 38px;width:38px;height:38px;display:flex;align-items:center;justify-content:center;border:0;border-radius:11px;background:#eef3f1;color:#173f32;cursor:pointer}
.iberuna-support__attach:hover{background:#e3ebe7}
.iberuna-support__attach:disabled{opacity:.45;cursor:wait}
.iberuna-support__attach svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.iberuna-support__file-input{display:none!important}
.iberuna-support__chat-status.is-error{color:#a12626;font-weight:600}
.iberuna-support__message.is-image .iberuna-support__bubble{padding:5px;max-width:76%;background:#f0f3f2}
.iberuna-support__message.is-image.is-visitor .iberuna-support__bubble{background:#8bc400}
.iberuna-support__image-link{display:block;border-radius:10px;overflow:hidden;background:#e8ecea}
.iberuna-support__chat-image{display:block;max-width:100%;width:auto;max-height:260px;object-fit:contain;border-radius:10px}
.iberuna-support__image-name{display:block;max-width:220px;padding:5px 4px 2px;overflow:hidden;color:inherit;font-size:10px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.iberuna-support__message.is-image.is-pending .iberuna-support__bubble{opacity:.65}
.iberuna-support__message.is-image.is-pending .iberuna-support__bubble::after{content:"A enviar fotografia…";display:block;padding:4px 3px 1px;font-size:10px;font-weight:700;opacity:.82}
.iberuna-support__message.is-image.is-error .iberuna-support__bubble::after{content:"Envio não confirmado";display:block;padding:4px 3px 1px;font-size:10px;font-weight:700}

@media(max-width:700px){
 .iberuna-support__photo-hint{margin:0 11px 6px}
 .iberuna-support__attachment-tray{margin:0 8px 6px}
 .iberuna-support__attach{flex-basis:40px;width:40px;height:40px}
 .iberuna-support__message.is-image .iberuna-support__bubble{max-width:84%}
 .iberuna-support__chat-image{max-height:230px}
}
.iberuna-support__photo-policy{margin:-2px 14px 6px;color:#77847f;font-size:10px;line-height:1.35}
.iberuna-support__photo-policy[hidden]{display:none!important}
@media(max-width:700px){.iberuna-support__photo-policy{margin:-2px 11px 6px}}
