#ppc-widget {
    --pp-blue: #0756e8;
    --pp-blue-bright: #1268ff;
    --pp-yellow: #ffdf19;
    --pp-navy: #07184d;
    --pp-ink: #07123f;
    --pp-sky: #eaf7ff;
    --pp-line: #afd7f5;
    --pp-white: #fff;
    --pp-x: var(--ppc-desktop-x, 22px);
    --pp-y: var(--ppc-desktop-y, 26px);
    position: fixed;
    right: clamp(0px, var(--pp-x), calc(100vw - 108px));
    bottom: clamp(0px, calc(var(--pp-y) + env(safe-area-inset-bottom)), calc(100dvh - 126px));
    z-index: 1050;
    color: var(--pp-ink);
    font-family: "Arial Rounded MT Bold", "Nunito Sans", Arial, sans-serif;
    font-size: 14px;
}
#ppc-widget *, #ppc-widget *::before, #ppc-widget *::after { box-sizing: border-box; }
#ppc-widget [hidden] { display: none !important; }
#ppc-widget button, #ppc-widget input, #ppc-widget textarea { font: inherit; }
#ppc-widget button { cursor: pointer; }
#ppc-widget button:focus-visible, #ppc-widget input:focus-visible, #ppc-widget textarea:focus-visible { outline: 3px solid var(--pp-yellow); outline-offset: 3px; }
.ppc-launcher {
    position: relative;
    display: flex;
    width: 104px;
    height: 116px;
    margin-left: auto;
    padding: 2px 6px 8px;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;
    border: 0;
    border-radius: 28px;
    background: transparent;
    filter: drop-shadow(0 10px 15px rgba(7, 24, 77, .28));
    transition: transform .2s ease, filter .2s ease;
}
.ppc-launcher:hover { transform: translateY(-4px) rotate(-1deg); filter: drop-shadow(0 14px 18px rgba(7, 24, 77, .34)); }
.ppc-help-icon { position: absolute; inset: -12px -11px 12px; display: block; background: url("help-console.png") center / contain no-repeat; }
.ppc-launcher-label {
    position: relative;
    z-index: 1;
    display: block;
    min-width: 74px;
    padding: 5px 10px 6px;
    border: 2px solid var(--pp-navy);
    border-radius: 999px;
    background: var(--pp-yellow);
    box-shadow: 0 3px 0 var(--pp-navy);
    color: var(--pp-navy);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}
.ppc-availability {
    position: absolute;
    z-index: 2;
    top: -4px;
    right: -3px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 7px;
    border: 2px solid var(--pp-white);
    border-radius: 99px;
    background: var(--pp-navy);
    color: var(--pp-white);
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 3px 10px rgba(7, 24, 77, .24);
}
.ppc-availability::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8ba2bd; }
.ppc-availability[data-state="online"]::before { background: #35d687; box-shadow: 0 0 0 2px rgba(53, 214, 135, .22); }
.ppc-availability[data-state="offline"]::before { background: #ff6b6b; }
.ppc-badge { position: absolute; z-index: 3; left: -2px; top: 0; min-width: 24px; padding: 3px 7px; border: 2px solid var(--pp-white); border-radius: 20px; background: #ef3e50; color: var(--pp-white); font-size: 11px; font-weight: 900; text-align: center; }
.ppc-window {
    position: fixed;
    right: clamp(10px, var(--pp-x), max(10px, calc(100vw - 392px)));
    bottom: clamp(10px, calc(var(--pp-y) + env(safe-area-inset-bottom) + 126px), max(10px, calc(100dvh - 570px)));
    display: flex;
    width: min(380px, calc(100vw - 20px));
    height: 560px;
    max-height: calc(100dvh - 20px);
    flex-direction: column;
    overflow: hidden;
    border: 2px solid var(--pp-blue);
    border-radius: 24px;
    background: linear-gradient(180deg, #f6fcff, var(--pp-sky));
    box-shadow: 0 18px 55px rgba(7, 24, 77, .3), 0 4px 0 var(--pp-navy);
}
.ppc-window header { display: flex; align-items: center; justify-content: space-between; padding: 18px 19px 17px; border-bottom: 4px solid var(--pp-yellow); background: linear-gradient(135deg, var(--pp-blue-bright), #0045c8); color: var(--pp-white); }
.ppc-window strong { font-size: 14px; font-weight: 900; letter-spacing: .035em; }
.ppc-status { display: block; margin-top: 4px; color: #d8eeff; font: 500 12px/1.2 Arial, sans-serif; }
.ppc-close { width: 38px; height: 38px; padding: 0; border: 2px solid rgba(255,255,255,.75); border-radius: 50%; background: rgba(7,24,77,.18); color: #fff; font-size: 25px !important; line-height: 30px; }
.ppc-feed { flex: 1; min-height: 70px; padding: 18px; overflow-y: auto; overscroll-behavior: contain; }
.ppc-bubble { margin: 0 34px 12px 0; padding: 11px 13px; border: 1px solid var(--pp-line); border-radius: 15px 15px 15px 4px; background: #fff; box-shadow: 0 4px 10px rgba(7,24,77,.07); font-family: Arial, sans-serif; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.ppc-bubble.agent, .ppc-bubble.bot { border-color: #86bafa; background: #dceeff; color: var(--pp-navy); }
.ppc-bubble.visitor { margin: 0 0 12px 34px; border-color: var(--pp-blue); border-radius: 15px 15px 4px; background: var(--pp-blue); color: #fff; }
.ppc-bubble.system { padding: 0; border: 0; background: transparent; box-shadow: none; color: #617491; font-size: 12px; }
.ppc-bubble a { color: #004bd7; font-weight: 700; }
.ppc-bubble img, .ppc-bubble video, .ppc-bubble iframe { display: block; max-width: 100%; margin-top: 8px; border: 0; border-radius: 10px; }
.ppc-choices { max-height: 150px; padding: 0 16px; overflow: auto; }
.ppc-choices button { margin: 0 6px 8px 0; padding: 8px 11px; border: 2px solid var(--pp-blue); border-radius: 10px; background: #fff; color: var(--pp-blue); font-weight: 800; text-align: left; box-shadow: 0 2px 0 #b8d4ea; }
.ppc-compose { display: flex; gap: 8px; margin: 10px 14px 15px; padding-top: 12px; border-top: 1px solid var(--pp-line); }
.ppc-compose input, .ppc-email input, .ppc-email textarea { width: 100%; min-width: 0; padding: 11px; border: 2px solid #9bc7ea; border-radius: 12px; background: #fff; color: var(--pp-ink); font-family: Arial, sans-serif; }
.ppc-compose button, .ppc-email button { padding: 9px 14px; border: 2px solid var(--pp-navy); border-radius: 12px; background: var(--pp-yellow); box-shadow: 0 2px 0 var(--pp-navy); color: var(--pp-navy); font-weight: 900; }
.ppc-error { margin: 8px 16px; color: #b42336; font: 600 12px/1.4 Arial, sans-serif; }
.ppc-email { max-height: 65%; padding: 12px 16px; overflow-y: auto; border-top: 1px solid var(--pp-line); }
.ppc-email label { display: block; color: var(--pp-navy); font-size: 12px; font-weight: 800; }
.ppc-email input, .ppc-email textarea { display: block; margin: 7px 0 10px; font-weight: 400; resize: vertical; }
.ppc-email textarea { min-height: 76px; }
.ppc-email button { margin-right: 6px; font-size: 12px !important; }
.ppc-send-email:hover { background: #ffe957; }
.ppc-send-email:disabled { opacity: .6; cursor: wait; }
.ppc-offline-notice { flex-shrink: 0; margin: 8px 16px; padding: 10px 12px; border: 1px solid #f0bd38; border-radius: 10px; background: #fff7cd; color: #684d00; font-family: Arial, sans-serif; font-size: 13px; line-height: 1.5; }
.ppc-offline-email { display: inline; padding: 0; border: 0; background: transparent; color: #004bd7; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ppc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
#ppc-widget:has(.ppc-email:not([hidden])) .ppc-compose, #ppc-widget:has(.ppc-email:not([hidden])) .ppc-choices { display: none; }
#fob-live-chat { display: none !important; }
@media (max-width: 600px) {
    #ppc-widget { --pp-x: var(--ppc-mobile-x, 12px); --pp-y: var(--ppc-mobile-y, 82px); right: clamp(0px, var(--pp-x), calc(100vw - 96px)); bottom: clamp(0px, calc(var(--pp-y) + env(safe-area-inset-bottom)), calc(100dvh - 112px)); }
    .ppc-launcher { width: 92px; height: 104px; }
    .ppc-window { right: 10px; bottom: calc(82px + env(safe-area-inset-bottom, 0px)); height: min(620px, calc(100dvh - 102px - env(safe-area-inset-bottom, 0px))); }
    #ppc-widget:has(.ppc-window:not([hidden])) .ppc-launcher { visibility: hidden; }
    .ppc-compose input, .ppc-email input, .ppc-email textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { #ppc-widget * { scroll-behavior: auto !important; transition: none !important; } }
