.cm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.75rem; }
.cm-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 1rem; }
@media (min-width: 1024px) { .cm-layout { grid-template-columns: minmax(0, 1fr) 22rem; align-items: start; } .cm-rail { position: sticky; top: 5rem; } }
.cm-main { display: grid; gap: 1rem; min-width: 0; }
.cm-card { padding: 1.25rem; margin-top: 1rem; min-width: 0; }
.cm-main .cm-card { margin-top: 0; }
.cm-h2 { font-size: 1.0625rem; font-weight: 700; color: var(--b4-color-text); }
.cm-meta { font-size: 0.75rem; color: var(--b4-color-text-muted); margin-top: 0.2rem; overflow-wrap: anywhere; }
.cm-warn { margin-top: 0.4rem; font-size: 0.8125rem; color: #b45309; }
.cm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.85rem; margin-top: 0.75rem; }
.cm-wide { grid-column: 1 / -1; }
.cm-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.cm-empty { display: grid; gap: 0.5rem; justify-items: start; }
.cm-items { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.cm-item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--b4-color-border, #e2e8f0); }
.cm-item:first-child { border-top: 0; padding-top: 0; }
.cm-item-title { font-weight: 600; color: var(--b4-color-text); overflow-wrap: anywhere; }
.cm-item-side { text-align: right; display: grid; gap: 0.25rem; justify-items: end; }
.cm-price { font-weight: 700; color: #047857; }
.cm-summary { padding: 1.25rem; }
.cm-summary-items { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.cm-lines { margin: 0.5rem 0 0; display: grid; gap: 0.3rem; font-size: 0.8125rem; }
.cm-lines > div { display: flex; justify-content: space-between; gap: 0.75rem; }
.cm-lines dt { color: var(--b4-color-text-muted); }
.cm-lines dd { font-weight: 600; color: var(--b4-color-text); white-space: nowrap; }
.cm-lines-total { padding-top: 0.4rem; border-top: 1px solid var(--b4-color-border, #e2e8f0); font-weight: 700; }
.cm-total { display: flex; justify-content: space-between; margin-top: 0.85rem; padding-top: 0.75rem; border-top: 1px solid var(--b4-color-border, #e2e8f0); font-size: 1rem; }
.cm-total strong { color: #047857; }
.cm-stepper { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; list-style: none; margin: 1rem 0 0; padding: 0; font-size: 0.8125rem; color: var(--b4-color-text-muted); }
.cm-step { display: inline-flex; align-items: center; gap: 0.4rem; }
.cm-step-n { display: inline-flex; width: 1.4rem; height: 1.4rem; align-items: center; justify-content: center; border-radius: 9999px; background: #e2e8f0; color: #334155; font-weight: 700; font-size: 0.75rem; }
.cm-step-done .cm-step-n, .cm-step-on .cm-step-n { background: #047857; color: #fff; }
.cm-step-on { color: var(--b4-color-text); font-weight: 700; }
.cm-element { min-height: 6rem; margin-top: 0.75rem; }
.cm-ref { font-size: 0.9375rem; }
.cm-ref-link { font-weight: 700; color: #047857; text-decoration: none; }
.cm-orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.cm-order-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.cm-mini { list-style: none; margin: 0.5rem 0 0; padding: 0; font-size: 0.8125rem; display: grid; gap: 0.25rem; }
.cm-chip { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 9999px; font-size: 0.6875rem; font-weight: 700; background: #e2e8f0; color: #334155; }
.cm-chip-confirmed, .cm-chip-completed { background: #d1fae5; color: #065f46; }
.cm-chip-cancelled, .cm-chip-payment_failed, .cm-chip-expired { background: #fee2e2; color: #991b1b; }
.cm-chip-pending_payment { background: #fef3c7; color: #92400e; }
.cm-cancel { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--b4-color-border, #e2e8f0); }
.cm-scroll { overflow-x: auto; position: relative; }
.cm-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.cm-table th, .cm-table td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--b4-color-border, #e2e8f0); vertical-align: top; }
.cm-check { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--b4-color-text); }

.cm-chip-checked_in, .cm-chip-in_progress, .cm-chip-shipped { background: #dbeafe; color: #1e40af; }
.cm-chip-delivered { background: #d1fae5; color: #065f46; }
.cm-chip-no_show, .cm-chip-return_requested { background: #fef3c7; color: #92400e; }
.cm-chip-returned { background: #e2e8f0; color: #334155; }
.cm-chip-ticketing, .cm-chip-provisioning { background: #fef3c7; color: #92400e; }

.oo-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.oo-tab { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.5rem; padding: 0.35rem 0.85rem; border-radius: 9999px; border: 1px solid var(--b4-color-border, #e2e8f0); font-size: 0.8125rem; font-weight: 600; color: var(--b4-color-text); background: #fff; text-decoration: none; }
.oo-tab[aria-current="page"] { background: #047857; color: #fff; border-color: #047857; }
.oo-tab-count { font-size: 0.6875rem; opacity: 0.85; }
.oo-filters { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); align-items: end; padding: 1rem; margin-top: 1rem; }
.oo-note { font-size: 0.8125rem; color: var(--b4-color-text-muted); }
.oo-timeline { list-style: none; margin: 0.75rem 0 0; padding: 0 0 0 1rem; border-left: 2px solid #d1fae5; display: grid; gap: 0.75rem; }
.oo-timeline li { position: relative; font-size: 0.8125rem; }
.oo-timeline li::before { content: ""; position: absolute; left: -1.38rem; top: 0.3rem; width: 0.55rem; height: 0.55rem; border-radius: 9999px; background: #047857; }
.oo-forms { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-top: 0.75rem; }
.oo-action-form { display: grid; gap: 0.5rem; align-content: start; }
.oo-cal { width: 100%; border-collapse: separate; border-spacing: 2px; table-layout: fixed; }
.oo-cal th { font-size: 0.6875rem; text-transform: uppercase; color: var(--b4-color-text-muted); text-align: left; padding: 0.25rem; }
.oo-day { vertical-align: top; height: 6.5rem; padding: 0.3rem; border: 1px solid var(--b4-color-border, #e2e8f0); border-radius: 0.5rem; background: #fff; overflow: hidden; }
.oo-day-out { background: #f8fafc; opacity: 0.6; }
.oo-day-today { border-color: #047857; }
.oo-day-num { font-size: 0.75rem; font-weight: 700; color: var(--b4-color-text); }
.oo-ev { display: block; margin-top: 0.15rem; padding: 0.1rem 0.3rem; border-radius: 0.3rem; font-size: 0.6875rem; line-height: 1.2; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #0f172a; }
.oo-ev-checkin, .oo-ev-pickup, .oo-ev-departure { background: #d1fae5; }
.oo-ev-checkout, .oo-ev-dropoff, .oo-ev-return { background: #dbeafe; }
.oo-ev-blocked { background: #e2e8f0; }
.oo-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; list-style: none; padding: 0; margin: 0.75rem 0 0; font-size: 0.75rem; }
.oo-swatch { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 0.2rem; margin-right: 0.3rem; vertical-align: -0.1rem; }
@media (max-width: 640px) { .oo-day { height: 4.6rem; } .oo-ev { font-size: 0.625rem; } }

.cm-secure {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    border: 1px solid var(--b4-color-border);
    border-radius: 0.75rem;
    background: var(--b4-color-surface);
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
    color: var(--b4-color-text);
}

.cm-phone {
    display: grid;
    grid-template-columns: minmax(5.5rem, auto) minmax(0, 1fr);
    gap: 0.5rem;
}

.cm-info-list {
    display: grid;
    gap: 0.5rem;
    font-size: 0.8125rem;
}

.cm-info-list li {
    display: flex;
    gap: 0.5rem;
}

.cm-field-error {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #b91c1c;
}

.cm-sticky {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-top: 1px solid var(--b4-color-border);
    background: var(--b4-color-surface);
    padding: 0.75rem 1rem;
    box-shadow: 0 -6px 20px rgb(15 23 42 / 0.08);
}

@media (max-width: 1023px) {
    .cm-sticky {
        display: flex;
    }
}
