.pf-notifications { position: relative; display: inline-flex; align-items: center; }
.pf-notifications[hidden], .pf-notifications [hidden] { display: none !important; }
.pf-notifications-floating { position: fixed; bottom: 20px; right: 20px; z-index: 1050; }
.pf-notifications .pf-notifications-button { position: relative; cursor: pointer; border: 1px solid #cce1dc; border-radius: 12px; background: #fff; color: #075c55; padding: 12px; font: inherit; font-weight: 700; min-height: 44px; }
.pf-notifications-badge { position: absolute; top: -8px; right: -8px; background: #b71e37; color: #fff; border-radius: 20px; padding: 2px 6px; font: 700 12px/1.4 system-ui; }

/* O painel nao herda o nowrap dos links do cabecalho. So a lista precisa rolar. */
.pf-notifications .pf-notifications-panel {
    position: fixed; right: 20px; top: 96px; z-index: 3000;
    display: flex; flex-direction: column; gap: 0;
    box-sizing: border-box; width: min(420px, calc(100% - 32px));
    max-height: calc(100vh - 116px); max-height: calc(100dvh - 116px);
    min-width: 0; overflow: hidden; padding: 20px;
    border: 1px solid #d8e6e0; border-radius: 22px;
    background: #fff; color: #17332c; box-shadow: 0 18px 60px #12382c2e;
    text-align: left; white-space: normal; overflow-wrap: anywhere;
    font: 14px/1.6 system-ui;
}
.pf-notifications-panel *, .pf-notifications-panel *::before, .pf-notifications-panel *::after { box-sizing: border-box; }
.pf-notifications-panel .pf-notifications-heading { display: flex; flex: 0 0 auto; justify-content: space-between; align-items: center; gap: 16px; margin: 0; padding: 0; border: 0; background: transparent; }
.pf-notifications-heading > div { min-width: 0; }
.pf-notifications-heading .pf-notifications-eyebrow { display: block; margin-bottom: 2px; color: #587269; font-size: 10px; font-weight: 700; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; white-space: normal; }
.pf-notifications-heading strong { display: block; color: inherit; font-size: 20px; font-weight: 750; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; }
.pf-notifications-panel button { width: auto; max-width: 100%; min-width: 0; min-height: 40px; margin: 0; padding: 8px 12px; cursor: pointer; border: 1px solid #d0e2dc; border-radius: 11px; background: #eef8f4; color: #075c55; font: inherit; font-size: 12px; font-weight: 600; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.pf-notifications-panel button:hover { filter: brightness(.97); }
.pf-notifications-panel button:disabled { opacity: .5; cursor: default; }
.pf-notifications-heading button[data-close] { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; font-size: 25px; font-weight: 400; line-height: 1; border-radius: 50%; }
.pf-notifications-panel .pf-notifications-summary { flex: 0 0 auto; margin: 12px 0 0; padding: 0; color: #61756d; font-size: 12px; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }
.pf-notifications-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.pf-notifications-list { display: grid; gap: 10px; min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d7c8a6 transparent; padding: 1px 3px 3px 1px; }
.pf-notifications-list article { min-width: 0; margin: 0; padding: 15px; border: 1px solid #e2ece6; border-radius: 15px; background: #f8fbfa; white-space: normal; overflow-wrap: anywhere; }
.pf-notifications-list article.is-unread { background: #edf9f4; border-color: #cfe8dd; box-shadow: inset 3px 0 #008577; }
.pf-notifications-list article > strong { display: block; margin: 0; color: inherit; font-size: 14px; font-weight: 700; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.pf-notifications-list article > p { display: block; width: auto; max-width: 100%; margin: 6px 0 10px; padding: 0; color: inherit; font-size: 13px; line-height: 1.7; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.pf-notifications-list article > small { display: block; margin: 0; color: #687c72; font-size: 11px; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }
.pf-notifications-list article > a { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; min-height: 38px; margin-top: 12px; padding: 8px 12px; border-radius: 10px; background: #04766d; color: #fff; font-size: 12px; font-weight: 650; line-height: 1.5; text-decoration: none; white-space: normal; overflow-wrap: anywhere; }
.pf-notification-order-status { display: table; max-width: 100%; margin: 8px 0; padding: 4px 8px; border-radius: 9px; color: #075c55; background: #e7f5f2; font-size: 11px; font-weight: 700; white-space: normal; overflow-wrap: anywhere; }
.pf-notifications :is(button, a):focus-visible { outline: 3px solid #006e85; outline-offset: 3px; }
.pf-notifications-floating .pf-notifications-panel { top: auto; bottom: 80px; max-height: calc(100dvh - 110px); }

:is(.home-page, .storefront-page) .pf-notifications .pf-notifications-panel { border-color: #eddfc6; color: #272820; background: #fffdf8; font-family: "Poppins", Arial, sans-serif; box-shadow: 0 18px 55px #6045072b; }
:is(.home-page, .storefront-page) .pf-notifications-badge { background: #e65000; }
:is(.home-page, .storefront-page) .pf-notifications-heading .pf-notifications-eyebrow { color: #a24a00; }
:is(.home-page, .storefront-page) .pf-notifications-list article { background: #fff; border-color: #eee2cc; }
:is(.home-page, .storefront-page) .pf-notifications-list article.is-unread { background: #fff5df; border-color: #f4dca9; box-shadow: inset 3px 0 #f67800; }
:is(.home-page, .storefront-page) .pf-notifications-list article > a { background: #dc4c00; }
:is(.home-page, .storefront-page) .pf-notifications-panel button { border-color: #ebd9b6; color: #9b4500; background: #fff6e4; }
:is(.home-page, .storefront-page) .pf-notification-order-status { color: #985000; background: #ffedbf; }

@media (max-width: 600px) {
    .pf-notifications .pf-notifications-panel { right: 12px; top: 92px; width: calc(100% - 24px); max-height: calc(100vh - 108px); max-height: calc(100dvh - 108px); padding: 16px; border-radius: 19px; }
    .pf-notifications-heading strong { font-size: 19px; }
    .pf-notifications-heading button[data-close] { flex-basis: 40px; }
    .pf-notifications-actions { margin-bottom: 12px; }
    .pf-notifications-list article { padding: 13px; }
    .pf-notifications-floating .pf-notifications-panel { top: auto; bottom: 80px; max-height: calc(100dvh - 100px); }
}
