[data-query-form] [data-submit-query] {
    border-color: #c9002b;
    color: #fff;
    background: #c9002b;
    box-shadow: 0 5px 14px rgba(166, 112, 24, .18);
    opacity: 1;
}
[data-query-form] [data-submit-query]:hover:not(:disabled) {
    background: #a80024;
}
[data-query-form] [data-submit-query]:disabled {
    border-color: #d99aaa;
    color: #fff;
    background: #d99aaa;
    box-shadow: none;
    opacity: 1;
    cursor: not-allowed;
}
.lottery-query-result {
    width: 600px;
    max-width: calc(100% - 80px);
    box-sizing: border-box;
    margin: 32px auto 28px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #172027;
    background: transparent;
}
.lottery-query-result.is-win,
.lottery-query-result.is-error {
    border: 0;
    background: transparent;
}
.lottery-query-result__row {
    display: flex;
    box-sizing: border-box;
    border: 1px solid #e4e8ed;
    border-radius: 8px;
    color: #172027;
    background: #fff;
    font-size: 18px;
}
.lottery-query-result__row + .lottery-query-result__row { margin-top: 16px; }
.lottery-query-result__row > span { font-weight: 700; }
.lottery-query-result__row--issue {
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}
.lottery-query-result__row--issue strong {
    color: #172027;
    font-size: 18px;
    font-weight: 700;
}
.lottery-query-result__row--numbers {
    min-height: 128px;
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 24px;
}
.lottery-query-result__row--numbers > span {
    width: auto;
    flex: 0 0 auto;
}
.lottery-query-result__balls {
    display: flex;
    min-height: 40px;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
.lottery-query-result__ball {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: #db1e2f;
    font-size: 16px;
}
.lottery-query-result__ball.is-blue { background: #1e66db; }
.lottery-query-result__table {
    box-sizing: border-box;
    margin-top: 16px;
    padding: 20px 24px 24px;
    border: 1px solid #e4e8ed;
    border-radius: 8px;
    background: #fff;
}
.lottery-query-result__table h2 {
    margin: 0 0 18px;
    color: #172027;
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
    text-align: left;
}
.lottery-query-result__message {
    margin: -8px 0 14px;
    color: #5f6d76;
    font-size: 14px;
    line-height: 22px;
}
.lottery-query-result__table table {
    width: 100%;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    border-radius: 4px;
    color: #292d33;
    font-size: 14px;
    text-align: center;
}
.lottery-query-result__table th,
.lottery-query-result__table td {
    height: 46px;
    box-sizing: border-box;
    padding: 5px 4px;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    font-weight: 400;
}
.lottery-query-result__table tr > :last-child { border-right: 0; }
.lottery-query-result__table tbody tr:last-child > * { border-bottom: 0; }
.lottery-query-result__table thead th {
    color: #292d33;
    background: #f1f0eb;
    font-weight: 500;
}
.lottery-query-result__table tbody th { background: transparent; }
.lottery-query-result__table tbody tr:nth-child(odd) { background: #f2f2f2; }
.lottery-query-result__table tbody tr:nth-child(even) { background: #fff; }
.lottery-query-result__table tbody tr:last-child,
.lottery-query-result__table tbody tr[data-result-total] {
    background: #f1f0eb;
    font-weight: 700;
}
.lottery-query-result__table tbody tr:last-child th,
.lottery-query-result__table tbody tr:last-child td,
.lottery-query-result__table tbody tr[data-result-total] > * {
    color: #292d33;
    background: #f1f0eb;
    font-weight: 700;
}
.lottery-query-result__table .lottery-query-result__status td {
    height: 72px;
    color: #5f6d76;
}
.lottery-query-result__continue {
    display: flex;
    width: 224px;
    min-width: 224px;
    height: 56px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 24px auto 0;
    padding: 0 24px;
    border: 0;
    border-radius: 28px;
    color: #fff;
    background: #c9002b;
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
}
.lottery-query-result__continue svg {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.lottery-query-result > .lottery-query-result__continue {
    margin: 24px auto 0;
    border: 0;
    color: #fff;
    background: #c9002b;
    font-size: 20px;
}
.lottery-query-result:not([hidden]) + [class*="__notice"] {
    width: 600px;
    max-width: calc(100% - 80px);
    margin: 0 auto 48px;
    text-align: center;
}
@media (max-width: 767px) {
    .lottery-query-result {
        width: auto;
        max-width: none;
        margin: 28px 14px;
    }
    .lottery-query-result__row { font-size: 16px; }
    .lottery-query-result__row--issue {
        min-height: 62px;
        padding: 0 16px;
    }
    .lottery-query-result__row--numbers {
        min-height: 112px;
        padding: 18px 16px;
    }
    .lottery-query-result__balls {
        gap: 6px;
        margin-top: 14px;
    }
    .lottery-query-result__ball {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        font-size: 14px;
    }
    .lottery-query-result__table {
        overflow-x: auto;
        padding: 18px 12px;
    }
    .lottery-query-result__table table { min-width: 430px; }
    .lottery-query-result__continue {
        width: 200px;
        min-width: 200px;
        height: 50px;
        font-size: 18px;
    }
    .lottery-query-result:not([hidden]) + [class*="__notice"] {
        width: auto;
        max-width: none;
        margin-right: 14px;
        margin-left: 14px;
    }
}
