.pwa-dock {
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 850;
    display: grid;
    justify-items: end;
    gap: 10px;
    pointer-events: none;
}
.pwa-panel,.pwa-shortcuts { pointer-events: auto; }
.pwa-panel {
    width: max-content;
    max-width: min(400px, calc(100vw - 28px));
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: white;
    box-shadow: 0 12px 32px #173e3224;
}
.pwa-actions,.pwa-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.pwa-panel p { margin: 9px 0 0; font-size: .86rem; }
.pwa-panel p:empty { display: none; }
.pwa-round {
    position: relative;
    display: grid;
    place-items: center;
    width: 47px;
    height: 47px;
    color: var(--deep);
    background: white;
    border: 1px solid var(--line);
    border-radius: 50%;
    box-shadow: 0 7px 20px #173e3224;
}
.pwa-round-primary { background: var(--deep); color: white; }
.pwa-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    display: grid;
    place-items: center;
    min-width: 19px;
    height: 19px;
    padding: 0 3px;
    border-radius: 999px;
    color: var(--deep);
    background: #d9fac0;
    border: 1px solid white;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
}
body:has(#pwa-controls:not([hidden])) #toast { bottom: calc(112px + env(safe-area-inset-bottom)); }
@media (max-width: 430px) {
    .pwa-dock { gap: 7px; }
    .pwa-panel { padding: 8px; }
    .pwa-actions .button { font-size: .78rem; padding: 8px 10px; }
}
.pwa-panel { position: relative; padding-right: 53px; }
.pwa-collapse {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    color: var(--deep);
    font-size: 1.35rem;
    line-height: 1;
}
.pwa-collapse:hover { background: var(--mint); }

.pwa-dock { gap: 6px; }
.pwa-panel {
    max-width: min(260px, calc(100vw - 28px));
    padding: 5px 45px 5px 5px;
    border-radius: 14px;
    box-shadow: 0 5px 18px #173e321c;
}
.pwa-actions { gap: 5px; align-items: center; }
.pwa-actions .button {
    min-height: 40px;
    padding: 7px 11px;
    font-size: .8rem;
}
.pwa-actions .pwa-notification {
    display: inline-grid;
    place-items: center;
    width: 40px;
    padding: 0;
}
.pwa-collapse { top: 5px; right: 5px; width: 36px; height: 40px; }
.pwa-panel p { margin: 5px 2px 2px; }
.pwa-dock [hidden] { display: none !important; }

.pwa-banner {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    width: min(350px, calc(100vw - 24px));
    z-index: 900;
}
.pwa-banner a {
    display: grid;
    gap: 3px;
    padding: 12px 15px;
    border-inline-start: 4px solid #d9fac0;
    border-radius: 12px;
    background: #0d352c;
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 24px #173e3240;
}
.pwa-banner strong, .pwa-banner span { overflow-wrap: anywhere; }
.pwa-banner span {
    font-size: .86rem;
    white-space: pre-wrap;
    max-height: min(36vh, 180px);
    overflow-y: auto;
}

#account:has([data-account-balance]:not([hidden])) {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}
#account [data-account-balance] {
    font-size: .72rem;
    font-weight: 500;
}
.account-popup-balance {
    margin: 0;
    font-weight: 700;
}
@media (pointer: coarse) and (hover: none) {
    #pwa-inbox { display: none; }
}

#cart { position: relative; }
.cart-count {
    position: absolute;
    inset: -5px -5px auto auto;
    min-width: 20px;
    padding: 2px 4px;
    border: 1px solid white;
    border-radius: 999px;
    background: #d9fac0;
    color: #103a31;
    font-size: .7rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
}
.cart-flight {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1200;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    pointer-events: none;
    border: 1px solid white;
    border-radius: 50%;
    background: #d9fac0;
    color: #103a31;
    font-size: .9rem;
    font-weight: 800;
    box-shadow: 0 4px 12px #173e3240;
}

.cart-feedback {
    position: fixed;
    z-index: 1201;
    max-width: min(280px, calc(100vw - 16px));
    padding: 7px 11px;
    border-radius: 10px;
    background: #103a31;
    color: white;
    font-size: .8rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
    pointer-events: none;
    box-shadow: 0 4px 14px #173e3240;
}
