/**
 * Setup wizard admin styles
 */

.maca-onboarding-wrap {
    max-width: 860px;
}

.maca-onboarding-header {
    margin-bottom: 24px;
}

.maca-onboarding-lead {
    color: #646970;
    font-size: 14px;
    max-width: 640px;
}

.maca-onboarding-progress {
    margin-top: 16px;
    height: 6px;
    background: #dcdcde;
    border-radius: 999px;
    overflow: hidden;
}

.maca-onboarding-progress-bar {
    height: 100%;
    background: #2271b1;
    border-radius: 999px;
    transition: width 0.25s ease;
}

.maca-onboarding-steps ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.maca-onboarding-step-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid #dcdcde;
    border-radius: 999px;
    background: #fff;
    color: #646970;
    font-size: 12px;
}

.maca-onboarding-step-item.is-current {
    border-color: #2271b1;
    color: #1d2327;
    font-weight: 600;
}

.maca-onboarding-step-item.is-done {
    border-color: #00a32a;
    color: #1d2327;
}

.maca-onboarding-step-item.is-skipped {
    opacity: 0.75;
}

.maca-onboarding-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f0f0f1;
    font-weight: 700;
}

.maca-onboarding-step-item.is-current .maca-onboarding-step-num,
.maca-onboarding-step-item.is-done .maca-onboarding-step-num {
    background: #2271b1;
    color: #fff;
}

.maca-onboarding-panel {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 16px;
}

.maca-onboarding-panel h2 {
    margin-top: 0;
}

.maca-onboarding-list {
    margin: 1em 0;
    padding-left: 1.2em;
}

.maca-onboarding-choice-group {
    border: 0;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.maca-onboarding-choice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    cursor: pointer;
    background: #fafafa;
}

.maca-onboarding-choice:hover {
    border-color: #2271b1;
}

.maca-onboarding-step-item.is-clickable {
    padding: 0;
}

.maca-onboarding-step-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    color: inherit;
    text-decoration: none;
}

.maca-onboarding-step-link:hover,
.maca-onboarding-step-link:focus {
    color: #2271b1;
}

.maca-onboarding-inline-notice {
    margin: 0 0 16px;
}

.maca-onboarding-choice.is-disabled {
    opacity: 0.65;
}

.maca-onboarding-choice.is-disabled input {
    cursor: not-allowed;
}

.maca-onboarding-choice input {
    margin-top: 4px;
}

.maca-onboarding-choice-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.maca-onboarding-choice-body strong {
    font-size: 14px;
}

.maca-onboarding-choice-body span {
    color: #646970;
    font-size: 13px;
}

.maca-onboarding-checklist label {
    display: block;
    margin-bottom: 10px;
}

.maca-onboarding-links {
    margin: 1em 0 0;
    padding-left: 1.2em;
}

.maca-onboarding-publish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.maca-onboarding-card {
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 16px;
    background: #fafafa;
}

.maca-onboarding-card h3 {
    margin-top: 0;
}

.maca-onboarding-code {
    display: inline-block;
    padding: 8px 12px;
    background: #1d2327;
    color: #f0f0f1;
    border-radius: 4px;
    font-size: 13px;
    margin: 8px 0 12px;
}

.maca-onboarding-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.maca-onboarding-actions-spacer {
    flex: 1 1 auto;
}

.maca-onboarding-dismiss {
    margin-left: auto;
    color: #646970 !important;
}

.maca-onboarding-wrap .maca-opening-hours-table {
    margin-top: 12px;
}

.maca-onboarding-wrap .maca-opening-hours-table th,
.maca-onboarding-wrap .maca-opening-hours-table td {
    vertical-align: middle;
}

.maca-onboarding-wrap .maca-opening-hours-table input[type="time"] {
    max-width: 120px;
}

.maca-onboarding-wrap .required {
    color: #d63638;
}

@media (max-width: 600px) {
    .maca-onboarding-actions-spacer {
        display: none;
    }

    .maca-onboarding-dismiss {
        width: 100%;
        text-align: left;
        margin-left: 0;
        margin-top: 8px;
    }
}
