.webshop-orders {
    display: grid;
    gap: 8px;
    max-width: 720px;
    margin: 20px auto 0;
    padding: 0;
    list-style: none;
}

.webshop-orders details {
    border: 1px solid var(--sv2-line, #d5dbe0);
    border-radius: 8px;
}

.webshop-orders summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: inherit;
    cursor: pointer;
}

.webshop-orders summary::-webkit-details-marker { display: none; }

.webshop-orders summary::before {
    content: '';
    width: 7px;
    height: 7px;
    border: solid currentColor;
    border-width: 0 1px 1px 0;
    transform: rotate(-45deg);
}

.webshop-orders details[open] > summary::before { transform: rotate(45deg); }
.webshop-orders summary:hover { background: var(--sv2-tint, rgba(127, 127, 127, .08)); }
.webshop-orders .webshop-order-title { font-weight: 600; overflow-wrap: anywhere; }
.webshop-orders .webshop-order-summary-total { text-align: end; }
.webshop-orders summary time, .webshop-order-summary-total > span { display: block; font-size: .85em; font-weight: 400; }

.webshop-order-detail {
    padding: 12px 16px 16px;
    border-top: 1px solid var(--sv2-line, #d5dbe0);
    font-size: 14px;
}

.webshop-order-detail :is(.webshop-order-receipt-meta, .webshop-order-receipt-line, .webshop-order-receipt-total) {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    overflow-wrap: anywhere;
    padding-block: 4px;
}

.webshop-order-detail :is(.webshop-order-receipt-line, .webshop-order-receipt-total) > :last-child { flex-shrink: 0; }
.webshop-order-detail .webshop-order-receipt-lines { padding: 8px 0; margin: 0; list-style: none; }
.webshop-order-detail .webshop-order-receipt-total { border-top: 1px solid var(--sv2-line, #d5dbe0); }
.webshop-order-history-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.webshop-order-reorder-note { margin: 8px 0 0; font-size: 13px; }
[data-webshop-managed-reorder][hidden] { display: none !important; }
