.wrap {
    position: relative;
}

.bell {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 999px;
    background: rgb(224 230 237 / 40%);
    padding: 8px;
    color: inherit;
}

.bell:hover {
    background: rgb(224 230 237 / 90%);
    color: rgb(var(--color-primary));
}

.ringing {
    transform-origin: top center;
    animation: bellSwing 0.7s ease-in-out 3;
}

@keyframes bellSwing {

    0%,
    100% {
        transform: rotate(0);
    }

    20% {
        transform: rotate(16deg);
    }

    40% {
        transform: rotate(-14deg);
    }

    60% {
        transform: rotate(10deg);
    }

    80% {
        transform: rotate(-6deg);
    }
}

:global(body.dark) .bell {
    background: rgb(27 46 75 / 40%);
}

:global(body.dark) .bell:hover {
    background: rgb(27 46 75 / 60%);
}

.dot {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    right: -5px;
    width: 15px;
    height: 15px;
    border-radius: 999px;
    background: #e7515a;
    box-shadow: 0 0 0 2px #fff;
    color: #fff;
    font-size: 10px;
    padding: 2px;
}

:global(body.dark) .dot {
    box-shadow: 0 0 0 2px #0e1726;
}

.panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 60;
    width: 380px;
    max-width: calc(100vw - 24px);
    overflow: hidden;
    border-radius: 16px;
}

.statRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.orderRow,
.preorderRow {
    font-weight: 600;
    color: #111;
    border-bottom: 1px solid #e0e0e0;
}

:global(body.dark) .orderRow,
:global(body.dark) .preorderRow {
    color: #e0e6ed;
}

.orderText {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listCard,
.preorderCard {
    overflow: auto;
}

.preorderCard {
    box-shadow: 0 10px 24px rgb(14 23 38 / 10%);
}

.listCard {
    position: relative;
    z-index: 1;
    height: 500px;
    background: #fff;
    overflow-x: hidden;
}

.preorderCard {
    background: #fdfdfd;
}

:global(body.dark) .listCard,
:global(body.dark) .preorderCard {
    background: #060818;
}

:global(body.dark) .preorderCard {
    box-shadow: 0 10px 24px rgb(0 0 0 / 35%);
}

.orderRow,
.preorderRow,
.completedRow {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    font-size: 14px;
}

.orderRow:hover,
.preorderRow:hover {
    background: rgb(0 0 0 / 4%);
}

.completedRow {
    overflow: hidden;
    background: #e5f6ec;
}

.completedRow:hover {
    background: #d7f0e2;
}

:global(body.dark) .orderRow:hover,
:global(body.dark) .preorderRow:hover {
    background: rgb(255 255 255 / 4%);
    color: #fff;
}

:global(body.dark) .completedRow,
:global(body.dark) .completedRow:hover {
    background: #1a3d2e;
    color: #e7f8ef;
}

.swiping {
    pointer-events: none;
    animation: completedSwipe 320ms ease forwards;
}

@keyframes completedSwipe {
    0% {
        transform: translateX(0);
        opacity: 1;
        max-height: 72px;
    }

    60% {
        transform: translateX(-110%);
        opacity: 0;
        max-height: 72px;
    }

    100% {
        transform: translateX(-110%);
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

.clearCompleted {
    display: block;
    width: 100%;
    margin: 0;
    border: 0;
    border-top: 1px solid #e0e0e0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    padding: 12px 18px;
    color: #1f7a4d;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

.clearCompleted:hover {
    background: #e5f6ec;
}

:global(body.dark) .clearCompleted {
    background: #060818;
    border-top-color: #1b2e4b;
    box-shadow: none;
    color: #8fd9b0;
}

:global(body.dark) .clearCompleted:hover {
    background: #1a3d2e;
}

.prestatRow {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.listRow {
    display: flex;
    align-items: center;
    gap: 5px;
}

.freshDot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #e7515a;
    margin-left: 10px;
}

.preorderStatus {
    color: #2196f3;
    font-size: 12px;
    font-weight: 600;
    padding-left: 40px;
}

.preorderNotes,
.empty,
.extra {
    color: #6b7280;
}

.preorderNotes {
    font-size: 12px;
    font-weight: 500;
}

.empty,
.extra {
    padding: 14px 18px 16px;
    font-size: 13px;
}

:global(body.dark) .preorderNotes,
:global(body.dark) .empty,
:global(body.dark) .extra {
    color: #888ea8;
}