.bui-action,.cancel-button.bui-action{display:flex!important;align-items:center;justify-content:center;width:100%!important;max-width:100%!important;min-height:56px;margin:12px 0!important;padding:14px 20px!important;border:0!important;border-radius:9px!important;background:#174ea6;color:#fff!important;text-decoration:none!important;font:700 17px/1.5 system-ui,sans-serif!important;box-sizing:border-box;text-align:center}.cancel-button.bui-action{background:#b42318}#bui-review:disabled{opacity:.45;cursor:not-allowed}@media(prefers-color-scheme:dark){}
/* change-grid-match-v1 */
#bui-grid button{width:auto;box-sizing:border-box}@media (prefers-color-scheme: dark){.time-scroll-help,.legend{ color: #ccc !important; }
.time-button,.legend-available{
        background: #232323; color: #f3f3f3; border-color: #747474;
    }
.time-button.selected,.legend-selected{
        background: #2563eb; color: #fff; border-color: #70a5ff;
    }
.time-button.range-selected{ background: #29496f; color: #e7f3ff; border-color: #70a5ff; }
.time-button.unavailable,.time-button.past,.legend-unavailable{
        background: #343434; color: #b5b5b5; border-color: #656565;
    }
#bui-grid:focus-visible{ outline-color: #ffb181; }
}
.legend{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 13px;
}
.legend-item{
    display: flex;
    align-items: center;
    gap: 5px;
}
.legend-box{
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #bbb;
}
.legend-available{
    background: #ffffff;
}
.legend-selected{
    background: #2563eb;
    border-color: #2563eb;
}
.legend-unavailable{
    background: #d8d8d8;
    border-color: #c5c5c5;
}
#bui-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}
.time-button{
    min-height: 46px;
    padding: 8px 4px;

    border: 1px solid #bbb;
    border-radius: 7px;

    background: #ffffff;
    color: #222;

    font-size: 14px;
    cursor: pointer;

    transition:
        background 0.15s,
        border-color 0.15s;
}
.time-button:hover:not(:disabled){
    border-color: #2563eb;
}
.time-button.selected{
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    font-weight: bold;
}
.time-button.range-selected{
    background: #dbeafe;
    border-color: #60a5fa;
    color: #1e3a8a;
    font-weight: bold;
}
.time-button.unavailable{
    background: #d8d8d8;
    border-color: #c5c5c5;
    color: #777;
    cursor: not-allowed;
    text-decoration: line-through;
}
.time-button.past{
    background: #eeeeee;
    border-color: #dddddd;
    color: #aaa;
    cursor: not-allowed;
}
@media (max-width: 480px){#bui-grid{
        gap: 5px;
    }
.time-button{
        min-height: 44px;
        font-size: 13px;
    }
}
#bui-grid:focus-visible{outline:3px solid #3171c9;outline-offset:3px}
.time-scroll-help{margin:0 0 8px;color:#555;font-size:12px;line-height:1.6}
#bui-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;max-height:520px;max-height:min(54vh,520px);min-height:80px;overflow-y:auto;overflow-x:hidden;align-content:start;padding:4px;scrollbar-gutter:stable;scroll-padding:4px;border-radius:8px;touch-action:pan-y pinch-zoom}
.time-button{min-width:0;min-height:46px;padding:10px 3px;font-family:inherit;font-size:14px;line-height:1.4;touch-action:manipulation}
.legend{gap:12px;color:#444}
@media(max-width:959px){#bui-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
}
@media(max-width:540px){#bui-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;max-height:420px;max-height:min(50svh,420px);scrollbar-gutter:auto}
.time-button{min-height:46px;font-size:14px;padding:10px 2px}
.legend{gap:10px;font-size:12px}
}

#bui-date{display:block;width:100%;box-sizing:border-box;min-height:48px;padding:12px;font:inherit;margin-top:12px}#bui-selection{line-height:1.7;font-weight:bold}

/* change-direct-quote-v1 */
#bui-quote dl{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px}#bui-quote dt,#bui-quote dd{margin:0}#bui-quote dd{text-align:end;font-variant-numeric:tabular-nums}#bui-quote .direct-dates{grid-column:1/-1;direction:ltr;white-space:pre-line}#bui-quote[hidden]{display:none}#bui-review{width:100%;min-height:52px}#bui-quote p{line-height:1.7}
