.orders-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.orders-list-view {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 180px;
    width: 100%;
}

.order-list-card,
.orders-list-empty,
.orders-loading-card {
    width: 100%;
    border-radius: 22px;
}

.order-list-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    background:
        radial-gradient(circle at top right, rgba(94, 53, 177, 0.18), transparent 34%),
        linear-gradient(160deg, #ffffff 0%, #f7f3ff 100%);
    border: 1px solid rgba(94, 53, 177, 0.14);
    box-shadow: 0 20px 45px rgba(56, 31, 117, 0.10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.order-list-banner-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.order-list-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, #5e35b1 0%, #a855f7 100%);
}

.order-list-card.is-transit::before,
.order-status-pill.is-transit {
    background: linear-gradient(180deg, #0f766e 0%, #14b8a6 100%);
}

.order-list-card.is-failed::before,
.order-status-pill.is-failed {
    background: linear-gradient(180deg, #b91c1c 0%, #ef4444 100%);
}

.order-list-card.is-delivered::before,
.order-status-pill.is-delivered {
    background: linear-gradient(180deg, #166534 0%, #22c55e 100%);
}

.order-list-card.is-cancelled::before,
.order-status-pill.is-cancelled {
    background: linear-gradient(180deg, #374151 0%, #6b7280 100%);
}

.order-list-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.order-list-identity {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-list-identity h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1f1147;
}

.order-list-identity p {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.order-list-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(94, 53, 177, 0.10);
    color: #5e35b1;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.order-list-total {
    font-size: 1.1rem;
    font-weight: 800;
    color: #40216e;
    white-space: nowrap;
}

.order-list-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.order-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(180deg, #5e35b1 0%, #7c3aed 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.order-status-pill.is-pending {
    background: linear-gradient(180deg, #7c3aed 0%, #a855f7 100%);
}

.order-status-pill.is-processing,
.order-status-pill.is-progress {
    background: linear-gradient(180deg, #1d4ed8 0%, #3b82f6 100%);
}

.order-status-pill.is-completed {
    background: linear-gradient(180deg, #166534 0%, #22c55e 100%);
}

.order-status-pill.is-neutral {
    background: linear-gradient(180deg, #475569 0%, #64748b 100%);
}

.order-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.order-list-grid > div {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(94, 53, 177, 0.08);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #7c6f98;
}

.order-list-grid strong {
    font-size: 0.95rem;
    color: #22133f;
    word-break: break-word;
}

.order-items-stack-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.order-items-stack {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding-right: 6px;
}

.order-items-stack.is-empty {
    padding-right: 0;
}

.order-item-stack-image,
.order-item-stack-fallback,
.order-item-stack-more {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 8px 16px rgba(31, 17, 71, 0.12);
}

.order-item-stack-image {
    object-fit: cover;
    background: #f3f4f6;
}

.order-item-stack-image + .order-item-stack-image,
.order-item-stack-image + .order-item-stack-more,
.order-item-stack-fallback + .order-item-stack-more {
    margin-left: -12px;
}

.order-item-stack-fallback,
.order-item-stack-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 100%);
    color: #5e35b1;
    font-size: 0.82rem;
    font-weight: 800;
    flex: 0 0 auto;
}

.order-tracking-value {
    transition: color 0.16s ease, opacity 0.16s ease;
}

.order-tracking-value.is-copyable {
    cursor: pointer;
    color: #4c1d95;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 3px;
}

.order-tracking-value.is-copyable:hover {
    color: #6d28d9;
}

.order-tracking-value.is-disabled {
    color: #6b7280;
}

.order-tracking-value.is-copied {
    color: #166534;
    text-decoration: none;
}

.order-list-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.95), rgba(255, 255, 255, 0.96));
    border: 1px solid rgba(249, 115, 22, 0.18);
    color: #7c2d12;
    font-size: 0.92rem;
}

.order-list-notice i {
    margin-top: 2px;
}

.order-list-actions {
    display: flex;
    flex-direction: column;
    flex: 0 0 220px;
    gap: 10px;
    align-self: stretch;
    justify-content: center;
}

.order-action-btn {
    text-decoration: none;
    border: none;
    cursor: pointer;
    padding: 11px 16px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.92rem;
    transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
    text-align: center;
}

.order-action-btn:hover {
    transform: translateY(-1px);
}

.order-action-btn.primary {
    background: linear-gradient(135deg, #5e35b1 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 12px 28px rgba(94, 53, 177, 0.22);
}

.order-action-btn.secondary {
    background: rgba(94, 53, 177, 0.08);
    color: #4c1d95;
    border: 1px solid rgba(94, 53, 177, 0.12);
}

.orders-list-empty,
.orders-loading-card {
    padding: 22px;
    border: 1px dashed rgba(94, 53, 177, 0.24);
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(245, 243, 255, 0.95));
    text-align: center;
}

.orders-empty-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(94, 53, 177, 0.10);
    color: #5e35b1;
    font-size: 1.4rem;
}

.orders-empty-title {
    font-weight: 800;
    color: #2e1065;
    margin-bottom: 6px;
}

.orders-empty-text {
    color: #6b7280;
    max-width: 46ch;
    margin: 0 auto;
}

.orders-loading-card {
    position: relative;
    overflow: hidden;
    min-height: 180px;
}

.orders-loading-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.75), transparent);
    transform: translateX(-100%);
    animation: orders-loading-shine 1.6s infinite;
}

.orders-loading-lines {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.orders-loading-lines span {
    display: block;
    height: 18px;
    border-radius: 999px;
    background: rgba(94, 53, 177, 0.12);
}

.orders-loading-lines span:nth-child(1) {
    width: 45%;
}

.orders-loading-lines span:nth-child(2) {
    width: 88%;
}

.orders-loading-lines span:nth-child(3) {
    width: 72%;
}

@keyframes orders-loading-shine {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

@media (max-width: 720px) {
    .order-list-card,
    .orders-list-empty,
    .orders-loading-card {
        width: 100%;
    }

    .order-list-card {
        flex-direction: column;
        align-items: stretch;
    }

    .order-list-card-top {
        flex-direction: column;
    }

    .order-list-total {
        white-space: normal;
    }

    .order-list-grid {
        grid-template-columns: 1fr;
    }

    .order-list-actions {
        flex-direction: column;
        flex-basis: auto;
    }

    .order-action-btn {
        width: 100%;
        text-align: center;
    }
}
