/* Customer order history: isolated from administration and checkout. */
body[data-account-page="services"] .account-page-heading > div > p:last-child {
    display: block;
    margin: 8px 0 0;
    max-width: 48ch;
    color: var(--text-light, #59666d);
    font-size: 0.88rem;
    line-height: 1.6;
}
.customer-order.account-order-card {
    border-radius: 20px;
    border: 1px solid rgba(20, 72, 84, 0.1);
    box-shadow: 0 6px 24px rgba(17, 52, 61, 0.035);
}
.customer-order.account-order-card::before { display: none; }
.customer-order-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px 20px;
}
.customer-order-identity { min-width: 0; }
.customer-order-reference {
    margin: 0 0 8px;
    color: var(--primary-color, #087888);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}
.customer-order-title {
    margin: 0;
    font-size: clamp(1.1rem, 1.7vw, 1.35rem);
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.customer-order-date, .customer-order-quantity {
    margin: 7px 0 0;
    font-size: 0.8rem;
    color: var(--text-light, #59666d);
    line-height: 1.5;
}
.customer-order-date {
    font-weight: 600;
    color: inherit;
}
.customer-order-money { flex-shrink: 0; text-align: right; }
.customer-order-total-label { display: block; font-size: 0.72rem; color: var(--text-light, #59666d); }
.customer-order-total { display: block; margin: 3px 0 8px; font-size: 1.55rem; line-height: 1.3; }
.customer-order-payment { font-size: 0.73rem; }
.customer-order-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 28px;
    border-top: 1px solid rgba(20, 72, 84, 0.08);
}
.customer-order-status-label { font-size: 0.75rem; color: var(--text-light, #59666d); }
.customer-order-estimate { margin-left: auto; font-size: 0.78rem; }
.customer-order-guidance {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    margin: 0 20px 18px;
    padding: 18px 20px;
    background: #edf7f7;
    border-left: 3px solid #1698a8;
    border-radius: 3px 12px 12px 3px;
}
.customer-order-guidance-copy strong { display: block; font-size: 0.9rem; }
.customer-order-guidance-copy p { margin: 5px 0 0; font-size: 0.8rem; line-height: 1.6; color: #465d66; }
.customer-order-guidance-copy .customer-order-location { font-weight: 600; }
.customer-order-contact {
    flex-shrink: 0;
    color: #086775;
    font-weight: 700;
    font-size: 0.76rem;
    text-decoration: underline;
    text-underline-offset: 4px;
    padding: 12px 0;
}
.customer-order-details { border-top: 1px solid rgba(20, 72, 84, 0.09); }
.customer-order-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 28px;
    cursor: pointer;
    list-style: none;
    font-size: 0.83rem;
    font-weight: 700;
}
.customer-order-summary::-webkit-details-marker { display: none; }
.customer-order-summary::after { content: '+'; margin-left: auto; font-size: 1.3rem; color: #087888; }
.customer-order-details[open] > .customer-order-summary::after { content: '−'; }
.customer-order-summary-hint { font-weight: 400; color: var(--text-light, #59666d); font-size: 0.75rem; }
.customer-order-summary:focus-visible, .customer-order-contact:focus-visible {
    outline: 3px solid #1698a8;
    outline-offset: -4px;
    border-radius: 8px;
}
.customer-order-content { padding: 0 28px 24px; }
.customer-order-services h3 { font-size: 0.85rem; margin: 16px 0 8px; }
.customer-order .account-order-items { padding: 0; margin: 0 0 18px; font-size: 0.84rem; }
.customer-order .account-order-items li { gap: 20px; }
.customer-order .account-order-items strong { white-space: nowrap; }
.customer-order-delivery { margin: 4px 0; font-size: 0.82rem; line-height: 1.6; overflow-wrap: anywhere; }
.customer-order .account-order-related-details {
    display: grid;
    grid-template-columns: 1fr;
    margin: 20px 0 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    gap: 20px;
}
.customer-order .account-order-detail-section { padding: 16px 0 0; border-top: 1px solid rgba(20, 72, 84, 0.1); }
.customer-order .account-order-detail-heading h3 { font-size: 0.85rem; }
.customer-order .account-order-payment-row strong, .customer-order .account-order-document-row strong { font-size: 0.81rem; }
.customer-order .account-order-detail-empty, .customer-order .account-order-payment-row small, .customer-order .account-order-document-row small { font-size: 0.76rem; overflow-wrap: anywhere; }
.customer-order .account-order-document-actions button { min-height: 44px; padding: 10px 15px; font-size: 0.75rem; }
.customer-order .account-order-footer { padding: 0 28px 24px; }
body.dark-mode .customer-order-guidance { background: #15343e; }
body.dark-mode .customer-order-guidance-copy p, body.dark-mode .customer-order-contact { color: #b7e2e6; }
body.dark-mode .customer-order-reference, body.dark-mode .customer-order-summary::after { color: #76dce2; }
@media (max-width: 600px) {
    .customer-order-header { padding: 20px; gap: 12px; }
    .customer-order-title { font-size: 1.05rem; }
    .customer-order-total { font-size: 1.25rem; }
    .customer-order-total-label { font-size: 0.66rem; }
    .customer-order-progress { padding: 12px 20px; gap: 8px; }
    .customer-order-estimate { width: 100%; margin: 3px 0 0; }
    .customer-order-guidance { margin: 0 12px 14px; padding: 16px; flex-direction: column; align-items: flex-start; gap: 4px; }
    .customer-order-contact { padding: 10px 0; }
    .customer-order-summary { padding: 16px 20px; }
    .customer-order-summary-hint { display: none; }
    .customer-order-content { padding: 0 20px 20px; }
    .customer-order .account-order-payment-row, .customer-order .account-order-document-row { flex-wrap: wrap; }
    .customer-order .account-order-footer { padding: 0 20px 20px; }
    .customer-order .account-pay-button { width: 100%; }
}
