body.pwa-browser-offline {
    padding-top: 42px;
}

.pwa-connectivity-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #8a5a00 0%, #a16207 50%, #b45309 100%);
    color: #fff8e1;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 24px rgba(120, 53, 15, 0.24);
    transform: translateY(-100%);
    transition: transform 0.2s ease;
    text-align: center;
}

.pwa-connectivity-banner.is-visible {
    transform: translateY(0);
}

@media (max-width: 767px) {
    .pwa-connectivity-banner {
        font-size: 12px;
        line-height: 1.4;
        padding: 10px 12px;
    }
}

.cart-item-row[data-offline-state],
.description-row[data-offline-state] {
    background: #fff7e6;
}

.cart-item-row[data-offline-state="delete"],
.description-row[data-offline-state="delete"] {
    background: #fff1f2;
    opacity: 0.82;
}

.cart-item-row[data-offline-state] td:first-child {
    position: relative;
}

.cart-item-row[data-offline-state] td:first-child::after {
    content: "Queued";
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #f59e0b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}

.cart-item-row[data-offline-state="delete"] td:first-child::after {
    content: "Delete queued";
    background: #dc2626;
}

.btn.is-offline-disabled {
    opacity: 0.58;
    cursor: not-allowed;
    box-shadow: none;
}

.register-offline-hint {
    display: none;
    margin-top: 10px;
    padding: 9px 11px;
    border-left: 3px solid #d97706;
    border-radius: 6px;
    background: #fff8eb;
    color: #8a4b00;
    font-size: 12px;
    line-height: 1.45;
}

.register-offline-hint.is-visible {
    display: block;
}

.register-offline-recovery[hidden] {
    display: none !important;
}

.register-offline-recovery {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(220, 38, 38, 0.12);
    border-radius: 12px;
    background: linear-gradient(180deg, #fffaf5 0%, #fff7ed 100%);
}

.register-offline-recovery__title {
    color: #9a3412;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.register-offline-recovery__help {
    color: #7c4312;
    font-size: 12px;
    line-height: 1.5;
}

.register-offline-recovery__list {
    display: grid;
    gap: 8px;
}

.register-offline-recovery .pwa-sync-panel__failure-item {
    background: rgba(255, 255, 255, 0.92);
}

.register-offline-review-note[hidden] {
    display: none !important;
}

.register-offline-review-note {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 12px;
    background: linear-gradient(180deg, #fffdf5 0%, #fff7e6 100%);
}

.register-offline-review-note--auth {
    margin-top: 16px;
}

.register-offline-review-note__title {
    color: #9a5b00;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.register-offline-review-note__help,
.register-offline-review-note__reason {
    color: #7c4312;
    font-size: 12px;
    line-height: 1.5;
}

.register-offline-review-note__actions {
    display: flex;
    justify-content: flex-end;
}

.register-offline-review-note__dismiss {
    min-height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(95, 114, 128, 0.12);
    color: #44535d;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.topbar-status--queue[hidden] {
    display: none !important;
}

.topbar-status--queue {
    margin-left: 8px;
    border: 0;
    cursor: pointer;
}

.topbar-status--connection {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    margin-left: 8px;
    padding: 3px 10px;
    border: 0;
    border-radius: 999px;
    cursor: default;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.topbar-status--connection:focus {
    outline: 2px solid rgba(17, 94, 157, 0.35);
    outline-offset: 2px;
}

.topbar-status--connection-online {
    background: rgba(22, 101, 52, 0.14);
    color: #166534;
    box-shadow: inset 0 0 0 1px rgba(22, 101, 52, 0.14);
}

.topbar-status--connection-offline {
    background: rgba(185, 28, 28, 0.12);
    color: #b91c1c;
    box-shadow: inset 0 0 0 1px rgba(185, 28, 28, 0.16);
}

.topbar-status__dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.42);
}

.topbar-left {
    position: relative;
}

.pwa-sync-panel[hidden] {
    display: none !important;
}

.pwa-sync-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    max-width: 320px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fffdf8;
    border: 1px solid rgba(161, 98, 7, 0.18);
    box-shadow: 0 14px 32px rgba(16, 33, 43, 0.18);
    z-index: 5100;
}

.pwa-sync-panel__title {
    margin-bottom: 8px;
    color: #8a4b00;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pwa-sync-panel__list {
    display: grid;
    gap: 6px;
}

.pwa-sync-panel__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #5f3b00;
    font-size: 13px;
    line-height: 1.35;
}

.pwa-sync-panel__count {
    font-weight: 700;
    color: #8a4b00;
}

.pwa-sync-panel__meta {
    display: grid;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(161, 98, 7, 0.12);
}

.pwa-sync-panel__meta-title {
    color: #8a4b00;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pwa-sync-panel__status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.pwa-sync-panel__status--info {
    background: rgba(17, 94, 157, 0.10);
    color: #155e9d;
}

.pwa-sync-panel__status--warning {
    background: rgba(161, 98, 7, 0.12);
    color: #9a5b00;
}

.pwa-sync-panel__status--danger {
    background: rgba(220, 38, 38, 0.10);
    color: #b91c1c;
}

.pwa-sync-panel__failures {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.pwa-sync-panel__failure-group {
    display: grid;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(161, 98, 7, 0.12);
}

.pwa-sync-panel__failure-title {
    color: #8a4b00;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pwa-sync-panel__failure-item {
    padding: 10px 10px 9px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(220, 38, 38, 0.10);
}

.pwa-sync-panel__failure-item--stale {
    border-color: rgba(217, 119, 6, 0.18);
    background: rgba(255, 251, 235, 0.92);
}

.pwa-sync-panel__failure-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    color: #5f3b00;
    font-size: 13px;
    line-height: 1.35;
}

.pwa-sync-panel__failure-scope {
    font-weight: 700;
}

.pwa-sync-panel__failure-meta {
    color: #8b6a3d;
    font-size: 12px;
    line-height: 1.35;
}

.pwa-sync-panel__failure-reason {
    margin-top: 8px;
    color: #6b3e11;
    font-size: 12px;
    line-height: 1.45;
}

.pwa-sync-panel__failure-hint {
    margin-top: 8px;
    padding: 8px 9px;
    border-radius: 8px;
    background: rgba(154, 75, 0, 0.08);
    color: #8a4b00;
    font-size: 12px;
    line-height: 1.45;
}

.pwa-sync-panel__failure-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.pwa-sync-panel__action {
    min-height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.pwa-sync-panel__action--retry {
    background: rgba(17, 94, 157, 0.10);
    color: #155e9d;
}

.pwa-sync-panel__action--review {
    background: rgba(161, 98, 7, 0.12);
    color: #9a5b00;
}

.pwa-sync-panel__action--dismiss {
    background: rgba(95, 114, 128, 0.12);
    color: #44535d;
}
