/* New-store welcome overlay (dashboard) */
.welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.45);
    box-sizing: border-box;
}

.welcome-overlay[hidden] {
    display: none !important;
}

.welcome-dialog {
    position: relative;
    width: min(520px, 100%);
    max-height: min(90vh, 720px);
    overflow: auto;
    background: #fff;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
    padding: 1.75rem 1.5rem 1.5rem;
    box-sizing: border-box;
}

.welcome-skip {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border: none;
    background: transparent;
    color: var(--text-secondary, #666);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
}

.welcome-skip:hover {
    color: var(--text-color, #333);
    text-decoration: underline;
}

.welcome-step-indicator {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-secondary, #666);
    margin-bottom: 0.5rem;
}

.welcome-title {
    margin: 0 0 0.75rem;
    font-size: 1.375rem;
    line-height: 1.3;
    color: var(--text-color, #333);
}

.welcome-body {
    color: var(--text-secondary, #666);
    font-size: 0.975rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.welcome-body p {
    margin: 0 0 0.75rem;
}

.welcome-body p:last-child {
    margin-bottom: 0;
}

.welcome-body ul {
    margin: 0.5rem 0 0.75rem;
    padding-left: 1.25rem;
}

.welcome-body li {
    margin-bottom: 0.35rem;
}

.welcome-body a {
    color: #1d4ed8;
    font-weight: 600;
}

.welcome-sync-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.welcome-sync-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    background: var(--light-gray, #f8f9fa);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 6px;
}

.welcome-sync-icon {
    flex: 0 0 auto;
    width: 1.25rem;
    text-align: center;
    font-weight: 700;
}

.welcome-sync-list li.is-pending .welcome-sync-icon {
    color: var(--text-secondary, #666);
}

.welcome-sync-list li.is-running .welcome-sync-icon {
    color: var(--primary-color, #007bff);
}

.welcome-sync-list li.is-done .welcome-sync-icon {
    color: var(--success-color, #28a745);
}

.welcome-sync-list li.is-error .welcome-sync-icon {
    color: var(--danger-color, #dc3545);
}

.welcome-sync-copy {
    flex: 1;
    min-width: 0;
}

.welcome-sync-label {
    display: block;
    font-weight: 600;
    color: var(--text-color, #333);
}

.welcome-sync-detail {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary, #666);
    margin-top: 0.15rem;
}

.welcome-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
}

.welcome-actions .primary-button,
.welcome-actions .secondary-button {
    min-width: 7.5rem;
}

.welcome-actions .primary-button:disabled,
.welcome-actions .secondary-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.welcome-overlay--tour {
    align-items: flex-end;
    justify-content: center;
    background: rgba(15, 23, 42, 0.28);
    padding-bottom: 1.25rem;
}

.welcome-overlay--tour .welcome-dialog {
    width: min(560px, 100%);
    max-height: min(42vh, 360px);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.2);
}

#welcome-locations-section.welcome-highlight {
    outline: 2px solid var(--primary-color, #007bff);
    outline-offset: 4px;
    border-radius: 8px;
    transition: outline-color 0.2s ease;
}

@media (max-width: 480px) {
    .welcome-dialog {
        padding: 1.5rem 1rem 1.15rem;
    }

    .welcome-actions {
        flex-direction: column-reverse;
    }

    .welcome-actions .primary-button,
    .welcome-actions .secondary-button {
        width: 100%;
    }

    .welcome-overlay--tour .welcome-dialog {
        max-height: min(50vh, 420px);
    }
}
