/* JD NOTIFICAÇÕES - ESTILO BASE */
.jd-notif-wrap{position:relative;display:inline-flex;align-items:center;z-index:9999;font-family:inherit}
.jd-notif-bell{position:relative;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:9px;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer;transition:background .2s ease}
.jd-notif-bell:hover,.jd-notif-bell:focus-visible{background:rgba(127,127,127,.13);outline:none}
.jd-notif-bell svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.jd-notif-count{position:absolute;top:0;right:0;min-width:17px;height:17px;padding:0 4px;border-radius:20px;background:#d93025;color:#fff;font:700 10px/17px Arial,sans-serif;text-align:center;box-sizing:border-box}
.jd-notif-count[hidden],.jd-notif-panel[hidden]{display:none!important}

.jd-notif-panel{
  position:absolute;top:calc(100% + 10px);right:0;
  width:min(340px,calc(100vw - 28px));max-height:430px;overflow:hidden;
  background:#fff;color:#242424;border:1px solid #e1e8e1;border-radius:13px;
  box-shadow:0 8px 24px rgba(0,0,0,.14);
  text-align:left;box-sizing:border-box;
  filter:none!important;backdrop-filter:none!important;opacity:1!important;
  -webkit-font-smoothing:antialiased;
}
.jd-notif-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 15px;border-bottom:1px solid #e9eee9;background:#fff}
.jd-notif-header strong{font-size:15px;font-weight:700;color:#183d22}
.jd-notif-readall{padding:0;border:0;background:none;color:#17602e;font-size:11px;cursor:pointer}
.jd-notif-list{max-height:355px;overflow-y:auto;overscroll-behavior:contain}
.jd-notif-empty{margin:0;padding:24px 16px;color:#777;font-size:13px;text-align:center}
.jd-notif-item{position:relative;padding:13px 15px;border-bottom:1px solid #edf0ed;cursor:default;background:#fff;box-sizing:border-box}
.jd-notif-item:last-child{border-bottom:0}
.jd-notif-item.is-unread{background:#edf7ed;padding:15px 16px 15px 21px;border-left:3px solid #4b9858}
.jd-notif-item.is-unread:before{position:absolute;top:19px;left:8px;width:6px;height:6px;border-radius:50%;background:#25823b;content:""}
.jd-notif-item.is-read{background:#fff;border-left:3px solid transparent}
.jd-notif-item-title{display:block;margin:0 0 4px;font-size:13px;color:#202820;font-weight:700}
.jd-notif-item-message{margin:0 0 6px;font-size:12px;line-height:1.5;color:#4f5b50}
.jd-notif-item-date{display:block;font-size:10px;color:#788278}
.jd-notif-order-link{display:inline-block;margin-top:7px;color:#17602e;font-size:11px;text-decoration:underline}
.jd-notif-intro{padding:12px 15px;background:#f7faf7;border-bottom:1px solid #e8eee8}
.jd-notif-intro strong{display:block;margin:0 0 4px;color:#242424;font-size:12px}
.jd-notif-intro p{margin:0;color:#626262;font-size:11px;line-height:1.45}
.jd-notif-welcome{padding:22px 18px;text-align:center}
.jd-notif-welcome-title{display:block;margin:0 0 9px;color:#242424;font-size:15px;font-weight:700}
.jd-notif-welcome-message,.jd-notif-welcome p{margin:0 0 15px;color:#626262;font-size:13px;line-height:1.55}
.jd-notif-welcome-link{display:inline-block;padding:10px 16px;border-radius:7px;background:#17602e;color:#fff!important;font-size:12px;font-weight:700;text-decoration:none!important}
.jd-notif-shop-link{display:block;margin-top:12px;color:#17602e;font-size:12px;text-decoration:underline}

/* MOBILE: caixa logo abaixo do cabeçalho, sem transform para evitar borrão */
@media(max-width:767px){
  .jd-notif-panel,
  body > .jd-notif-panel{
    position:fixed!important;
    top:var(--jd-notif-top,190px)!important;
    left:max(12px,calc((100vw - 380px)/2))!important;
    right:max(12px,calc((100vw - 380px)/2))!important;
    bottom:auto!important;
    transform:none!important;
    width:auto!important;
    max-width:380px!important;
    max-height:calc(100dvh - var(--jd-notif-top,190px) - 12px)!important;
    overflow:hidden!important;
    margin:0!important;
    z-index:2147483000!important;
    box-shadow:0 8px 22px rgba(0,0,0,.16)!important;
  }
  .jd-notif-list{max-height:calc(100dvh - var(--jd-notif-top,190px) - 145px);overflow-y:auto;overscroll-behavior:contain}
  .jd-notif-bell{width:38px;height:38px}
}
@media(max-width:360px){
  .jd-notif-panel,body > .jd-notif-panel{left:10px!important;right:10px!important}
  .jd-notif-header{padding:12px}
  .jd-notif-header strong{font-size:14px}
  .jd-notif-readall{font-size:10px}
}

/* Ícone meramente visual para visitantes */
.jd-notif-bell-static{cursor:default;pointer-events:none}
.jd-notif-bell-static:hover,.jd-notif-bell-static:focus{background:transparent}
