.cherry-bet-cart.os-cart {
    --cart-surface: #351522;
    --cart-ink: #fff5f0;
    --cart-muted: #e0b7c6;
    --cart-accent: #ffd4a8;
    --cart-line: #85475c;
    color: var(--cart-ink);
    font-size: .875rem;
    line-height: 1.45;
}

.cherry-bet-cart.os-cart .os-cart-bar {
    min-height: 42px;
    padding: 5px 9px;
    border-color: var(--cart-line);
    background: #5b243a;
}

.cherry-bet-cart .cherry-cart-caption {
    color: var(--cart-ink);
    font-size: .875rem;
    font-weight: 700;
}

.cherry-bet-cart .cherry-cart-caption .os-cart-count {
    display: inline;
    border: 0;
    background: transparent;
    color: var(--cart-accent);
    font-size: inherit;
}

.cherry-bet-cart.os-cart .os-cart-bar button {
    min-height: 30px;
    border: 1px solid #a46678;
    border-radius: 6px;
    background: #482035;
    color: var(--cart-ink);
    font: inherit;
    font-size: .78rem;
}

.cherry-bet-cart.os-cart .os-picks {
    display: grid;
    align-content: start;
    gap: 7px;
    min-height: 0;
    max-height: 335px;
    padding: 8px;
    overflow: auto;
    background: #2b131f;
    border-color: var(--cart-line);
}

.cherry-bet-cart.os-cart .os-picks > .cherry-cart-empty {
    margin: 0;
    padding: 12px 4px;
    color: var(--cart-muted);
    text-align: center;
    font-size: .875rem;
}

.cherry-bet-cart.os-cart .os-pick {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px;
    position: relative;
    gap: 6px 7px;
    padding: 10px;
    border: 1px solid #713a50;
    border-radius: 8px;
    background: var(--cart-surface);
    color: var(--cart-ink);
    box-shadow: none;
}

.cherry-bet-cart .cherry-cart-teams {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 7px;
    min-width: 0;
    font-size: .9rem;
    font-weight: 750;
}

.cherry-bet-cart .cherry-cart-teams span {
    overflow-wrap: anywhere;
    word-break: keep-all;
}

.cherry-bet-cart.os-cart .cherry-cart-teams small {
    color: var(--cart-muted);
    font-size: .7rem;
    font-weight: 650;
}

.cherry-bet-cart.os-cart .os-pick > button {
    position: static;
    align-self: start;
    justify-self: end;
    min-width: 30px;
    min-height: 30px;
    padding: 0;
    border: 1px solid #895065;
    border-radius: 6px;
    background: #462033;
    color: #ffe8ef;
    font-size: 1.12rem;
    line-height: 1;
}

.cherry-bet-cart .cherry-cart-market {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--cart-muted);
    font-size: .78rem;
    overflow-wrap: anywhere;
}

.cherry-bet-cart .cherry-cart-outcome {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 6px;
    background: #54253a;
    color: #fff1e8;
}

.cherry-bet-cart .cherry-cart-outcome strong { overflow-wrap: anywhere; font-size: .875rem; }
.cherry-bet-cart.os-cart .cherry-cart-outcome b { color: var(--cart-accent); font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.cherry-bet-cart .os-pick em { grid-column: 1 / -1; color: #ffc4a1; }
.cherry-bet-cart.os-cart .os-pick.is-invalid { border-color: #ef9c89; }
.cherry-bet-cart.os-cart button:focus-visible, .cherry-bet-cart.os-cart input:focus-visible { outline: 2px solid #ffc3ad; outline-offset: 2px; }
.cherry-bet-cart.os-cart .os-cart-summary dd { font-variant-numeric: tabular-nums; }
.cherry-bet-cart.os-cart .os-cart-summary .os-return { color: var(--cart-accent); font-size: 1rem; }

.cherry-home-cart { margin: 0 0 8px; }
.cherry-home-cart .cherry-match-cart-empty { margin: 8px; }
.cherry-cart-panel { margin: 0; padding: 0 8px 8px; }
.cherry-cart-panel[hidden], .cherry-bet-cart [hidden] { display: none !important; }
.cherry-match-search .cherry-match-cart-jump:not([hidden]) { display: block; cursor: pointer; }
.cherry-cart-dialog { max-height: calc(100dvh - 30px); overflow: auto; }
.cherry-cart-dialog h2 { margin-block-start: 0; }
.cherry-cart-dialog .cherry-cart-panel { padding: 0; }

[data-cherry-cart-modes] {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px;
}

[data-cherry-cart-modes] button {
    flex: 1 1 auto;
    padding: 5px 7px;
    border: 1px solid #895065;
    border-radius: 6px;
    background: #421d30;
    color: #f4d5df;
    font: inherit;
    font-size: .78rem;
    cursor: pointer;
}

[data-cherry-cart-modes] button[aria-pressed="true"] {
    border-color: #ed9da9;
    background: #772e49;
    color: #fff5ee;
}

.cherry-cart-panel .cherry-bet-cart {
    overflow: hidden;
    padding: 0 0 8px;
    border: 1px solid #794456;
    border-radius: 8px;
    background: #351724;
}

.cherry-cart-panel .os-cart-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.cherry-cart-panel .os-picks { border-width: 0 0 1px; border-style: solid; }

.cherry-cart-panel .os-stake-row {
    display: flex;
    align-items: end;
    gap: 6px;
    margin: 9px 8px 0;
}

.cherry-cart-panel .os-stake-row label { flex: 1; position: relative; min-width: 0; font-weight: 650; }
.cherry-cart-panel .os-stake-row label span { position: absolute; right: 11px; bottom: 10px; color: #efc4cf; }
.cherry-cart-panel .os-stake {
    display: block;
    width: 100%;
    height: 38px;
    box-sizing: border-box;
    margin-top: 4px;
    padding: 4px 28px 4px 8px;
    border: 1px solid #a26378;
    border-radius: 6px;
    appearance: textfield;
    background: #240f18;
    color: #fff3eb;
    font: inherit;
    font-variant-numeric: tabular-nums;
}
.cherry-cart-panel .os-stake::-webkit-inner-spin-button { appearance: none; }
.cherry-cart-panel button[data-action="reset-stake"] { min-height: 38px; }
.cherry-cart-panel .os-stake-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 6px 8px 10px;
}
.cherry-cart-panel .os-stake-buttons button { flex: 1 1 auto; }
.cherry-cart-panel .os-stake-buttons button, .cherry-cart-panel button[data-action="reset-stake"] {
    min-height: 30px;
    padding: 3px 6px;
    border: 1px solid #824459;
    border-radius: 6px;
    background: #4d2336;
    color: #ffebef;
    font: inherit;
    font-size: .77rem;
}

.cherry-cart-panel .os-cart-summary, .cherry-cart-panel .os-cart-limits {
    margin: 0 8px;
    padding: 6px 8px;
    border: 1px solid #753b50;
    border-radius: 6px;
    background: #28131e;
}

.cherry-cart-panel .os-cart-summary > div, .cherry-cart-panel .os-cart-limits > div {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    flex-wrap: wrap;
    align-items: baseline;
}

.cherry-cart-panel .os-cart-summary dd, .cherry-cart-panel .os-cart-limits dd { margin: 0; }
.cherry-cart-panel .os-cart-summary > div:last-child { margin-top: 3px; padding-top: 3px; border-top: 1px solid #71364a; }
.cherry-cart-panel .cherry-cart-limits { margin: 6px 8px; color: #ebc4d0; font-size: .78rem; }
.cherry-cart-panel .cherry-cart-limits summary { padding: 3px 0; cursor: pointer; }
.cherry-cart-panel .os-cart-limits { margin: 0; }
.cherry-cart-panel .os-cart-feedback, .cherry-cart-panel .os-cart-note, .cherry-cart-panel [data-fox-stake-warning] {
    margin: 6px 8px 0;
    color: #efcad1;
    font-size: .78rem;
}
.cherry-cart-panel [data-fox-stake-warning] { color: #ffc18e; }
.cherry-cart-panel .os-submit {
    display: block;
    width: calc(100% - 16px);
    min-height: 42px;
    margin: 6px 8px 0;
    border: 1px solid #ffc4b1;
    border-radius: 7px;
    background: #a32948;
    color: #fff3eb;
    font: inherit;
    font-weight: 750;
}
.cherry-cart-panel button:disabled { opacity: .55; cursor: default; }
.cherry-cart-panel button:not(:disabled) { cursor: pointer; }

@media (max-width:760px) {
    .cherry-home-cart, .cherry-cart-dialog { display: none !important; }
}

@media (min-width:761px) and (max-width:1100px) {
    .fox-common-member-rail > .cherry-home-cart { grid-column: 1; grid-row: 3; margin: 0 16px 12px; }
    .fox-common-member-rail:has(> .cherry-home-cart) > .fox-rail-banners { grid-row: 4; }
}
