.button,
button,
input[type='button'],
input[type='reset'],
input[type='submit'] {
    background-color: var(--color-cakephp-blue);
    border-color: var(--color-cakephp-blue);
    color: #fff;
    font-size: 1.6rem;
}

.button:hover,
.button:focus,
button:hover,
button:focus,
input[type='button']:hover,
input[type='button']:focus,
input[type='reset']:hover,
input[type='reset']:focus,
input[type='submit']:hover,
input[type='submit']:focus {
    background-color: #276f91;
    border-color: #276f91;
    color: #fff;
}

/* 発注受付から配車完了までの進捗表示 */
.dispatch-progress-panel {
    max-width: 680px;
    margin: 24px auto 8px;
    padding: 20px 24px 14px;
    border: 1px solid #cfe3ef;
    border-radius: 12px;
    background: linear-gradient(180deg, #f7fcff 0%, #fff 100%);
    box-shadow: 0 4px 14px rgb(18 109 164 / 10%);
}

.dispatch-progress__caption {
    margin-bottom: 2px;
    color: #667784;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: .08em;
    text-align: center;
}

.dispatch-progress__current-status {
    color: #126da4;
    font-size: 2.2rem;
    font-weight: bold;
    text-align: center;
}

.dispatch-progress {
    display: flex;
    width: min(100%, 640px);
    margin: 18px auto 6px;
}

.dispatch-progress__step {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    color: #888;
    text-align: center;
}

.dispatch-progress__step:not(:last-child)::after {
    position: absolute;
    z-index: 0;
    top: 21px;
    left: calc(50% + 21px);
    width: calc(100% - 42px);
    height: 6px;
    background: #aaa;
    content: '';
}

.dispatch-progress__step.is-reached:not(:last-child)::after {
    background: #1683c7;
}

.dispatch-progress__marker {
    position: relative;
    z-index: 1;
    display: flex;
    width: 42px;
    height: 42px;
    margin: 0 auto 10px;
    align-items: center;
    justify-content: center;
    border: 3px solid #aaa;
    border-radius: 50%;
    background: #fff;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    line-height: 1;
}

.dispatch-progress__step.is-reached {
    color: #126da4;
    font-weight: bold;
}

.dispatch-progress__step.is-reached .dispatch-progress__marker {
    border-color: #1683c7;
    background: linear-gradient(135deg, #32a7e8, #0873b6);
    box-shadow: 0 3px 8px rgb(8 115 182 / 25%);
}

.dispatch-progress__step.is-current .dispatch-progress__marker {
    outline: 4px solid rgb(50 167 232 / 18%);
}

.dispatch-progress__label {
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.dispatch-progress--compact {
    width: 300px;
    margin: 4px 0;
}

.dispatch-progress-panel--compact {
    width: 324px;
    margin: 2px 0;
    padding: 8px 10px 6px;
    border-radius: 8px;
    box-shadow: none;
}

.dispatch-progress-panel--compact .dispatch-progress__caption {
    display: none;
}

.dispatch-progress-panel--compact .dispatch-progress__current-status {
    font-size: 1.3rem;
}

.dispatch-progress--compact .dispatch-progress__step:not(:last-child)::after {
    top: 11px;
    left: calc(50% + 11px);
    width: calc(100% - 22px);
    height: 3px;
}

.dispatch-progress--compact .dispatch-progress__marker {
    width: 22px;
    height: 22px;
    margin-bottom: 4px;
    border-width: 2px;
    font-size: 13px;
}

.dispatch-progress--compact .dispatch-progress__label {
    font-size: 1.2rem;
}

.dispatch-change-state {
    margin-top: 4px;
    font-size: 1.2rem;
}

@media (max-width: 640px) {
    .dispatch-progress__label {
        font-size: 1.2rem;
    }
}
