/* R155: steadier order surfaces and a compact, successful ChatGPT hand-off. */
.nx-customer-window:has([data-nx-customer-view="orders"], [data-nx-customer-view="order"]) {
    --customer-surface: rgba(18,18,29,.97);
    --customer-field: rgba(11,10,20,.9);
}
:where(html[data-nx-theme="light"]) .nx-customer-window:has([data-nx-customer-view="orders"], [data-nx-customer-view="order"]) {
    --customer-surface: rgba(255,255,255,.98);
    --customer-field: rgba(248,247,252,.97);
}
.nx-customer-card:has(.nx-order-chatgpt-delivered) {
    position: relative;
    width: min(440px,100%);
    border-radius: 24px;
}
.nx-customer-card:has(.nx-order-chatgpt-delivered) .nx-customer-heading {
    height: 0;
    min-height: 0;
    padding: 0;
}
.nx-customer-card:has(.nx-order-chatgpt-delivered) .nx-customer-heading h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.nx-customer-card:has(.nx-order-chatgpt-delivered) .nx-customer-close {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 9px;
    border-color: transparent;
    border-radius: 11px;
    background: #b7a0ff0a;
}
.nx-customer-card:has(.nx-order-chatgpt-delivered) .nx-customer-content {
    padding: 24px 22px 16px;
}
.nx-order-chatgpt-delivered .nx-cg-delivery-hero {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 58px;
    margin-bottom: 20px;
    padding-left: 28px;
}
.nx-cg-delivery-hero > div { min-width: 0; }
.nx-cg-delivery-hero h3 {
    margin: 0;
    color: var(--customer-ink);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.nx-cg-delivery-hero p { margin: 4px 0 0; color: var(--customer-muted); font-size: 12px; line-height: 1.7; }
.nx-cg-delivery-logo {
    display: grid;
    place-items: center;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border: 1px solid #27c97780;
    border-radius: 17px;
    color: #36d687;
    background: #23c87b0c;
    box-shadow: 0 0 22px #24ca7512;
}
.nx-cg-delivery-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.nx-cg-delivery-logo svg { display: block; width: 34px; height: 34px; fill: currentColor; }
.nx-cg-delivery-logo [hidden] { display: none !important; }
.nx-cg-delivery-offer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 15px;
    border: 1px solid #b7a0ff12;
    border-radius: 14px;
    background: #b7a0ff04;
    color: var(--customer-accent);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
}
.nx-cg-delivery-offer > span { min-width: 0; overflow-wrap: anywhere; }
.nx-cg-delivery-offer strong { flex-shrink: 0; color: var(--customer-ink); font-size: 18px; white-space: nowrap; }
.nx-cg-delivery-offer small { font-size: 13px; }
.nx-cg-delivery-body { margin-top: 18px; padding-top: 18px; border-top: 1px solid #b7a0ff14; }
.nx-cg-delivery-body h4 { margin: 0 0 7px; color: var(--customer-ink); font-size: 19px; font-weight: 800; }
.nx-cg-delivery-body > p { margin: 0 0 17px; color: var(--customer-muted); font-size: 13px; line-height: 1.9; }
.nx-cg-delivery-portal { padding: 18px 16px 16px; border: 1px solid #b7a0ff18; border-radius: 18px; background: var(--customer-field); }
.nx-cg-delivery-portal h5 { margin: 0 0 12px; color: var(--customer-ink); font-size: 16px; font-weight: 800; }
.nx-customer-window .nx-cg-delivery-domain { display: block; width: fit-content; min-height: 30px; margin: 0 auto 12px 0; color: var(--customer-accent); font-size: 18px; font-weight: 800; text-decoration: none; }
.nx-cg-delivery-portal p { margin: 0 0 16px; color: var(--customer-muted); font-size: 11px; line-height: 1.85; }
.nx-customer-window .nx-cg-delivery-portal .nx-portal-direct { min-height: 48px; margin: 0; gap: 10px; font-size: 16px; }
.nx-cg-delivery-meta { margin-top: 13px; color: var(--customer-muted); font-size: 11px; }
.nx-cg-delivery-meta summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; cursor: pointer; list-style: none; }
.nx-cg-delivery-meta summary::-webkit-details-marker { display: none; }
.nx-cg-delivery-meta summary > span:first-child::after { content: "⌄"; display: inline-block; margin-inline-start: 7px; }
.nx-cg-delivery-meta[open] summary > span:first-child::after { transform: rotate(180deg); }
.nx-cg-delivery-status { color: var(--customer-success); font-weight: 700; }
.nx-cg-delivery-meta .nx-customer-order-reference { margin-top: 8px; }
.nx-cg-delivery-identity { display: grid; gap: 9px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--customer-line); }
.nx-cg-delivery-identity > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.nx-cg-delivery-identity dt { color: var(--customer-muted); }
.nx-cg-delivery-identity dd { display: flex; align-items: center; gap: 7px; min-width: 0; margin: 0; color: var(--customer-ink); }
.nx-cg-delivery-identity [data-portal-username] { font-size: 12px; }
.nx-cg-delivery-meta summary:focus-visible { outline: 3px solid var(--customer-accent); outline-offset: 3px; border-radius: 6px; }
:where(html[data-nx-theme="light"]) .nx-cg-delivery-logo { color: #13814d; background: #e6f6ed; border-color: #1e9b5966; }
@media (max-width:360px) {
    .nx-customer-card:has(.nx-order-chatgpt-delivered) .nx-customer-content { padding: 22px 16px 14px; }
    .nx-cg-delivery-hero h3 { font-size: 19px; }
    .nx-cg-delivery-hero p { font-size: 11px; }
    .nx-cg-delivery-logo { flex-basis: 48px; width: 48px; height: 48px; border-radius: 14px; }
    .nx-cg-delivery-offer { padding: 10px 12px; font-size: 12px; }
    .nx-cg-delivery-offer strong { font-size: 16px; }
    .nx-cg-delivery-portal { padding: 15px 13px 13px; }
    .nx-customer-window .nx-cg-delivery-portal .nx-portal-direct { font-size: 14px; }
}
