.tnx-bet-builder {
    max-width: 820px;
    margin-inline: auto;
}

.tnx-builder-head {
    margin-bottom: 1.25rem;
}

.tnx-builder-head h1 {
    margin: 0 0 .35rem;
}

.tnx-builder-section {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: .8rem;
    padding: 1.1rem 0;
    border-top: 1px solid rgba(148, 163, 184, .22);
}

.tnx-builder-number {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #17191c;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
}

.tnx-builder-section-body h2 {
    margin: .1rem 0 .8rem;
    font-size: 1.08rem;
}

.tnx-main-label {
    font-weight: 750;
}

.tnx-new-series,
.tnx-selected-series {
    margin-top: .8rem;
    padding: .9rem;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 12px;
    background: rgba(148, 163, 184, .07);
}

.tnx-new-series[hidden],
.tnx-selected-series[hidden] {
    display: none;
}

.tnx-selected-series {
    display: grid;
    gap: .35rem;
}

.tnx-selected-series small {
    color: #737b85;
}

.tnx-series-option-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .35rem;
}

.tnx-series-option-chips span {
    padding: .32rem .6rem;
    border: 1px solid rgba(148, 163, 184, .3);
    border-radius: 999px;
    background: #fff;
    font-size: .78rem;
    font-weight: 700;
}

.tnx-deadline-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: -.25rem;
}

.tnx-deadline-shortcuts button {
    padding: .45rem .7rem;
    font-size: .78rem;
}

.tnx-section-intro {
    margin-top: -.45rem;
}

.tnx-odds-mode {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    margin-bottom: .75rem;
}

.tnx-radio-card {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .8rem;
    border: 1px solid rgba(148, 163, 184, .3);
    border-radius: 12px;
    cursor: pointer;
}

.tnx-radio-card:has(input:checked) {
    border-color: #17191c;
    box-shadow: inset 0 0 0 1px #17191c;
}

.tnx-radio-card input {
    width: auto;
    margin: .18rem 0 0;
}

.tnx-radio-card span {
    display: grid;
    gap: .18rem;
}

.tnx-radio-card small {
    color: #737b85;
    font-weight: 500;
}

.tnx-automatic-odds,
.tnx-manual-odds {
    display: grid;
    gap: .45rem;
}

.tnx-automatic-odds[hidden],
.tnx-manual-odds[hidden] {
    display: none;
}

.tnx-opening-odd-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    align-items: center;
    gap: .75rem;
    padding: .6rem .75rem;
    border-radius: 10px;
    background: rgba(148, 163, 184, .08);
}

.tnx-opening-odd-row strong {
    text-align: right;
}

.tnx-opening-odd-row input {
    margin: 0;
    text-align: right;
}

.tnx-manual-fallback.is-enhanced {
    display: none;
}

.tnx-builder-details {
    margin: .75rem 0;
    border: 1px solid rgba(148, 163, 184, .25);
    border-radius: 13px;
    overflow: hidden;
}

.tnx-builder-details summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .85rem 1rem;
    cursor: pointer;
    list-style: none;
}

.tnx-builder-details summary::-webkit-details-marker {
    display: none;
}

.tnx-builder-details summary span:first-child {
    display: grid;
    gap: .15rem;
}

.tnx-builder-details summary small {
    color: #737b85;
}

.tnx-details-action {
    color: #525a64;
    font-size: .78rem;
    font-weight: 750;
}

.tnx-details-content {
    padding: .1rem 1rem 1rem;
}

.tnx-builder-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .65rem;
    padding-top: 1rem;
}

@media (max-width: 620px) {
    .tnx-builder-section {
        grid-template-columns: 1fr;
    }

    .tnx-odds-mode {
        grid-template-columns: 1fr;
    }

    .tnx-builder-actions,
    .tnx-builder-actions > * {
        width: 100%;
    }
}
