.detail-draw-info { display: contents; }
#detailLatest .detail-top[data-family] .detail-row-info:has(.detail-order-buttons) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
    height: auto;
    min-height: 28px;
    padding-right: 0;
    margin-bottom: 0;
}
#detailLatest .detail-row-info:has(.detail-order-buttons) .detail-draw-info {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    white-space: normal;
}
#detailLatest .detail-draw-info .detail-interval { white-space: normal; }
#detailLatest .detail-top[data-family] .detail-col-main:has(.detail-order-buttons) { height: auto; }
.detail-order-buttons {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0;
    white-space: nowrap;
    vertical-align: middle;
}
#historyThead .detail-order-buttons { margin: 4px 8px; }
#detailLatest .detail-order-buttons button,
#historyThead .detail-order-buttons button {
    border: 1px solid #609aeb;
    background: #fff;
    color: #609aeb;
    font: inherit;
    font-size: 12px;
    line-height: 20px;
    padding: 3px 8px;
    min-width: 0;
    min-height: 28px;
    width: auto;
    height: auto;
    cursor: pointer;
}
.detail-order-buttons button:first-child { border-radius: 3px 0 0 3px; }
.detail-order-buttons button:last-child { border-radius: 0 3px 3px 0; margin-left: -1px; }
#detailLatest .detail-order-buttons button.active,
#historyThead .detail-order-buttons button.active { background: #609aeb; color: #fff; }
.detail-order-buttons button:focus-visible { outline: 2px solid #1f5ba8; outline-offset: 2px; }
#detailLatest .detail-top:has(.detail-order-buttons) { height: auto; }
@media (min-width: 1100px) {
    #detailLatest [data-family=bingo] .detail-col-main:has(.detail-order-buttons) {
        flex: 1 1 500px;
        max-width: 540px;
    }
}
@media (max-width: 768px) {
    #detailLatest .detail-order-buttons button { min-height: 32px; }
}
