.ovc-calculator {
    --ovc-border: #d7dee7;
    --ovc-muted: #5f6b7a;
    --ovc-bg: #ffffff;
    --ovc-soft: #f6f8fb;
    --ovc-best: #fff2b8;
    --ovc-value: #d9f7df;
    --ovc-negative: #fde2e2;
    max-width: 100%;
    padding: 18px;
    border: 1px solid var(--ovc-border);
    border-radius: 14px;
    background: var(--ovc-bg);
    box-shadow: 0 8px 24px rgba(10, 25, 41, 0.06);
}

.ovc-title {
    margin: 0 0 14px;
    font-size: 1.35rem;
}

.ovc-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.ovc-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 880px;
}

.ovc-table th,
.ovc-table td {
    padding: 10px;
    border: 1px solid var(--ovc-border);
    text-align: center;
    vertical-align: middle;
}

.ovc-table th {
    background: var(--ovc-soft);
    font-weight: 700;
}

.ovc-table td:first-child,
.ovc-table th:first-child {
    text-align: left;
}

.ovc-input {
    width: 100%;
    min-width: 94px;
    box-sizing: border-box;
    padding: 9px 10px;
    border: 1px solid var(--ovc-border);
    border-radius: 8px;
    background: #fff;
    font: inherit;
}

.ovc-bookmaker {
    min-width: 150px;
}

.ovc-best {
    background: var(--ovc-best);
    font-weight: 700;
}

.ovc-positive-value {
    background: var(--ovc-value);
    font-weight: 700;
}

.ovc-negative-value {
    background: var(--ovc-negative);
}

.ovc-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.ovc-button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    background: #132235;
    color: #fff;
    font-weight: 700;
}

.ovc-button-secondary {
    background: #eef2f6;
    color: #132235;
}

.ovc-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
    padding: 12px;
    border-radius: 10px;
    background: var(--ovc-soft);
}

.ovc-note {
    margin: 12px 0 0;
    color: var(--ovc-muted);
    font-size: 0.93rem;
}

@media (max-width: 700px) {
    .ovc-table {
        min-width: 0;
        border: 0;
    }

    .ovc-table thead {
        display: none;
    }

    .ovc-table tr {
        display: block;
        margin-bottom: 14px;
        border: 1px solid var(--ovc-border);
        border-radius: 12px;
        overflow: hidden;
    }

    .ovc-table td {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        border-width: 0 0 1px;
        text-align: right;
    }

    .ovc-table td::before {
        content: attr(data-label);
        font-weight: 700;
        text-align: left;
    }

    .ovc-table td:first-child {
        text-align: right;
    }

    .ovc-input {
        max-width: 190px;
    }
}
